|
|
|
@ -175,6 +175,21 @@ public class SysDictionaryController extends CoreBaseController{
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@GetMapping(value = "/find/{code}")
|
|
|
|
|
@ApiOperation(value = "根据父级code查询平台字典项", notes = "根据父级code查询平台字典项")
|
|
|
|
|
public ResultBean findSysDictionaryByParentCode(@PathVariable("code") String code) {
|
|
|
|
|
try {
|
|
|
|
|
List<SysDictionary> sysDictionaryList = sysDictionaryService.findSysDictionaryBySoftTypeAndParentCode(
|
|
|
|
|
CommonEnumUtil.SOFT_TYPE.CORE.getValue(),code
|
|
|
|
|
);
|
|
|
|
|
return ResultBean.success("操作成功").setResultList(sysDictionaryList).setCode(ResourceEnumUtil.MESSAGE.SUCCESS.getCode());
|
|
|
|
|
} catch (ImppBusiException busExcep) {
|
|
|
|
|
return ResultBean.fail(busExcep);
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
return ImppExceptionBuilder.newInstance().buildExceptionResult(e);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@GetMapping(value = "/find/user-info")
|
|
|
|
|
@ApiOperation(value = "查询跟用户相关所有字典")
|
|
|
|
|
public ResultBean findSysDictionaryUserInfo() {
|
|
|
|
@ -282,7 +297,7 @@ public class SysDictionaryController extends CoreBaseController{
|
|
|
|
|
if(group.containsKey(softType.getValue())){
|
|
|
|
|
child = new HashMap();
|
|
|
|
|
child.put("id",softType.getValue());
|
|
|
|
|
child.put("name",softType.getCode());
|
|
|
|
|
child.put("name",softType.getDescription());
|
|
|
|
|
child.put("childList",group.get(softType.getValue()));
|
|
|
|
|
dictTree.add(child);
|
|
|
|
|
}
|
|
|
|
|