|
@@ -1287,6 +1287,24 @@ public class InsPlyIncomeServiceImpl extends ServiceImpl<InsPlyIncomeMapper, Ins
|
|
|
insPlyIncomeLogService.saveLog(insPlyIncomeLog); //添加日志
|
|
insPlyIncomeLogService.saveLog(insPlyIncomeLog); //添加日志
|
|
|
|
|
|
|
|
this.amountCalculate(insPlyIncomeVo, insPlyIncome);
|
|
this.amountCalculate(insPlyIncomeVo, insPlyIncome);
|
|
|
|
|
+ String agreementId = insPlyIncomeVo.getAgreementId();
|
|
|
|
|
+ if(StringUtils.isNotEmpty(agreementId)){
|
|
|
|
|
+ PtlAgreement byId1 = ptlAgreementService.getById(agreementId);
|
|
|
|
|
+ if(ObjectUtils.isNotEmpty(byId1)){
|
|
|
|
|
+ String partnerCompaniesId = byId1.getPartnerCompaniesId();
|
|
|
|
|
+ String insuranceCompanyId = byId1.getInsuranceCompanyId();
|
|
|
|
|
+ String insuranceCompany = byId1.getInsuranceCompany();
|
|
|
|
|
+ if(StringUtils.isNotEmpty(partnerCompaniesId)){
|
|
|
|
|
+ insPlyIncome.setPartnerCompaniesId(partnerCompaniesId);
|
|
|
|
|
+ EsmInsCompany esmInsCompany = EsmInsCompanyService.getById(partnerCompaniesId);
|
|
|
|
|
+ String name = esmInsCompany.getNamesimple(); //合作名称
|
|
|
|
|
+ insPlyIncome.setPartnerCompaniesName(name);
|
|
|
|
|
+ }
|
|
|
|
|
+ insPlyIncome.setCompanyId(insuranceCompanyId);
|
|
|
|
|
+ insPlyIncome.setCompanyName(insuranceCompany);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
insPlyIncome.setUpdateUserId(BaseController.getUser().getId());
|
|
insPlyIncome.setUpdateUserId(BaseController.getUser().getId());
|
|
|
baseMapper.updateById(insPlyIncome);
|
|
baseMapper.updateById(insPlyIncome);
|
|
|
|
|
|