Commit 3e5702eb authored by hongguangwu's avatar hongguangwu

商险加-退回原因

parent f1d61320
...@@ -334,5 +334,8 @@ public class TInsuranceDetail extends BaseEntity { ...@@ -334,5 +334,8 @@ public class TInsuranceDetail extends BaseEntity {
@Schema(description ="客户编码") @Schema(description ="客户编码")
private String unitNo; private String unitNo;
@Schema(description = "退回原因")
private String backRemark;
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
} }
\ No newline at end of file
...@@ -145,4 +145,7 @@ public class InsuranceListVO implements Serializable { ...@@ -145,4 +145,7 @@ public class InsuranceListVO implements Serializable {
*/ */
@Schema(description = "审批意见") @Schema(description = "审批意见")
private String remark; private String remark;
@Schema(description = "退回原因")
private String backRemark;
} }
...@@ -1034,7 +1034,14 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap ...@@ -1034,7 +1034,14 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
@Transactional(value = "insurancesTransactionManager" ,rollbackFor = {Exception.class}) @Transactional(value = "insurancesTransactionManager" ,rollbackFor = {Exception.class})
public R<List<InsuranceListVO>> rollBackInsurance(YifuUser user, List<InsuranceHandleParam> paramList) { public R<List<InsuranceListVO>> rollBackInsurance(YifuUser user, List<InsuranceHandleParam> paramList) {
//解析参数里的商险id //解析参数里的商险id
List<String> idList = paramList.stream().map(e -> e.getId()).distinct().collect(Collectors.toList()); List<String> idList = new ArrayList<>();
Map<String,String> remarkMap = new HashMap<>();
if (paramList != null) {
for (InsuranceHandleParam param : paramList) {
idList.add(param.getId());
remarkMap.put(param.getId(), param.getRemark());
}
}
//操作日志对象 //操作日志对象
List<InsuranceHandleParam> operateList = new ArrayList<>(); List<InsuranceHandleParam> operateList = new ArrayList<>();
...@@ -1093,6 +1100,7 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap ...@@ -1093,6 +1100,7 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
} }
detail.setUpdateBy(user.getId()); detail.setUpdateBy(user.getId());
detail.setUpdateTime(LocalDateTime.now()); detail.setUpdateTime(LocalDateTime.now());
detail.setBackRemark(remarkMap.get(detail.getId()));
successList.add(detail); successList.add(detail);
} }
} }
......
...@@ -170,7 +170,8 @@ ...@@ -170,7 +170,8 @@
a.SETTLE_TYPE as settleType, a.SETTLE_TYPE as settleType,
a.SETTLE_MONTH as settleMonth, a.SETTLE_MONTH as settleMonth,
a.DEPT_NAME as projectName, a.DEPT_NAME as projectName,
a.REDUCE_HANDLE_STATUS as reduceHandleStatus a.REDUCE_HANDLE_STATUS as reduceHandleStatus,
if(a.BUY_HANDLE_STATUS=4,a.BACK_REMARK,'') as backRemark
from t_insurance_detail a from t_insurance_detail a
<if test="param.authSql != null and param.authSql.trim() != ''"> <if test="param.authSql != null and param.authSql.trim() != ''">
left join t_insurance_area_res p on p.USER_ID = #{param.createBy} left join t_insurance_area_res p on p.USER_ID = #{param.createBy}
......
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