From e503565a85f3ff410762ad13c11ceecf4adc6d68 Mon Sep 17 00:00:00 2001 From: yitonglei Date: Fri, 19 Aug 2022 14:11:06 +0800 Subject: [PATCH] =?UTF-8?q?cim=20=E6=A0=B9=E6=8D=AE=E5=BA=94=E7=94=A8?= =?UTF-8?q?=E9=A2=86=E5=9F=9F=E6=9F=A5=E8=AF=A2=E5=9B=BE=E5=B1=82=E6=9C=8D?= =?UTF-8?q?=E5=8A=A1=20=E5=92=8C=20=E6=9F=A5=E8=AF=A2=E6=99=BA=E8=83=BD?= =?UTF-8?q?=E7=AE=97=E6=B3=95=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resource/controller/CIMController.java | 15 ++++++++++++ .../modules/resource/dao/ResourceDao.java | 5 ++++ .../modules/resource/service/CIMService.java | 4 ++++ .../resource/service/impl/CIMServiceImpl.java | 16 +++++++++++++ .../resources/mapper/resource/ResourceDao.xml | 24 +++++++++++++++++++ 5 files changed, 64 insertions(+) diff --git a/renren-admin/src/main/java/io/renren/modules/resource/controller/CIMController.java b/renren-admin/src/main/java/io/renren/modules/resource/controller/CIMController.java index e3a3644b..7dcd2eac 100644 --- a/renren-admin/src/main/java/io/renren/modules/resource/controller/CIMController.java +++ b/renren-admin/src/main/java/io/renren/modules/resource/controller/CIMController.java @@ -10,6 +10,7 @@ import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; import java.util.List; @@ -46,4 +47,18 @@ public class CIMController { return new Result>().ok(cimService.getCIMApplyApplicationList()); } + @GetMapping("/cimImgResources") + @ApiOperation("根据应用领域查询图层服务") + public Result cimImgResources(@RequestParam String type){ + List imgServices = cimService.getImgServices(type); + return new Result().ok(imgServices); + } + + @GetMapping("/cimAssemblyResources") + @ApiOperation("查询智能算法组件") + public Result cimAssemblyResources(){ + List maps = cimService.cimAssemblyResources(); + return new Result().ok(maps); + } + } diff --git a/renren-admin/src/main/java/io/renren/modules/resource/dao/ResourceDao.java b/renren-admin/src/main/java/io/renren/modules/resource/dao/ResourceDao.java index 95fc2e35..480de728 100644 --- a/renren-admin/src/main/java/io/renren/modules/resource/dao/ResourceDao.java +++ b/renren-admin/src/main/java/io/renren/modules/resource/dao/ResourceDao.java @@ -180,4 +180,9 @@ public interface ResourceDao extends BaseDao { List countByCIMType(@Param("deptId") Long deptId); List getCIMApplyApplicationList(@Param("deptId") Long deptId); + + + List getImgServices(@Param("type") String type); + + List cimAssemblyResources(); } \ No newline at end of file diff --git a/renren-admin/src/main/java/io/renren/modules/resource/service/CIMService.java b/renren-admin/src/main/java/io/renren/modules/resource/service/CIMService.java index 6d51eebe..9127f2ba 100644 --- a/renren-admin/src/main/java/io/renren/modules/resource/service/CIMService.java +++ b/renren-admin/src/main/java/io/renren/modules/resource/service/CIMService.java @@ -8,4 +8,8 @@ public interface CIMService { List countByType(); List getCIMApplyApplicationList(); + + List getImgServices(String type); + + List cimAssemblyResources(); } diff --git a/renren-admin/src/main/java/io/renren/modules/resource/service/impl/CIMServiceImpl.java b/renren-admin/src/main/java/io/renren/modules/resource/service/impl/CIMServiceImpl.java index b592517f..32a29f9b 100644 --- a/renren-admin/src/main/java/io/renren/modules/resource/service/impl/CIMServiceImpl.java +++ b/renren-admin/src/main/java/io/renren/modules/resource/service/impl/CIMServiceImpl.java @@ -69,4 +69,20 @@ public class CIMServiceImpl implements CIMService { } return resourceDao.getCIMApplyApplicationList(sysDeptEntity.getId()); } + + @Override + public List getImgServices(String type) { + List imgServices = new ArrayList<>(); + imgServices = resourceDao.getImgServices(type); + + return imgServices; + } + + @Override + public List cimAssemblyResources() { + List result = new ArrayList<>(); + result = resourceDao.cimAssemblyResources(); + + return result; + } } diff --git a/renren-admin/src/main/resources/mapper/resource/ResourceDao.xml b/renren-admin/src/main/resources/mapper/resource/ResourceDao.xml index 365c2db0..acc7c070 100644 --- a/renren-admin/src/main/resources/mapper/resource/ResourceDao.xml +++ b/renren-admin/src/main/resources/mapper/resource/ResourceDao.xml @@ -1629,4 +1629,28 @@ ORDER BY tdr.create_date + + + + \ No newline at end of file