| | |
| | | WHERE |
| | | caas.`status` = 1 |
| | | AND caa.type = 1 |
| | | AND caas.user_id IN ( SELECT user_id FROM com_pb_member WHERE audit_result = 1 AND community_id = #{communityId} AND user_id IS NOT NULL |
| | | AND caas.user_id IN ( SELECT t1.user_id FROM com_pb_member t left join sys_user t1 on t.id_card=t1.id_card WHERE audit_result = 1 AND t.community_id = #{communityId} AND t1.type=1 |
| | | <if test="orgIds != null and orgIds.size > 0"> |
| | | AND org_id in |
| | | <foreach collection="orgIds" item="item" open="(" separator="," close=")"> |
| | |
| | | left join com_act_activity as caa2 on caa2.id = caas2.activity_id |
| | | WHERE |
| | | caas2.`status` = 1 and caa2.type = 3 |
| | | AND caas2.user_id IN ( SELECT user_id FROM com_pb_member WHERE audit_result = 1 AND community_id = #{communityId} AND user_id IS NOT NULL |
| | | AND caas2.user_id IN ( SELECT t1.user_id FROM com_pb_member t left join sys_user t1 on t.id_card=t1.id_card WHERE audit_result = 1 AND t.community_id = #{communityId} AND t1.type=1 |
| | | <if test="orgIds != null and orgIds.size > 0"> |
| | | AND org_id in |
| | | <foreach collection="orgIds" item="item" open="(" separator="," close=")"> |
| | |
| | | left join com_act_activity as caa1 on caa1.id = caas1.activity_id |
| | | WHERE |
| | | caas1.`status` = 1 and caa1.type = 1 |
| | | AND caas1.user_id IN ( SELECT user_id FROM com_pb_member WHERE audit_result = 1 AND community_id = #{communityId} AND user_id IS NOT NULL |
| | | AND caas1.user_id IN ( SELECT t1.user_id FROM com_pb_member t left join sys_user t1 on t.id_card=t1.id_card WHERE audit_result = 1 AND t.community_id = #{communityId} AND t1.type=1 |
| | | <if test="orgIds != null and orgIds.size > 0"> |
| | | AND org_id in |
| | | <foreach collection="orgIds" item="item" open="(" separator="," close=")"> |