|
|
@@ -1,8 +1,10 @@
|
|
|
package com.ydtech.modules.ins.model.yc.ruote;
|
|
|
|
|
|
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
|
|
|
+import com.ydtech.exception.SystemException;
|
|
|
import com.ydtech.modules.ins.model.vo.CustomerInfoVo;
|
|
|
import com.ydtech.utils.IDCardUtils;
|
|
|
+import com.ydtech.utils.StringUtils;
|
|
|
import lombok.Data;
|
|
|
|
|
|
|
|
|
@@ -267,6 +269,9 @@ public class Insured {
|
|
|
if ("0".equals(property)) {
|
|
|
insured.setCCertfCls("110004");
|
|
|
insured.setCCertfCde(insuredPersonInfo.getOrganizationCode());
|
|
|
+ if (StringUtils.isEmpty(ownerInfo.getProvince()) || StringUtils.isEmpty(ownerInfo.getCity()) || StringUtils.isEmpty(ownerInfo.getCounty())) {
|
|
|
+ throw new SystemException("企业车省市区必填");
|
|
|
+ }
|
|
|
insured.setCProvince(insuredPersonInfo.getProvince());
|
|
|
insured.setCCity(insuredPersonInfo.getCity());
|
|
|
insured.setCCounty(insuredPersonInfo.getCounty());
|