|
|
@ -206,4 +206,24 @@ public class DictDataServiceImpl implements DictDataService { |
|
|
|
throw new UtilException( "字典类型" + ptype + "无效"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public DictDataDO selectDictLabel(String plabel){ |
|
|
|
QueryWrapper queryWrapper = new QueryWrapper(); |
|
|
|
queryWrapper.eq("plabel",plabel); |
|
|
|
DictTypeDO dictTypeDO = dictTypeMapper.selectOne(queryWrapper); |
|
|
|
if(dictTypeDO != null && 0 == dictTypeDO.getStatus()){ |
|
|
|
QueryWrapper queryWrapper1 = new QueryWrapper(); |
|
|
|
queryWrapper1.eq("label",plabel); |
|
|
|
DictDataDO dictDataDO = dictDataMapper.selectOne(queryWrapper1); |
|
|
|
if(dictDataDO != null && 0 == dictDataDO.getStatus()){ |
|
|
|
return dictDataDO; |
|
|
|
}else { |
|
|
|
throw new UtilException( "未查到字典相关标签"); |
|
|
|
} |
|
|
|
}else { |
|
|
|
throw new UtilException( "字典标签" + plabel + "无效"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|