|
|
@@ -12,6 +12,7 @@ import com.ydtech.constants.enums.dict.agreement.AgreementType;
|
|
|
import com.ydtech.core.page.HttpResult;
|
|
|
import com.ydtech.core.page.PageResult;
|
|
|
import com.ydtech.exception.SystemException;
|
|
|
+import com.ydtech.modules.base.controller.BaseController;
|
|
|
import com.ydtech.modules.esm.model.EsmInsCompany;
|
|
|
import com.ydtech.modules.esm.service.EsmInsCompanyService;
|
|
|
import com.ydtech.modules.order.service.InsCrawlerOrderService;
|
|
|
@@ -196,6 +197,7 @@ public class PtlAgreementServiceImpl extends ServiceImpl<PtlAgreementMapper, Ptl
|
|
|
throw new SystemException("协议不存在");
|
|
|
}
|
|
|
ptlAgreement.setModifiedBy(userName);
|
|
|
+ ptlAgreement.setModifiedName(BaseController.getUser().getName());
|
|
|
ptlAgreement.setUpdateTime(LocalDateTime.now());
|
|
|
//更新协议信息
|
|
|
baseMapper.updateById(ptlAgreement);
|
|
|
@@ -215,6 +217,7 @@ public class PtlAgreementServiceImpl extends ServiceImpl<PtlAgreementMapper, Ptl
|
|
|
throw new SystemException("协议不存在");
|
|
|
}
|
|
|
ptlAgreement.setModifiedBy(userName);
|
|
|
+ ptlAgreement.setModifiedName(BaseController.getUser().getName());
|
|
|
ptlAgreement.setUpdateTime(LocalDateTime.now());
|
|
|
//更新协议信息
|
|
|
baseMapper.updateById(ptlAgreement);
|
|
|
@@ -239,6 +242,7 @@ public class PtlAgreementServiceImpl extends ServiceImpl<PtlAgreementMapper, Ptl
|
|
|
throw new SystemException("协议不存在");
|
|
|
}
|
|
|
ptlAgreement.setModifiedBy(userName);
|
|
|
+ ptlAgreement.setModifiedName(BaseController.getUser().getName());
|
|
|
ptlAgreement.setUpdateTime(LocalDateTime.now());
|
|
|
//更新协议信息
|
|
|
baseMapper.updateById(ptlAgreement);
|
|
|
@@ -291,6 +295,7 @@ public class PtlAgreementServiceImpl extends ServiceImpl<PtlAgreementMapper, Ptl
|
|
|
throw new SystemException("协议不存在");
|
|
|
}
|
|
|
ptlAgreement.setModifiedBy(userName);
|
|
|
+ ptlAgreement.setModifiedName(BaseController.getUser().getName());
|
|
|
ptlAgreement.setUpdateTime(LocalDateTime.now());
|
|
|
//更新协议信息
|
|
|
baseMapper.updateById(ptlAgreement);
|
|
|
@@ -310,6 +315,7 @@ public class PtlAgreementServiceImpl extends ServiceImpl<PtlAgreementMapper, Ptl
|
|
|
throw new SystemException("协议不存在");
|
|
|
}
|
|
|
ptlAgreement.setModifiedBy(userName);
|
|
|
+ ptlAgreement.setModifiedName(BaseController.getUser().getName());
|
|
|
ptlAgreement.setUpdateTime(LocalDateTime.now());
|
|
|
//更新协议信息
|
|
|
baseMapper.updateById(ptlAgreement);
|
|
|
@@ -333,6 +339,7 @@ public class PtlAgreementServiceImpl extends ServiceImpl<PtlAgreementMapper, Ptl
|
|
|
throw new SystemException("协议不存在");
|
|
|
}
|
|
|
ptlAgreement.setModifiedBy(userName);
|
|
|
+ ptlAgreement.setModifiedName(BaseController.getUser().getName());
|
|
|
ptlAgreement.setUpdateTime(LocalDateTime.now());
|
|
|
//更新协议信息
|
|
|
baseMapper.updateById(ptlAgreement);
|
|
|
@@ -360,6 +367,8 @@ public class PtlAgreementServiceImpl extends ServiceImpl<PtlAgreementMapper, Ptl
|
|
|
.eq(!ObjectUtils.isEmpty(ptlAgreementPageVo.getCreator()), PtlAgreement::getCreator, ptlAgreementPageVo.getCreator())
|
|
|
// 修改人
|
|
|
.eq(!ObjectUtils.isEmpty(ptlAgreementPageVo.getModifiedBy()), PtlAgreement::getModifiedBy, ptlAgreementPageVo.getModifiedBy())
|
|
|
+ // 修改人名字
|
|
|
+ .eq(!ObjectUtils.isEmpty(ptlAgreementPageVo.getModifiedName()), PtlAgreement::getModifiedName, ptlAgreementPageVo.getModifiedName())
|
|
|
// 合作公司
|
|
|
.in(!StringUtils.isEmpty(ptlAgreementPageVo.getPartnerCompaniesId()) && !lowerId.isEmpty(), PtlAgreement::getPartnerCompaniesId, lowerId)
|
|
|
// 费用描述
|
|
|
@@ -512,6 +521,7 @@ public class PtlAgreementServiceImpl extends ServiceImpl<PtlAgreementMapper, Ptl
|
|
|
|
|
|
ptlAgreement.setProductsCode(agreementSaveDto.getProductsCode());
|
|
|
ptlAgreement.setModifiedBy(userName);
|
|
|
+ ptlAgreement.setModifiedName(BaseController.getUser().getName());
|
|
|
ptlAgreement.setUpdateTime(LocalDateTime.now());
|
|
|
HttpResult<PtlAgreementQueryVo> byAgreementId = this.getByAgreementId(agreementId);
|
|
|
// 修改协议
|