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

feat:ekp调用新的紧急出险接口调试

parent ca6f7e5d
......@@ -6371,18 +6371,20 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
paramList.stream().forEach(e ->{
TInsuranceDetail byId = this.getById(e);
if (Optional.ofNullable(byId).isPresent()){
TInsuranceOperate operate = new TInsuranceOperate();
updateWrapper.eq(TInsuranceDetail::getId,byId.getId())
.set(TInsuranceDetail::getIsUse,CommonConstants.ONE_INT)
.set(TInsuranceDetail::getUpdateTime,LocalDateTime.now());
update(updateWrapper);
operate.setOperateDesc(InsurancesConstants.URGENT_UPDATE_IS_USE);
operate.setCreateName(InsurancesConstants.SYSTEM_TRIGGER);
operate.setInsuranceDetailId(byId.getId());
operate.setDisplayFlag(CommonConstants.ONE_INT);
operate.setCreateTime(LocalDateTime.now());
operate.setCreateBy(CommonConstants.ZERO_STRING);
operateList.add(operate);
if (byId.getIsUse() != CommonConstants.ONE_INT){
TInsuranceOperate operate = new TInsuranceOperate();
updateWrapper.eq(TInsuranceDetail::getId,byId.getId())
.set(TInsuranceDetail::getIsUse,CommonConstants.ONE_INT)
.set(TInsuranceDetail::getUpdateTime,LocalDateTime.now());
update(updateWrapper);
operate.setOperateDesc(InsurancesConstants.URGENT_UPDATE_IS_USE);
operate.setCreateName(InsurancesConstants.SYSTEM_TRIGGER);
operate.setInsuranceDetailId(byId.getId());
operate.setDisplayFlag(CommonConstants.ONE_INT);
operate.setCreateTime(LocalDateTime.now());
operate.setCreateBy(CommonConstants.ZERO_STRING);
operateList.add(operate);
}
}
});
}
......
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