Commit 012f1238 by Water Wang

optimize

parent 21c6dbff
...@@ -158,12 +158,12 @@ public class PractitionerPolicyServiceImpl implements PractitionerPolicyService ...@@ -158,12 +158,12 @@ public class PractitionerPolicyServiceImpl implements PractitionerPolicyService
holderInfo.setBirthDay(item.getHolderBirthday()); holderInfo.setBirthDay(item.getHolderBirthday());
holderInfo.setAge(CommonUtil.getAge(CommonUtil.stringParseDate(item.getHolderBirthday(),"yyyy-MM-dd"))); holderInfo.setAge(CommonUtil.getAge(CommonUtil.stringParseDate(item.getHolderBirthday(),"yyyy-MM-dd")));
idInfo = new IDInfo(); idInfo = new IDInfo();
idInfo.setIdType(1L); idInfo.setIdType(getIdType(item.getHolderIdNoType()));
idInfo.setIdNo(item.getHolderIdNo()); idInfo.setIdNo(item.getHolderIdNo());
holderInfo.setIdInfo(idInfo); holderInfo.setIdInfo(idInfo);
responseVO.setHolderInfo(holderInfo); responseVO.setHolderInfo(holderInfo);
idInfo = new IDInfo(); idInfo = new IDInfo();
idInfo.setIdType(1L); idInfo.setIdType(getIdType(item.getInsuredIdNoType()));
idInfo.setIdNo(item.getInsuredIdNo()); idInfo.setIdNo(item.getInsuredIdNo());
insuredInfos = new ArrayList<>(); insuredInfos = new ArrayList<>();
insuredInfo = new InsuredInfo(); insuredInfo = new InsuredInfo();
...@@ -187,6 +187,20 @@ public class PractitionerPolicyServiceImpl implements PractitionerPolicyService ...@@ -187,6 +187,20 @@ public class PractitionerPolicyServiceImpl implements PractitionerPolicyService
} }
} }
private Long getIdType(String holderIdNoType) {
//1-身份证,2-护照,3-港澳身份证,4-台胞证,9-其他,20-组织机构代码
switch(holderIdNoType){
case "1": return 1L;
case "2": return 2L;
case "3": return 9L;
case "4": return 4L;
case "5": return 3L;
case "6": return 20L;
case "7": return 9L;
}
return 9L;
}
private String getCommissionType(String commissionType) { private String getCommissionType(String commissionType) {
switch (commissionType){ switch (commissionType){
case "B01": return "前期欠款"; case "B01": return "前期欠款";
......
...@@ -9,12 +9,14 @@ public class PolicyDetailInfoE { ...@@ -9,12 +9,14 @@ public class PolicyDetailInfoE {
private String endDate; private String endDate;
private String holderId; private String holderId;
private String holderName; private String holderName;
private String holderIdNoType;
private String holderIdNo; private String holderIdNo;
private String holderSex; private String holderSex;
private String holderBirthday; private String holderBirthday;
private String holderMobileNo; private String holderMobileNo;
private String insuredId; private String insuredId;
private String insuredName; private String insuredName;
private String insuredIdNoType;
private String insuredIdNo; private String insuredIdNo;
private String insuredSex; private String insuredSex;
private String insuredBirthday; private String insuredBirthday;
...@@ -271,4 +273,20 @@ public class PolicyDetailInfoE { ...@@ -271,4 +273,20 @@ public class PolicyDetailInfoE {
public void setCommissionType(String commissionType) { public void setCommissionType(String commissionType) {
this.commissionType = commissionType; this.commissionType = commissionType;
} }
public String getHolderIdNoType() {
return holderIdNoType;
}
public void setHolderIdNoType(String holderIdNoType) {
this.holderIdNoType = holderIdNoType;
}
public String getInsuredIdNoType() {
return insuredIdNoType;
}
public void setInsuredIdNoType(String insuredIdNoType) {
this.insuredIdNoType = insuredIdNoType;
}
} }
...@@ -1057,6 +1057,7 @@ ...@@ -1057,6 +1057,7 @@
insurer.PRD_SUP_ID as insurerId , -- 保险公司编号 insurer.PRD_SUP_ID as insurerId , -- 保险公司编号
insurer.PRD_SUP_NAME as insurerName , -- 保险公司名称 insurer.PRD_SUP_NAME as insurerName , -- 保险公司名称
holder.CUS_MST_NAME as holderName, -- 投保人姓名 holder.CUS_MST_NAME as holderName, -- 投保人姓名
holder.CUS_MST_POSTTYPE as holderIdNoType, -- 投保人证件类型
holder.CUS_MST_ID as holderId, -- 投保人编码 holder.CUS_MST_ID as holderId, -- 投保人编码
holder.CUS_MST_ID_NUM as holderIdNo, -- 投保人编码 holder.CUS_MST_ID_NUM as holderIdNo, -- 投保人编码
holder.CUS_MST_SEX as holderSex, -- 投保人性别 holder.CUS_MST_SEX as holderSex, -- 投保人性别
...@@ -1064,6 +1065,7 @@ ...@@ -1064,6 +1065,7 @@
holder.CUS_MST_CELL_NUM as holderMobileNo, -- 投保人手机号码 holder.CUS_MST_CELL_NUM as holderMobileNo, -- 投保人手机号码
insured.CUS_MST_NAME as insuredName, -- 被保人姓名 insured.CUS_MST_NAME as insuredName, -- 被保人姓名
insured.CUS_MST_ID as insuredId, -- 被保人编码 insured.CUS_MST_ID as insuredId, -- 被保人编码
insured.CUS_MST_POSTTYPE as insuredIdNoType, -- 被保人证件类型
insured.CUS_MST_ID_NUM as insuredIdNo, -- 被保人编码 insured.CUS_MST_ID_NUM as insuredIdNo, -- 被保人编码
insured.CUS_MST_SEX as insuredSex, -- 被保人性别 insured.CUS_MST_SEX as insuredSex, -- 被保人性别
date_format(insured.CUS_MST_BIRTHDAY, '%Y-%m-%d') as insuredBirthday, -- 被保人出生年月 date_format(insured.CUS_MST_BIRTHDAY, '%Y-%m-%d') as insuredBirthday, -- 被保人出生年月
......
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