人口新增基础查询接口 - cbc

This commit is contained in:
java_cuibaocheng@163.com 2023-11-02 16:42:12 +08:00
parent e528ac4251
commit 67b4824834
3 changed files with 41 additions and 3 deletions

View File

@ -10,6 +10,10 @@ public class PopulationInfoBaseDTO {
@ApiModelProperty(name = "isCult", value = "是否为涉邪人员(是或否)")
private String isCult = "";
@ApiModelProperty(name = "isMinority", value = "是否为未成年(是或否)")
private String isMinority = "";
@ApiModelProperty(name = "isSeriousIllness", value = "是否为重病(是或否)")
private String isSeriousIllness = "";
@ApiModelProperty(name = "isDrug", value = "是否为吸毒人员(是或否)")
private String isDrug = "";
@ApiModelProperty(name = "isDispute", value = "是否有矛盾纠纷(是或否)")
@ -38,6 +42,8 @@ public class PopulationInfoBaseDTO {
private String name;
@ApiModelProperty(name = "idcard", value = "证件")
private String idcard;
@ApiModelProperty(name = "healthStatus", value = "健康状况")
private String healthStatus;
@ApiModelProperty(name = "idcardType", value = "证件类型")
private String idcardType;
@ApiModelProperty(name = "birthday", value = "生日")
@ -53,6 +59,36 @@ public class PopulationInfoBaseDTO {
@ApiModelProperty(name = "age", value = "年龄")
private Integer age;
public String getHealthStatus() {
return healthStatus;
}
public void setHealthStatus(String healthStatus) {
this.healthStatus = healthStatus;
}
public String getIsMinority() {
if(getAge() < 18) {
return "";
}
return "";
}
public void setIsMinority(String isMinority) {
this.isMinority = isMinority;
}
public String getIsSeriousIllness() {
if(getHealthStatus().contains("重病")) {
return "";
}
return "";
}
public void setIsSeriousIllness(String isSeriousIllness) {
this.isSeriousIllness = isSeriousIllness;
}
public Integer getAge() {
return IdCardVerifyUtil.getIdCardAge(idcard);
}

View File

@ -596,7 +596,7 @@
LEFT JOIN
data_dictionary t5
ON
t1.case_scale = t2.dictionary_id
t1.case_scale = t6.dictionary_id
LEFT JOIN
data_dictionary t6
ON
@ -832,7 +832,7 @@
t1.partyb_name,
t1.partyb_phone,
t1.dispute_id
FROM
FROM
population_dispute t1
LEFT JOIN
data_dictionary t2
@ -849,7 +849,7 @@
LEFT JOIN
data_dictionary t5
ON
t1.case_scale = t2.dictionary_id
t1.case_scale = t5.dictionary_id
LEFT JOIN
data_dictionary t6
ON

View File

@ -11,6 +11,7 @@
<result column="sex" property="sex"/>
<result column="nation" property="nation"/>
<result column="education" property="education"/>
<result column="health_status" property="healthStatus"/>
<result column="phone" property="phone"/>
<result column="is_oldage" property="isOldage"/>
<result column="is_disability" property="isDisability"/>
@ -652,6 +653,7 @@
t1.name,
t1.idcard,
t1.idcard_type,
t1.health_status,
t1.birthday,
t1.sex,
t1.nation,