添加字典功能及初始化数据
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
package com.emotion.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.emotion.entity.Dictionary;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 字典Mapper接口
|
||||
*
|
||||
* @author huazhongmin
|
||||
* @date 2025-12-22
|
||||
*/
|
||||
public interface DictionaryMapper extends BaseMapper<Dictionary> {
|
||||
|
||||
/**
|
||||
* 根据字典类型查询字典集合
|
||||
*
|
||||
* @param dictType 字典类型
|
||||
* @return 字典集合
|
||||
*/
|
||||
List<Dictionary> selectByDictType(@Param("dictType") String dictType);
|
||||
|
||||
/**
|
||||
* 根据字典类型和状态查询字典集合
|
||||
*
|
||||
* @param dictType 字典类型
|
||||
* @param status 状态
|
||||
* @return 字典集合
|
||||
*/
|
||||
List<Dictionary> selectByDictTypeAndStatus(@Param("dictType") String dictType, @Param("status") Integer status);
|
||||
}
|
||||
Reference in New Issue
Block a user