cloudroam
2025-03-13 d2f062b46a96a2083864d529aff28628eea26b58
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package com.jsh.erp.datasource.mappers;
 
import com.jsh.erp.datasource.entities.SysDictItem;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
 
import java.util.List;
 
@Mapper
public interface SysDictItemMapper {
    List<SysDictItem> selectByDictId(Long dictId);
 
    SysDictItem selectById(Long id);
 
    int insert(SysDictItem sysDictItem);
 
    int update(SysDictItem sysDictItem);
 
    int deleteById(Long id);
 
    int deleteByDictId(Long dictId);
 
    //通过字典类型和字典code查询具体一条
    @Select("SELECT * FROM sys_dict_item di LEFT JOIN sys_dict d ON di.dict_id = d.id WHERE d.dict_code = #{dictCode} AND di.item_text = #{itemText}")
    SysDictItem getByDictCodeAndItemText(String dictCode, String itemText);
}