|
@@ -23,14 +23,17 @@
|
|
|
|
|
|
|
|
|
<select id="selectSysMatterVo" resultMap="MatterResult">
|
|
|
- select id,title, type, department,operation,address,phone,picture,examine ,content ,create_by,create_time,update_by,update_time from jnb_list_of_matters
|
|
|
+ SELECT
|
|
|
+ id, title, type, department, operation, address, phone, picture,
|
|
|
+ examine, content, create_by, create_time, update_by, update_time
|
|
|
+ FROM
|
|
|
+ jnb_list_of_matters
|
|
|
<where>
|
|
|
-
|
|
|
<if test="title != null and title !=''">
|
|
|
- AND title LIKE concat('%', #{title}, '%')
|
|
|
+ AND title LIKE CONCAT('%', #{title}, '%')
|
|
|
</if>
|
|
|
<if test="examine != null and examine !=''">
|
|
|
- AND examine LIKE concat('%', #{examine}, '%')
|
|
|
+ AND examine LIKE CONCAT('%', #{examine}, '%')
|
|
|
</if>
|
|
|
<if test="department != null and department !=''">
|
|
|
AND department = #{department}
|
|
@@ -39,6 +42,8 @@
|
|
|
AND type = #{type}
|
|
|
</if>
|
|
|
</where>
|
|
|
+ ORDER BY create_time DESC
|
|
|
+
|
|
|
</select>
|
|
|
|
|
|
<select id="selectSysrecommendVo" resultMap="MatterResult">
|