From 601e7ddfd4e8e6b51d12708c00783d13c7522e0e Mon Sep 17 00:00:00 2001
From: 张天森 <1292933220@qq.com>
Date: 星期六, 24 九月 2022 10:06:06 +0800
Subject: [PATCH] update

---
 springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/umf/UmfPayUtil.java                  |    8 +-
 springcloud_k8s_panzhihuazhihuishequ/grid_backstage/src/main/java/com/panzhihua/grid_backstage/api/ComSanShuoApi.java |  161 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 165 insertions(+), 4 deletions(-)

diff --git a/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/umf/UmfPayUtil.java b/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/umf/UmfPayUtil.java
index 12c8ec9..6a7a2e3 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/umf/UmfPayUtil.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/umf/UmfPayUtil.java
@@ -15,10 +15,10 @@
  */
 @Component
 public class UmfPayUtil {
-    @Value("${umf.file}")
-    private String file;
-    @Value("${umf.notify_url}")
-    private String notifyUrl;
+    //@Value("${umf.file}")
+    private String file="";
+    //@Value("${umf.notify_url}")
+    private String notifyUrl="";
     public Map pay(String orderid,String merdate,String openid,String amount){
         Map reqMapPublic = preparePublic(orderid,merdate,openid,amount,notifyUrl);
         UmfService instance = new UmfServiceImpl("53461",file);
diff --git a/springcloud_k8s_panzhihuazhihuishequ/grid_backstage/src/main/java/com/panzhihua/grid_backstage/api/ComSanShuoApi.java b/springcloud_k8s_panzhihuazhihuishequ/grid_backstage/src/main/java/com/panzhihua/grid_backstage/api/ComSanShuoApi.java
new file mode 100644
index 0000000..5dc2839
--- /dev/null
+++ b/springcloud_k8s_panzhihuazhihuishequ/grid_backstage/src/main/java/com/panzhihua/grid_backstage/api/ComSanShuoApi.java
@@ -0,0 +1,161 @@
+package com.panzhihua.grid_backstage.api;
+
+import com.panzhihua.common.controller.BaseController;
+import com.panzhihua.common.model.dtos.community.sanshuo.ComMediateTypeDTO;
+import com.panzhihua.common.model.dtos.community.sanshuo.ComSanShuoIndustryCenterDTO;
+import com.panzhihua.common.model.dtos.community.sanshuo.ComSanshuoExpertDTO;
+import com.panzhihua.common.model.dtos.community.sanshuo.IndexDateDTO;
+import com.panzhihua.common.model.vos.R;
+import com.panzhihua.common.model.vos.sanshuo.*;
+import com.panzhihua.common.service.community.CommunityService;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import io.swagger.annotations.ApiParam;
+import org.springframework.web.bind.annotation.*;
+
+import javax.annotation.Resource;
+
+@RestController
+@RequestMapping("sanshuo")
+@Api(tags = "三说会堂后台接口")
+public class ComSanShuoApi extends BaseController {
+    @Resource
+    private CommunityService communityService;
+
+    @ApiOperation(value = "后台获取专家列表",response = ComSanshuoExpertVO.class)
+    @GetMapping("/expert/backList")
+    public R expertBackList(@RequestParam(value = "keyWord",required = false)@ApiParam("搜索关键字") String keyWord,
+                            @RequestParam(value = "page",required = false)Integer page,
+                            @RequestParam(value = "size",required = false)Integer size){
+        return communityService.backExpertList(keyWord, page, size);
+    }
+
+    @PostMapping("/expert")
+    @ApiOperation("添加专家")
+    public R addExpert(@RequestBody ComSanshuoExpertDTO comSanshuoExpertDTO){
+        return communityService.addExpert(comSanshuoExpertDTO);
+    }
+
+    @PutMapping("/expert")
+    @ApiOperation("添加专家")
+    public R updateExpert(@RequestBody ComSanshuoExpertDTO comSanshuoExpertDTO){
+        return communityService.updateExpert(comSanshuoExpertDTO);
+    }
+
+    @ApiOperation("重置专家登陆密码")
+    @PostMapping("/expert/resetPassword")
+    public R resetExpertPassword(@RequestBody ComSanshuoExpertDTO comSanshuoExpertDTO){
+        return communityService.resetExpertPassword(comSanshuoExpertDTO);
+    }
+
+    @ApiOperation("专家详情")
+    @GetMapping("/expert/{id}")
+    public R expertDetail(@PathVariable("id") Long id){
+        return communityService.expertDetail(id);
+    }
+
+    @ApiOperation("删除专家")
+    @GetMapping("/expert/remove/{id}")
+    public R removeExpert(@PathVariable("id") Long id){
+        return communityService.removeExpert(id);
+    }
+
+    @ApiOperation(value = "后台获取业务中心列表",response = ComSanShuoIndustryCenterVO.class)
+    @GetMapping("/industryCenter/backList")
+    public R industryCenterBackList(@RequestParam(value = "keyWord",required = false)String keyWord,
+                                    @RequestParam(value = "page",required = false)Integer page,
+                                    @RequestParam(value = "size",required = false)Integer size){
+        return communityService.backIndustrytList(keyWord, page, size);
+    }
+
+    @ApiOperation("添加业务中心")
+    @PostMapping("/industryCenter")
+    public R addIndustry(@RequestBody ComSanShuoIndustryCenterDTO comSanShuoIndustryCenterDTO){
+        return communityService.addIndustry(comSanShuoIndustryCenterDTO);
+    }
+
+    @ApiOperation("修改业务中心")
+    @PutMapping("/industryCenter")
+    public R updateIndustryCenter(@RequestBody ComSanShuoIndustryCenterDTO comSanShuoIndustryCenterDTO){
+        return communityService.updateIndustry(comSanShuoIndustryCenterDTO);
+    }
+
+    @ApiOperation("删除业务中心")
+    @GetMapping("/industryCenter/remove/{id}")
+    public R removeIndustry(@PathVariable("id") Long id){
+        return communityService.removeIndustry(id);
+    }
+
+    @ApiOperation("业务中心详情")
+    @GetMapping("/industryCenter/{id}")
+    public R industryDetail(@PathVariable("id") Long id){
+        return communityService.industryCenterDetail(id);
+    }
+
+    @ApiOperation("重置业务中心密码")
+    @PostMapping("/industryCenter/resetPassword")
+    public R resetIndustryPassword(@RequestBody ComSanShuoIndustryCenterDTO comSanShuoIndustryCenterDTO){
+        return communityService.resetIndustryPassword(comSanShuoIndustryCenterDTO);
+    }
+
+    @ApiOperation("后台事件类型列表")
+    @GetMapping("/event/backList")
+    public R eventBackList(@RequestParam(value = "keyWord",required = false)String keyWord,
+                           @RequestParam(value = "page",required = false)Integer page,
+                           @RequestParam(value = "size",required = false)Integer size){
+        return communityService.backEventList(keyWord, page, size);
+    }
+
+    @ApiOperation("添加事件类型")
+    @PostMapping("/event")
+    public R addEvent(@RequestBody ComMediateTypeDTO comSanshuoEventDTO){
+        return communityService.addEvent(comSanshuoEventDTO);
+    }
+
+    @ApiOperation("修改事件类型")
+    @PutMapping("/event")
+    public R updateEvent(@RequestBody ComMediateTypeDTO comSanshuoEventDTO){
+        return communityService.updateEvent(comSanshuoEventDTO);
+    }
+
+    @ApiOperation("删除事件类型")
+    @DeleteMapping("/event/{id}")
+    public R removeEvent(@PathVariable("id") Long id){
+        return communityService.removeEvent(id);
+    }
+
+    @ApiOperation("小程序获取可用专家列表")
+    @GetMapping("/event/appletsList")
+    public R eventAppletsList(){
+        return communityService.eventAppList();
+    }
+
+    @ApiOperation("小程序获取可用业务中心列表")
+    @GetMapping("/industryCenter/appletsList")
+    public R industryAppletsList(){
+        return communityService.industryCenterAppList();
+    }
+
+    @ApiOperation(value = "专家风采",response = ExpertShowVO.class)
+    @GetMapping("/expert/expertShow")
+    public R experShow(){
+        return communityService.expertShow();
+    }
+
+    @GetMapping("/sanshuo/expertRange")
+    @ApiOperation(value = "当前账号可添加专家范围",response = ExpertRangeVO.class)
+    public R expertRange(){
+        return communityService.expertRange();
+    }
+
+    @PostMapping("/indexData")
+    @ApiOperation(value = "大屏各级别事件统计",response = IndexDateVO.class)
+    public R indexData(@RequestBody IndexDateDTO indexDateDTO){
+        return communityService.sanshuoIndexDate(indexDateDTO);
+    }
+    @GetMapping("/indexData/event")
+    @ApiOperation(value = "事件统计饼图",response = EventRateVO.class)
+    public R eventIndexData(@RequestParam("type") @ApiParam("1受理级别2专家级别3时间类型分类") Integer type){
+        return communityService.eventIndexData(type);
+    }
+}

--
Gitblit v1.7.1