|
@ -215,9 +215,20 @@ |
|
|
WHERE |
|
|
WHERE |
|
|
a.`LEVEL` = 'community' |
|
|
a.`LEVEL` = 'community' |
|
|
AND a.DEL_FLAG = '0' |
|
|
AND a.DEL_FLAG = '0' |
|
|
<if test="orgId!= null and orgId.trim() != ''"> |
|
|
<if test='null != startDate'> |
|
|
AND a.PIDS LIKE CONCAT('%',#{orgId},'%') |
|
|
and l.LOGIN_TIME >= #{startDate} |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test='null != endDate'> |
|
|
|
|
|
and l.LOGIN_TIME <= #{endDate} |
|
|
|
|
|
</if> |
|
|
|
|
|
<choose > |
|
|
|
|
|
<when test='isActivity!= null and isActivity == "1" and isActivity.trim() != ""'> |
|
|
|
|
|
AND l.AGENCY_ID is NOT NULL |
|
|
|
|
|
</when> |
|
|
|
|
|
<otherwise> |
|
|
|
|
|
AND l.AGENCY_ID is NULL |
|
|
|
|
|
</otherwise> |
|
|
|
|
|
</choose> |
|
|
GROUP BY |
|
|
GROUP BY |
|
|
a.ID |
|
|
a.ID |
|
|
) t; |
|
|
) t; |
|
|