Commit b466e58d by zhanghj

V1.4.0--服务商指派技工没有实时推送消息

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@23796 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 99028310
......@@ -18,6 +18,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.BindingResult;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
......
......@@ -137,7 +137,7 @@ public class OrderUtil {
private void templateConfig5(String wxOpenId, Integer orderId, Map<String, TemplateData> data){
WechatTemplate wechatTemplate = new WechatTemplate();
String pagePath = PropertiesUtil.getProperty(Constants.WECHAT_MINI_ORDER_DETAIL_PAGE) + Constants.WECHAT_MINI_ORDER_DETAIL_PAGE_PARAM + orderId;
String templateId=PropertiesUtil.getProperty("wechat_bhg_public_order_todo_mechanic_templateid");
String templateId=PropertiesUtil.getProperty(Constants.WECHAT_BHG_PUBLIC_ORDER_APPOINT_SERVICE_TEMPLATEID);
String miniAppId=PropertiesUtil.getProperty(Constants.WECHAT_MINI_MECHANIC_APPID);
wechatTemplate.setTemplate_id(templateId);
wechatTemplate.setTouser(wxOpenId);
......@@ -170,11 +170,11 @@ public class OrderUtil {
logger.info("派单给技工提醒消息,orderSn=" + orderSn);
if(sysUser!=null){
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(tranceType(sysOrder.getOrderType()), ""));
data.put("keyword3", new TemplateData(sysUser.getName(), ""));
data.put("keyword4", new TemplateData(createTime, ""));
data.put("keyword4", new TemplateData(createTime + "\r\n", ""));
data.put("remark", new TemplateData("请尽快接单", Constants.WECHAT_BHG_PUBLIC_ORDER_REMARK_COLOR));
templateConfig5(publicOpenId, orderId, data);
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!