From 5abbd247039800d7540e30bcbb4ef79f480a40e8 Mon Sep 17 00:00:00 2001 From: Null <281575458@qq.com> Date: 星期五, 12 三月 2021 17:59:18 +0800 Subject: [PATCH] 模板导入便民服务 --- springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ConvenientApi.java | 35 +++++++++++++++++++++++++++++++++++ 1 files changed, 35 insertions(+), 0 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ConvenientApi.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ConvenientApi.java index bd36842..745830e 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ConvenientApi.java +++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/ConvenientApi.java @@ -1,14 +1,19 @@ package com.panzhihua.service_community.api; +import com.panzhihua.common.exceptions.PartyBuildingMemberException; import com.panzhihua.common.model.dtos.community.*; import com.panzhihua.common.model.vos.R; +import com.panzhihua.common.model.vos.community.ComCvtServeExcelVO; +import com.panzhihua.common.model.vos.partybuilding.PartyBuildingMemberExcelVO; import com.panzhihua.service_community.service.ComCvtBusinessService; import com.panzhihua.service_community.service.ComCvtCategoryService; import com.panzhihua.service_community.service.ComCvtServeService; +import io.swagger.annotations.ApiOperation; import lombok.extern.slf4j.Slf4j; import org.springframework.web.bind.annotation.*; import javax.annotation.Resource; +import java.util.List; /** * @description: 便民服务接口 @@ -38,6 +43,17 @@ @PostMapping("/business/page") public R pageComCvtBusiness(@RequestBody PageComCvtBusinessDTO pageComCvtBusinessDTO) { return comCvtBusinessService.pageComCvtBusiness(pageComCvtBusinessDTO); + } + + /** + * 小程序通过便民服务区域分页查询便民服务商家 + * + * @param comCvtBusinessAppletsDTO 查询参数 + * @return 返回结果 + */ + @PostMapping("/business/area/page") + public R pageComCvtBusinessByServiceArea(@RequestBody PageComCvtBusinessAppletsDTO comCvtBusinessAppletsDTO) { + return comCvtBusinessService.pageComCvtBusinessByServiceArea(comCvtBusinessAppletsDTO); } /** @@ -203,4 +219,23 @@ public R deleteComCvtServe(@RequestParam("id") Long id) { return comCvtServeService.deleteComCvtServe(id); } + + /** + * 小程序便民服务商家详情 + * @param id 商家ID + * @return + */ + @GetMapping("/business/serve/get") + public R getComCvtBusinessServeDetail(@RequestParam("id")Long id){ + return comCvtBusinessService.getComCvtBusinessServeDetail(id); + }; + + /** + * 批量新增商家服务 + * @param list 服务集合 + */ + @PostMapping("/serve/import") + public R listSaveConvenientServeExcelVO(@RequestBody List<ComCvtServeExcelVO> list,@RequestParam("communityId") Long communityId){ + return comCvtServeService.listSaveConvenientServeExcelVO(list,communityId); + } } -- Gitblit v1.7.1