gunshi-project-ss/src/main/java/com/gunshi/project/xyt/mapper/SysDictBMapper.java

25 lines
717 B
Java
Raw Normal View History

2024-07-08 17:47:02 +08:00
package com.gunshi.project.xyt.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gunshi.project.xyt.model.SysDictB;
import org.apache.ibatis.annotations.Mapper;
2024-08-28 17:43:20 +08:00
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import java.util.List;
2024-07-08 17:47:02 +08:00
/**
* :
* author: xusan
* date: 2024-07-08 15:44:08
*/
@Mapper
public interface SysDictBMapper extends BaseMapper<SysDictB> {
2024-08-28 17:43:20 +08:00
@Select("""
<script>
select t.* from public.sys_dict_b t where pid = (select id from public.sys_dict_b where dict_cd = #{dictCd})
</script>
""")
List<SysDictB> listByCd(@Param("dictCd") String dictCd);
2024-07-08 17:47:02 +08:00
}