|
@@ -62,6 +62,8 @@ public class PurchaseOrderServiceImpl extends ServiceImpl<PurchaseOrderMapper, P
|
|
|
private IProcurementPlanInfoService procurementPlanInfoService;
|
|
|
@Autowired
|
|
|
private ICustomerInfoService customerInfoService;
|
|
|
+ @Autowired
|
|
|
+ private IContractManagementInfoService contractManagementInfoService;
|
|
|
|
|
|
/**
|
|
|
* 成交
|
|
@@ -276,6 +278,14 @@ public class PurchaseOrderServiceImpl extends ServiceImpl<PurchaseOrderMapper, P
|
|
|
purchaseOrdera.setProcurementPlanType(procurementPlanInfo.getProcurementPlanType());
|
|
|
purchaseOrdera.setTradingTarget(procurementPlanInfo.getTitle());
|
|
|
}
|
|
|
+ //查询合同Id
|
|
|
+ ContractManagementInfo contractManagementInfo=contractManagementInfoService.selectOne(new EntityWrapper<ContractManagementInfo>()
|
|
|
+ .eq("contract_no",purchaseOrdera.getContractNo())
|
|
|
+ .eq("delete_flag","0"));
|
|
|
+ if (contractManagementInfo!=null){
|
|
|
+ purchaseOrdera.setContractId(contractManagementInfo.getId());
|
|
|
+ purchaseOrdera.setGoodsType(contractManagementInfo.getGoodsType());
|
|
|
+ }
|
|
|
//定义已入库量
|
|
|
Float stockInQuantity = 0.0f;
|
|
|
//查询入库量
|