|
@@ -37,6 +37,9 @@
|
|
|
<result property="updateBy" column="update_by" />
|
|
|
<result property="updateTime" column="update_time" />
|
|
|
<result property="remark" column="remark" />
|
|
|
+
|
|
|
+ <result property="deptId" column="deptId" />
|
|
|
+ <result property="dwType" column="dwType" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectSqmyInfoVo">
|
|
@@ -73,6 +76,7 @@
|
|
|
<if test="isOutstanding != null and isOutstanding != ''"> and is_outstanding = #{isOutstanding}</if>
|
|
|
<if test="outstandingArgument != null and outstandingArgument != ''"> and outstanding_argument = #{outstandingArgument}</if>
|
|
|
</where>
|
|
|
+ order by update_time desc
|
|
|
</select>
|
|
|
|
|
|
<select id="selectSqmyInfoBySqmyId" parameterType="Long" resultMap="SqmyInfoResult">
|
|
@@ -80,6 +84,45 @@
|
|
|
where sqmy_id = #{sqmyId}
|
|
|
</select>
|
|
|
|
|
|
+ <select id="selectSqmyInfoListByUnit" resultMap="SqmyInfoResult">
|
|
|
+ select s.sqmy_id, s.sqmy_user_id, s.sqmy_number, s.title, s.lxr_name, s.lxr_phone, s.sqmy_name, s.sqmy_phone,
|
|
|
+ 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
|
|
|
+ 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="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>
|
|
|
+ <if test="lxrName != null and lxrName != ''"> and s.lxr_name like concat('%', #{lxrName}, '%')</if>
|
|
|
+ <if test="lxrPhone != null and lxrPhone != ''"> and s.lxr_phone = #{lxrPhone}</if>
|
|
|
+ <if test="sqmyName != null and sqmyName != ''"> and s.sqmy_name like concat('%', #{sqmyName}, '%')</if>
|
|
|
+ <if test="sqmyPhone != null and sqmyPhone != ''"> and s.sqmy_phone = #{sqmyPhone}</if>
|
|
|
+ <if test="sqmyContent != null and sqmyContent != ''"> and s.sqmy_content = #{sqmyContent}</if>
|
|
|
+ <if test="isPublicity != null and isPublicity != ''"> and s.is_publicity = #{isPublicity}</if>
|
|
|
+ <if test="isSecret != null and isSecret != ''"> and s.is_secret = #{isSecret}</if>
|
|
|
+ <if test="unit != null and unit != ''"> and s.unit = #{unit}</if>
|
|
|
+ <if test="isRecord != null and isRecord != ''"> and s.is_record = #{isRecord}</if>
|
|
|
+ <if test="sqmyProgress != null and sqmyProgress != ''"> and s.sqmy_progress = #{sqmyProgress}</if>
|
|
|
+ <if test="rollingProcess != null and rollingProcess != ''"> and s.rolling_process = #{rollingProcess}</if>
|
|
|
+ <if test="complexType != null and complexType != ''"> and s.complex_type = #{complexType}</if>
|
|
|
+ <if test="isCasesTogether != null and isCasesTogether != ''"> and s.is_cases_together = #{isCasesTogether}</if>
|
|
|
+ <if test="uniteSqmyId != null "> and s.unite_sqmy_id = #{uniteSqmyId}</if>
|
|
|
+ <if test="cbdwdfwy != null and cbdwdfwy != ''"> and s.cbdwdfwy = #{cbdwdfwy}</if>
|
|
|
+ <if test="satisfaction != null and satisfaction != ''"> and s.satisfaction = #{satisfaction}</if>
|
|
|
+ <if test="membersOpinion != null and membersOpinion != ''"> and s.members_opinion = #{membersOpinion}</if>
|
|
|
+ <if test="zxSatisfaction != null and zxSatisfaction != ''"> and s.zx_satisfaction = #{zxSatisfaction}</if>
|
|
|
+ <if test="zxOpinion != null and zxOpinion != ''"> and s.zx_opinion = #{zxOpinion}</if>
|
|
|
+ <if test="isKeyPoint != null and isKeyPoint != ''"> and s.is_key_point = #{isKeyPoint}</if>
|
|
|
+ <if test="keyPointArgument != null and keyPointArgument != ''"> and s.key_point_argument = #{keyPointArgument}</if>
|
|
|
+ <if test="isOutstanding != null and isOutstanding != ''"> and s.is_outstanding = #{isOutstanding}</if>
|
|
|
+ <if test="outstandingArgument != null and outstandingArgument != ''"> and s.outstanding_argument = #{outstandingArgument}</if>
|
|
|
+ order by s.update_time desc
|
|
|
+ </select>
|
|
|
+
|
|
|
<insert id="insertSqmyInfo" parameterType="SqmyInfo" useGeneratedKeys="true" keyProperty="sqmyId">
|
|
|
insert into sqmy_info
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|