调整字段

This commit is contained in:
wenc000 2020-10-21 10:48:35 +08:00
parent 1668733b38
commit 6317c19141
4 changed files with 53 additions and 14 deletions

View File

@ -31,7 +31,9 @@ public class EnterprisePollutionDTO implements Serializable {
private String pollutionFacilities; private String pollutionFacilities;
@ApiModelProperty(name = "pollutionControlFacilities", value = "治污设施安装情况") @ApiModelProperty(name = "pollutionControlFacilities", value = "治污设施安装情况")
private String pollutionControlFacilities; private String pollutionControlFacilities;
@ApiModelProperty(name = "checkStatus", value = "环评及验收情况1有环评2无环评3已验收4未验收") @ApiModelProperty(name = "eiaStatus", value = "环评状态1有环评2无环评")
private String eiaStatus;
@ApiModelProperty(name = "checkStatus", value = "验收状态1已验收2未验收")
private String checkStatus; private String checkStatus;
@ApiModelProperty(name = "relatedDocuments", value = "相关文件") @ApiModelProperty(name = "relatedDocuments", value = "相关文件")
private String relatedDocuments; private String relatedDocuments;
@ -84,6 +86,14 @@ public class EnterprisePollutionDTO implements Serializable {
this.pollutionControlFacilities = pollutionControlFacilities; this.pollutionControlFacilities = pollutionControlFacilities;
} }
public String getEiaStatus() {
return eiaStatus == null ? "" : eiaStatus.trim();
}
public void setEiaStatus(String eiaStatus) {
this.eiaStatus = eiaStatus;
}
public String getCheckStatus() { public String getCheckStatus() {
return checkStatus == null ? "" : checkStatus.trim(); return checkStatus == null ? "" : checkStatus.trim();
} }
@ -115,6 +125,8 @@ public class EnterprisePollutionDTO implements Serializable {
.append(pollutionFacilities).append('\"'); .append(pollutionFacilities).append('\"');
sb.append(",\"pollutionControlFacilities\":\"") sb.append(",\"pollutionControlFacilities\":\"")
.append(pollutionControlFacilities).append('\"'); .append(pollutionControlFacilities).append('\"');
sb.append(",\"eiaStatus\":\"")
.append(eiaStatus).append('\"');
sb.append(",\"checkStatus\":\"") sb.append(",\"checkStatus\":\"")
.append(checkStatus).append('\"'); .append(checkStatus).append('\"');
sb.append(",\"relatedDocuments\":\"") sb.append(",\"relatedDocuments\":\"")

View File

@ -28,7 +28,9 @@ public class EnterprisePollutionVO {
private String pollutionFacilities; private String pollutionFacilities;
@ApiModelProperty(name = "pollutionControlFacilities", value = "治污设施安装情况") @ApiModelProperty(name = "pollutionControlFacilities", value = "治污设施安装情况")
private String pollutionControlFacilities; private String pollutionControlFacilities;
@ApiModelProperty(name = "checkStatus", value = "环评及验收情况1有环评2无环评3已验收4未验收") @ApiModelProperty(name = "eiaStatus", value = "环评状态1有环评2无环评")
private String eiaStatus;
@ApiModelProperty(name = "checkStatus", value = "验收状态1已验收2未验收")
private String checkStatus; private String checkStatus;
@ApiModelProperty(name = "relatedDocuments", value = "相关文件") @ApiModelProperty(name = "relatedDocuments", value = "相关文件")
private String relatedDocuments; private String relatedDocuments;
@ -73,6 +75,14 @@ public class EnterprisePollutionVO {
this.pollutionControlFacilities = pollutionControlFacilities; this.pollutionControlFacilities = pollutionControlFacilities;
} }
public String getEiaStatus() {
return eiaStatus == null ? "" : eiaStatus.trim();
}
public void setEiaStatus(String eiaStatus) {
this.eiaStatus = eiaStatus;
}
public String getCheckStatus() { public String getCheckStatus() {
return checkStatus == null ? "" : checkStatus.trim(); return checkStatus == null ? "" : checkStatus.trim();
} }
@ -102,6 +112,8 @@ public class EnterprisePollutionVO {
.append(pollutionFacilities).append('\"'); .append(pollutionFacilities).append('\"');
sb.append(",\"pollutionControlFacilities\":\"") sb.append(",\"pollutionControlFacilities\":\"")
.append(pollutionControlFacilities).append('\"'); .append(pollutionControlFacilities).append('\"');
sb.append(",\"eiaStatus\":\"")
.append(eiaStatus).append('\"');
sb.append(",\"checkStatus\":\"") sb.append(",\"checkStatus\":\"")
.append(checkStatus).append('\"'); .append(checkStatus).append('\"');
sb.append(",\"relatedDocuments\":\"") sb.append(",\"relatedDocuments\":\"")

View File

@ -62,6 +62,7 @@
<result column="pollution_factor_other" property="pollutionFactorOther"/> <result column="pollution_factor_other" property="pollutionFactorOther"/>
<result column="pollution_facilities" property="pollutionFacilities"/> <result column="pollution_facilities" property="pollutionFacilities"/>
<result column="pollution_control_facilities" property="pollutionControlFacilities"/> <result column="pollution_control_facilities" property="pollutionControlFacilities"/>
<result column="eia_status" property="eiaStatus"/>
<result column="check_status" property="checkStatus"/> <result column="check_status" property="checkStatus"/>
<result column="related_documents" property="relatedDocuments"/> <result column="related_documents" property="relatedDocuments"/>
</resultMap> </resultMap>
@ -401,6 +402,7 @@
pollution_factor_other, pollution_factor_other,
pollution_facilities, pollution_facilities,
pollution_control_facilities, pollution_control_facilities,
eia_status,
check_status, check_status,
related_documents related_documents
) VALUES( ) VALUES(
@ -410,6 +412,7 @@
#{pollutionFactorOther}, #{pollutionFactorOther},
#{pollutionFacilities}, #{pollutionFacilities},
#{pollutionControlFacilities}, #{pollutionControlFacilities},
#{eiaStatus},
#{checkStatus}, #{checkStatus},
#{relatedDocuments} #{relatedDocuments}
) )
@ -420,25 +423,28 @@
UPDATE UPDATE
gen_enterprise_pollution gen_enterprise_pollution
SET SET
<if test="pollutionFactor != null and pollutionFactor != ''"> <if test="pollutionFactor != null">
pollution_factor = #{pollutionFactor}, pollution_factor = #{pollutionFactor},
</if> </if>
<if test="pollutionFactorDangerous != null and pollutionFactorDangerous != ''"> <if test="pollutionFactorDangerous != null">
pollution_factor_dangerous = #{pollutionFactorDangerous}, pollution_factor_dangerous = #{pollutionFactorDangerous},
</if> </if>
<if test="pollutionFactorOther != null and pollutionFactorOther != ''"> <if test="pollutionFactorOther != null">
pollution_factor_other = #{pollutionFactorOther}, pollution_factor_other = #{pollutionFactorOther},
</if> </if>
<if test="pollutionFacilities != null and pollutionFacilities != ''"> <if test="pollutionFacilities != null">
pollution_facilities = #{pollutionFacilities}, pollution_facilities = #{pollutionFacilities},
</if> </if>
<if test="pollutionControlFacilities != null and pollutionControlFacilities != ''"> <if test="pollutionControlFacilities != null">
pollution_control_facilities = #{pollutionControlFacilities}, pollution_control_facilities = #{pollutionControlFacilities},
</if> </if>
<if test="checkStatus != null and checkStatus != ''"> <if test="eiaStatus != null">
eia_status = #{eiaStatus},
</if>
<if test="checkStatus != null">
check_status = #{checkStatus}, check_status = #{checkStatus},
</if> </if>
<if test="relatedDocuments != null and relatedDocuments != ''"> <if test="relatedDocuments != null">
related_documents = #{relatedDocuments}, related_documents = #{relatedDocuments},
</if> </if>
enterprise_id = #{enterpriseId} enterprise_id = #{enterpriseId}
@ -723,6 +729,7 @@
pollution_factor_other, pollution_factor_other,
pollution_facilities, pollution_facilities,
pollution_control_facilities, pollution_control_facilities,
eia_status,
check_status, check_status,
related_documents related_documents
FROM FROM
@ -740,6 +747,7 @@
pollution_factor_other, pollution_factor_other,
pollution_facilities, pollution_facilities,
pollution_control_facilities, pollution_control_facilities,
eia_status,
check_status, check_status,
related_documents related_documents
FROM FROM

View File

@ -117,13 +117,20 @@
</div> </div>
</div> </div>
<div class="layui-form-item layui-form-text"> <div class="layui-form-item layui-form-text">
<label class="layui-form-label">环评及验收情况</label> <label class="layui-form-label">环评状态</label>
<div class="layui-input-block"> <div class="layui-input-block">
<div style="border: 1px solid #e6e6e6;"> <div style="border: 1px solid #e6e6e6;">
<input type="radio" name="checkStatus" value="1" title="有环评" checked> <input type="radio" name="eiaStatus" value="1" title="有环评" checked>
<input type="radio" name="checkStatus" value="2" title="无环评"> <input type="radio" name="eiaStatus" value="2" title="无环评">
<input type="radio" name="checkStatus" value="3" title="已验收"> </div>
<input type="radio" name="checkStatus" value="4" title="未验收"> </div>
</div>
<div class="layui-form-item layui-form-text">
<label class="layui-form-label">验收状态</label>
<div class="layui-input-block">
<div style="border: 1px solid #e6e6e6;">
<input type="radio" name="checkStatus" value="1" title="已验收" checked>
<input type="radio" name="checkStatus" value="2" title="未验收">
</div> </div>
</div> </div>
</div> </div>