From 1d1fbb360230525a579bd9c5aaef8753508137d3 Mon Sep 17 00:00:00 2001 From: zhc077 <565291854@qq.com> Date: Wed, 23 Oct 2024 15:20:10 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E4=B9=A6-=E5=9F=BA=E6=9C=AC?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=20=E5=8A=9F=E8=83=BD=E6=B7=BB=E5=8A=A0=2010.?= =?UTF-8?q?23?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/demo/project/controller/ProjectController.java | 6 ++++++ .../kejigongguan/xiangmushu/jiBenXinXi.api.ts | 5 +++++ 2 files changed, 11 insertions(+) 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}); + /** * 删除单个 */