dingxin 5 vuotta sitten
vanhempi
commit
3ba8e74d9a
1 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  1. 2
    1
      src/main/resources/mapper/HelpActivityMapper.xml

+ 2
- 1
src/main/resources/mapper/HelpActivityMapper.xml Näytä tiedosto

@@ -11,7 +11,7 @@
11 11
             and building_id = #{buildingId}
12 12
         </if>
13 13
         <if test="title != null and title != ''">
14
-            and title = #{title}
14
+            and title like CONCAT('%',#{title}, '%')
15 15
         </if>
16 16
         <if test="startDate != null and startDate != ''and startDate!='Invalid date'">
17 17
          and date_format(start_date,'%Y-%m-%d') = date_format( #{startDate}, '%Y-%m-%d' )
@@ -24,6 +24,7 @@
24 24
         </if>
25 25
             and org_id=#{orgId}
26 26
         </where>
27
+        order by activity_status = 0 desc,activity_status = 1 desc,activity_status = 2 desc,start_date desc
27 28
     </select>
28 29
 
29 30
     <update id="updateUnStartHelpActivity">