|
@@ -103,6 +103,9 @@ public class SalePurchaseServiceImpl extends ServiceImpl<PurchaseMapper, Purchas
|
|
|
if(purchaseDto.getPurchaseStatus()==PurchaseStatusEnum.CENCELLATION.getKey()){//如果采购合同=作废//归还交接单的数量
|
|
|
//查询出当前采购的明细
|
|
|
Purchase purchase = purchaseService.getById(purchaseDto.getId());
|
|
|
+ if(purchase.getPurchaseStatus()==PurchaseStatusEnum.CENCELLATION.getKey()){
|
|
|
+ throw new ServiceException("采购合同已作废");
|
|
|
+ }
|
|
|
List<ContractProduct> upContractProductList = new ArrayList<>();
|
|
|
List<SampleProduct> upSampleProductList = new ArrayList<>();
|
|
|
if(ObjectUtils.isNotEmpty(purchase)){
|