|
@@ -73,15 +73,23 @@
|
73
|
73
|
b.phone as phone
|
74
|
74
|
from ta_help_initiate_record b
|
75
|
75
|
where b.help_activity_id = #{helpActivityId}
|
76
|
|
- <if test="condition == 'helpSucceed'">
|
77
|
|
- and b.status = 1
|
78
|
|
- </if>
|
79
|
|
- <if test="condition == 'helpUnfinished'">
|
80
|
|
- and b.status = 2
|
81
|
|
- </if>
|
82
|
|
- <if test="tel != null and tel != ''">
|
83
|
|
- and b.phone like concat('%',#{tel},'%')
|
84
|
|
- </if>
|
|
76
|
+ <if test="condition == 'helpSucceed'">
|
|
77
|
+ AND b.verification !='null'
|
|
78
|
+ AND b.verification !=''
|
|
79
|
+ </if>
|
|
80
|
+ <if test="condition == 'helpUnderway'">
|
|
81
|
+ and (b.verification is null OR b.verification = '')
|
|
82
|
+ AND b.`status` = 1
|
|
83
|
+ </if>
|
|
84
|
+
|
|
85
|
+ <if test="condition == 'helpUnfinished'">
|
|
86
|
+ and (b.verification is null
|
|
87
|
+ OR b.verification = '')
|
|
88
|
+ AND b.`status` = 2
|
|
89
|
+ </if>
|
|
90
|
+ <if test="tel != null and tel != ''">
|
|
91
|
+ and b.phone like concat('%',#{tel},'%')
|
|
92
|
+ </if>
|
85
|
93
|
order by b.create_date desc
|
86
|
94
|
limit #{pageCode}, #{pageSize}
|
87
|
95
|
</select>
|