|
@ -92,11 +92,12 @@ |
|
|
count( p.id ) AS value |
|
|
count( p.id ) AS value |
|
|
FROM |
|
|
FROM |
|
|
ic_volunteer_poly p |
|
|
ic_volunteer_poly p |
|
|
LEFT JOIN ic_volunteer_poly_category c ON p.ID_CARD = c.ID_CARD |
|
|
LEFT JOIN ic_volunteer_poly_category c ON p.ID_CARD = c.ID_CARD AND c.del_flag = '0' |
|
|
WHERE |
|
|
WHERE |
|
|
p.CUSTOMER_ID = #{customerId} and c.VOLUNTEER_CATEGORY is not null |
|
|
p.CUSTOMER_ID = #{customerId} and c.VOLUNTEER_CATEGORY is not null |
|
|
AND |
|
|
AND |
|
|
c.VOLUNTEER_CATEGORY != '' |
|
|
c.VOLUNTEER_CATEGORY != '' |
|
|
|
|
|
AND p.del_flag = '0' |
|
|
GROUP BY |
|
|
GROUP BY |
|
|
c.VOLUNTEER_CATEGORY |
|
|
c.VOLUNTEER_CATEGORY |
|
|
</select> |
|
|
</select> |
|
|