From 00a59b93c16b24e7be77c6f1ce4866c75a2e0431 Mon Sep 17 00:00:00 2001 From: 101captain <237651143@qq.com> Date: 星期二, 19 四月 2022 16:32:21 +0800 Subject: [PATCH] 花城E+防疫修改 --- springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComActMicroWishDAO.java | 69 ++++++++++++++++++++++++++++++---- 1 files changed, 61 insertions(+), 8 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComActMicroWishDAO.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComActMicroWishDAO.java index f023125..573ea41 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComActMicroWishDAO.java +++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComActMicroWishDAO.java @@ -3,9 +3,12 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.panzhihua.common.model.dtos.PageBaseDTO; import com.panzhihua.common.model.dtos.community.bigscreen.work.ScreenMicroListDTO; import com.panzhihua.common.model.vos.community.ComActMicroWishVO; +import com.panzhihua.common.model.vos.community.StatisticsCommVO; import com.panzhihua.common.model.vos.community.TodoEventsVO; +import com.panzhihua.common.model.vos.community.bigscreen.BigScreenMicroWishStatisticsInfo; import com.panzhihua.common.model.vos.community.screen.work.MicroListVO; import com.panzhihua.common.model.vos.user.SysUserVO; import com.panzhihua.service_community.model.dos.ComActMicroWishDO; @@ -65,7 +68,7 @@ " </if> " + " <where>" + "<if test='comActMicroWishVO.communityId != null and comActMicroWishVO.communityId != 0'>" + - " and w.community_id=#{comActMicroWishVO.communityId} " + + " and w.community_id = ${comActMicroWishVO.communityId} " + " </if> " + "<if test='comActMicroWishVO.sponsorPhone != null and comActMicroWishVO.sponsorPhone.trim() != ""'>" + "AND w.sponsor_phone like concat(#{comActMicroWishVO.sponsorPhone},'%') " + @@ -163,7 +166,7 @@ "FROM " + "com_act_micro_wish w " + "WHERE " + - "w.community_id = #{communityId} " + + "w.community_id = ${communityId} " + "AND w.`status` = 1 " + " " + "union all " + @@ -173,7 +176,7 @@ "FROM " + " com_act_micro_wish w " + "WHERE " + - " w.community_id = #{communityId} " + + " w.community_id = ${communityId} " + " AND w.`status` = 3 " + " AND w.form = 1 " + " AND w.responsible_id = #{userId} " + @@ -188,12 +191,12 @@ List<Long> getWishAutoConfirmIds(); @Select("SELECT COUNT(id) AS completedNum," + - "(SELECT COUNT(id) FROM com_act_micro_wish WHERE community_id = #{communityId} AND (status =1 OR status =2 OR status = 3 OR status = 5)) AS willNum ," + - "(SELECT COUNT(id) FROM com_act_micro_wish WHERE community_id = #{communityId} AND (status =1 OR status =2 OR status = 3 OR status = 5 OR status = 6) AND create_at LIKE CONCAT(#{nowDate},'%')) AS currentNum " + - "FROM com_act_micro_wish WHERE community_id = #{communityId} AND status = 6 ") + "(SELECT COUNT(id) FROM com_act_micro_wish WHERE community_id = ${communityId} AND (status =1 OR status =2 OR status = 3 OR status = 5)) AS willNum ," + + "(SELECT COUNT(id) FROM com_act_micro_wish WHERE community_id = ${communityId} AND (status =1 OR status =2 OR status = 3 OR status = 5 OR status = 6) AND create_at LIKE CONCAT(#{nowDate},'%')) AS currentNum " + + "FROM com_act_micro_wish WHERE community_id = ${communityId} AND status = 6 ") Map<String, Long> countByCommunityId(@Param("communityId") Long communityId,@Param("nowDate") String nowDate); - @Select("SELECT photo_path_list FROM com_act_micro_wish WHERE community_id = #{communityId} AND (status =1 OR status =2 OR status = 3 OR status = 5 OR status = 6) ORDER BY create_at DESC limit #{pageSize}") + @Select("SELECT photo_path_list FROM com_act_micro_wish WHERE community_id = ${communityId} AND (status =1 OR status =2 OR status = 3 OR status = 5 OR status = 6) ORDER BY create_at DESC limit #{pageSize}") List<String> getAllImgs(@Param("communityId") Long communityId,@Param("pageSize") Integer pageSize); @Select("<script> " + @@ -224,7 +227,7 @@ "AND camw.`status` =#{microListDTO.status} " + " </if> " + "<if test='microListDTO.communityId != null'>" + - "AND camw.community_id =#{microListDTO.communityId} " + + "AND camw.community_id = ${microListDTO.communityId} " + " </if> " + "<if test='microListDTO.startTime!=null and microListDTO.startTime != ""'>" + " AND DATE_FORMAT(camw.create_at,'%Y-%m-%d %H:%i:%s') <![CDATA[ >= ]]> #{microListDTO.startTime} " + @@ -246,4 +249,54 @@ List<SysUserVO> getWishHandleListAdmin(@Param("type") Integer type,@Param("communityId") Long communityId); SysUserVO getUserByUserId(@Param("userId") Long userId); + + /** + * 待实现&已实现数目及占比 + * @param communityId + * @return + */ + List<StatisticsCommVO> selectRealizePercent(@Param("communityId") Long communityId); + + /** + * 获取通过的微心愿图片 + * @param communityId + * @param pageSize + * @return + */ + List<String> getPassedAllImages(@Param("communityId") Long communityId, @Param("pageSize") Integer pageSize); + + /** + * 首页二级页面-微心愿基础数据查询 + * @param communityId + * @return + */ + BigScreenMicroWishStatisticsInfo selectIndexMicroWishBaseData(@Param("communityId") Long communityId); + + List<StatisticsCommVO> getMicroWishAddPolylineData(@Param("communityId") Long communityId); + + StatisticsCommVO getMicroWishTotalPolylineDate(@Param("communityId") Long communityId, @Param("date") String date); + + /** + * 微心愿大屏展示列表 + * @param page + * @param pageBaseDTO + * @return + */ + IPage<ComActMicroWishVO> selectScreenDisplayList(@Param("page") Page page, @Param("pageBaseDTO") PageBaseDTO pageBaseDTO); + + /** + * 金沙定制页面-志愿线展示列表 + * @param page + * @param pageBaseDTO + * @return + */ + IPage<ComActMicroWishVO> pagePartyBuildIngMicroWish(@Param("page") Page page, @Param("pageBaseDTO") PageBaseDTO pageBaseDTO); + + /** + * 金沙定制页面-四长四员解决问题展示列表 + * @param page + * @param pageBaseDTO + * @return + */ + IPage<ComActMicroWishVO> pageFourMemberResolve(@Param("page") Page page, @Param("pageBaseDTO") PageBaseDTO pageBaseDTO); } -- Gitblit v1.7.1