Commit a9fafcdb authored by Quxl's avatar Quxl

x

parent 2cf06f74
...@@ -868,6 +868,7 @@ public class OrderServiceImpl implements OrderService { ...@@ -868,6 +868,7 @@ public class OrderServiceImpl implements OrderService {
e.printStackTrace(); e.printStackTrace();
} }
if(salesman != null) { if(salesman != null) {
String dateString = DateUtil.format(new Date());
Map<String, Object> shop = jdbcTemplate.queryForMap("select * from tShop where sShopNO = ?", shopNo); Map<String, Object> shop = jdbcTemplate.queryForMap("select * from tShop where sShopNO = ?", shopNo);
String custNo = (String)shop.get("sCustNO"); String custNo = (String)shop.get("sCustNO");
String shopMemo = (String)shop.get("sMemo"); String shopMemo = (String)shop.get("sMemo");
...@@ -877,8 +878,8 @@ public class OrderServiceImpl implements OrderService { ...@@ -877,8 +878,8 @@ public class OrderServiceImpl implements OrderService {
WxMessage wxMessage = new WxMessage(sCompanyAccountID); WxMessage wxMessage = new WxMessage(sCompanyAccountID);
MiniprogramNotice notice = new MiniprogramNotice(); MiniprogramNotice notice = new MiniprogramNotice();
wxMessage.setMiniprogram_notice(notice); wxMessage.setMiniprogram_notice(notice);
notice.setDescription("当前时间"); notice.setDescription(dateString);
notice.setTitle("认证审核通知"); notice.setTitle("客户订单通知");
notice.setPage("pages/ordermanage/detail/detail?SalesmanNO=" + salesmanNo + "&isShare=1&id=" + sSalesOrderID + "&isActive=0"); notice.setPage("pages/ordermanage/detail/detail?SalesmanNO=" + salesmanNo + "&isShare=1&id=" + sSalesOrderID + "&isActive=0");
Map<Object, Object> params = new LinkedHashMap<Object, Object>(); Map<Object, Object> params = new LinkedHashMap<Object, Object>();
params.put("订单状态", "待审核"); params.put("订单状态", "待审核");
...@@ -886,7 +887,7 @@ public class OrderServiceImpl implements OrderService { ...@@ -886,7 +887,7 @@ public class OrderServiceImpl implements OrderService {
params.put("订单金额", totalAmount); params.put("订单金额", totalAmount);
params.put("商品数量", totalSaleQty); params.put("商品数量", totalSaleQty);
params.put("支付方式", payType); params.put("支付方式", payType);
params.put("订单时间", DateUtil.format(new Date())); params.put("订单时间", dateString);
params.put("备注", StringUtil.isBlank(shopMemo) ? " " : shopMemo); params.put("备注", StringUtil.isBlank(shopMemo) ? " " : shopMemo);
notice.setContent_item(params); notice.setContent_item(params);
wxService.sendMessage(wxMessage); wxService.sendMessage(wxMessage);
......
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