|
@@ -315,15 +315,9 @@ public class WxController extends ApiBaseController {
|
|
|
String chain = obj.getString("chain");
|
|
String chain = obj.getString("chain");
|
|
|
String customerName = obj.getString("customerName");
|
|
String customerName = obj.getString("customerName");
|
|
|
String order = obj.getString("order");
|
|
String order = obj.getString("order");
|
|
|
- String message = "";
|
|
|
|
|
- if("123456789".equals(order)){
|
|
|
|
|
- message = "出厂通知:您有订单<a href='https://suishenbangtest.nipponpaint.com.cn/order/onlineTracking/distributor?parType=customer_level&parValue=%s&status=6'>"+customerName+"</a> 货物已出厂,可以进入<a href='https://suishenbangtest.nipponpaint.com.cn/order/onlineTracking/distributor?parType=customer_level&parValue=%s&status=6'>随身邦</a>查询详情。";
|
|
|
|
|
- // message = "交货通知:您有订单6114600627 已于今天交货,可以进入<a href='https://suishenbangtest.nipponpaint.com.cn/order/onlineTracking/distributor?parType=customer_level&parValue=%s&status=4'>随身邦</a>查询详情。";
|
|
|
|
|
- }else {
|
|
|
|
|
- String temple = configService.selectConfigByKey("wx.notification.order.complete");
|
|
|
|
|
- String orderFormat = getOrderFormat(order, customerName);
|
|
|
|
|
- message = String.format(temple, orderFormat, chain);
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ String temple = configService.selectConfigByKey("wx.notification.order.complete");
|
|
|
|
|
+ String orderFormat = getOrderFormat(order, customerName);
|
|
|
|
|
+ String message = String.format(temple, orderFormat, chain);
|
|
|
Set<String> customerCodes = new HashSet<>();
|
|
Set<String> customerCodes = new HashSet<>();
|
|
|
customerCodes.add(chain);
|
|
customerCodes.add(chain);
|
|
|
logger.info("收到需要通知的经销商组织代码:"+chain);
|
|
logger.info("收到需要通知的经销商组织代码:"+chain);
|