From 179c4d64313c9b7572778da4aaaf6c6584fe457d Mon Sep 17 00:00:00 2001 From: mitao <2763622819@qq.com> Date: 星期二, 20 五月 2025 23:48:08 +0800 Subject: [PATCH] 修改文件上传类型限制 --- springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComMngVolunteerMngDAO.java | 61 +++++++++++++++++++++++++----- 1 files changed, 50 insertions(+), 11 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComMngVolunteerMngDAO.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComMngVolunteerMngDAO.java index b4267d7..b761fc7 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComMngVolunteerMngDAO.java +++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComMngVolunteerMngDAO.java @@ -2,6 +2,8 @@ import java.util.List; +import com.panzhihua.common.model.vos.community.StatisticsCommVO; +import com.panzhihua.common.model.vos.community.bigscreen.BigScreenVolunteerStatisticsInfo; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Select; @@ -31,17 +33,6 @@ IPage<ComMngVolunteerMngVO> pageVolunteer(Page page, @Param("comMngVolunteerMngVO") ComMngVolunteerMngVO comMngVolunteerMngVO); - @Select("<script> " + "SELECT\n" + "t.id,\n" + "t.`name`,\n" + "t.state,\n" + "t.phone,\n" + "t.apply_reson,\n" - + "t.create_at, " + "t.submit_user_id \n" + "FROM\n" + "com_mng_volunteer_mng t\n" + " RIGHT JOIN \n" - + "(select submit_user_id, MAX(create_at)create_at from com_mng_volunteer_mng where state IN ( 1, 3 ) GROUP BY submit_user_id ) tmp \n" - + "on t.create_at = tmp.create_at and t.submit_user_id=tmp.submit_user_id " + "WHERE\n" - + "state in (1,3) and community_id = ${comMngVolunteerMngVO.communityId} \n" - + "<if test='comMngVolunteerMngVO.name != null and comMngVolunteerMngVO.name.trim() != ""'>" - + "and t.name like concat(#{comMngVolunteerMngVO.name},'%') \n" + " </if> " - + "<if test='comMngVolunteerMngVO.phone != null and comMngVolunteerMngVO.phone.trim() != ""'>" - + "AND t.phone like concat(#{comMngVolunteerMngVO.phone},'%')\n" + " </if> " - + "<if test='comMngVolunteerMngVO.state != null and comMngVolunteerMngVO.state != 0'>" - + "and t.state=#{comMngVolunteerMngVO.state}\n" + " </if> " + " \tORDER BY t.state asc " + "</script>") IPage<ComMngVolunteerMngVO> pageVolunteerExamine(Page page, @Param("comMngVolunteerMngVO") ComMngVolunteerMngVO comMngVolunteerMngVO); @@ -55,4 +46,52 @@ @Select("select id_card from sys_user where type=1 and phone=#{idCard}") Long selectUserIdByIdCard(String idCard); + /** + * 志愿者-组织直方图数据 + * @param communityId + * @return + */ + List<StatisticsCommVO> retrieveVolunteerOrgHistogram(@Param("communityId") Long communityId); + + /** + * 获取杨家坪定制页面-志愿服务基础数据 + * @param communityId + * @return + */ + BigScreenVolunteerStatisticsInfo getVolunteerBaseData(@Param("communityId") Long communityId); + + /** + * 获取志愿者数据 + * @param communityId + * @return + */ + List<ComMngVolunteerMngVO> retrieveVolunteerServiceTypeCircleData(@Param("communityId") Long communityId); + + /** + * 志愿者年龄段占比圆形图数据 + * @param communityId + * @return + */ + List<StatisticsCommVO> retrieveVolunteerAgeCircleData(@Param("communityId") Long communityId); + + /** + * 志愿者技能占比圆形图 + * @param communityId + * @return + */ + List<ComMngVolunteerMngVO> retrieveVolunteerSkillCircleData(@Param("communityId") Long communityId); + + /** + * 根据社区id查询志愿者 + * @param communityId + * @return + */ + List<ComMngVolunteerMngVO> selectVolunteerByCommunityId(@Param("communityId") Long communityId); + + /** + * 志愿者审核详情 + * @param id + * @return + */ + ComMngVolunteerMngVO detailVolunteerExamine(@Param("id") Long id); } -- Gitblit v1.7.1