add customer_rage_title

master
luoyang 5 years ago
parent 42ec49784d
commit cb08cd7546

@ -3116,6 +3116,10 @@ public class RetailAppServiceImp implements RetailAppService {
channels.add(cbBankPay); channels.add(cbBankPay);
} }
res.put("channels", channels); res.put("channels", channels);
if (res.containsKey("rate_value")) {
BigDecimal minRate = res.getBigDecimal("rate_value").add(new BigDecimal(0.01)).setScale(2, RoundingMode.DOWN);
res.put("customer_rage_title", (minRate.toPlainString() + "~" + res.getString("max_customer_surcharge_rate")));
}
return res; return res;
} }

Loading…
Cancel
Save