Commit 1485c70e authored by huyuchen's avatar huyuchen

失败原因配置

parent 1b376523
......@@ -329,4 +329,43 @@ public class InsuredListVo implements Serializable {
@HeadFontStyle(fontHeightInPoints = 11)
@ExcelProperty(value = "封面抬头")
private String invoiceTitle;
/**
* 被替换人姓名
*/
@Schema(description = "被替换人姓名")
@HeadFontStyle(fontHeightInPoints = 11)
@ExcelProperty(value = "被替换人姓名")
private String coverEmpName;
/**
* 被替换人身份证号
*/
@Schema(description = "被替换人身份证号)")
@HeadFontStyle(fontHeightInPoints = 11)
@ExcelProperty(value = "被替换人身份证号")
private String coverEmpIdcardNo;
/**
* 被替换人项目名称
*/
@Schema(description = "被替换人项目名称")
@HeadFontStyle(fontHeightInPoints = 11)
@ExcelProperty(value = "被替换人项目名称")
private String coverProjectName;
/**
* 被替换人封面抬头
*/
@Schema(description = "被替换人封面抬头")
@HeadFontStyle(fontHeightInPoints = 11)
@ExcelProperty(value = "被替换人封面抬头")
private String coverInvoiceTitle;
/**
* 被替换人项目名称
*/
@Schema(description = "被替换人项目名称")
@ExcelIgnore
private String coverProjectNo;
}
......@@ -4461,7 +4461,25 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
}
util = new ExcelUtil<>(InsuredListVo.class);
TInsuranceReplace one;
TInsuranceDetail byId;
for (InsuredListVo vo:list){
//被替换人
one = tInsuranceReplaceService.getOne(Wrappers.<TInsuranceReplace>query().lambda()
.eq(TInsuranceReplace::getToInsuranceDetailId, vo.getId())
.last(CommonConstants.LAST_ONE_SQL));
if (Optional.ofNullable(one).isPresent()) {
byId = this.getById(one.getFromInsuranceDetailId());
if (Optional.ofNullable(byId).isPresent()) {
vo.setCoverEmpName(byId.getEmpName());
vo.setCoverEmpIdcardNo(byId.getEmpIdcardNo());
vo.setCoverProjectName(byId.getDeptName());
ProjectSetInfoVo coverObject = data.get(vo.getCoverProjectNo());
if (null != coverObject) {
vo.setCoverInvoiceTitle(Optional.ofNullable(coverObject.getInvoiceTitleInsurance()).orElse(""));
}
}
}
//购买月数
vo.setBuyMonth(LocalDateUtil.betweenMonth(vo.getPolicyStart().toString(), vo.getPolicyEnd().toString()));
if (Objects.nonNull(data)) {
......
......@@ -132,6 +132,9 @@
<if test="sysHouseHoldInfo.createName != null and sysHouseHoldInfo.createName.trim() != ''">
AND a.CREATE_NAME = #{sysHouseHoldInfo.createName}
</if>
<if test="sysHouseHoldInfo.autoStatus != null and sysHouseHoldInfo.autoStatus.trim() != ''">
AND a.AUTO_STATUS = #{sysHouseHoldInfo.autoStatus}
</if>
<if test="sysHouseHoldInfo.updateTime != null">
AND a.UPDATE_TIME = #{sysHouseHoldInfo.updateTime}
</if>
......
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