From aa7f2548c315f32ac9c89b22c355db07dd88ad67 Mon Sep 17 00:00:00 2001 From: weizhiqiang <598748873@qq.com> Date: Mon, 22 Oct 2018 13:41:02 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=AC=E5=85=B1=E8=8E=B7=E5=8F=96=E5=B0=8F?= =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E5=88=86=E7=B1=BB=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/skyeye/smprogram/dao/RmTypeDao.java | 2 ++ .../smprogram/service/RmTypeService.java | 2 ++ .../service/impl/RmTypeServiceImpl.java | 20 +++++++++++++++++++ .../controller/RmTypeController.java | 16 +++++++++++++++ .../main/resources/dbmapper/RmTypeMapper.xml | 9 +++++++++ .../src/main/resources/mapping/reqmapping.xml | 7 +++++++ 6 files changed, 56 insertions(+) diff --git a/skyeye-dao/src/main/java/com/skyeye/smprogram/dao/RmTypeDao.java b/skyeye-dao/src/main/java/com/skyeye/smprogram/dao/RmTypeDao.java index 9dce57d5c..91ffa4ede 100644 --- a/skyeye-dao/src/main/java/com/skyeye/smprogram/dao/RmTypeDao.java +++ b/skyeye-dao/src/main/java/com/skyeye/smprogram/dao/RmTypeDao.java @@ -31,4 +31,6 @@ public interface RmTypeDao { public Map queryRmTypeISLowerByThisId(Map map) throws Exception; + public List> queryRmTypeAllList(Map map) throws Exception; + } diff --git a/skyeye-service/src/main/java/com/skyeye/smprogram/service/RmTypeService.java b/skyeye-service/src/main/java/com/skyeye/smprogram/service/RmTypeService.java index d5abeddd5..1a58f124d 100644 --- a/skyeye-service/src/main/java/com/skyeye/smprogram/service/RmTypeService.java +++ b/skyeye-service/src/main/java/com/skyeye/smprogram/service/RmTypeService.java @@ -19,4 +19,6 @@ public interface RmTypeService { public void editRmTypeSortLowerById(InputObject inputObject, OutputObject outputObject) throws Exception; + public void queryRmTypeAllList(InputObject inputObject, OutputObject outputObject) throws Exception; + } diff --git a/skyeye-service/src/main/java/com/skyeye/smprogram/service/impl/RmTypeServiceImpl.java b/skyeye-service/src/main/java/com/skyeye/smprogram/service/impl/RmTypeServiceImpl.java index b3df78740..44d370113 100644 --- a/skyeye-service/src/main/java/com/skyeye/smprogram/service/impl/RmTypeServiceImpl.java +++ b/skyeye-service/src/main/java/com/skyeye/smprogram/service/impl/RmTypeServiceImpl.java @@ -181,6 +181,26 @@ public class RmTypeServiceImpl implements RmTypeService{ rmTypeDao.editRmTypeSortTopById(topBean); } } + + /** + * + * @Title: queryRmTypeAllList + * @Description: 获取所有小程序分类 + * @param @param inputObject + * @param @param outputObject + * @param @throws Exception 参数 + * @return void 返回类型 + * @throws + */ + @Override + public void queryRmTypeAllList(InputObject inputObject, OutputObject outputObject) throws Exception { + Map map = inputObject.getParams(); + List> beans = rmTypeDao.queryRmTypeAllList(map); + if(beans != null && !beans.isEmpty()){ + outputObject.setBeans(beans); + outputObject.settotal(beans.size()); + } + } diff --git a/skyeye-web/src/main/java/com/skyeye/smprogram/controller/RmTypeController.java b/skyeye-web/src/main/java/com/skyeye/smprogram/controller/RmTypeController.java index 691049e81..584ef8746 100644 --- a/skyeye-web/src/main/java/com/skyeye/smprogram/controller/RmTypeController.java +++ b/skyeye-web/src/main/java/com/skyeye/smprogram/controller/RmTypeController.java @@ -127,4 +127,20 @@ public class RmTypeController { rmTypeService.editRmTypeSortLowerById(inputObject, outputObject); } + /** + * + * @Title: queryRmTypeAllList + * @Description: 获取所有小程序分类 + * @param @param inputObject + * @param @param outputObject + * @param @throws Exception 参数 + * @return void 返回类型 + * @throws + */ + @RequestMapping("/post/RmTypeController/queryRmTypeAllList") + @ResponseBody + public void queryRmTypeAllList(InputObject inputObject, OutputObject outputObject) throws Exception{ + rmTypeService.queryRmTypeAllList(inputObject, outputObject); + } + } diff --git a/skyeye-web/src/main/resources/dbmapper/RmTypeMapper.xml b/skyeye-web/src/main/resources/dbmapper/RmTypeMapper.xml index 85d2bd6f9..ced7d51ba 100644 --- a/skyeye-web/src/main/resources/dbmapper/RmTypeMapper.xml +++ b/skyeye-web/src/main/resources/dbmapper/RmTypeMapper.xml @@ -127,4 +127,13 @@ ORDER BY a.sort DESC LIMIT 1 + + \ No newline at end of file diff --git a/skyeye-web/src/main/resources/mapping/reqmapping.xml b/skyeye-web/src/main/resources/mapping/reqmapping.xml index 61c0cc077..97f98ead9 100644 --- a/skyeye-web/src/main/resources/mapping/reqmapping.xml +++ b/skyeye-web/src/main/resources/mapping/reqmapping.xml @@ -3,6 +3,7 @@ + @@ -15,6 +16,12 @@ + + + + + + -- GitLab