Commit 86dd17f3 by 吕明尚

修改微信模版金额的样式

parent 74e010ba
......@@ -34,6 +34,7 @@ import share.system.response.WeChatJsSdkConfigResponse;
import share.system.service.*;
import java.io.UnsupportedEncodingException;
import java.math.RoundingMode;
import java.net.URLDecoder;
import java.util.*;
import java.util.concurrent.TimeUnit;
......@@ -597,7 +598,7 @@ public class WechatNewServiceImpl implements WechatNewService {
String preStartDateStr = DateUtil.format(preStartDate, DatePattern.NORM_DATETIME_MINUTE_FORMATTER);
String preEndDateStr = DateUtil.format(preEndDate, DatePattern.NORM_DATETIME_MINUTE_FORMATTER);
String date = preStartDateStr + "~" + preEndDateStr;
String msg = "实付金额" + byOrderNo.getPayPrice() + "元";
String msg = "实付金额¥" + byOrderNo.getPayPrice().setScale(2, RoundingMode.CEILING) + "元";
if (!ObjectUtils.isEmpty(byOrderNo.getCouponId())) {
SConsumerCoupon byId = sConsumerCouponService.getById(byOrderNo.getCouponId());
msg = msg + ",优惠券类型为" + PlatformTypeEnum.getNameByCode(byId.getPlatformType());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment