package com.dl.system.mapper; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.dl.common.constant.UserConstants; import com.dl.common.core.domain.entity.SysDictData; import com.dl.common.core.mapper.BaseMapperPlus; import java.util.List; /** * 字典表 数据层 * * @author Lion Li */ public interface SysDictDataMapper extends BaseMapperPlus { default List selectDictDataByType(String dictType) { return selectList( new LambdaQueryWrapper() .eq(SysDictData::getStatus, UserConstants.DICT_NORMAL) .eq(SysDictData::getDictType, dictType) .orderByAsc(SysDictData::getDictSort)); } }