|
@@ -9,6 +9,7 @@
|
|
|
<result property="sqmyUserId" column="sqmy_user_id" />
|
|
|
<result property="sqmyNumber" column="sqmy_number" />
|
|
|
<result property="title" column="title" />
|
|
|
+ <result property="topicType" column="topic_type" />
|
|
|
<result property="lxrName" column="lxr_name" />
|
|
|
<result property="lxrPhone" column="lxr_phone" />
|
|
|
<result property="sqmyName" column="sqmy_name" />
|
|
@@ -43,7 +44,7 @@
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectSqmyInfoVo">
|
|
|
- select sqmy_id, sqmy_user_id, sqmy_number, title, lxr_name, lxr_phone, sqmy_name, sqmy_phone, sqmy_content, is_publicity, is_secret, unit, is_record, sqmy_progress, rolling_process, complex_type, is_cases_together, unite_sqmy_id, cbdwdfwy, satisfaction, members_opinion, zx_satisfaction, zx_opinion, is_key_point, key_point_argument, is_outstanding, outstanding_argument, create_by, create_time, update_by, update_time, remark from sqmy_info
|
|
|
+ select sqmy_id, sqmy_user_id, sqmy_number, title,topic_type, lxr_name, lxr_phone, sqmy_name, sqmy_phone, sqmy_content, is_publicity, is_secret, unit, is_record, sqmy_progress, rolling_process, complex_type, is_cases_together, unite_sqmy_id, cbdwdfwy, satisfaction, members_opinion, zx_satisfaction, zx_opinion, is_key_point, key_point_argument, is_outstanding, outstanding_argument, create_by, create_time, update_by, update_time, remark from sqmy_info
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectSqmyInfoList" parameterType="SqmyInfo" resultMap="SqmyInfoResult">
|
|
@@ -52,6 +53,7 @@
|
|
|
<if test="sqmyUserId != null "> and sqmy_user_id = #{sqmyUserId}</if>
|
|
|
<if test="sqmyNumber != null and sqmyNumber != ''"> and sqmy_number = #{sqmyNumber}</if>
|
|
|
<if test="title != null and title != ''"> and title = #{title}</if>
|
|
|
+ <if test="topicType != null and topicType != ''"> and topic_type = #{topicType}</if>
|
|
|
<if test="lxrName != null and lxrName != ''"> and lxr_name like concat('%', #{lxrName}, '%')</if>
|
|
|
<if test="lxrPhone != null and lxrPhone != ''"> and lxr_phone = #{lxrPhone}</if>
|
|
|
<if test="sqmyName != null and sqmyName != ''"> and sqmy_name like concat('%', #{sqmyName}, '%')</if>
|
|
@@ -89,11 +91,12 @@
|
|
|
s.sqmy_content, s.is_publicity, s.is_secret, s.unit, s.is_record, s.sqmy_progress, s.rolling_process,
|
|
|
s.complex_type, s.is_cases_together, s.unite_sqmy_id, s.cbdwdfwy, s.satisfaction, s.members_opinion,
|
|
|
s.zx_satisfaction, s.zx_opinion, s.is_key_point, s.key_point_argument, s.is_outstanding, s.outstanding_argument,
|
|
|
- s.create_by, s.create_time, s.update_by, s.update_time, s.remark
|
|
|
+ s.create_by, s.create_time, s.update_by, s.update_time, s.remark,s.topic_type,u.type as dwType
|
|
|
from sqmy_info s
|
|
|
left join sqmy_unit_reply u on p.sqmy_id = u.sqmy_id
|
|
|
where u.dept_id = #{deptId}
|
|
|
<if test="dwType != null and dwType != ''"> and u.type = #{dwType}</if>
|
|
|
+ <if test="topicType != null and topicType != ''"> and topic_type = #{topicType}</if>
|
|
|
<if test="sqmyUserId != null "> and s.sqmy_user_id = #{sqmyUserId}</if>
|
|
|
<if test="sqmyNumber != null and sqmyNumber != ''"> and s.sqmy_number = #{sqmyNumber}</if>
|
|
|
<if test="title != null and title != ''"> and s.title = #{title}</if>
|
|
@@ -129,6 +132,7 @@
|
|
|
<if test="sqmyUserId != null">sqmy_user_id,</if>
|
|
|
<if test="sqmyNumber != null">sqmy_number,</if>
|
|
|
<if test="title != null and title != ''">title,</if>
|
|
|
+ <if test="topicType != null and topicType != ''"> topic_type,</if>
|
|
|
<if test="lxrName != null and lxrName != ''">lxr_name,</if>
|
|
|
<if test="lxrPhone != null and lxrPhone != ''">lxr_phone,</if>
|
|
|
<if test="sqmyName != null and sqmyName != ''">sqmy_name,</if>
|
|
@@ -162,6 +166,7 @@
|
|
|
<if test="sqmyUserId != null">#{sqmyUserId},</if>
|
|
|
<if test="sqmyNumber != null">#{sqmyNumber},</if>
|
|
|
<if test="title != null and title != ''">#{title},</if>
|
|
|
+ <if test="topicType != null and topicType != ''"> #{topicType},</if>
|
|
|
<if test="lxrName != null and lxrName != ''">#{lxrName},</if>
|
|
|
<if test="lxrPhone != null and lxrPhone != ''">#{lxrPhone},</if>
|
|
|
<if test="sqmyName != null and sqmyName != ''">#{sqmyName},</if>
|
|
@@ -199,6 +204,7 @@
|
|
|
<if test="sqmyUserId != null">sqmy_user_id = #{sqmyUserId},</if>
|
|
|
<if test="sqmyNumber != null">sqmy_number = #{sqmyNumber},</if>
|
|
|
<if test="title != null and title != ''">title = #{title},</if>
|
|
|
+ <if test="topicType != null and topicType != ''">topic_type = #{topicType},</if>
|
|
|
<if test="lxrName != null and lxrName != ''">lxr_name = #{lxrName},</if>
|
|
|
<if test="lxrPhone != null and lxrPhone != ''">lxr_phone = #{lxrPhone},</if>
|
|
|
<if test="sqmyName != null and sqmyName != ''">sqmy_name = #{sqmyName},</if>
|