|
|
|
@ -191,7 +191,7 @@ public class DistrilbutionBillLadingServiceImpl extends BaseServiceImpl<Distrilb
|
|
|
|
|
distrilbutionBillPackageService.update(updateWrapper1); |
|
|
|
|
} |
|
|
|
|
}catch (Exception e){ |
|
|
|
|
log.info("自提取消订单报错!{}",e.getMessage()); |
|
|
|
|
log.error("自提取消订单报错!{}",e.getMessage()); |
|
|
|
|
throw new ServiceException("系统异常!!"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -316,7 +316,8 @@ public class DistrilbutionBillLadingServiceImpl extends BaseServiceImpl<Distrilb
|
|
|
|
|
if (!order) { |
|
|
|
|
throw new ServiceException("修改失败!!"); |
|
|
|
|
} |
|
|
|
|
}else{ |
|
|
|
|
} |
|
|
|
|
/* else{ |
|
|
|
|
updateOrder(distrilbutionBillLading); |
|
|
|
|
} |
|
|
|
|
if(distrilbutionBillLading.getStockArticleList().isEmpty() && distrilbutionBillLading.getStockDTOList().isEmpty()){ |
|
|
|
@ -325,7 +326,7 @@ public class DistrilbutionBillLadingServiceImpl extends BaseServiceImpl<Distrilb
|
|
|
|
|
updateStockBill(distrilbutionBillLading); |
|
|
|
|
//取消自提任务
|
|
|
|
|
baseMapper.deleteById(billLadingEntity.getId()); |
|
|
|
|
} |
|
|
|
|
}*/ |
|
|
|
|
//修改库存品
|
|
|
|
|
if (!distrilbutionBillLading.getStockDTOList().isEmpty()) { |
|
|
|
|
//全部库存品数据
|
|
|
|
@ -560,7 +561,7 @@ public class DistrilbutionBillLadingServiceImpl extends BaseServiceImpl<Distrilb
|
|
|
|
|
if(i > 0){ |
|
|
|
|
//部分
|
|
|
|
|
distributionStockArticle.setReservationStatus(OrderReservationStatusConstant.bufenyuyue.getValue()); |
|
|
|
|
}else if(1 == 0){ |
|
|
|
|
}else if(i == 0){ |
|
|
|
|
//全部
|
|
|
|
|
distributionStockArticle.setReservationStatus(OrderReservationStatusConstant.yiyueyue.getValue()); |
|
|
|
|
} |
|
|
|
@ -618,6 +619,32 @@ public class DistrilbutionBillLadingServiceImpl extends BaseServiceImpl<Distrilb
|
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public boolean signImages(DistrilbutionBillLadingDTO distrilbutionBillLading) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//修改图片
|
|
|
|
|
List<DistributionPrintEntity> printEntityList = distributionPrintService.list(Wrappers.<DistributionPrintEntity>query().lambda().eq(DistributionPrintEntity::getBillLadingId, distrilbutionBillLading.getId())); |
|
|
|
|
if (!printEntityList.isEmpty()) { |
|
|
|
|
if (distrilbutionBillLading.getMark()) { |
|
|
|
|
//要删除
|
|
|
|
|
List<Long> collect = printEntityList.stream().map(DistributionPrintEntity::getId).collect(Collectors.toList()); |
|
|
|
|
distributionPrintService.deleteLogic(collect); |
|
|
|
|
//操作图片
|
|
|
|
|
if (!distrilbutionBillLading.getPrintList().isEmpty()) { |
|
|
|
|
addPrint(distrilbutionBillLading); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}else{ |
|
|
|
|
//操作图片
|
|
|
|
|
if (!distrilbutionBillLading.getPrintList().isEmpty()) { |
|
|
|
|
addPrint(distrilbutionBillLading); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 自提没有包件信息添加包件 |
|
|
|
|
* @param stockArticleId |
|
|
|
|