From a432ff3c95923f9929236de9f7a9224e8517bb70 Mon Sep 17 00:00:00 2001 From: huliguo <2023611923@qq.com> Date: 星期五, 23 五月 2025 20:55:43 +0800 Subject: [PATCH] 大屏 --- ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/TCompanyController.java | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/TCompanyController.java b/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/TCompanyController.java index c5e604a..36138e4 100644 --- a/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/TCompanyController.java +++ b/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/TCompanyController.java @@ -31,7 +31,7 @@ public R<Page<TCompany>> unitPage(@RequestBody UnitListQueryDto unitListQueryDto) { Page<TCompany> page = companyService.lambdaQuery() .orderByDesc(TCompany::getCreateTime) - .like(unitListQueryDto.getCompanyName() != null && unitListQueryDto.getCompanyName().isEmpty(), TCompany::getName, unitListQueryDto.getCompanyName()) + .like(unitListQueryDto.getCompanyName() != null && unitListQueryDto.getCompanyName()!="", TCompany::getName, unitListQueryDto.getCompanyName()) .page(Page.of(unitListQueryDto.getPageCurr(), unitListQueryDto.getPageSize())); return R.ok(page); } @@ -50,5 +50,10 @@ public R delete(@RequestParam("id") Integer id) { return R.ok(companyService.removeById(id)); } + + @PostMapping(value = "/unit/detail") + public R detail(@RequestParam("id") Integer id) { + return R.ok(companyService.getById(id)); + } } -- Gitblit v1.7.1