人口新增基础查询接口 - cbc
This commit is contained in:
parent
e528ac4251
commit
67b4824834
@ -10,6 +10,10 @@ public class PopulationInfoBaseDTO {
|
|||||||
|
|
||||||
@ApiModelProperty(name = "isCult", value = "是否为涉邪人员(是或否)")
|
@ApiModelProperty(name = "isCult", value = "是否为涉邪人员(是或否)")
|
||||||
private String isCult = "否";
|
private String isCult = "否";
|
||||||
|
@ApiModelProperty(name = "isMinority", value = "是否为未成年(是或否)")
|
||||||
|
private String isMinority = "否";
|
||||||
|
@ApiModelProperty(name = "isSeriousIllness", value = "是否为重病(是或否)")
|
||||||
|
private String isSeriousIllness = "否";
|
||||||
@ApiModelProperty(name = "isDrug", value = "是否为吸毒人员(是或否)")
|
@ApiModelProperty(name = "isDrug", value = "是否为吸毒人员(是或否)")
|
||||||
private String isDrug = "否";
|
private String isDrug = "否";
|
||||||
@ApiModelProperty(name = "isDispute", value = "是否有矛盾纠纷(是或否)")
|
@ApiModelProperty(name = "isDispute", value = "是否有矛盾纠纷(是或否)")
|
||||||
@ -38,6 +42,8 @@ public class PopulationInfoBaseDTO {
|
|||||||
private String name;
|
private String name;
|
||||||
@ApiModelProperty(name = "idcard", value = "证件")
|
@ApiModelProperty(name = "idcard", value = "证件")
|
||||||
private String idcard;
|
private String idcard;
|
||||||
|
@ApiModelProperty(name = "healthStatus", value = "健康状况")
|
||||||
|
private String healthStatus;
|
||||||
@ApiModelProperty(name = "idcardType", value = "证件类型")
|
@ApiModelProperty(name = "idcardType", value = "证件类型")
|
||||||
private String idcardType;
|
private String idcardType;
|
||||||
@ApiModelProperty(name = "birthday", value = "生日")
|
@ApiModelProperty(name = "birthday", value = "生日")
|
||||||
@ -53,6 +59,36 @@ public class PopulationInfoBaseDTO {
|
|||||||
@ApiModelProperty(name = "age", value = "年龄")
|
@ApiModelProperty(name = "age", value = "年龄")
|
||||||
private Integer age;
|
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() {
|
public Integer getAge() {
|
||||||
return IdCardVerifyUtil.getIdCardAge(idcard);
|
return IdCardVerifyUtil.getIdCardAge(idcard);
|
||||||
}
|
}
|
||||||
|
@ -596,7 +596,7 @@
|
|||||||
LEFT JOIN
|
LEFT JOIN
|
||||||
data_dictionary t5
|
data_dictionary t5
|
||||||
ON
|
ON
|
||||||
t1.case_scale = t2.dictionary_id
|
t1.case_scale = t6.dictionary_id
|
||||||
LEFT JOIN
|
LEFT JOIN
|
||||||
data_dictionary t6
|
data_dictionary t6
|
||||||
ON
|
ON
|
||||||
@ -832,7 +832,7 @@
|
|||||||
t1.partyb_name,
|
t1.partyb_name,
|
||||||
t1.partyb_phone,
|
t1.partyb_phone,
|
||||||
t1.dispute_id
|
t1.dispute_id
|
||||||
FROM
|
FROM
|
||||||
population_dispute t1
|
population_dispute t1
|
||||||
LEFT JOIN
|
LEFT JOIN
|
||||||
data_dictionary t2
|
data_dictionary t2
|
||||||
@ -849,7 +849,7 @@
|
|||||||
LEFT JOIN
|
LEFT JOIN
|
||||||
data_dictionary t5
|
data_dictionary t5
|
||||||
ON
|
ON
|
||||||
t1.case_scale = t2.dictionary_id
|
t1.case_scale = t5.dictionary_id
|
||||||
LEFT JOIN
|
LEFT JOIN
|
||||||
data_dictionary t6
|
data_dictionary t6
|
||||||
ON
|
ON
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
<result column="sex" property="sex"/>
|
<result column="sex" property="sex"/>
|
||||||
<result column="nation" property="nation"/>
|
<result column="nation" property="nation"/>
|
||||||
<result column="education" property="education"/>
|
<result column="education" property="education"/>
|
||||||
|
<result column="health_status" property="healthStatus"/>
|
||||||
<result column="phone" property="phone"/>
|
<result column="phone" property="phone"/>
|
||||||
<result column="is_oldage" property="isOldage"/>
|
<result column="is_oldage" property="isOldage"/>
|
||||||
<result column="is_disability" property="isDisability"/>
|
<result column="is_disability" property="isDisability"/>
|
||||||
@ -652,6 +653,7 @@
|
|||||||
t1.name,
|
t1.name,
|
||||||
t1.idcard,
|
t1.idcard,
|
||||||
t1.idcard_type,
|
t1.idcard_type,
|
||||||
|
t1.health_status,
|
||||||
t1.birthday,
|
t1.birthday,
|
||||||
t1.sex,
|
t1.sex,
|
||||||
t1.nation,
|
t1.nation,
|
||||||
|
Loading…
Reference in New Issue
Block a user