| | |
| | | import com.panzhihua.common.model.dtos.PageBaseDTO; |
| | | import com.panzhihua.common.model.vos.community.StatisticsCommVO; |
| | | import com.panzhihua.common.model.vos.neighbor.*; |
| | | import com.panzhihua.service_community.entity.NewFightNeedProblemClaim; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.apache.ibatis.annotations.Select; |
| | |
| | | |
| | | ComActNeighborCircleDetailAppVO neighborDetailByApp(@Param("circleId") Long circleId); |
| | | |
| | | |
| | | IPage<ComActNeighborCircleAdminVO> pageNeighborByAdmin(Page page,@Param("neighborCircleAdminDTO") ComActNeighborCircleAdminDTO neighborCircleAdminDTO); |
| | | |
| | | /** |
| | | * 大屏清单查询 |
| | | * @param page |
| | | * @param neighborCircleAdminDTO |
| | | * @return |
| | | */ |
| | | IPage<ComActNeighborCircleAdminVO> pageNeighborByBigScreen(Page page,@Param("neighborCircleAdminDTO") ComActNeighborCircleAdminDTO neighborCircleAdminDTO); |
| | | |
| | | @Select("select * from sys_user where user_id=#{userId}") |
| | | AdministratorsUserVO selectUserByUserId(@Param("userId") Long userId); |
| | |
| | | + "UNION ALL " |
| | | + "SELECT COUNT(id) as num,'一起议' as name FROM com_act_discuss WHERE community_id = ${communityId} " |
| | | + "UNION ALL " |
| | | + "SELECT COUNT(id) as num,'邻里圈' as name FROM com_act_neighbor_circle WHERE community_id = ${communityId} AND STATUS = 2 and belong_type = 1" |
| | | + "SELECT COUNT(id) as num,'邻里圈' as name FROM com_act_neighbor_circle WHERE community_id = ${communityId} AND STATUS = 2 and belong_type = 1 " |
| | | + "UNION ALL " |
| | | + "SELECT COUNT( e.id ) AS num,'网格事件' AS name FROM `event` as e left join event_grid_data as egd on egd.id = e.grid_id WHERE egd.grid_community_id = ${communityId} AND e.event_process_status = 2 " |
| | | + "UNION ALL " |
| | |
| | | + "UNION ALL " |
| | | + "SELECT COUNT(id) as num,'一起议' as name FROM com_act_discuss WHERE community_id = ${communityId} " |
| | | + "UNION ALL " |
| | | + "SELECT COUNT(id) as num,'邻里圈' as name FROM com_act_neighbor_circle WHERE community_id = ${communityId} AND STATUS = 1 and belong_type = 1" |
| | | + "SELECT COUNT(id) as num,'邻里圈' as name FROM com_act_neighbor_circle WHERE community_id = ${communityId} AND STATUS = 1 and belong_type = 1 " |
| | | + "UNION ALL " |
| | | + "SELECT COUNT( e.id ) AS num,'网格事件' AS NAME FROM `event` as e left join event_grid_data as egd on egd.id = e.grid_id WHERE egd.grid_community_id = ${communityId} AND e.event_status = 2 and e.event_deal_status in (1,2,3) " |
| | | + "UNION ALL " |
| | |
| | | |
| | | ServiceStaticsVO selectStatsCheckUnit(@Param("checkUnitId") Long checkUnitId,@Param("date")String date); |
| | | |
| | | ServiceStaticsVO selectStatsUser(@Param("phone") String phone, @Param("date")String date); |
| | | ServiceStaticsVO selectStatsUser(@Param("phone") String phone,@Param("checkUnitId")String checkUnitId, @Param("date")String date); |
| | | |
| | | List<ComActNeighborCircleAppVO> selectListByCheckUnitId(@Param("checkUnitId")Long checkUnitId,@Param("date")String date); |
| | | |
| | |
| | | /** |
| | | * 单位服务统计 |
| | | */ |
| | | List<UnitActivityAnalysisVO> institutionalUnitServiceAnalysis(@Param("beginTime") String beginTime, @Param("endTime") String endTIme, @Param("belongTo") String belongTo,@Param("communityId") Long communityId); |
| | | List<UnitActivityAnalysisVO> institutionalUnitActivityAnalysis(@Param("beginTime") String beginTime, @Param("endTime") String endTIme, @Param("belongTo") String belongTo,@Param("communityId") Long communityId); |
| | | List<UnitActivityAnalysisVO> institutionalUnitServiceAnalysis(@Param("beginTime") String beginTime, |
| | | @Param("endTime") String endTIme, |
| | | @Param("belongTo") String belongTo, |
| | | @Param("communityId") Long communityId, |
| | | @Param("unitId") Long unitId); |
| | | |
| | | List<PartyMemberAnalysisVO> institutionalPartyMemberServiceAnalysis(@Param("beginTime") String beginTime, @Param("endTime") String endTIme, @Param("belongTo") String belongTo,@Param("communityId") Long communityId,@Param("unitId") Long unitId); |
| | | List<PartyMemberAnalysisVO> institutionalPartyMemberActAnalysis(@Param("beginTime") String beginTime, @Param("endTime") String endTIme, @Param("belongTo") String belongTo,@Param("communityId") Long communityId,@Param("unitId") Long unitId); |
| | | List<UnitActivityAnalysisVO> getNewTaskList(@Param("beginTime") String beginTime, |
| | | @Param("endTime") String endTIme, |
| | | @Param("belongTo") String belongTo, |
| | | @Param("communityId") Long communityId); |
| | | |
| | | List<UnitActivityAnalysisVO> institutionalUnitActivityAnalysis(@Param("beginTime") String beginTime, |
| | | @Param("endTime") String endTIme, |
| | | @Param("belongTo") String belongTo, |
| | | @Param("communityId") Long communityId, |
| | | @Param("unitId") Long unitId); |
| | | |
| | | List<PartyMemberAnalysisVO> getNewPartyMemberTaskList(@Param("beginTime") String beginTime, |
| | | @Param("endTime") String endTIme, |
| | | @Param("belongTo") String belongTo, |
| | | @Param("communityId") Long communityId, |
| | | @Param("unitId") Long unitId, |
| | | @Param("searchContent") String searchContent |
| | | ); |
| | | List<PartyMemberAnalysisVO> institutionalPartyMemberServiceAnalysis(@Param("beginTime") String beginTime, |
| | | @Param("endTime") String endTIme, |
| | | @Param("belongTo") String belongTo, |
| | | @Param("communityId") Long communityId, |
| | | @Param("unitId") Long unitId, |
| | | @Param("searchContent") String searchContent |
| | | ); |
| | | List<PartyMemberAnalysisVO> institutionalPartyMemberActAnalysis(@Param("beginTime") String beginTime, |
| | | @Param("endTime") String endTIme, |
| | | @Param("belongTo") String belongTo, |
| | | @Param("communityId") Long communityId, |
| | | @Param("unitId") Long unitId, |
| | | @Param("searchContent") String searchContent); |
| | | List<PartyMemberAnalysisVO> institutionalPartyMemberServiceAnalysisByServicesTimes(@Param("beginTime") String beginTime, @Param("endTime") String endTIme, @Param("belongTo") String belongTo); |
| | | |
| | | /** |
| | |
| | | * @return |
| | | */ |
| | | Integer selectCount(@Param("type") Integer type,@Param("phone") String phone,@Param("communityId") Long communityId); |
| | | |
| | | /** |
| | | * 分页查询可关联清单列表 |
| | | * @param neighborCircleAppDTO |
| | | * @return |
| | | */ |
| | | IPage<ComActNeighborCircleAppVO> pageRelationList(@Param("userPage") Page userPage, @Param("neighborCircleAppDTO") ComActNeighborCircleAppDTO neighborCircleAppDTO); |
| | | |
| | | /** |
| | | * 单位获取服务明细 |
| | | * @param checkUnitId |
| | | * @param date |
| | | * @param serviceType |
| | | * @return |
| | | */ |
| | | List<ServiceDetailStaticsVO> selectServiceDetailList(@Param("checkUnitId") Long checkUnitId, @Param("date") String date, @Param("serviceType") Integer serviceType); |
| | | |
| | | /** |
| | | * 个人获取服务明细 |
| | | * @param checkUnitId |
| | | * @param phone |
| | | * @param date |
| | | * @param serviceType |
| | | * @return |
| | | */ |
| | | List<ServiceDetailStaticsVO> selectServiceDetailListForPersonal(@Param("checkUnitId") Long checkUnitId, @Param("phone") String phone, @Param("date") String date, @Param("serviceType") Integer serviceType); |
| | | |
| | | |
| | | /** |
| | | * 根据手机好查询用户完成清单任务 |
| | | * @param phone |
| | | * @return |
| | | */ |
| | | List<NewFightNeedProblemClaim> getNewServiceNum(@Param("phone") String phone,@Param("unitId") String unitId); |
| | | |
| | | |
| | | } |