功能开发

This commit is contained in:
haozq 2024-03-25 20:32:37 +08:00
parent 06f2ac9bae
commit 135c3108bd
2 changed files with 18 additions and 0 deletions

View File

@ -50,6 +50,12 @@ public class SelectController extends BaseController {
return service.getDictList(code);
}
@PostMapping("getDictSelect")
public AjaxResult getDictSelect(String code) {
return service.getDictSelect(code);
}
@ApiOperation(value = "建管单位下拉选")
@GetMapping("getBuildLists")
public AjaxResult getBuildLists() {

View File

@ -166,4 +166,16 @@ public class SelectServiceImpl implements ISelectService {
}
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);
}
}