| | |
| | | FROM `com_act_activity` as caa |
| | | left join com_act_act_regist as caar on caa.id=caar.activity_id |
| | | left join sys_user as su on caar.user_id=su.user_id |
| | | left join com_pb_check_unit as cpcu on su.phone=cpcu.phone |
| | | left join com_pb_member as cpm on su.phone=cpm.phone |
| | | left join com_pb_check_unit as cpcu on cpm.check_unit_id=cpcu.id |
| | | left join com_act as ca on cpcu.community_id=ca.community_id |
| | | where caar.sign_identity = 2 AND cpcu.id IS NOT NULL |
| | | <if test="beginTime != null"> |
| | |
| | | ,cpcu.community_id as communityId,canc.solve_id as memberId,su.name as memberName,su.relation_name as belongUnit,ca.name as belongCommunity,cpcu.belong_to |
| | | FROM `com_act_neighbor_circle` as canc |
| | | left join sys_user as su on canc.solve_id=su.user_id |
| | | left join com_pb_check_unit as cpcu on su.phone=cpcu.phone |
| | | left join com_pb_member as cpm on su.phone=cpm.phone |
| | | left join com_pb_check_unit as cpcu on cpm.check_unit_id=cpcu.id |
| | | left join com_act as ca on cpcu.community_id=ca.community_id |
| | | where cpcu.id IS NOT NULL |
| | | <if test="beginTime != null"> |