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/common/src/main/java/com/panzhihua/common/service/community/CommunityService.java | 122 +++++++++++++++++++++++++++++++++++++--- 1 files changed, 112 insertions(+), 10 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/service/community/CommunityService.java b/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/service/community/CommunityService.java index 360fd6f..60a2e85 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/service/community/CommunityService.java +++ b/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/service/community/CommunityService.java @@ -3,18 +3,22 @@ import java.util.Date; import java.util.List; -import com.panzhihua.common.model.dtos.PageBaseDTO; +import com.panzhihua.common.model.dtos.*; import com.panzhihua.common.model.dtos.community.*; import com.panzhihua.common.model.dtos.community.acid.*; +import com.panzhihua.common.model.dtos.community.building.BuildingDto; import com.panzhihua.common.model.dtos.community.convenient.*; import com.panzhihua.common.model.dtos.community.dpc.AddDpcDTO; import com.panzhihua.common.model.dtos.community.dpc.EditDpcDTO; import com.panzhihua.common.model.dtos.community.dpc.PageDpcDTO; import com.panzhihua.common.model.dtos.community.enterprise.*; +import com.panzhihua.common.model.dtos.community.large.AreaStreetDetail; +import com.panzhihua.common.model.dtos.community.large.SumAreaStreetResp; import com.panzhihua.common.model.dtos.community.reserve.*; import com.panzhihua.common.model.dtos.community.sanshuo.*; import com.panzhihua.common.model.dtos.community.warehouse.ComActWarehouseApplyDTO; import com.panzhihua.common.model.dtos.community.cluster.PageClusterMemberDto; +import com.panzhihua.common.model.dtos.partybuilding.QryReportResp; import com.panzhihua.common.model.dtos.property.CommonPage; import com.panzhihua.common.model.dtos.community.discuss.ComActDiscussDetailDTO; import com.panzhihua.common.model.dtos.community.discuss.ComActDiscussPublishResultDTO; @@ -39,7 +43,6 @@ import com.panzhihua.common.model.vos.community.reserve.ComActReserveDangerAreaVO; import com.panzhihua.common.model.vos.shop.AddShopFlowerGoodsVO; import com.panzhihua.common.utlis.StringUtils; -import com.panzhihua.service_community.entity.VolunteerCommunityConfigVO; import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiParam; import org.springframework.cloud.openfeign.FeignClient; @@ -52,8 +55,6 @@ import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestParam; -import com.panzhihua.common.model.dtos.AppletesBackstageConfigDTO; -import com.panzhihua.common.model.dtos.PageDTO; import com.panzhihua.common.model.dtos.advertisement.ComOpsAdvDTO; import com.panzhihua.common.model.dtos.advertisement.PageComOpsAdvDTO; import com.panzhihua.common.model.dtos.civil.ComActSocialWorkerAddDTO; @@ -256,6 +257,7 @@ import org.springframework.web.multipart.MultipartFile; import javax.annotation.Resource; +import javax.servlet.http.HttpServletResponse; /** * @program: springcloud_k8s_panzhihuazhihuishequ @@ -1521,6 +1523,16 @@ @PostMapping("pagediscusscommentapplets") R pageDiscussCommentApplets(@RequestBody PageComActDiscussCommentDTO pageComActDiscussCommentDTO); + + /** + * 议事投票-评论-删除 小程序 + * + * 分页参数 + * @return ComActDiscussCommentVO + */ + @GetMapping("deleteCommentApplets") + R deleteCommentApplets(@RequestParam("id") String id); + /** * 议事投票-评论-分页查询 小程序 脱敏 * @@ -2708,7 +2720,7 @@ * @return 问卷调查详情 */ @GetMapping("/questnaire/view/detail") - R viewDetail(@RequestParam("userId") Long userId, @RequestParam("questId") Long questId); + R viewDetail( @RequestParam("questId") Long questId,@RequestParam("userId") Long userId); /** * 小程序-新增问卷调查浏览数量 @@ -5047,6 +5059,8 @@ @GetMapping("/neighbor/getNeighborTopicByApp") R getNeighborTopicByApp(@RequestParam("name") String name); + @GetMapping("/neighbor/getNeighborTopicByAppNew") + R getNeighborTopicByAppNew(@RequestParam("name") String name); /** * 删除话题 * @param id @@ -9951,12 +9965,28 @@ * 单位活动统计 */ @GetMapping("/neighbor/activityAnalysis") - R institutionalUnitServiceAnalysis(@RequestParam(value = "year",required = false) Integer year,@RequestParam(value = "type",required = false) Integer type, - @RequestParam(value = "range",required = false)Integer range,@RequestParam(value = "communityId",required = false) Long communityId, + R institutionalUnitServiceAnalysis(@RequestParam(value = "year",required = false) Integer year, + @RequestParam(value = "type",required = false) Integer type, + @RequestParam(value = "range",required = false)Integer range, + @RequestParam(value = "communityId",required = false) Long communityId, @RequestParam(value = "page",required = false) Integer page, @RequestParam(value = "size",required = false) Integer size, @RequestParam(value = "belongTo",required = false) String belongTo, - @RequestParam(value = "unitId",required = false) Long unitId,@RequestParam(value = "loginAccount",required = false) String loginAccount); + @RequestParam(value = "unitId",required = false) Long unitId, + @RequestParam(value = "loginAccount",required = false) String loginAccount, + @RequestParam(value = "searchContent",required = false) String searchContent); + + @GetMapping("/neighbor/export") + public List<ExcelDO> export(@RequestParam(value = "year",required = false) Integer year, + @RequestParam(value = "belongTo",required = false) String belongTo, + @RequestParam(value = "communityId",required = false) Long communityId); + + @GetMapping("/neighbor/partyExcel") + public List<PartyExcelDO> partyExcel(@RequestParam(value = "year",required = false) Integer year, + @RequestParam(value = "belongTo",required = false) String belongTo, + @RequestParam(value = "communityId",required = false) Long communityId, + @RequestParam(value = "unitId",required = false) Long unitId); + /** * 批量删除活动 * @param ids @@ -11830,7 +11860,7 @@ * 报名参数 * @return 报名 取消报名 结果 */ - @PostMapping("jinhuiSignActivity") + @PostMapping("/jinhui/jinhuiSignActivity") public R jinhuiSignActivity(@RequestBody SignactivityVO signactivityVO); @@ -11841,9 +11871,81 @@ * @param comActActRegistVO 签到参数 * @return 签到结果 */ - @PostMapping("jinhuiActivitySignIn") + @PostMapping("/jinhui/jinhuiActivitySignIn") public R jinhuiActivitySignIn(@RequestBody ComActActRegistVO comActActRegistVO); + + @GetMapping("/integral/user/getIntegralUserRank") + public R getIntegralUserRank(@RequestParam("communityId") Long communityId, + @RequestParam("userId") Long userId); + + + @GetMapping("/largeScreen/panzhihuaMap") + public R panzhihuaMap(@RequestParam("areaCode")String areaCode); + + @GetMapping("/largeScreen/oneTagThreeReal") + public R oneTagThreeReal(@RequestParam("streetId") Long streetId); + + @PostMapping("/largeScreen/searchStreet") + public R searchStreet(@RequestBody BuildingDto buildingDto); + + @PostMapping("/largeScreen/huachengDyn") + public R huachengDyn(@RequestBody ComActDynVO comActDynVO); + + @GetMapping("/largeScreen/getScreenStatics") + public R getScreenStatics(); + + @GetMapping("/largeScreen/populationStatics") + public R populationStatics(@RequestParam("streetId") Long streetId); + + @GetMapping("/largeScreen/probably") + public R probably(@RequestParam("year") Integer year,@RequestParam("belongTo") String belongTo); + /** + * 查询 一标三实 数据 + */ + @GetMapping("/largeScreen/sumAreaStreet") + R<SumAreaStreetResp> sumAreaStreet(); + + + /** + * 下拉 明细 + */ + @GetMapping(("/largeScreen/areaStreetDetail")) + R<AreaStreetDetail> areaStreetDetail(@RequestParam("code") String code, + @RequestParam("type") String type); + + @GetMapping("/largeScreen/qryReport") + R<List<QryReportResp>> qryReport(@RequestParam(value = "yearTime",required = false) String yearTime); + + + /***************************************************************************************************************** + * + * 社区宣传 + * + ******************************************************************************************************************/ + @GetMapping("/sys/conf/getCommunityPublicityData") + public R getCommunityPublicityData(@RequestParam("communityId") String communityId); + + @PostMapping("/sys/conf/addCommunityPublicityDate") + public R addCommunityPublicityDate(@RequestBody CommunityPublicityVO item); + + @PostMapping("/sys/conf/editCommunityPublicityDate") + public R editCommunityPublicityDate(@RequestBody CommunityPublicityVO item); + + @DeleteMapping("/sys/conf/deleteCommunityPublicityData") + public R deleteCommunityPublicityData(@RequestParam("communityId") String communityId); + + + + /** + * 社区活动自动定时更新用户未签退时间 + * @return + */ + @GetMapping("/comActAcidRecord/comActActRegistUpdateEndTime") + public R comActActRegistUpdateEndTime(); + + + } -- Gitblit v1.7.1