Commit 29684e9e by 翁国栋

运营后台--

一键校验
parent dc0adaec
...@@ -152,7 +152,7 @@ public class InsureUser extends Model<InsureUser> { ...@@ -152,7 +152,7 @@ public class InsureUser extends Model<InsureUser> {
@ApiModelProperty(value = "替换流水号,使用trans_id,RP_开头") @ApiModelProperty(value = "替换流水号,使用trans_id,RP_开头")
private String replaceTransId; private String replaceTransId;
@ApiModelProperty(value = "申请类型:1新增 3批增") @ApiModelProperty(value = "申请类型:1新增 2投保 3批增")
private Integer applyType; private Integer applyType;
......
...@@ -294,18 +294,19 @@ public class InsureContorll { ...@@ -294,18 +294,19 @@ public class InsureContorll {
} }
insureUser.setPolicyDateStart(dtf3.parse(insureDto.getPolicyDateStart())); insureUser.setPolicyDateStart(dtf3.parse(insureDto.getPolicyDateStart()));
insureUser.setPolicyDateEnd(dtf3.parse(insureDto.getPolicyDateEnd())); insureUser.setPolicyDateEnd(dtf3.parse(insureDto.getPolicyDateEnd()));
insureUser.setPolicyId(insurePolicy.getId());
insureUser.setApplyType(2);//投保类型 insureUser.setApplyType(2);//投保类型
insureUser.setPolicyId(insurePolicy.getId());
insureUser.insert(); insureUser.insert();
if (dataMap.get("errcode").toString().equals("suc")) { if (dataMap.get("errcode").toString().equals("suc")) {
y.setIsInsure(1); y.setIsInsure(1);
y.insertOrUpdate(); y.insertOrUpdate();
} }
} }
}
return ResultUtil.success(dataMap.get("errmsg").toString()); return ResultUtil.success(dataMap.get("errmsg").toString());
} }
return ResultUtil.error(dataMap.get("errmsg").toString());
}
return ResultUtil.error("网络异常"); return ResultUtil.error("网络异常");
} }
...@@ -811,7 +812,7 @@ public class InsureContorll { ...@@ -811,7 +812,7 @@ public class InsureContorll {
/*批次信息*/ /*批次信息*/
List<Map> batchMap = JSONObject.parseObject(JSONObject.toJSONString(policyMap.get("batch")), List.class); List<Map> batchMap = JSONObject.parseObject(JSONObject.toJSONString(policyMap.get("batch")), List.class);
List<InsureUser> insureUserList = InsureUser.builder().build().selectList(new QueryWrapper<InsureUser>().lambda().eq(InsureUser::getPolicyId,i.getId()) List<InsureUser> insureUserList = InsureUser.builder().build().selectList(new QueryWrapper<InsureUser>().lambda().eq(InsureUser::getPolicyId,i.getId())
.eq(InsureUser::getType,2)); .eq(InsureUser::getApplyType,2));
insureUserList.forEach(user->{ insureUserList.forEach(user->{
user.setBatchNo(batchMap.get(0).get("batch_no").toString()); user.setBatchNo(batchMap.get(0).get("batch_no").toString());
user.setPolicyNo(policyMap.get("policy_no").toString()); user.setPolicyNo(policyMap.get("policy_no").toString());
......
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