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