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