diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/project/controller/ProjectController.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/project/controller/ProjectController.java index 897aad1..87397e2 100644 --- a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/project/controller/ProjectController.java +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/project/controller/ProjectController.java @@ -67,6 +67,12 @@ public class ProjectController extends JeecgController return Result.OK(pageList); } + @ApiOperation(value = "项目表-根据id查询", notes = "项目表-根据id查询") + @GetMapping(value = "/getById") + public Result getById(Project project,HttpServletRequest req) { + return Result.OK(projectService.getById(project.getId())); + } + /** * 添加 * diff --git a/jeecgboot-vue3/src/views/projectApplication/kejigongguan/xiangmushu/jiBenXinXi.api.ts b/jeecgboot-vue3/src/views/projectApplication/kejigongguan/xiangmushu/jiBenXinXi.api.ts index 214539b..00c08af 100644 --- a/jeecgboot-vue3/src/views/projectApplication/kejigongguan/xiangmushu/jiBenXinXi.api.ts +++ b/jeecgboot-vue3/src/views/projectApplication/kejigongguan/xiangmushu/jiBenXinXi.api.ts @@ -5,6 +5,7 @@ const {createConfirm} = useMessage(); enum Api { list = '/project/project/list', + getOne = '/project/project/getById', save = '/project/project/add', shenbao = '/project/project/save4shenbao', edit = '/project/project/edit', @@ -30,6 +31,10 @@ export const getImportUrl = Api.importExcel; export const list = (params) => defHttp.get({url: Api.list, params}); + +export const getById = (params) => + defHttp.get({url: Api.getOne, params}); + /** * 删除单个 */