|
|
|
|
@ -224,6 +224,10 @@ public class ErpContractInfoServiceImpl implements IErpContractInfoService {
|
|
|
|
|
bo.getBusinessDirection())
|
|
|
|
|
.eq(bo.getContractDeptId() != null, ErpContractInfo::getContractDeptId, bo.getContractDeptId())
|
|
|
|
|
.eq(bo.getContractDate() != null, ErpContractInfo::getContractDate, bo.getContractDate())
|
|
|
|
|
.eq(StringUtils.isNotBlank(bo.getContractTerritorialFlag()), ErpContractInfo::getContractTerritorialFlag, bo.getContractTerritorialFlag())
|
|
|
|
|
.eq(StringUtils.isNotBlank(bo.getContractTerritorialCountry()), ErpContractInfo::getContractTerritorialCountry, bo.getContractTerritorialCountry())
|
|
|
|
|
.eq(StringUtils.isNotBlank(bo.getSettlementCurrency()), ErpContractInfo::getSettlementCurrency, bo.getSettlementCurrency())
|
|
|
|
|
.eq(bo.getRmbExchangeRate() != null, ErpContractInfo::getRmbExchangeRate, bo.getRmbExchangeRate())
|
|
|
|
|
.apply(StringUtils.isNotBlank(bo.getOneCustomerName()),
|
|
|
|
|
"c1.customer_name LIKE CONCAT('%', {0}, '%')", bo.getOneCustomerName())
|
|
|
|
|
.eq(bo.getTotalPrice() != null, ErpContractInfo::getTotalPrice, bo.getTotalPrice())
|
|
|
|
|
@ -472,6 +476,11 @@ public class ErpContractInfoServiceImpl implements IErpContractInfoService {
|
|
|
|
|
throw new ServiceException("合同编号【" + entity.getContractCode() + "】已存在,请勿重复");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
// 已生效客户订单必须上传附件(无需盖章/签字即刻生效)
|
|
|
|
|
if (entity != null && "1".equals(entity.getEffectiveCustomerOrderFlag())
|
|
|
|
|
&& StringUtils.isBlank(entity.getOssId())) {
|
|
|
|
|
throw new ServiceException("已生效客户订单必须上传附件");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 物料列表的强制校验
|
|
|
|
|
// if (entity.getContractMaterialList() == null ||
|
|
|
|
|
|