|
@@ -21,11 +21,15 @@
|
|
<select id="selectSysMatterVo" resultMap="MatterResult">
|
|
<select id="selectSysMatterVo" 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>
|
|
<where>
|
|
|
|
+
|
|
<if test="title != null and title !=''">
|
|
<if test="title != null and title !=''">
|
|
- AND title LIKE '%' #{title} '%'
|
|
|
|
|
|
+ AND title LIKE concat('%', #{title}, '%')
|
|
</if>
|
|
</if>
|
|
<if test="examine != null and examine !=''">
|
|
<if test="examine != null and examine !=''">
|
|
- AND examine LIKE '%' #{examine} '%'
|
|
|
|
|
|
+ AND examine LIKE concat('%', #{examine}, '%')
|
|
|
|
+ </if>
|
|
|
|
+ <if test="department != null and department !=''">
|
|
|
|
+ AND department = #{department}
|
|
</if>
|
|
</if>
|
|
<if test="type != null and type !=''">
|
|
<if test="type != null and type !=''">
|
|
AND type = #{type}
|
|
AND type = #{type}
|
|
@@ -33,6 +37,12 @@
|
|
</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 +69,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=",">
|