Commit 8a1b6408 by xiaoyj

微信消息提醒增加日志create by xiaoyj 2018/4/26

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@20653 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 3290463d
......@@ -2585,6 +2585,7 @@ public class OrderServiceImpl implements IOrderService {
String miniAppId = PropertiesUtil.getProperty("wechat.mini.mechanic.appid");
templateConfig(sysUser.getPublicOpenId(), orderSn, time, miniAppId);
indertSysOrderWechatMsg(sysOrder, userId, (byte) 5, "", sysUser.getId());
logger.info("推送技工接单成功消息到技工");
}
// 获取服务商
sysUser = JSONObject.toJavaObject(userClient.getUserById(sysOrder.getMerchantId()).getJSONObject("data"),
......@@ -2593,6 +2594,7 @@ public class OrderServiceImpl implements IOrderService {
String miniAppId = PropertiesUtil.getProperty("wechat.mini.service.appid");
templateConfig(sysUser.getPublicOpenId(), orderSn, time, miniAppId);
indertSysOrderWechatMsg(sysOrder, userId, (byte) 5, "", sysUser.getId());
logger.info("推送技工接单成功消息到服务商");
}
// 获取商户
sysUser = JSONObject.toJavaObject(userClient.getUserById(sysOrder.getShopId()).getJSONObject("data"),
......@@ -2601,6 +2603,7 @@ public class OrderServiceImpl implements IOrderService {
String miniAppId = PropertiesUtil.getProperty("wechat.mini.merchant.appid");
templateConfig(sysUser.getPublicOpenId(), orderSn, time, miniAppId);
indertSysOrderWechatMsg(sysOrder, userId, (byte) 5, "", sysUser.getId());
logger.info("推送技工接单成功消息到商户");
}
}
......@@ -2626,6 +2629,7 @@ public class OrderServiceImpl implements IOrderService {
templateConfig1(sysUser.getPublicOpenId(), orderSn, time, miniAppId);
// 同步微信消息记录
indertSysOrderWechatMsg(order, order.getMechanicId(), (byte) 2, "", sysUser.getId());
logger.info("推送技工完成订单消息到技工");
}
// 获取服务商
sysUser = JSONObject.toJavaObject(userClient.getUserById(order.getMerchantId()).getJSONObject("data"),
......@@ -2635,6 +2639,7 @@ public class OrderServiceImpl implements IOrderService {
templateConfig1(sysUser.getPublicOpenId(), orderSn, time, miniAppId);
// 同步微信消息记录
indertSysOrderWechatMsg(order, order.getMechanicId(), (byte) 2, "", sysUser.getId());
logger.info("推送技工完成订单消息到服务商");
}
// 获取商户
sysUser = JSONObject.toJavaObject(userClient.getUserById(order.getShopId()).getJSONObject("data"),
......@@ -2644,6 +2649,7 @@ public class OrderServiceImpl implements IOrderService {
templateConfig1(sysUser.getPublicOpenId(), orderSn, time, miniAppId);
// 同步微信消息记录
indertSysOrderWechatMsg(order, order.getMechanicId(), (byte) 2, "", sysUser.getId());
logger.info("推送技工完成订单消息到商户");
}
}
}
......@@ -2669,6 +2675,7 @@ public class OrderServiceImpl implements IOrderService {
templateConfig2(sysUser.getPublicOpenId(), orderSn, oderType, installDeviceType, miniAppId);
// 同步微信消息成功记录
indertSysOrderWechatMsg(sysOrder, sysOrder.getShopId(), (byte) 1, "", sysUser.getId());
logger.info("推送订单取消消息到商户");
}
} else if (sysOrder.getActiveStatus() == 2 || sysOrder.getActiveStatus() == 5) {
// 服务商未指定技工或技工拒单 发送到商户、服务商
......@@ -2678,6 +2685,7 @@ public class OrderServiceImpl implements IOrderService {
String miniAppId = PropertiesUtil.getProperty("wechat.mini.merchant.appid");
templateConfig2(sysUser.getPublicOpenId(), orderSn, oderType, installDeviceType, miniAppId);
indertSysOrderWechatMsg(sysOrder, sysOrder.getShopId(), (byte) 1, "", sysUser.getId());
logger.info("推送订单取消消息到商户");
}
sysUser = JSONObject.toJavaObject(userClient.getUserById(sysOrder.getMerchantId()).getJSONObject("data"),
SysUser.class);
......@@ -2685,6 +2693,7 @@ public class OrderServiceImpl implements IOrderService {
String miniAppId = PropertiesUtil.getProperty("wechat.mini.service.appid");
templateConfig2(sysUser.getPublicOpenId(), orderSn, oderType, installDeviceType, miniAppId);
indertSysOrderWechatMsg(sysOrder, sysOrder.getShopId(), (byte) 1, "", sysUser.getId());
logger.info("推送订单取消消息到服务商");
}
} else {
// 技工接单未完成过程的取消订单,发送到 商户、服务商、技工
......@@ -2694,6 +2703,7 @@ public class OrderServiceImpl implements IOrderService {
String miniAppId = PropertiesUtil.getProperty("wechat.mini.merchant.appid");
templateConfig2(sysUser.getPublicOpenId(), orderSn, oderType, installDeviceType, miniAppId);
indertSysOrderWechatMsg(sysOrder, sysOrder.getShopId(), (byte) 1, "", sysUser.getId());
logger.info("推送订单取消消息到商户");
}
sysUser = JSONObject.toJavaObject(userClient.getUserById(sysOrder.getMerchantId()).getJSONObject("data"),
SysUser.class);
......@@ -2701,6 +2711,7 @@ public class OrderServiceImpl implements IOrderService {
String miniAppId = PropertiesUtil.getProperty("wechat.mini.service.appid");
templateConfig2(sysUser.getPublicOpenId(), orderSn, oderType, installDeviceType, miniAppId);
indertSysOrderWechatMsg(sysOrder, sysOrder.getShopId(), (byte) 1, "", sysUser.getId());
logger.info("推送订单取消消息到服务商");
}
sysUser = JSONObject.toJavaObject(userClient.getUserById(sysOrder.getMechanicId()).getJSONObject("data"),
......@@ -2709,6 +2720,7 @@ public class OrderServiceImpl implements IOrderService {
String miniAppId = PropertiesUtil.getProperty("wechat.mini.mechanic.appid");
templateConfig2(sysUser.getPublicOpenId(), orderSn, oderType, installDeviceType, miniAppId);
indertSysOrderWechatMsg(sysOrder, sysOrder.getShopId(), (byte) 1, "", sysUser.getId());
logger.info("推送订单取消消息到技工");
}
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!