Commit 43d8d7e4 authored by yaobaizheng's avatar yaobaizheng

//立业云后台提交

parent 48d24f22
...@@ -422,6 +422,10 @@ public class DevelopmentInfo extends BaseEntity ...@@ -422,6 +422,10 @@ public class DevelopmentInfo extends BaseEntity
@Excel(name = "污水处理价格") @Excel(name = "污水处理价格")
private BigDecimal sewageWaterPrice; private BigDecimal sewageWaterPrice;
/** 原因 */
@Excel(name = "原因")
private String reason;
public void setId(Long id) public void setId(Long id)
{ {
this.id = id; this.id = id;
...@@ -1332,6 +1336,14 @@ public class DevelopmentInfo extends BaseEntity ...@@ -1332,6 +1336,14 @@ public class DevelopmentInfo extends BaseEntity
return sewageWaterPrice; return sewageWaterPrice;
} }
public String getReason() {
return reason;
}
public void setReason(String reason) {
this.reason = reason;
}
@Override @Override
public String toString() { public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
...@@ -1438,6 +1450,7 @@ public class DevelopmentInfo extends BaseEntity ...@@ -1438,6 +1450,7 @@ public class DevelopmentInfo extends BaseEntity
.append("submitTime", getSubmitTime()) .append("submitTime", getSubmitTime())
.append("sewageWaterType", getSewageWaterType()) .append("sewageWaterType", getSewageWaterType())
.append("sewageWaterPrice", getSewageWaterPrice()) .append("sewageWaterPrice", getSewageWaterPrice())
.append("reason", getReason())
.toString(); .toString();
} }
} }
...@@ -7,7 +7,8 @@ public enum DevelopmentStatusEnum { ...@@ -7,7 +7,8 @@ public enum DevelopmentStatusEnum {
AUTHED(3,"已认证"), AUTHED(3,"已认证"),
REJECT(4,"未通过"), REJECT(4,"未通过"),
WAITAUTH(5,"待认证"), WAITAUTH(5,"待认证"),
USELESS(9,"作废"); USELESS(9,"作废"),
USELESS_REASON(9,"该数据已经认证成功,系统自动审核拒绝");
private Integer code; private Integer code;
private String description; private String description;
...@@ -19,4 +20,8 @@ public enum DevelopmentStatusEnum { ...@@ -19,4 +20,8 @@ public enum DevelopmentStatusEnum {
public Integer getCode() { public Integer getCode() {
return code; return code;
} }
public String getDescription() {
return description;
}
} }
...@@ -7,7 +7,8 @@ public enum ParkInfoStatusEnum { ...@@ -7,7 +7,8 @@ public enum ParkInfoStatusEnum {
AUTHED(3,"已认证"), AUTHED(3,"已认证"),
REJECT(4,"未通过"), REJECT(4,"未通过"),
WAITAUTH(5,"待认证"), WAITAUTH(5,"待认证"),
USELESS(9,"作废"); USELESS(9,"作废"),
USELESS_REASON(9,"该数据已经认证成功,系统自动审核拒绝");
private Integer code; private Integer code;
private String description; private String description;
...@@ -19,4 +20,8 @@ public enum ParkInfoStatusEnum { ...@@ -19,4 +20,8 @@ public enum ParkInfoStatusEnum {
public Integer getCode() { public Integer getCode() {
return code; return code;
} }
public String getDescription() {
return description;
}
} }
...@@ -96,6 +96,7 @@ public class DevelopmentInfoServiceImpl implements IDevelopmentInfoService { ...@@ -96,6 +96,7 @@ public class DevelopmentInfoServiceImpl implements IDevelopmentInfoService {
developmentInfoMapper.updateDevelopmentInfo(info); developmentInfoMapper.updateDevelopmentInfo(info);
}else{ }else{
info.setStatus(DevelopmentStatusEnum.USELESS.getCode()); info.setStatus(DevelopmentStatusEnum.USELESS.getCode());
info.setReason(DevelopmentStatusEnum.USELESS_REASON.getDescription());
developmentInfoMapper.updateDevelopmentInfo(info); developmentInfoMapper.updateDevelopmentInfo(info);
} }
} }
......
...@@ -109,6 +109,7 @@ public class ParkInfoServiceImpl implements IParkInfoService { ...@@ -109,6 +109,7 @@ public class ParkInfoServiceImpl implements IParkInfoService {
parkInfoMapper.updateParkInfo(info); parkInfoMapper.updateParkInfo(info);
}else{ }else{
info.setStatus(ParkInfoStatusEnum.USELESS.getCode()); info.setStatus(ParkInfoStatusEnum.USELESS.getCode());
info.setReason(ParkInfoStatusEnum.USELESS_REASON.getDescription());
parkInfoMapper.updateParkInfo(info); parkInfoMapper.updateParkInfo(info);
} }
} }
......
...@@ -546,6 +546,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -546,6 +546,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="submitTime != null">submit_time = #{submitTime},</if> <if test="submitTime != null">submit_time = #{submitTime},</if>
<if test="sewageWaterType != null">sewage_water_type = #{sewageWaterType},</if> <if test="sewageWaterType != null">sewage_water_type = #{sewageWaterType},</if>
<if test="sewageWaterPrice != null">sewage_water_price = #{sewageWaterPrice},</if> <if test="sewageWaterPrice != null">sewage_water_price = #{sewageWaterPrice},</if>
<if test="reason != null">reason = #{reason},</if>
</trim> </trim>
where id = #{id} where id = #{id}
</update> </update>
......
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