|
@@ -64,6 +64,8 @@ public class ContractManagementInfoServiceImpl extends ServiceImpl<ContractManag
|
|
private ITranTaskInfoService tranTaskInfoService;
|
|
private ITranTaskInfoService tranTaskInfoService;
|
|
@Autowired
|
|
@Autowired
|
|
private ITranCarInfoService tranCarInfoService;
|
|
private ITranCarInfoService tranCarInfoService;
|
|
|
|
+ @Autowired
|
|
|
|
+ private IPriceConfirmationSheetService priceConfirmationSheetService;
|
|
@Value("${file-root-path}")
|
|
@Value("${file-root-path}")
|
|
private String localPath;
|
|
private String localPath;
|
|
|
|
|
|
@@ -224,8 +226,8 @@ public class ContractManagementInfoServiceImpl extends ServiceImpl<ContractManag
|
|
List<ContractManagementInfo> dataList = baseMapper.getListByCondition(pageView);
|
|
List<ContractManagementInfo> dataList = baseMapper.getListByCondition(pageView);
|
|
if (!CollectionUtils.isEmpty(dataList)) {
|
|
if (!CollectionUtils.isEmpty(dataList)) {
|
|
for (ContractManagementInfo contractManagementInfo1 : dataList) {
|
|
for (ContractManagementInfo contractManagementInfo1 : dataList) {
|
|
- //自运采购合同
|
|
|
|
- if("1".equals(contractManagementInfo1.getDeliverType())&&"2".equals(contractManagementInfo1.getContractType())){
|
|
|
|
|
|
+ //现货自运采购合同
|
|
|
|
+ if("1".equals(contractManagementInfo1.getGoodsType())&&"1".equals(contractManagementInfo1.getDeliverType())&&"2".equals(contractManagementInfo1.getContractType())){
|
|
//定义出库量
|
|
//定义出库量
|
|
Float outWeight = 0.0f;
|
|
Float outWeight = 0.0f;
|
|
//查询同名临时库出库量
|
|
//查询同名临时库出库量
|
|
@@ -254,8 +256,8 @@ public class ContractManagementInfoServiceImpl extends ServiceImpl<ContractManag
|
|
}
|
|
}
|
|
contractManagementInfo1.setCompletedQuantity(outWeight-returnWeight);
|
|
contractManagementInfo1.setCompletedQuantity(outWeight-returnWeight);
|
|
}
|
|
}
|
|
- //他运采购合同
|
|
|
|
- else if("2".equals(contractManagementInfo1.getDeliverType())&&"2".equals(contractManagementInfo1.getContractType())){
|
|
|
|
|
|
+ //现货他运采购合同
|
|
|
|
+ else if("1".equals(contractManagementInfo1.getGoodsType())&&"2".equals(contractManagementInfo1.getDeliverType())&&"2".equals(contractManagementInfo1.getContractType())){
|
|
//定义出库量
|
|
//定义出库量
|
|
Float inWeight = 0.0f;
|
|
Float inWeight = 0.0f;
|
|
//查询同合同编号入库量
|
|
//查询同合同编号入库量
|
|
@@ -271,6 +273,13 @@ public class ContractManagementInfoServiceImpl extends ServiceImpl<ContractManag
|
|
}
|
|
}
|
|
contractManagementInfo1.setCompletedQuantity(inWeight);
|
|
contractManagementInfo1.setCompletedQuantity(inWeight);
|
|
}
|
|
}
|
|
|
|
+ //期货查确认单数量
|
|
|
|
+ else if("2".equals(contractManagementInfo1.getGoodsType())){
|
|
|
|
+ Integer count = priceConfirmationSheetService.selectCount(new EntityWrapper<PriceConfirmationSheet>()
|
|
|
|
+ .eq("contract_no",contractManagementInfo1.getContractNo())
|
|
|
|
+ .eq("delete_flag","0"));
|
|
|
|
+ contractManagementInfo1.setConfirmCount(count);
|
|
|
|
+ }
|
|
//销售合同
|
|
//销售合同
|
|
else{
|
|
else{
|
|
//定义出库量
|
|
//定义出库量
|