|
|
@@ -983,10 +983,12 @@ public class PtlAgreementProductCostsNewServiceImpl extends ServiceImpl<PtlAgree
|
|
|
if(ptlAgreementProductCostsNew == null){
|
|
|
throw new SystemException("费用不存在");
|
|
|
}
|
|
|
- if (agreementProductCostsEndDateVo.getCostsEndDate() == null) {
|
|
|
- throw new SystemException("费用止期不可为空");
|
|
|
+ if (agreementProductCostsEndDateVo.getCostsEndDate() != null) {
|
|
|
+ ptlAgreementProductCostsNew.setCostsEndDate(agreementProductCostsEndDateVo.getCostsEndDate());
|
|
|
+ }
|
|
|
+ if (agreementProductCostsEndDateVo.getCostsStartDate() != null) {
|
|
|
+ ptlAgreementProductCostsNew.setCostsStartDate(agreementProductCostsEndDateVo.getCostsStartDate());
|
|
|
}
|
|
|
- ptlAgreementProductCostsNew.setCostsEndDate(agreementProductCostsEndDateVo.getCostsEndDate());
|
|
|
String desc = "修改费用因子";
|
|
|
//添加费用因子轨迹
|
|
|
ptlAgreementProductCostsTrajectoryService.addCostsTrajectory(ptlAgreementProductCostsNew.getId(),desc,BaseController.getUser().getId());
|