|
@@ -979,7 +979,7 @@ public class ContractManagementInfoServiceImpl extends ServiceImpl<ContractManag
|
|
Double surplusWeight = 0d;
|
|
Double surplusWeight = 0d;
|
|
//销售合同
|
|
//销售合同
|
|
if ("1".equals(contractManagementInfo.getContractType()) && "销售合同".equals(contractManagementInfo.getAgreementType())) {
|
|
if ("1".equals(contractManagementInfo.getContractType()) && "销售合同".equals(contractManagementInfo.getAgreementType())) {
|
|
- price = baseMapper.selectSalePrice(contractNo);
|
|
|
|
|
|
+ price = baseMapper.selectSalePrice(contractNo,contractManagementInfo.getCompId());
|
|
}
|
|
}
|
|
//采购合同
|
|
//采购合同
|
|
else if ("2".equals(contractManagementInfo.getContractType())) {
|
|
else if ("2".equals(contractManagementInfo.getContractType())) {
|
|
@@ -992,7 +992,7 @@ public class ContractManagementInfoServiceImpl extends ServiceImpl<ContractManag
|
|
throw new YException(YExceptionEnum.CONTRACT_HAS_SURPLUS_ERROR);
|
|
throw new YException(YExceptionEnum.CONTRACT_HAS_SURPLUS_ERROR);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- price = baseMapper.selectBuyPrice(contractNo);
|
|
|
|
|
|
+ price = baseMapper.selectBuyPrice(contractNo,contractManagementInfo.getCompId());
|
|
}
|
|
}
|
|
//收购合同
|
|
//收购合同
|
|
else if ("3".equals(contractManagementInfo.getContractType()) && "收购合同".equals(contractManagementInfo.getAgreementType())) {
|
|
else if ("3".equals(contractManagementInfo.getContractType()) && "收购合同".equals(contractManagementInfo.getAgreementType())) {
|
|
@@ -1005,7 +1005,7 @@ public class ContractManagementInfoServiceImpl extends ServiceImpl<ContractManag
|
|
throw new YException(YExceptionEnum.CONTRACT_HAS_SURPLUS_ERROR);
|
|
throw new YException(YExceptionEnum.CONTRACT_HAS_SURPLUS_ERROR);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- price = baseMapper.selectAcquisitionPrice(contractNo);
|
|
|
|
|
|
+ price = baseMapper.selectAcquisitionPrice(contractNo,contractManagementInfo.getCompId());
|
|
}
|
|
}
|
|
price = new BigDecimal(price).setScale(3, BigDecimal.ROUND_HALF_UP).doubleValue();
|
|
price = new BigDecimal(price).setScale(3, BigDecimal.ROUND_HALF_UP).doubleValue();
|
|
return price;
|
|
return price;
|