Bläddra i källkod

feat:获取表格组详细信息接口

xuezizhuo 1 år sedan
förälder
incheckning
c87eefab3d

+ 11 - 0
ruoyi-admin/src/main/java/com/ruoyi/web/controller/dragForm/DragTableGroupController.java

@@ -166,4 +166,15 @@ public class DragTableGroupController extends BaseController {
     //    CommonEntity commonEntityResult = dragTableGroupService.queryProcessPopupResultInfo(commonEntity);
     //    return commonEntityResult;
     //}
+
+    /**
+     * 获取拖拽格组详细信息
+     */
+//    @PreAuthorize("@ss.hasPermi('system:group:query')")
+    @GetMapping("/getInfoBySqlKey/{groupKey}")
+    public AjaxResult getInfoBySqlKey(@PathVariable("groupKey") String groupKey)
+    {
+        return success(dragTableGroupService.selectDragTableGroupInfoByGroupKey(groupKey));
+    }
+
 }

+ 7 - 0
ruoyi-system/src/main/java/com/ruoyi/system/mapper/DragTableGroupMapper.java

@@ -77,4 +77,11 @@ public interface DragTableGroupMapper {
      */
     public  DragTableGroup selectDragTableGroupOneByGroupKey(String groupKey);
 
+    /**
+     * 查询拖拽表格组
+     * @param groupKey
+     * @return
+     */
+    DragTableGroup selectDragTableGroupInfoByGroupKey(String groupKey);
+
 }

+ 8 - 0
ruoyi-system/src/main/java/com/ruoyi/system/service/IDragTableGroupService.java

@@ -104,4 +104,12 @@ public interface IDragTableGroupService {
      * @return
      */
     CommonEntity getProcessPopupTableList(CommonEntity commonEntity);
+
+    /**
+     * 查询拖拽表格组
+     * @param groupKey
+     * @return
+     */
+    DragTableGroup selectDragTableGroupInfoByGroupKey(String groupKey);
+
 }

+ 5 - 0
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/DragTableGroupServiceImpl.java

@@ -554,6 +554,11 @@ public class DragTableGroupServiceImpl implements IDragTableGroupService {
         return common;
     }
 
+    @Override
+    public DragTableGroup selectDragTableGroupInfoByGroupKey(String groupKey) {
+        return dragTableGroupMapper.selectDragTableGroupInfoByGroupKey(groupKey);
+    }
+
 
     //得到按钮表格的循环
     private List<DragTableBtn> getChildrenList(DragTableBtn root, List<DragTableBtn> childNodes) {

+ 2 - 0
ruoyi-system/src/main/resources/mapper/dragmapper/DragFormMapper.xml

@@ -168,4 +168,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
     <select id="selectDragFormFId" resultType="int">
         select f_id from drag_form ORDER BY f_id desc LIMIT 1
     </select>
+
+
 </mapper>

+ 5 - 0
ruoyi-system/src/main/resources/mapper/dragmapper/DragTableGroupMapper.xml

@@ -122,4 +122,9 @@
         </foreach>
     </delete>
 
+    <select id="selectDragTableGroupInfoByGroupKey" resultMap="DragTableGroupResult">
+        <include refid="selectDragTableGroupVo"/>
+        where group_key = #{groupKey}
+    </select>
+
 </mapper>