|
|
|
|
131
|
t.org_id = #{orgId}
|
131
|
t.org_id = #{orgId}
|
132
|
and t.event_type = 'h5'
|
132
|
and t.event_type = 'h5'
|
133
|
AND t.target_id = #{drainageId}
|
133
|
AND t.target_id = #{drainageId}
|
134
|
- AND t3.share_person_id is not null
|
|
|
|
|
134
|
+ AND (t.share_person_id != NULL or t.share_person_id != '')
|
135
|
<if test="sharePersonPhone != null and sharePersonPhone != ''">
|
135
|
<if test="sharePersonPhone != null and sharePersonPhone != ''">
|
136
|
AND t3.phone like CONCAT('%',#{sharePersonPhone}, '%')
|
136
|
AND t3.phone like CONCAT('%',#{sharePersonPhone}, '%')
|
137
|
</if>
|
137
|
</if>
|
|
|
|
|
169
|
t.org_id = #{orgId}
|
169
|
t.org_id = #{orgId}
|
170
|
and t.event_type = 'h5'
|
170
|
and t.event_type = 'h5'
|
171
|
AND t.target_id = #{drainageId}
|
171
|
AND t.target_id = #{drainageId}
|
172
|
- AND t3.share_person_id is not null
|
|
|
|
|
172
|
+ AND (t.share_person_id != NULL or t.share_person_id != '')
|
173
|
<if test="sharePersonPhone != null and sharePersonPhone != ''">
|
173
|
<if test="sharePersonPhone != null and sharePersonPhone != ''">
|
174
|
AND t3.phone like CONCAT('%',#{sharePersonPhone}, '%')
|
174
|
AND t3.phone like CONCAT('%',#{sharePersonPhone}, '%')
|
175
|
</if>
|
175
|
</if>
|