Explorar o código

TMS运单出厂通知

duyj %!s(int64=3) %!d(string=hai) anos
pai
achega
85b12f98e1

+ 3 - 1
suishenbang-wxportal/suishenbang-wxportal-api/src/main/java/com/dgtly/wxportal/controller/WxController.java

@@ -284,11 +284,13 @@ public class WxController extends ApiBaseController {
         String orderFormat = null;
         String[] orderArrays = order.split(",");
         String customerName = sysUserService.getCustomNameByCode(chain);
+        List<String> strList = new ArrayList<>();
         for (int i = 0; i < orderArrays.length; i++) {
             String orderStr = orderArrays[i];
             String messageDetail = String.format(templeDetail, orderStr, customerName, orderStr);
-            orderFormat = order.replaceAll(orderStr, messageDetail);
+            strList.add(messageDetail);
         }
+        orderFormat = strList.stream().collect(Collectors.joining(","));
 
         String message = String.format(temple, orderFormat, chain);
         Set<String> customerCodes = new HashSet<>();