Prechádzať zdrojové kódy

fix: 客户查询列表表头统计数据接口

gufj 4 mesiacov pred
rodič
commit
f19b035cce

+ 0 - 1
bound-link-api/blink-admin/src/main/java/com/wx/blink/admin/system/support/AdminFileController.java

@@ -32,7 +32,6 @@ public class AdminFileController extends SupportBaseController {
 
     @Operation(summary = "分页查询 @author 云畅联-admin")
     @PostMapping("/file/queryPage")
-    @SaCheckPermission("support:file:query")
     public ResponseDTO<PageResult<FileVO>> queryPage(@RequestBody @Valid FileQueryForm queryForm) {
         return ResponseDTO.ok(fileService.queryPage(queryForm));
     }

+ 6 - 0
bound-link-api/blink-backend/src/main/java/com/wx/blink/backend/controller/BlinkCustomerController.java

@@ -41,6 +41,12 @@ public class BlinkCustomerController {
         return ResponseDTO.ok(customerService.supportsCustomerQueryPage(qry));
     }
 
+    @Operation(summary = "客户查询列表表头统计数据接口")
+    @GetMapping("/supports/customer/statistics/info")
+    public ResponseDTO<BlinkCustomerStatisticsVO> supportsStatisticsInfo(@RequestBody BlinkCustomerQry qry) {
+        return ResponseDTO.ok(customerService.supportsStatisticsInfo(qry));
+    }
+
     @Operation(summary = "编辑更新客户")
     @PostMapping("/supports/customer/update")
     public ResponseDTO<String> supportsCustomerUpdate(@RequestBody @Valid BlinkCustomerUpdateVO dto) {

+ 10 - 0
bound-link-api/blink-backend/src/main/java/com/wx/blink/backend/manager/BlinkCustomerServiceImpl.java

@@ -143,4 +143,14 @@ public class BlinkCustomerServiceImpl extends ServiceImpl<BlinkCustomerRepositor
         headerVO.setUnpaidAmount(new BigDecimal("322235456"));
         return ResponseDTO.ok(headerVO);
     }
+
+    @Override
+    public BlinkCustomerStatisticsVO supportsStatisticsInfo(BlinkCustomerQry qry) {
+        BlinkCustomerStatisticsVO statisticsVO = new BlinkCustomerStatisticsVO();
+        statisticsVO.setCustomerQuantity(13);
+        statisticsVO.setCustomerAuditQuantity(3);
+        statisticsVO.setCustomerAuditQuantity(4);
+        statisticsVO.setCustomerValidQuantity(6);
+        return statisticsVO;
+    }
 }

+ 9 - 0
bound-link-api/blink-backend/src/main/java/com/wx/blink/backend/service/IBlinkCustomerService.java

@@ -87,4 +87,13 @@ public interface IBlinkCustomerService extends IService<BlinkCustomerDO> {
      * @return
      */
     ResponseDTO<BlinkCustomerHeaderVO> supportsCustomerHeaderSingleQuery(String id);
+
+
+    /**
+     * 客户查询列表表头统计数据接口
+     *
+     * @param qry
+     * @return
+     */
+    BlinkCustomerStatisticsVO supportsStatisticsInfo(BlinkCustomerQry qry);
 }

+ 2 - 2
bound-link-api/blink-base/src/main/java/com/wx/blink/base/module/support/wechat/WeChatUtil.java

@@ -17,9 +17,9 @@ public class WeChatUtil {
     private RedisTemplate<String, String> redisTemplate;
     @Resource
     private RestTemplate restTemplate;
-    @Value("${wechat.appId}")
+    //@Value("${wechat.appId}")
     private String appId;
-    @Value("${wechat.secret}")
+    //@Value("${wechat.secret}")
     private String secret;
 
     public String getWechatAccessToken(String module) {

+ 1 - 1
bound-link-api/blink-common-dto/src/main/java/com/wx/blink/common/dto/BlinkProviderDTO.java

@@ -182,7 +182,7 @@ public class BlinkProviderDTO extends BaseEntity {
      * 注册来源
      */
     @JsonDeserialize(using = DictValueVoDeserializer.class)
-    @DataAdaptorMapping(type = "dict", value = "BLINK_ENROLL_SOURCE")
+    @DataAdaptorMapping(type = "dict", value = "BLINK_PROVIDER_ENROLL_SOURCE")
     @Schema(description = "注册来源")
     private String storeSource;
 

+ 27 - 0
bound-link-api/blink-common-dto/src/main/java/com/wx/blink/common/vo/BlinkCustomerStatisticsVO.java

@@ -0,0 +1,27 @@
+package com.wx.blink.common.vo;
+
+import lombok.Data;
+
+@Data
+public class BlinkCustomerStatisticsVO {
+
+    /**
+     *  全部数据
+     */
+    private Integer customerQuantity;
+
+    /**
+     * 审核中
+     */
+    private Integer customerAuditQuantity;
+
+    /**
+     * 无效客户
+     */
+    private Integer customerInvalidQuantity;
+
+    /**
+     * 有效客户
+     */
+    private Integer customerValidQuantity;
+}

+ 3 - 0
bound-link-api/blink-portal-api/src/main/java/com/wx/blink/portal/CustomerApi.java

@@ -22,4 +22,7 @@ public interface CustomerApi {
     @GetMapping("/supports/customer/{id}")
     ResponseDTO<JSONObject> supportsCustomerSingleQuery(@PathVariable("id") String id);
 
+    @GetMapping("/supports/customer/statistics/info")
+    ResponseDTO<JSONObject> supportsStatisticsInfo(BlinkCustomerQry qry);
+
 }

+ 7 - 2
bound-link-api/blink-portal/src/main/java/com/wx/blink/portal/controller/PortalCustomerController.java

@@ -5,6 +5,7 @@ import com.wx.blink.base.common.domain.ResponseDTO;
 import com.wx.blink.base.common.util.BlinkRequestUtil;
 import com.wx.blink.common.qry.BlinkCustomerQry;
 import com.wx.blink.common.vo.BlinkCustomerCreateVO;
+import com.wx.blink.common.vo.BlinkCustomerStatisticsVO;
 import com.wx.blink.portal.CustomerApi;
 import io.swagger.v3.oas.annotations.Operation;
 import org.springframework.web.bind.annotation.*;
@@ -39,12 +40,16 @@ public class PortalCustomerController {
         return customerApi.supportsCustomerQueryPage(qry);
     }
 
+    @Operation(summary = "客户查询列表表头统计数据接口")
+    @GetMapping("/portal/customer/statistics/info")
+    public ResponseDTO<JSONObject> supportsStatisticsInfo(BlinkCustomerQry qry) {
+        return customerApi.supportsStatisticsInfo(qry);
+    }
+
     @GetMapping(value = "/portal/customer/{id}")
     @Operation(summary = "服务商查询客户明细接口")
     ResponseDTO<JSONObject> supportsCustomerSingleQuery(@PathVariable String id) {
         return customerApi.supportsCustomerSingleQuery(id);
     }
-
-
 }