diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/controller/DistributionDeliveryListController.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/controller/DistributionDeliveryListController.java index 41d37e9a9..34d453ec5 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/controller/DistributionDeliveryListController.java +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/controller/DistributionDeliveryListController.java @@ -345,7 +345,7 @@ public class DistributionDeliveryListController extends BladeController { @PostMapping("/printBatch") @ApiOperationSupport(order = 2) - @ApiOperation(value = "批量打印", notes = "ids") + @ApiOperation(value = "批量打印") public R printBatch(@ApiParam(value = "主键集合", required = true) @RequestParam String ids ,@ApiParam(value = "打印类型", required = true) @RequestParam Integer type) { try { 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 c32ea65f3..e4462b8e7 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 @@ -3165,7 +3165,6 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl distributionReservationEntityList = distributionReservationMapper.findByDeliveryId(byId.getId()); + + if(distributionReservationEntityList.isEmpty()){ + throw new ServiceException("为找到相关数据"); + } + for (DistributionReservationEntity distributionReservationEntity : distributionReservationEntityList) { map.put("配送单号", distributionReservationEntity.getReservationCode()); @@ -3286,6 +3290,7 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl