From 2d2d9138fbe5c9c43f070be59a2d10f18fbf4c3b Mon Sep 17 00:00:00 2001
From: 13693261870 <252740454@qq.com>
Date: 星期三, 23 十一月 2022 09:05:06 +0800
Subject: [PATCH] 1

---
 src/main/java/com/lf/server/controller/data/DomainController.java |   46 +++++++++++++++++++++++++++++++++++-----------
 1 files changed, 35 insertions(+), 11 deletions(-)

diff --git a/src/main/java/com/lf/server/controller/data/DomainController.java b/src/main/java/com/lf/server/controller/data/DomainController.java
index a2861b3..ca12ef2 100644
--- a/src/main/java/com/lf/server/controller/data/DomainController.java
+++ b/src/main/java/com/lf/server/controller/data/DomainController.java
@@ -1,10 +1,12 @@
 package com.lf.server.controller.data;
 
-import com.lf.server.aspect.SysLog;
+import com.lf.server.annotation.SysLog;
 import com.lf.server.controller.all.BaseController;
 import com.lf.server.entity.all.ResponseMsg;
+import com.lf.server.entity.ctrl.TabEntity;
 import com.lf.server.entity.data.DomainEntity;
 import com.lf.server.entity.sys.UserEntity;
+import com.lf.server.service.all.BaseQueryService;
 import com.lf.server.service.data.DomainService;
 import com.lf.server.service.sys.TokenService;
 import io.swagger.annotations.Api;
@@ -31,15 +33,20 @@
     @Autowired
     TokenService tokenService;
 
+    @Autowired
+    BaseQueryService baseQueryService;
+
     @SysLog()
     @ApiOperation(value = "鏌ヨ璁板綍鏁�")
     @ApiImplicitParams({
-            @ApiImplicitParam(name = "domName", value = "鍊煎煙琛ㄥ悕", dataType = "String", paramType = "query", required = false, example = "")
+            @ApiImplicitParam(name = "ns", value = "鍚嶇О绌洪棿", dataType = "String", paramType = "query", example = "bd"),
+            @ApiImplicitParam(name = "tab", value = "琛ㄥ悕", dataType = "String", paramType = "query", example = "dlg_25w_aanp"),
+            @ApiImplicitParam(name = "code", value = "缂栫爜", dataType = "String", paramType = "query", example = "210")
     })
     @GetMapping({"/selectCount"})
-    public ResponseMsg<Integer> selectCount(String domName) {
+    public ResponseMsg<Integer> selectCount(String ns, String tab, String code) {
         try {
-            int count = domainService.selectCount(domName);
+            int count = domainService.selectCount(ns, tab, code);
 
             return success(count);
         } catch (Exception ex) {
@@ -50,18 +57,20 @@
     @SysLog()
     @ApiOperation(value = "鍒嗛〉鏌ヨ")
     @ApiImplicitParams({
-            @ApiImplicitParam(name = "domName", value = "鍊煎煙琛ㄥ悕", dataType = "String", paramType = "query", example = ""),
+            @ApiImplicitParam(name = "ns", value = "鍚嶇О绌洪棿", dataType = "String", paramType = "query", example = "bd"),
+            @ApiImplicitParam(name = "tab", value = "琛ㄥ悕", dataType = "String", paramType = "query", example = "dlg_25w_aanp"),
+            @ApiImplicitParam(name = "code", value = "缂栫爜", dataType = "String", paramType = "query", example = "210"),
             @ApiImplicitParam(name = "pageSize", value = "姣忛〉鏉℃暟", dataType = "Integer", paramType = "query", example = "10"),
             @ApiImplicitParam(name = "pageIndex", value = "鍒嗛〉鏁帮紙浠�1寮�濮嬶級", dataType = "Integer", paramType = "query", example = "1")
     })
     @GetMapping(value = "/selectByPage")
-    public ResponseMsg<List<DomainEntity>> selectByPage(String domName, Integer pageSize, Integer pageIndex) {
+    public ResponseMsg<List<DomainEntity>> selectByPage(String ns, String tab, String code, Integer pageSize, Integer pageIndex) {
         try {
             if (pageSize < 1 || pageIndex < 1) {
                 return fail("姣忛〉椤垫暟鎴栧垎椤垫暟灏忎簬1", null);
             }
 
-            List<DomainEntity> rs = domainService.selectByPage(domName, pageSize, pageSize * (pageIndex - 1));
+            List<DomainEntity> rs = domainService.selectByPage(ns, tab, code, pageSize, pageSize * (pageIndex - 1));
 
             return success(rs);
         } catch (Exception ex) {
@@ -72,23 +81,25 @@
     @SysLog()
     @ApiOperation(value = "鍒嗛〉鏌ヨ骞惰繑鍥炶褰曟暟")
     @ApiImplicitParams({
-            @ApiImplicitParam(name = "domName", value = "鍊煎煙琛ㄥ悕", dataType = "String", paramType = "query", example = ""),
+            @ApiImplicitParam(name = "ns", value = "鍚嶇О绌洪棿", dataType = "String", paramType = "query", example = "bd"),
+            @ApiImplicitParam(name = "tab", value = "琛ㄥ悕", dataType = "String", paramType = "query", example = "dlg_25w_aanp"),
+            @ApiImplicitParam(name = "code", value = "缂栫爜", dataType = "String", paramType = "query", example = "210"),
             @ApiImplicitParam(name = "pageSize", value = "姣忛〉鏉℃暟", dataType = "Integer", paramType = "query", example = "10"),
             @ApiImplicitParam(name = "pageIndex", value = "鍒嗛〉鏁帮紙浠�1寮�濮嬶級", dataType = "Integer", paramType = "query", example = "1")
     })
     @GetMapping(value = "/selectByPageAndCount")
-    public ResponseMsg<List<DomainEntity>> selectByPageAndCount(String domName, Integer pageSize, Integer pageIndex) {
+    public ResponseMsg<List<DomainEntity>> selectByPageAndCount(String ns, String tab, String code, Integer pageSize, Integer pageIndex) {
         try {
             if (pageSize < 1 || pageIndex < 1) {
                 return fail("姣忛〉椤垫暟鎴栧垎椤垫暟灏忎簬1", null);
             }
 
-            int count = domainService.selectCount(domName);
+            int count = domainService.selectCount(ns, tab, code);
             if (count == 0) {
                 return success(0, null);
             }
 
-            List<DomainEntity> rs = domainService.selectByPage(domName, pageSize, pageSize * (pageIndex - 1));
+            List<DomainEntity> rs = domainService.selectByPage(ns, tab, code, pageSize, pageSize * (pageIndex - 1));
 
             return success(count, rs);
         } catch (Exception ex) {
@@ -110,6 +121,19 @@
     }
 
     @SysLog()
+    @ApiOperation(value = "鏌ヨ鎵�鏈夎〃")
+    @GetMapping(value = "/selectTabs")
+    public ResponseMsg<List<TabEntity>> selectTabs() {
+        try {
+            List<TabEntity> list = baseQueryService.selectTabs();
+
+            return success(list);
+        } catch (Exception ex) {
+            return fail(ex.getMessage(), null);
+        }
+    }
+
+    @SysLog()
     @ApiOperation(value = "鏍规嵁ID鏌ヨ")
     @ApiImplicitParams({
             @ApiImplicitParam(name = "id", value = "ID", dataType = "int", paramType = "query", example = "1")

--
Gitblit v1.9.3