From 93c4cc2cd185e8ace37a69146cf2707eda4f56fb Mon Sep 17 00:00:00 2001 From: 疯狂的狮子Li <15040126243@163.com> Date: 星期一, 07 十一月 2022 17:01:46 +0800 Subject: [PATCH] !244 【轻量级Pr】修正oss日志错误 Merge pull request !244 from 陈賝/dev --- ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysDictDataMapper.java | 17 ++++++++++++++--- 1 files changed, 14 insertions(+), 3 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..0d506bc 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,13 +1,24 @@ package com.ruoyi.system.mapper; +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; +import com.ruoyi.common.constant.UserConstants; import com.ruoyi.common.core.domain.entity.SysDictData; -import com.ruoyi.common.core.page.BaseMapperPlus; +import com.ruoyi.common.core.mapper.BaseMapperPlus; + +import java.util.List; /** * 瀛楀吀琛� 鏁版嵁灞� * - * @author ruoyi + * @author Lion Li */ -public interface SysDictDataMapper extends BaseMapperPlus<SysDictData> { +public interface SysDictDataMapper extends BaseMapperPlus<SysDictDataMapper, SysDictData, SysDictData> { + default List<SysDictData> selectDictDataByType(String dictType) { + return selectList( + new LambdaQueryWrapper<SysDictData>() + .eq(SysDictData::getStatus, UserConstants.DICT_NORMAL) + .eq(SysDictData::getDictType, dictType) + .orderByAsc(SysDictData::getDictSort)); + } } -- Gitblit v1.9.3