From 3c901b2289729b8d13689a52faaffb3cd1124594 Mon Sep 17 00:00:00 2001 From: zhuo <2089219845@qq.com> Date: 星期四, 27 三月 2025 13:25:08 +0800 Subject: [PATCH] 修改标准库查询bug --- cnas-manage/src/main/java/com/ruoyi/manage/controller/InternalMeetingController.java | 30 +++++++++++++++--------------- 1 files changed, 15 insertions(+), 15 deletions(-) diff --git a/cnas-manage/src/main/java/com/ruoyi/manage/controller/InternalMeetingController.java b/cnas-manage/src/main/java/com/ruoyi/manage/controller/InternalMeetingController.java index f8ecb39..705bd42 100644 --- a/cnas-manage/src/main/java/com/ruoyi/manage/controller/InternalMeetingController.java +++ b/cnas-manage/src/main/java/com/ruoyi/manage/controller/InternalMeetingController.java @@ -2,12 +2,14 @@ import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; -import com.ruoyi.manage.annotation.ValueAuth; +import com.deepoove.poi.data.style.*; +import com.ruoyi.common.core.domain.Result; +import com.ruoyi.common.utils.JackSonUtil; import com.ruoyi.manage.dto.InternalMeetingDto; import com.ruoyi.manage.pojo.InternalMeeting; import com.ruoyi.manage.service.InternalMeetingService; -import com.ruoyi.manage.utils.JackSonUtil; -import com.ruoyi.manage.vo.Result; +import com.deepoove.poi.data.style.*; +import com.deepoove.poi.data.style.*; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import lombok.AllArgsConstructor; @@ -34,15 +36,13 @@ /** * 鍐呭浼氳鍒嗛〉鏌ヨ - * @param data + * @param * @return */ - @ValueAuth + @ApiOperation(value = "鍐呭浼氳鍒嗛〉鏌ヨ") - @PostMapping("/pageInternalMeeting") - public Result<IPage<InternalMeetingDto>> pageInternalMeeting(@RequestBody Map<String, Object> data) throws Exception { - Page page = JackSonUtil.unmarshal(JackSonUtil.marshal(data.get("page")), Page.class); - InternalMeeting internalMeeting = JackSonUtil.unmarshal(JackSonUtil.marshal(data.get("entity")), InternalMeeting.class); + @GetMapping("/pageInternalMeeting") + public Result<IPage<InternalMeetingDto>> pageInternalMeeting(Page page,InternalMeeting internalMeeting) throws Exception { return Result.success(internalMeetingService.pageInternalMeeting(page, internalMeeting)); } @@ -50,7 +50,7 @@ * 鍐呭浼氳鏂板 * @return */ - @ValueAuth + @ApiOperation(value = "鍐呭浼氳鏂板") @PostMapping("/addInternalMeeting") public Result addInternalMeeting(@RequestBody InternalMeetingDto internalMeeting){ @@ -61,7 +61,7 @@ * 鍐呭浼氳淇敼 * @return */ - @ValueAuth + @ApiOperation(value = "鍐呭浼氳淇敼") @PostMapping("/updateInternalMeeting") public Result updateInternalMeeting(@RequestBody InternalMeetingDto internalMeeting){ @@ -72,9 +72,9 @@ * 鍐呭浼氳鍒犻櫎 * @return */ - @ValueAuth + @ApiOperation(value = "鍐呭浼氳鍒犻櫎") - @GetMapping("/delInternalMeeting") + @DeleteMapping("/delInternalMeeting") public Result delInternalMeeting(Integer meetingId){ return Result.success(internalMeetingService.delInternalMeeting(meetingId)); } @@ -83,7 +83,7 @@ * 鍐呭浼氳鏌ョ湅璇︽儏 * @return */ - @ValueAuth + @ApiOperation(value = "鍐呭浼氳鏌ョ湅璇︽儏") @GetMapping("/getInternalMeetingOne") public Result<InternalMeetingDto> getInternalMeetingOne(Integer meetingId){ @@ -94,7 +94,7 @@ * 瀵煎嚭鍐呭浼氳 * @return */ - @ValueAuth + @ApiOperation(value = "瀵煎嚭鍐呭浼氳") @GetMapping("/exportInternalMeeting") public void exportInternalMeeting(Integer meetingId, HttpServletResponse response){ -- Gitblit v1.9.3