Commit a58de574 authored by 李灿灿's avatar 李灿灿

20221108 被替换人增加被替换记录

parent 06695c85
......@@ -27,6 +27,10 @@ public class InsurancesConstants {
* 替换
*/
public static final String REPLACE = "“替换”提交申请";
/**
* 被替换
*/
public static final String SOURCE_REPLACE = "被替换";
/**
* 删除
*/
......
......@@ -419,6 +419,7 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
List<InsuranceReplaceParam> listResult = map.get("listResult");
//保存到数据库中的结果
List<InsuranceReplaceParam> listSuccess = map.get("listSuccess");
List<TInsuranceDetail> sourceList = new ArrayList<>();
List<TInsuranceDetail> detailList = new ArrayList<>();
if (CollectionUtils.isNotEmpty(listSuccess)){
for (InsuranceReplaceParam success : listSuccess) {
......@@ -503,10 +504,12 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
replace.setCreateTime(LocalDateTime.now());
tInsuranceReplaceService.save(replace);
}
sourceList.add(detail);
detailList.add(newDetail);
}
}
//操作记录
addOperate(sourceList,user,InsurancesConstants.SOURCE_REPLACE,null,CommonConstants.ONE_INT);
addOperate(detailList,user,InsurancesConstants.REPLACE,null,CommonConstants.ONE_INT);
return R.ok(listResult,InsurancesConstants.REPLACE_SUCCESS);
}
......
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