|
|
@ -26,7 +26,7 @@ |
|
|
|
COUNT(rgm.id) AS gridGroupPeopleTotal |
|
|
|
FROM |
|
|
|
resi_group rg |
|
|
|
LEFT JOIN resi_group_member rgm ON rgm.resi_group_id = rg.id AND rmg.DEL_FLAG = 0 |
|
|
|
LEFT JOIN resi_group_member rgm ON rgm.resi_group_id = rg.id AND rgm.DEL_FLAG = 0 |
|
|
|
WHERE |
|
|
|
rg.DEL_FLAG = 0 |
|
|
|
AND rg.state = #{state} |
|
|
@ -45,7 +45,7 @@ |
|
|
|
COUNT( rgm.id ) AS groupCount |
|
|
|
FROM |
|
|
|
resi_group rg |
|
|
|
LEFT JOIN resi_group_member rgm ON rgm.resi_group_id = rg.id AND rmg.DEL_FLAG = 0 |
|
|
|
LEFT JOIN resi_group_member rgm ON rgm.resi_group_id = rg.id AND rgm.DEL_FLAG = 0 |
|
|
|
WHERE |
|
|
|
rg.DEL_FLAG = 0 |
|
|
|
AND rg.state = #{state} |
|
|
@ -94,7 +94,7 @@ |
|
|
|
COUNT(rgm.id) AS gridGroupPeopleTotal |
|
|
|
FROM |
|
|
|
resi_group rg |
|
|
|
LEFT JOIN resi_group_member rgm ON rgm.resi_group_id = rg.id AND rmg.DEL_FLAG = 0 |
|
|
|
LEFT JOIN resi_group_member rgm ON rgm.resi_group_id = rg.id AND rgm.DEL_FLAG = 0 |
|
|
|
WHERE |
|
|
|
rg.DEL_FLAG = 0 |
|
|
|
AND rg.state = 'approved' |
|
|
@ -112,7 +112,7 @@ |
|
|
|
COUNT( rgm.id ) AS groupCount |
|
|
|
FROM |
|
|
|
resi_group rg |
|
|
|
LEFT JOIN resi_group_member rgm ON rgm.resi_group_id = rg.id AND rmg.DEL_FLAG = 0 |
|
|
|
LEFT JOIN resi_group_member rgm ON rgm.resi_group_id = rg.id AND rgm.DEL_FLAG = 0 |
|
|
|
WHERE |
|
|
|
rg.DEL_FLAG = 0 |
|
|
|
AND rg.state = 'approved' |
|
|
@ -145,7 +145,7 @@ |
|
|
|
COUNT( rgm.id ) AS groupCount |
|
|
|
FROM |
|
|
|
resi_group rg |
|
|
|
LEFT JOIN resi_group_member rgm ON rgm.resi_group_id = rg.id AND rmg.DEL_FLAG = 0 |
|
|
|
LEFT JOIN resi_group_member rgm ON rgm.resi_group_id = rg.id AND rgm.DEL_FLAG = 0 |
|
|
|
WHERE |
|
|
|
rg.DEL_FLAG = 0 |
|
|
|
AND rg.state = 'approved' |
|
|
|