修改治理bug
This commit is contained in:
@@ -182,11 +182,9 @@ public class DeptController extends BaseController {
|
|||||||
public HttpResult<Object> deptTree() {
|
public HttpResult<Object> deptTree() {
|
||||||
String methodDescribe = getMethodDescribe("deptTree");
|
String methodDescribe = getMethodDescribe("deptTree");
|
||||||
List<DeptTreeVO> result = deptService.deptTree();
|
List<DeptTreeVO> result = deptService.deptTree();
|
||||||
if (!result.isEmpty()) {
|
//删除返回失败,查不到数据返回空数组,兼容治理项目没有部门直接报错的bug
|
||||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, result, methodDescribe);
|
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, result, methodDescribe);
|
||||||
} else {
|
|
||||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.NO_DATA, null, methodDescribe);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user