|
|
@ -82,7 +82,7 @@ |
|
|
|
FROM customer_agency ca |
|
|
|
left join staff_login_log l ON ( ca.ID =l.AGENCY_ID and l.DEL_FLAG = '0') |
|
|
|
WHERE |
|
|
|
and ca.DEL_FLAG = '0' |
|
|
|
ca.DEL_FLAG = '0' |
|
|
|
and (ca.id=#{orgId} or ca.pids like concat('%',#{orgId},'%') ) |
|
|
|
AND ca.LEVEL = 'district' |
|
|
|
<if test ='null != startDate'> |
|
|
@ -106,7 +106,7 @@ |
|
|
|
FROM customer_agency ca |
|
|
|
left join staff_login_log l ON ( ca.ID =l.AGENCY_ID and l.DEL_FLAG = '0') |
|
|
|
WHERE |
|
|
|
and ca.DEL_FLAG = '0' |
|
|
|
ca.DEL_FLAG = '0' |
|
|
|
and (ca.id = #{orgId} or ca.pids like concat('%',#{orgId},'%') ) |
|
|
|
AND ca.LEVEL = 'street' |
|
|
|
<if test ='null != startDate'> |
|
|
|