Commit f1d61320 authored by huyuchen's avatar huyuchen

商险已投保导出审批意见添加

parent b6dcbe97
...@@ -139,4 +139,10 @@ public class InsuranceListVO implements Serializable { ...@@ -139,4 +139,10 @@ public class InsuranceListVO implements Serializable {
*/ */
@Schema(description = "错误信息") @Schema(description = "错误信息")
private String errorMessage; private String errorMessage;
/**
* 审批意见
*/
@Schema(description = "审批意见")
private String remark;
} }
...@@ -234,6 +234,19 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap ...@@ -234,6 +234,19 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
insuranceList.stream().forEach(e ->{ insuranceList.stream().forEach(e ->{
e.setBuyMonth(LocalDateUtil.betweenMonth(e.getPolicyStart().toString(),e.getPolicyEnd().toString())); e.setBuyMonth(LocalDateUtil.betweenMonth(e.getPolicyStart().toString(),e.getPolicyEnd().toString()));
}); });
for (InsuranceListVO listVO : insuranceList) {
if (CommonConstants.FOUR_INT == listVO.getBuyHandleStatus()) {
TInsuranceOperate tInsuranceOperate = tInsuranceOperateService.getOne(Wrappers.<TInsuranceOperate>query().lambda()
.eq(TInsuranceOperate::getInsuranceDetailId,listVO.getId())
.eq(TInsuranceOperate::getDisplayFlag,CommonConstants.ONE_INT)
.orderByDesc(TInsuranceOperate::getCreateTime)
.last(CommonConstants.LAST_ONE_SQL)
);
if (Common.isNotNull(tInsuranceOperate)) {
listVO.setRemark(tInsuranceOperate.getRemark());
}
}
}
} }
return R.ok(insuranceList); return R.ok(insuranceList);
} }
......
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