瀏覽代碼

事项列表添加接口

lidongyu 1 年之前
父節點
當前提交
d00c71a0a4

+ 8 - 1
ruoyi-admin/src/main/java/com/ruoyi/web/controller/matter/matterConllter.java

@@ -34,7 +34,14 @@ public class matterConllter extends BaseController {
             List<Matter> list = matterService.selectSysMatterVo(matter);
             return getDataTable(list);
         }
-
+    /**
+     * 查询事项列表
+     */
+    @GetMapping("/listAll")
+    public AjaxResult listAll(Matter matter)
+    {
+        return success(matterService.selectSysMatterVo(matter));
+    }
         /**
          * 获取事项详细信息
          */

+ 3 - 0
sooka-jnb/src/main/resources/mapper/matter/matterMapper.xml

@@ -27,6 +27,9 @@
             <if test="examine != null and examine !=''">
                 AND examine LIKE '%' #{examine} '%'
             </if>
+            <if test="type != null and type !=''">
+                AND type = #{type}
+            </if>
         </where>
     </select>