Browse Source

添加右侧窗口

fuyou 7 months ago
parent
commit
86a4fbd69e

+ 11 - 0
autoremark-business/src/main/java/com/autoremark/business/controller/TblEntityTypeController.java

@@ -107,4 +107,15 @@ public class TblEntityTypeController extends BaseController
     {
         return toAjax(tblEntityTypeService.deleteTblEntityTypeByTypeIds(typeIds));
     }
+
+
+    /**
+     * 查询所有信息
+     */
+    @GetMapping("/findall")
+    public TableDataInfo findAll()
+    {
+        List<TblEntityType> list = tblEntityTypeService.findAll();
+        return getDataTable(list);
+    }
 }

+ 2 - 0
autoremark-business/src/main/java/com/autoremark/business/mapper/TblEntityTypeMapper.java

@@ -58,4 +58,6 @@ public interface TblEntityTypeMapper
      * @return 结果
      */
     public int deleteTblEntityTypeByTypeIds(String[] typeIds);
+
+    public List<TblEntityType> findAll();
 }

+ 2 - 0
autoremark-business/src/main/java/com/autoremark/business/service/ITblEntityTypeService.java

@@ -58,4 +58,6 @@ public interface ITblEntityTypeService
      * @return 结果
      */
     public int deleteTblEntityTypeByTypeId(String typeId);
+
+    public List<TblEntityType> findAll();
 }

+ 5 - 0
autoremark-business/src/main/java/com/autoremark/business/service/impl/TblEntityTypeServiceImpl.java

@@ -90,4 +90,9 @@ public class TblEntityTypeServiceImpl implements ITblEntityTypeService
     {
         return tblEntityTypeMapper.deleteTblEntityTypeByTypeId(typeId);
     }
+
+    @Override
+    public List<TblEntityType> findAll() {
+        return tblEntityTypeMapper.findAll();
+    }
 }

+ 9 - 0
autoremark-business/src/main/resources/mapper/business/TblEntityTypeMapper.xml

@@ -55,6 +55,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="num3 != null "> and num_3 = #{num3}</if>
         </where>
     </select>
+
+
+
+    <select id="findAll" resultMap="TblEntityTypeResult">
+        <include refid="selectTblEntityTypeVo"/>
+    </select>
+
+
+
     
     <select id="selectTblEntityTypeByTypeId" parameterType="String" resultMap="TblEntityTypeResult">
         <include refid="selectTblEntityTypeVo"/>

+ 9 - 1
autoremark-ui/src/api/business/entity_type.js

@@ -50,4 +50,12 @@ export function exportEntity_type(query) {
     method: 'get',
     params: query
   })
-}
+}
+
+// 查询所有信息
+export function findAll() {
+  return request({
+    url: '/business/entity_type/findall',
+    method: 'get',
+  })
+}