diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/appcontroller/DistributionBusinessPreOrderAppController.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/appcontroller/DistributionBusinessPreOrderAppController.java index 65e04017a..53e3d0d7f 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/appcontroller/DistributionBusinessPreOrderAppController.java +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/appcontroller/DistributionBusinessPreOrderAppController.java @@ -40,7 +40,7 @@ public class DistributionBusinessPreOrderAppController { @ResponseBody @PostMapping("/scanOrderPackageCode") @ApiOperationSupport(order = 1) - public Resp scanOrderPackageCode(@RequestBody BusinessSanDTO businessSanDTO){ + public R scanOrderPackageCode(@RequestBody BusinessSanDTO businessSanDTO){ Resp resp = null; try { diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/appcontroller/DistributionSignforAppController.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/appcontroller/DistributionSignforAppController.java index 7a7713732..5d77ba11d 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/appcontroller/DistributionSignforAppController.java +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/appcontroller/DistributionSignforAppController.java @@ -194,7 +194,7 @@ public class DistributionSignforAppController { */ @PostMapping("/positioning") @ApiOperationSupport(order = 2) - public Resp positioning(@Valid @RequestBody DistributionSignforEntity distributionSignfor) { + public R positioning(@Valid @RequestBody DistributionSignforEntity distributionSignfor) { Resp msg = distributionSignforService.positioning(distributionSignfor); return msg; } @@ -205,7 +205,7 @@ public class DistributionSignforAppController { */ @PostMapping("/signingMessage") @ApiOperationSupport(order = 2) - public Resp signingMessage(@Valid @RequestBody DistributionSignforEntity distributionSignfor) { + public R signingMessage(@Valid @RequestBody DistributionSignforEntity distributionSignfor) { Resp msg = distributionSignforService.positioning(distributionSignfor); return msg; } diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionDeliveryListServiceImpl.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionDeliveryListServiceImpl.java index 2041cc106..329549ebd 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionDeliveryListServiceImpl.java +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionDeliveryListServiceImpl.java @@ -877,7 +877,7 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl= size){ - log.warn(method+"新系统打托数量大于等于老系统 trayCode={} 不同步",trayCode); - continue; - } - List orderPackageCodes = new ArrayList<>(); - for (int i = 0; i < size; i++){ - JSONObject jsonObject2 = packageList1.getJSONObject(i); - orderPackageCodes.add(jsonObject2.getString("orderPackageCode")); + if(!Objects.isNull(data1)){ + String s1 = JSONObject.toJSONString(data1); + JSONObject jsonObject1 = JSONObject.parseObject(s1); + JSONArray packageList1 = jsonObject1.getJSONArray("packageList"); + String trayType1 = jsonObject1.getString("trayType"); + String trayCode1 = jsonObject1.getString("trayCode"); + int size = packageList1.size(); + if(total >= size){ + log.warn(method+"新系统打托数量大于等于老系统 trayCode={} 不同步",trayCode); + continue; + } + List orderPackageCodes = new ArrayList<>(); + for (int i = 0; i < size; i++){ + JSONObject jsonObject2 = packageList1.getJSONObject(i); + orderPackageCodes.add(jsonObject2.getString("orderPackageCode")); + } + if(!orderPackageCodes.isEmpty()){ + warehouseTrayTypeService.syncOldTrayData(trayCode1,trayType1,orderPackageCodes,myCurrentWarehouse.getId(),"同步老系统打托"); + } } - warehouseTrayTypeService.syncOldTrayData(trayCode1,trayType1,orderPackageCodes,myCurrentWarehouse.getId(),"同步老系统打托"); + + } return R.success("处理完成");