Commit 10686c3b by zhanghj

V1.4.0--完善和优化所有的微信通知消息

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@23757 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent e4aef719
......@@ -112,11 +112,11 @@ public class OrderUtil {
wechatTemplate.setTemplate_id(templateId);
wechatTemplate.setTouser(publicOpenId);
Map<String, TemplateData> data = new HashMap<>();
data.put("first", new TemplateData("你有一个订单待指派", ""));
data.put("first", new TemplateData("你有一个订单待指派\r\n", ""));
data.put("keyword1", new TemplateData(orderSn, ""));
data.put("keyword2", new TemplateData(orderTypeName, ""));
data.put("keyword3", new TemplateData(serviceName, ""));
data.put("keyword4", new TemplateData(createTimeStr, ""));
data.put("keyword4", new TemplateData(createTimeStr + "\r\n", ""));
data.put("remark", new TemplateData("请尽快指派订单", Constants.WECHAT_BHG_PUBLIC_ORDER_REMARK_COLOR));
wechatTemplate.setData(data);
MiniProgram miniprogram = new MiniProgram();
......
......@@ -59,12 +59,12 @@ public class OrderServiceImpl implements IOrderService {
List<SysOrder> orders = getTimeoutOrderList();
String templateId = PropertiesUtil.getProperty("wechat_bhg_public_order_timeout_templateid");
String pagePath = PropertiesUtil.getProperty(com.glsx.common.constants.Constants.WECHAT_MINI_ORDER_DETAIL_PAGE);
String miniAppId = PropertiesUtil.getProperty("wechat.mini.mechanic.appid");
String miniAppId = PropertiesUtil.getProperty(com.glsx.common.constants.Constants.WECHAT_MINI_MECHANIC_APPID);
for (SysOrder order : orders) {
try {
String orderSn = order.getOrderSn();
String carOwner = order.getCarOwner() == null ? "" : order.getCarOwner();
String carOwnerPhone = order.getCarOwnerPhone() == null ? "" : order.getCarOwnerPhone();
String carOwnerPhone = order.getCarOwnerPhone() == null ? "--" : order.getCarOwnerPhone();
Date creatTime = order.getCreateTime();
String createTimeStr = DateUtil.formatDate(creatTime);
String publicOpenId = order.getPublicOpenId();
......@@ -80,12 +80,12 @@ public class OrderServiceImpl implements IOrderService {
wechatTemplate.setMiniprogram(miniprogram);
Map<String, TemplateData> data = new HashMap<String, TemplateData>();
data.put("first", new TemplateData("您的订单已超时", ""));
data.put("first", new TemplateData("你有一个订单已超时\r\n", ""));
data.put("keyword1", new TemplateData(orderSn, ""));
data.put("keyword2", new TemplateData(carOwner, ""));
data.put("keyword3", new TemplateData(carOwnerPhone, ""));
data.put("keyword4", new TemplateData(createTimeStr, ""));
data.put("remark", new TemplateData("点击查看详情", ""));
data.put("keyword4", new TemplateData(createTimeStr + "\r\n", ""));
data.put("remark", new TemplateData("点击查看详情", com.glsx.common.constants.Constants.WECHAT_BHG_PUBLIC_ORDER_REMARK_COLOR));
wechatTemplate.setData(data);
wechatUtils.sendTemplateMessage(wechatTemplate);
Byte msgType = Constants.ORDER_TIME_OUT_REMIND;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!