Browse Source

投诉加入是否授权字段

v2
蟑螂恶霸 2 years ago
parent
commit
40ac21b5eb
  1. 11
      lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/java/com/zdxt/code/domain/EnterpriseComplaint.java
  2. 6
      lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/resources/mapper/EnterpriseComplaintMapper.xml

11
lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/java/com/zdxt/code/domain/EnterpriseComplaint.java

@ -35,6 +35,9 @@ public class EnterpriseComplaint extends BaseDomain
/** 联系方式 */
private String linkmanTel;
/** 是否授权 */
private int authorization;
/**
* 文件几个
*/
@ -46,6 +49,14 @@ public class EnterpriseComplaint extends BaseDomain
public String enterpriseName;
private List fileListObj;
public int getAuthorization() {
return authorization;
}
public void setAuthorization(int authorization) {
this.authorization = authorization;
}
public String getEnforceTypeText() {
return enforceTypeText;
}

6
lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/resources/mapper/EnterpriseComplaintMapper.xml

@ -11,11 +11,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="problemDescription" column="problem_description" />
<result property="linkman" column="linkman" />
<result property="linkmanTel" column="linkman_tel" />
<result property="authorization" column="authorization" />
<result property="createTime" column="create_time" />
</resultMap>
<sql id="selectEnterpriseComplaintVo">
select id, rel_id, enforce_type, problem_description, linkman, linkman_tel, create_time from enterprise_complaint
select id, rel_id, enforce_type, problem_description, linkman, linkman_tel, authorization, create_time from enterprise_complaint
</sql>
<select id="selectEnterpriseComplaintList" parameterType="EnterpriseComplaint" resultMap="EnterpriseComplaintResult">
@ -43,6 +44,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="problemDescription != null and problemDescription != ''">problem_description,</if>
<if test="linkman != null and linkman != ''">linkman,</if>
<if test="linkmanTel != null and linkmanTel != ''">linkman_tel,</if>
<if test="authorization != null and authorization != ''">authorization,</if>
<if test="createTime != null ">create_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
@ -52,6 +54,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="problemDescription != null and problemDescription != ''">#{problemDescription},</if>
<if test="linkman != null and linkman != ''">#{linkman},</if>
<if test="linkmanTel != null and linkmanTel != ''">#{linkmanTel},</if>
<if test="authorization != null and authorization != ''">#{authorization},</if>
<if test="createTime != null ">#{createTime},</if>
</trim>
</insert>
@ -64,6 +67,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="problemDescription != null and problemDescription != ''">problem_description = #{problemDescription},</if>
<if test="linkman != null and linkman != ''">linkman = #{linkman},</if>
<if test="linkmanTel != null and linkmanTel != ''">linkman_tel = #{linkmanTel},</if>
<if test="authorization != null and authorization != ''">authorization = #{authorization},</if>
<if test="createTime != null ">create_time = #{createTime},</if>
</trim>
where id = #{id}

Loading…
Cancel
Save