Przeglądaj źródła

feature:auth-back添加警种标签树接口

huangjy 4 lat temu
rodzic
commit
4e3ed2eab8

+ 5 - 6
pom.xml

@@ -39,7 +39,11 @@
             <artifactId>spring-boot-configuration-processor</artifactId>
             <optional>true</optional>
         </dependency>
-
+        <dependency>
+            <groupId>com.dragoninfo</groupId>
+            <artifactId>dcuc-user-api</artifactId>
+            <version>2.0.1-tjdsj-SNAPSHOT</version>
+        </dependency>
         <!--监控配置-->
         <dependency>
             <groupId>org.springframework.boot</groupId>
@@ -129,11 +133,6 @@
             <version>2.0.0-tjdsj-SNAPSHOT</version>
         </dependency>
 
-        <dependency>
-            <groupId>com.dragoninfo</groupId>
-            <artifactId>dcuc-user-api</artifactId>
-            <version>2.0.1-SNAPSHOT</version>
-        </dependency>
 
         <dependency>
             <groupId>com.dragoninfo</groupId>

+ 10 - 3
src/main/java/com/dragoninfo/dcuc/authweb/restcontroller/auth/DataAuthController.java

@@ -9,6 +9,9 @@ import com.dragoninfo.dcuc.auth.auth.enumresources.SubDataAuthTypeEnum;
 import com.dragoninfo.dcuc.auth.auth.facade.IDataAuthFacade;
 import com.dragoninfo.dcuc.authweb.restcontroller.auth.vo.data.*;
 import com.dragoninfo.dcuc.authweb.util.VersionUtils;
+import com.dragoninfo.dcuc.user.label.ILabelFacade;
+import com.dragoninfo.dcuc.user.label.dto.LabelSearchDto;
+import com.dragoninfo.dcuc.user.label.vo.LabelTreeVO;
 import com.dragoninfo.duceap.core.response.Result;
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiImplicitParam;
@@ -39,15 +42,19 @@ public class DataAuthController {
     @Autowired
     IDataAuthFacade dataAuthFacade;
 
+    @Autowired
+    ILabelFacade labelFacade;
 
     @ApiOperation(value = "获取属性列表,树形结构:警种1-业务域N")
     @ApiImplicitParam(name = "name", value = "查询条件")
-    @GetMapping(value = "businessTreeList", produces = "application/json;charset=UTF-8")
-    public Result<List<PropertyTreeVo>> businessTreeList(@RequestParam(value = "name",required = false) String name){
+    @RequestMapping(value = "businessTreeList", produces = "application/json;charset=UTF-8", method = RequestMethod.POST)
+    public Result businessTreeList(@RequestBody LabelSearchDto labelSearchDto){
 
-        return null;
+        List<LabelTreeVO> labelTreeList = labelFacade.labelTreeList(labelSearchDto);
+        return Result.success(labelTreeList);
     }
 
+
     @ApiOperation(value = "获取所有数据资源,返回返回树结构")
     @ApiImplicitParam(name = "attrType",value = "数据属性类型 TABLE:表 COLUMN:列")
     @GetMapping(value = "allDataTree", produces = "application/json;charset=UTF-8")