功能开发
This commit is contained in:
parent
06f2ac9bae
commit
135c3108bd
|
|
@ -50,6 +50,12 @@ public class SelectController extends BaseController {
|
||||||
return service.getDictList(code);
|
return service.getDictList(code);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@PostMapping("getDictSelect")
|
||||||
|
public AjaxResult getDictSelect(String code) {
|
||||||
|
return service.getDictSelect(code);
|
||||||
|
}
|
||||||
|
|
||||||
@ApiOperation(value = "建管单位下拉选")
|
@ApiOperation(value = "建管单位下拉选")
|
||||||
@GetMapping("getBuildLists")
|
@GetMapping("getBuildLists")
|
||||||
public AjaxResult getBuildLists() {
|
public AjaxResult getBuildLists() {
|
||||||
|
|
|
||||||
|
|
@ -166,4 +166,16 @@ public class SelectServiceImpl implements ISelectService {
|
||||||
}
|
}
|
||||||
return AjaxResult.success(list);
|
return AjaxResult.success(list);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public AjaxResult getDictSelect(String code) {
|
||||||
|
List<TreeNode> groupList = new ArrayList<>();
|
||||||
|
try {
|
||||||
|
groupList = mapper.getDictList(code);
|
||||||
|
} catch (Exception e) {
|
||||||
|
log.error("组织机构树-查询失败", e);
|
||||||
|
}
|
||||||
|
return AjaxResult.success(groupList);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue