35 lines
1013 B
Java
35 lines
1013 B
Java
|
|
package com.newyetai.codesetting.dao;
|
||
|
|
|
||
|
|
import com.newyetai.codesetting.dto.CodeSettingDTO;
|
||
|
|
import com.newyetai.codesetting.dto.CodeSettingPageQueryDTO;
|
||
|
|
import com.newyetai.codesetting.dto.CodeSettingQueryDTO;
|
||
|
|
import com.newyetai.codesetting.entity.CodeSetting;
|
||
|
|
import com.newyetai.tkmybatis.mybatis.MyMapper;
|
||
|
|
import org.apache.ibatis.annotations.Mapper;
|
||
|
|
import org.apache.ibatis.annotations.Param;
|
||
|
|
import org.apache.ibatis.annotations.Select;
|
||
|
|
|
||
|
|
import java.util.List;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 编码表
|
||
|
|
*
|
||
|
|
* @author chenyun chenyun.home@outlook.com
|
||
|
|
* @since 1.0.0 2023-01-04
|
||
|
|
*/
|
||
|
|
@Mapper
|
||
|
|
public interface CodeSettingMapper extends MyMapper<CodeSetting> {
|
||
|
|
|
||
|
|
List<CodeSettingDTO> page(@Param("param") CodeSettingPageQueryDTO queryDTO);
|
||
|
|
|
||
|
|
List<CodeSettingDTO> list(@Param("param") CodeSettingQueryDTO queryDTO);
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 根据类型查询
|
||
|
|
*
|
||
|
|
* @param type
|
||
|
|
* @return
|
||
|
|
*/
|
||
|
|
@Select("select * from xs_code_setting where type = #{type} and deleted = 0")
|
||
|
|
List<CodeSetting> queryByType(String type);
|
||
|
|
}
|