Commit a98f2646 by zhangxingmin

push

parent 99f7e07c
package com.yd.csf.api.service.impl;
import com.alibaba.fastjson.JSON;
import com.yd.base.feign.client.relobjectcertificate.ApiRelObjectCertificateFeignClient;
import com.yd.base.feign.dto.ApiCertificateDto;
import com.yd.base.feign.request.relobjectcertificate.ApiRelObjectCertificateListAddRequest;
......@@ -241,9 +242,12 @@ public class ApiInsurantServiceImpl implements ApiInsurantService {
//与投保人关系如果是本人,直接查询投保人信息表更新数据到受保人信息表中
Policyholder policyholder = iPolicyholderService.queryOne(appointmentBizId,"");
if (!Objects.isNull(policyholder)) {
log.info("与投保人关系如果是本人,直接查询投保人信息表更新数据到受保人信息表中之前result.getData(),{}", JSON.toJSONString(result));
log.info("与投保人关系如果是本人,直接查询投保人信息表更新数据到受保人信息表中之前,{}", JSON.toJSONString(insurant));
BeanUtils.copyProperties(policyholder,insurant);
insurant.setId(result.getData().getId());
insurant.setAppointmentBizId(appointmentBizId);
log.info("与投保人关系如果是本人,直接查询投保人信息表更新数据到受保人信息表中之后,{}", JSON.toJSONString(insurant));
iInsurantService.saveOrUpdate(insurant);
//查询投保人税务列表信息
......
......@@ -49,7 +49,7 @@ public class ApiInsurantInfoDto {
/**
* 姓名-中文
*/
@NotBlank(message = "受保人-姓名(中文)不能为空", groups = GroupValid.NotSelf.class)
// @NotBlank(message = "受保人-姓名(中文)不能为空", groups = GroupValid.NotSelf.class)
@Pattern(regexp = "^[\u4e00-\u9fa5]{2,6}$", message = "受保人-姓名(中文)必须为2-6位汉字", groups = GroupValid.NotSelf.class)
private String nameCn;
......
......@@ -42,7 +42,7 @@ public class ApiPolicyholderInfoDto {
/**
* 姓名-中文
*/
@NotBlank(message = "投保人-姓名(中文)不能为空")
// @NotBlank(message = "投保人-姓名(中文)不能为空")
@Pattern(regexp = "^[\u4e00-\u9fa5]{2,6}$", message = "投保人-姓名(中文)必须为2-6位汉字")
private String nameCn;
......
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