Browse Source

1.增加判断2

training
pref_mail@163.com 1 year ago
parent
commit
eb1b1a4a98
  1. 7
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionDeliveryListServiceImpl.java

7
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionDeliveryListServiceImpl.java

@ -3196,13 +3196,14 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl<Distrib
DistributionDeliveryListEntity byId = this.getById(id);
if(ObjectUtils.isNull(byId)){
throw new ServiceException("未找到相关数据");
}
//查询这个配送下面的预约单
List<DistributionReservationEntity> distributionReservationEntityList = distributionReservationMapper.findByDeliveryId(byId.getId());
if(distributionReservationEntityList.isEmpty()){
throw new ServiceException("找到相关数据");
throw new ServiceException("找到相关数据");
}
for (DistributionReservationEntity distributionReservationEntity : distributionReservationEntityList) {

Loading…
Cancel
Save