Commit 5779969c by zhangxingmin

push

parent 16feae69
...@@ -236,6 +236,7 @@ public class ApiInsurantServiceImpl implements ApiInsurantService { ...@@ -236,6 +236,7 @@ public class ApiInsurantServiceImpl implements ApiInsurantService {
Result<Insurant> result = checkInsurantIsExist(dto.getInsurantBizId()); Result<Insurant> result = checkInsurantIsExist(dto.getInsurantBizId());
//受保人信息信息 //受保人信息信息
Insurant insurant = result.getData(); Insurant insurant = result.getData();
Long insurantId = insurant.getId();
//与投保人关系 //与投保人关系
if (RelTypeEnum.MYSELF.getItemValue().equals(dto.getPolicyholderRel())) { if (RelTypeEnum.MYSELF.getItemValue().equals(dto.getPolicyholderRel())) {
...@@ -245,7 +246,7 @@ public class ApiInsurantServiceImpl implements ApiInsurantService { ...@@ -245,7 +246,7 @@ public class ApiInsurantServiceImpl implements ApiInsurantService {
log.info("与投保人关系如果是本人,直接查询投保人信息表更新数据到受保人信息表中之前result.getData(),{}", JSON.toJSONString(result)); log.info("与投保人关系如果是本人,直接查询投保人信息表更新数据到受保人信息表中之前result.getData(),{}", JSON.toJSONString(result));
log.info("与投保人关系如果是本人,直接查询投保人信息表更新数据到受保人信息表中之前,{}", JSON.toJSONString(insurant)); log.info("与投保人关系如果是本人,直接查询投保人信息表更新数据到受保人信息表中之前,{}", JSON.toJSONString(insurant));
BeanUtils.copyProperties(policyholder,insurant); BeanUtils.copyProperties(policyholder,insurant);
insurant.setId(result.getData().getId()); insurant.setId(insurantId);
insurant.setAppointmentBizId(appointmentBizId); insurant.setAppointmentBizId(appointmentBizId);
log.info("与投保人关系如果是本人,直接查询投保人信息表更新数据到受保人信息表中之后,{}", JSON.toJSONString(insurant)); log.info("与投保人关系如果是本人,直接查询投保人信息表更新数据到受保人信息表中之后,{}", JSON.toJSONString(insurant));
iInsurantService.saveOrUpdate(insurant); iInsurantService.saveOrUpdate(insurant);
......
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