35 lines
1007 B
Java
35 lines
1007 B
Java
package com.senmesh.codesetting.dao;
|
|
|
|
import com.senmesh.codesetting.dto.CodeSettingDTO;
|
|
import com.senmesh.codesetting.dto.CodeSettingPageQueryDTO;
|
|
import com.senmesh.codesetting.dto.CodeSettingQueryDTO;
|
|
import com.senmesh.codesetting.entity.CodeSetting;
|
|
import com.senmesh.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);
|
|
} |