|
|
|
@ -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} |
|
|
|
|