Commit 43d8d7e4 authored by yaobaizheng's avatar yaobaizheng

//立业云后台提交

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