Commit ae0ba311 authored by shiyu's avatar shiyu

发送模板消息2

parent e23405bf
......@@ -35,7 +35,7 @@ dts:
#分销单支付成功通知模板
pay-templetId: X38RkH7DtKNDHUMa2P6XXqrEmkHIEvbpTWTr7Mkf2fM
#分销单发货成功通知模板
delivery-templetId: 8apEOIXxlLHrEQ20a-o_PHXogGtgKHu25zHzFg3RPeI
delivery-templetId: 8apEOIXxlLHrEQ20a-o_PAgyU0lCzbWB85vM3wB6HRY
#分销订单确认收货通知模板
signed-templetId: k2dPOA4wvLPGf_4z76sGoA2KXHQWGEWpYT_imXlOpJI
......
......@@ -26,7 +26,7 @@ dts:
#分销单支付成功通知模板
pay-templetId: X38RkH7DtKNDHUMa2P6XXqrEmkHIEvbpTWTr7Mkf2fM
#分销单发货成功通知模板
delivery-templetId: 8apEOIXxlLHrEQ20a-o_PHXogGtgKHu25zHzFg3RPeI
delivery-templetId: 8apEOIXxlLHrEQ20a-o_PAgyU0lCzbWB85vM3wB6HRY
#分销订单确认收货通知模板
signed-templetId: k2dPOA4wvLPGf_4z76sGoA2KXHQWGEWpYT_imXlOpJI
......
......@@ -42,7 +42,7 @@ public class WebMvcConfiguration implements WebMvcConfigurer {
"/officialAccountCallback/**","/wxPayCallback/**",
"/imCallback/**", "/wx/category/**",
"/wx/consignSale/**", "/wx/item/**",
"/wx/returnOrder/**"
"/wx/returnOrder/**", "/wx/distributionOrder/confirmSigned", "/wx/distributionOrder/delivery", "/wx/distributionOrder/cancel"
// , "/wx/supplierItem/**", "/wx/shareRecord/**", "/wx/distributionOrder/**", "/wx/selfPage/**"
/* "/wx/officialAccount/**",
"/wx/item/**",
......
......@@ -46,9 +46,11 @@ public class DeliveryNoticeMsg implements Entity, AbstractSubscribeMsg {
public Map<String, Object> getTempletParam() {
Map<String, Object> map = new LinkedHashMap<>();
map.put("character_string3", new HashMap(){{put("value", distributionOrderId);}});
if (itemName.length() > 20) {
itemName = itemName.substring(0, 20);
}
map.put("thing14", new HashMap(){{put("value", itemName);}});
map.put("character_string8", new HashMap(){{put("value", waybill);}});
map.put("thing17", new HashMap(){{put("value", address);}});
SimpleDateFormat sdf = new SimpleDateFormat("yyyy年MM月dd日 HH:mm:ss", Locale.CHINESE);
String formattedDate = sdf.format(deliveryTime);
map.put("time10", new HashMap(){{put("value", formattedDate);}});
......
......@@ -46,6 +46,9 @@ public class PayNoticeMsg implements Entity, AbstractSubscribeMsg {
public Map<String, Object> getTempletParam() {
Map<String, Object> map = new LinkedHashMap<>();
map.put("character_string2", new HashMap(){{put("value", distributionOrderId);}});
if (itemName.length() > 20) {
itemName = itemName.substring(0, 20);
}
map.put("thing6", new HashMap(){{put("value", itemName);}});
map.put("number8", new HashMap(){{put("value", itemNum);}});
map.put("amount12", new HashMap(){{put("value", amount);}});
......
......@@ -41,6 +41,9 @@ public class SignedNoticeMsg implements Entity, AbstractSubscribeMsg {
public Map<String, Object> getTempletParam() {
Map<String, Object> map = new LinkedHashMap<>();
map.put("character_string5", new HashMap(){{put("value", distributionOrderId);}});
if (itemName.length() > 20) {
itemName = itemName.substring(0, 20);
}
map.put("thing1", new HashMap(){{put("value", itemName);}});
map.put("amount2", new HashMap(){{put("value", amount);}});
SimpleDateFormat sdf = new SimpleDateFormat("yyyy年MM月dd日 HH:mm:ss", Locale.CHINESE);
......
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