|
@@ -296,7 +296,7 @@ FROM
|
296
|
296
|
tp.create_date as create_date
|
297
|
297
|
FROM
|
298
|
298
|
ta_person tp
|
299
|
|
- where ifnull(tp.person_type, '') != #{personType}
|
|
299
|
+ where ifnull(tp.person_type, '') != #{personType} and tp.org_id = #{orgId}
|
300
|
300
|
and tp.phone is NOT NULL
|
301
|
301
|
<if test="startDate != null or endDate != null">
|
302
|
302
|
AND tp.create_date BETWEEN #{startDate} and #{endDate}
|
|
@@ -334,7 +334,7 @@ FROM
|
334
|
334
|
tp.create_date as create_date
|
335
|
335
|
FROM
|
336
|
336
|
ta_person tp
|
337
|
|
- where tp.org_id = #{org} AND ifnull(tp.person_type, '') != #{personType}
|
|
337
|
+ where ifnull(tp.person_type, '') != #{personType} and tp.org_id = #{orgId}
|
338
|
338
|
<if test="startDate != null or endDate != null">
|
339
|
339
|
AND tp.create_date BETWEEN #{startDate} and #{endDate}
|
340
|
340
|
</if>
|