计划模块(注释掉订单关闭功能)

highway
wws 2 years ago
parent 5aa0d0c640
commit fdd2069372

@ -156,31 +156,31 @@ public class ProOrderServiceImpl implements IProOrderService {
} }
// 关闭订单,判断是否拆分完成 // 关闭订单,判断是否拆分完成
ProOrder order = proOrderMapper.selectProOrderById(splitOrderDTO.getProduct().getId()); // ProOrder order = proOrderMapper.selectProOrderById(splitOrderDTO.getProduct().getId());
Long quantitySplit = order.getQuantitySplit(); // Long quantitySplit = order.getQuantitySplit();
Long quantity1 = order.getQuantity(); // Long quantity1 = order.getQuantity();
if (quantity1.equals(quantitySplit)) { // if (quantity1.equals(quantitySplit)) {
// 需要关闭订单的codeList // // 需要关闭订单的codeList
List<String> orderCodes = new ArrayList<>(); // List<String> orderCodes = new ArrayList<>();
// 临时存放code // // 临时存放code
StringBuilder orderCode = new StringBuilder(); // StringBuilder orderCode = new StringBuilder();
orderCode.append(order.getOrderCode()); // orderCode.append(order.getOrderCode());
while(true) { // while(true) {
orderCodes.add(orderCode.toString()); // orderCodes.add(orderCode.toString());
String selectOrderCode = proOrderMapper.selectChildProOrderCodeByCode(orderCode.toString()); // String selectOrderCode = proOrderMapper.selectChildProOrderCodeByCode(orderCode.toString());
if (selectOrderCode == null) { // if (selectOrderCode == null) {
break; // break;
} // }
orderCode.setLength(0); // orderCode.setLength(0);
orderCode.append(selectOrderCode); // orderCode.append(selectOrderCode);
} // }
//
// 关闭订单 // // 关闭订单
for (String code : orderCodes) { // for (String code : orderCodes) {
remoteSapService.sapCloseOrder(code); // remoteSapService.sapCloseOrder(code);
} // }
//
} // }
return success(); return success();
} }

Loading…
Cancel
Save