浏览代码

数据应用查询模块

wangzhe 2 年之前
父节点
当前提交
78c8988b2a

+ 13 - 0
mybusiness/src/main/java/com/sooka/system/controller/TUInterfaceinfoController.java

@@ -120,6 +120,19 @@ public class TUInterfaceinfoController extends BaseController {
         return list;
     }
 
+    /**
+     * 【数据应用审批管理】根据部门ID获取数据应用
+     */
+    @RequestMapping("/selectInterfaceDataByIds")
+    @ResponseBody
+    public List<TUInterfaceinfo> selectInterfaceDataByDeptId(String[] ids)
+    {
+        System.out.println(ids.length+"=ids.length");
+        System.out.println(ids+"=ids");
+        List<TUInterfaceinfo> list = tUInterfaceinfoService.selectTUInterfaceDataList(ids);
+        return list;
+    }
+
 
     /**
      * 导出【接口应用审批管理】列表

+ 5 - 0
mybusiness/src/main/java/com/sooka/system/mapper/TUInterfaceinfoMapper.java

@@ -44,6 +44,11 @@ public interface TUInterfaceinfoMapper
     public List<TUInterfaceinfo> selectTUInterfaceinfoListByIds(String[] ids);
 
     /**
+     * 根据数据应用IDS获取数据应用LIST
+     * */
+    public List<TUInterfaceinfo> selectTUInterfaceDataListByIds(String[] ids);
+
+    /**
      * 新增【接口应用审批管理】
      *
      * @param tUInterfaceinfo 【接口应用审批管理】

+ 5 - 0
mybusiness/src/main/java/com/sooka/system/service/ITUInterfaceinfoService.java

@@ -34,6 +34,11 @@ public interface ITUInterfaceinfoService
     public List<TUInterfaceinfo> selectTUInterfaceinfoList(String[] ids);
 
     /**
+     * 根据数据应用IDS获取数据应用LIST
+     * */
+    public List<TUInterfaceinfo> selectTUInterfaceDataList(String[] ids);
+
+    /**
      * 新增【接口应用审批管理】
      *
      * @param tUInterfaceinfo 【接口应用审批管理】

+ 8 - 0
mybusiness/src/main/java/com/sooka/system/service/impl/TUInterfaceinfoServiceImpl.java

@@ -106,6 +106,14 @@ public class TUInterfaceinfoServiceImpl implements ITUInterfaceinfoService
     }
 
     /**
+     * 根据数据应用IDS获取数据应用LIST
+     * */
+    @Override
+    public List<TUInterfaceinfo> selectTUInterfaceDataList(String[] ids){
+        return tUInterfaceinfoMapper.selectTUInterfaceDataListByIds(ids);
+    }
+
+    /**
      * 新增【接口应用审批管理】
      *
      * @param tUInterfaceinfo 【接口应用审批管理】

+ 9 - 0
mybusiness/src/main/resources/mapper/system/TUInterfaceinfoMapper.xml

@@ -81,6 +81,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         </foreach>
     </select>
 
+    <select id="selectTUInterfaceDataListByIds" parameterType="String" resultMap="TUInterfaceinfoResult">
+        select menu_id id, menu_name interface_name
+        from sys_menu
+        where menu_id in
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </select>
+
     <select id="selectTUInterfaceinfoById" parameterType="String" resultMap="TUInterfaceinfoResult">
         <include refid="selectTUInterfaceinfoVo"/>
         where id = #{id}

+ 1 - 1
mybusiness/src/main/resources/templates/applyData/record/add.html

@@ -189,7 +189,7 @@
 
     /**根据数据渲染接口手风琴**/
     function renderInterfaceHtml(ids) {
-        $.post(prefix + "/interfaceinfo/selectInterfaceByIds",{
+        $.post(prefix + "/interfaceinfo/selectInterfaceDataByIds",{
             ids:ids
         },function(res){
             let html =

+ 1 - 1
mybusiness/src/main/resources/templates/applyData/record/edit.html

@@ -240,7 +240,7 @@
 
     /**根据数据渲染接口手风琴**/
     function renderInterfaceHtml(ids) {
-        $.post(prefix + "/interfaceinfo/selectInterfaceByIds",{
+        $.post(prefix + "/interfaceinfo/selectInterfaceDataByIds",{
             ids:ids
         },function(res){
             if(res.length > 0){