| | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | import com.panzhihua.common.model.dtos.property.CommonPage; |
| | | import com.panzhihua.common.model.vos.community.*; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.apache.ibatis.annotations.Select; |
| | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.panzhihua.common.model.dtos.PageBaseDTO; |
| | | import com.panzhihua.common.model.dtos.community.bigscreen.work.ScreenActActivityListDTO; |
| | | import com.panzhihua.common.model.vos.community.*; |
| | | import com.panzhihua.common.model.vos.community.ComActActivityStatisticsVO; |
| | | import com.panzhihua.common.model.vos.community.ComActActivityTypeVO; |
| | | import com.panzhihua.common.model.vos.community.ComActActivityVO; |
| | | import com.panzhihua.common.model.vos.community.CommunityActivitiesVO; |
| | | import com.panzhihua.common.model.vos.community.PartyActivityStatics; |
| | | import com.panzhihua.common.model.vos.community.PartyActivityTypeChart; |
| | | import com.panzhihua.common.model.vos.community.StatisticsCommVO; |
| | | import com.panzhihua.common.model.vos.community.screen.work.ActActivityListVO; |
| | | import com.panzhihua.common.model.vos.screen.CarouselInfoVO; |
| | | import com.panzhihua.service_community.model.dos.ComActActivityDO; |
| | |
| | | + "a.`status`, " + "a.is_qr_code, " + "a.publish_at, " + "a.begin_at, " + "a.cover, " + "a.end_at, " + "a.volunteer_max, " |
| | | + "count(if(s.is_volunteer=1,s.id,null))volunteer_now, " |
| | | + "count(if(s.is_volunteer=0,s.id,null))participant_now, " + "a.participant_max, " + "a.sign_up_begin, " |
| | | + "a.sign_up_end, " + "ca.name as communityName " + "FROM " + "com_act_activity a " |
| | | + "a.sign_up_end, " + "ca.name as communityName,a.type " + "FROM " + "com_act_activity a " |
| | | + "left join sys_user u on a.sponsor_id=u.user_id " + "left join (select * from com_act_act_sign where `status` = 1) s on a.id=s.activity_id " |
| | | + "left join com_act ca on a.community_id=ca.community_id " + " where 1=1 " + |
| | | |
| | |
| | | + "<if test='comActActivityVO.isApplets != null and comActActivityVO.isApplets ==1'>" |
| | | + "AND a.`status` != 1 AND a.`status` != 6 " + " </if> " + "<if test='comActActivityVO.beginAt != null '>" |
| | | + "AND a.begin_at <![CDATA[ >= ]]> #{comActActivityVO.beginAt} AND a.end_at <![CDATA[ <= ]]> #{comActActivityVO.endAt} " |
| | | + " </if> " + "<if test='comActActivityVO.type != null and comActActivityVO.type==1 '>" |
| | | + "AND a.volunteer_max!=0 " + " </if> " |
| | | + "<if test='comActActivityVO.type != null and comActActivityVO.type==2 '>" + "AND a.volunteer_max=0 " |
| | | + " </if> " + " group by a.id " + " order by a.status asc,a.publish_at desc " + "</script>") |
| | | + " </if> " + "<if test='comActActivityVO.type != null'>" |
| | | + "AND a.type=#{comActActivityVO.type} " + " </if> " |
| | | + " group by a.id " + " ORDER BY a.status = 99 desc,a.publish_at DESC " + "</script>") |
| | | IPage<ComActActivityVO> pageActivity(Page page, @Param("comActActivityVO") ComActActivityVO comActActivityVO); |
| | | |
| | | // @Select("SELECT " + "u.name sponsorName, " + "ca.name communityName, " |
| | |
| | | IPage<ComActActivityVO> indexActList(@Param("page") Page page, @Param("pageBaseDTO") PageBaseDTO pageBaseDTO, @Param("isResidentAct") boolean isResidentAct); |
| | | |
| | | /** |
| | | * 查询项目活动列表 |
| | | * @param page |
| | | * @return |
| | | */ |
| | | IPage<ActActivityListVO> selectProjectActivity(Page page); |
| | | |
| | | /** |
| | | * 根据社工id查询活动列表 |
| | | * @param page |
| | | * @param id |
| | | * @return |
| | | */ |
| | | IPage<ActActivityListVO> selectActivityBySocialWorker(Page page,@Param("id")Long id); |
| | | |
| | | /** |
| | | * [方法描述] 根据社区ID查询所属城市所在区区域代码, |
| | | * |
| | | * |
| | | * @param communityId |
| | | * 社区ID |
| | | * @return String 区域code |
| | |
| | | * @date 2022/2/17 10:09 |
| | | */ |
| | | String getActBelongRegionCode(@Param("communityId") Long communityId); |
| | | |
| | | /** |
| | | * 查询党员活动数量 |
| | | * @param communityId |
| | | * @return |
| | | */ |
| | | PartyActivityStatics selectActivityStatics(Long communityId); |
| | | |
| | | /** |
| | | * 党员活动饼状图 |
| | | * @param communityId |
| | | * @return |
| | | */ |
| | | List<PartyActivityTypeChart> selectActivityChart(Long communityId); |
| | | |
| | | /** |
| | | * 党员活动柱状图 |
| | | * @param communityId |
| | | * @param year |
| | | * @param date |
| | | * @return |
| | | */ |
| | | Integer selectActivityLine(@Param("communityId") Long communityId,@Param("year")String year,@Param("date")String date); |
| | | |
| | | /** |
| | | * 分页查询党员详情活动 |
| | | * @param page |
| | | * @param commonPage |
| | | * @return |
| | | */ |
| | | IPage<PartyMemberDetailVO> partyMemberDetail(Page page,@Param("commonPage") CommonPage commonPage); |
| | | |
| | | /** |
| | | * 导出党员详情活动 |
| | | * @param commonPage |
| | | * @return |
| | | */ |
| | | List<PartyMemberDetailExcelVO> exportPartyMemberDetail(@Param("commonPage") CommonPage commonPage); |
| | | } |