|
|
|
@ -438,4 +438,23 @@ public class SysDictionaryController extends CoreBaseController{
|
|
|
|
|
return ImppExceptionBuilder.newInstance().buildExceptionResult(e);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 根据父级id查询字典
|
|
|
|
|
* @param parentId 父级id
|
|
|
|
|
* @return 查询数据
|
|
|
|
|
*/
|
|
|
|
|
@GetMapping("/find-child/{parentId}")
|
|
|
|
|
@ApiOperation(value = "根据父级id查询字典",notes = "根据父级id查询字典")
|
|
|
|
|
public ResultBean<SysDictionary> findSysDictionaryByParentId(@PathVariable("parentId") String parentId){
|
|
|
|
|
try {
|
|
|
|
|
List<SysDictionary> dictionaryList = sysDictionaryService.findSysDictionaryByParentId(Long.parseLong(parentId));
|
|
|
|
|
return ResultBean.success("操作成功").setCode(ResourceEnumUtil.MESSAGE.SUCCESS.getCode()).setResultList(dictionaryList);
|
|
|
|
|
}catch(ImppBusiException busExcep){
|
|
|
|
|
return ResultBean.fail(busExcep);
|
|
|
|
|
}catch(Exception e){
|
|
|
|
|
return ImppExceptionBuilder.newInstance().buildExceptionResult(e);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|