| | |
| | | <select id="institutionalPartyMemberActAnalysis" |
| | | resultType="com.panzhihua.common.model.vos.neighbor.PartyMemberAnalysisVO"> |
| | | SELECT count(canc.solve_id) as serviceTimes,sum(canc.real_service_time) as serviceTime |
| | | ,canc.community_id as communityId,cpm.id as memberId,cpm.name as memberName,cpcu.name as belongUnit,ca.name as belongCommunity,cpcu.belong_to |
| | | ,canc.community_id as communityId,canc.solve_id as memberId,su.name as memberName,cpcu.name as belongUnit,ca.name as belongCommunity,cpcu.belong_to |
| | | FROM `com_act_neighbor_circle` as canc |
| | | left join com_pb_member as cpm on canc.solve_id=cpm.id |
| | | left join com_pb_check_unit as cpcu on cpm.check_unit_id=cpcu.id |
| | | left join com_act as ca on cpm.community_id=ca.community_id |
| | | left join sys_user as su on canc.solve_id=su.user_id |
| | | left join com_act as ca on su.community_id=ca.community_id |
| | | left join com_pb_check_unit as cpcu on ca.community_id=cpcu.community_id |
| | | where canc.solve_id<>'' |
| | | <if test="beginTime != null"> |
| | | and caa.create_at between #{beginTime} and #{endTime} |
| | |
| | | and belong_to=#{belongTo} |
| | | </if> |
| | | GROUP BY (canc.solve_id) |
| | | having serviceTimes<>'' and serviceTime<>'' |
| | | having serviceTimes<>'' and serviceTime<>'' and memberName<>'' |
| | | </select> |
| | | |
| | | |