Commit bd39ea40 authored by fangxinjiang's avatar fangxinjiang

商险已投保导出优化

parent 78641b79
...@@ -4463,6 +4463,7 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap ...@@ -4463,6 +4463,7 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
util = new ExcelUtil<>(InsuredListVo.class); util = new ExcelUtil<>(InsuredListVo.class);
TInsuranceReplace one; TInsuranceReplace one;
TInsuranceDetail byId; TInsuranceDetail byId;
ProjectSetInfoVo coverObject = null;
for (InsuredListVo vo:list){ for (InsuredListVo vo:list){
//被替换人 //被替换人
one = tInsuranceReplaceService.getOne(Wrappers.<TInsuranceReplace>query().lambda() one = tInsuranceReplaceService.getOne(Wrappers.<TInsuranceReplace>query().lambda()
...@@ -4487,9 +4488,14 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap ...@@ -4487,9 +4488,14 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
vo.setCoverEmpName(byId.getEmpName()); vo.setCoverEmpName(byId.getEmpName());
vo.setCoverEmpIdcardNo(byId.getEmpIdcardNo()); vo.setCoverEmpIdcardNo(byId.getEmpIdcardNo());
vo.setCoverProjectName(byId.getDeptName()); vo.setCoverProjectName(byId.getDeptName());
ProjectSetInfoVo coverObject = dataReplace.get(byId.getDeptNo()); coverObject = null;
if (Common.isNotNull(dataReplace)){
coverObject = dataReplace.get(byId.getDeptNo());
}
if (null != coverObject) { if (null != coverObject) {
vo.setCoverInvoiceTitle(Optional.ofNullable(coverObject.getInvoiceTitleInsurance()).orElse("")); vo.setCoverInvoiceTitle(Optional.ofNullable(coverObject.getInvoiceTitleInsurance()).orElse(""));
}else {
vo.setCoverInvoiceTitle("未获取到对应项目信息");
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment