From 375a7f7b4c5032f7545a7db872ecdfbbe3e42875 Mon Sep 17 00:00:00 2001 From: 疯狂的狮子Li <15040126243@163.com> Date: 星期三, 02 六月 2021 17:10:40 +0800 Subject: [PATCH] !45 【优化】为代码生成器生成的前端代码添加loading;删除方法回调函数变更为箭头表达式 Merge pull request !45 from 狂盗一枝梅/kdyzm --- ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysDictDataMapper.java | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysDictDataMapper.java b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysDictDataMapper.java index 7f09d7c..3d8971d 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysDictDataMapper.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysDictDataMapper.java @@ -1,7 +1,10 @@ package com.ruoyi.system.mapper; +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.ruoyi.common.core.domain.entity.SysDictData; import com.ruoyi.common.core.page.BaseMapperPlus; + +import java.util.List; /** * 瀛楀吀琛� 鏁版嵁灞� @@ -10,4 +13,11 @@ */ public interface SysDictDataMapper extends BaseMapperPlus<SysDictData> { + default List<SysDictData> selectDictDataByType(String dictType) { + return selectList( + new LambdaQueryWrapper<SysDictData>() + .eq(SysDictData::getStatus, "0") + .eq(SysDictData::getDictType, dictType) + .orderByAsc(SysDictData::getDictSort)); + } } -- Gitblit v1.9.3