|
|
@@ -22,10 +22,11 @@ public class SysDictTypeRepository extends ServiceImpl<SysDictTypeDao, SysDictTy
|
|
|
/**
|
|
|
* 根据类型查询字典类型
|
|
|
*/
|
|
|
- public SysDictType selectByType(String type) {
|
|
|
+ public SysDictType selectByType(String type,String name) {
|
|
|
LambdaQueryWrapper<SysDictType> wrapper = new LambdaQueryWrapper<>();
|
|
|
wrapper.eq(SysDictType::getType, type)
|
|
|
- .eq(SysDictType::getDelFlag, 0);
|
|
|
+ .eq(SysDictType::getName, name)
|
|
|
+ .eq(SysDictType::getDelFlag, 0);
|
|
|
return this.getOne(wrapper);
|
|
|
}
|
|
|
|