|
@@ -27,12 +27,21 @@
|
|
<if test="examine != null and examine !=''">
|
|
<if test="examine != null and examine !=''">
|
|
AND examine LIKE '%' #{examine} '%'
|
|
AND examine LIKE '%' #{examine} '%'
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="department != null and department !=''">
|
|
|
|
+ AND department = #{department}
|
|
|
|
+ </if>
|
|
<if test="type != null and type !=''">
|
|
<if test="type != null and type !=''">
|
|
AND type = #{type}
|
|
AND type = #{type}
|
|
</if>
|
|
</if>
|
|
</where>
|
|
</where>
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
+ <select id="selectSysrecommendVo" resultMap="MatterResult">
|
|
|
|
+ select id,title, type, department,operation,address,phone,picture,examine ,content from jnb_list_of_matters
|
|
|
|
+ where operation=0
|
|
|
|
+ </select>
|
|
|
|
+
|
|
|
|
+
|
|
<select id="selectSysMatterById" resultMap="MatterResult">
|
|
<select id="selectSysMatterById" resultMap="MatterResult">
|
|
select id ,title, type, department,operation,address,phone,picture,examine,content from jnb_list_of_matters
|
|
select id ,title, type, department,operation,address,phone,picture,examine,content from jnb_list_of_matters
|
|
where id = #{id}
|
|
where id = #{id}
|
|
@@ -59,6 +68,13 @@
|
|
where id = #{id}
|
|
where id = #{id}
|
|
</update>
|
|
</update>
|
|
|
|
|
|
|
|
+ <select id="collectlist" resultMap="MatterResult">
|
|
|
|
+ SELECT * FROM jnb_list_of_matters
|
|
|
|
+ WHERE id IN (
|
|
|
|
+ SELECT matter_id FROM jnb_list_user_favorites
|
|
|
|
+ WHERE user_id = #{id})
|
|
|
|
+ </select>
|
|
|
|
+
|
|
<update id="examine" parameterType="SysDept">
|
|
<update id="examine" parameterType="SysDept">
|
|
update jnb_list_of_matters
|
|
update jnb_list_of_matters
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
<trim prefix="SET" suffixOverrides=",">
|