From 3206464a2d3709eeac073f56459264e9e2622972 Mon Sep 17 00:00:00 2001 From: haungxing <1203316822@qq.com> Date: Mon, 17 Apr 2023 08:55:09 +0800 Subject: [PATCH] =?UTF-8?q?#=20=E6=8E=A5=E5=8F=A3=E6=89=B9=E9=87=8F?= =?UTF-8?q?=E5=B7=B2=E8=AF=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../hnac/hzims/message/controller/MessagePushRecordController.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hzims-service/message/src/main/java/com/hnac/hzims/message/controller/MessagePushRecordController.java b/hzims-service/message/src/main/java/com/hnac/hzims/message/controller/MessagePushRecordController.java index 530359e..7fac182 100644 --- a/hzims-service/message/src/main/java/com/hnac/hzims/message/controller/MessagePushRecordController.java +++ b/hzims-service/message/src/main/java/com/hnac/hzims/message/controller/MessagePushRecordController.java @@ -16,6 +16,7 @@ import org.springblade.core.boot.ctrl.BladeController; import org.springblade.core.mp.support.Query; import org.springblade.core.secure.utils.AuthUtil; import org.springblade.core.tool.api.R; +import org.springblade.core.tool.utils.Func; import org.springframework.web.bind.annotation.*; import java.time.LocalDateTime; @@ -67,7 +68,7 @@ public class MessagePushRecordController extends BladeController { @GetMapping("/readMessage/{id}") @ApiOperation("读取消息") @ApiOperationSupport(order = 6) - public R readMessage(@PathVariable @ApiParam("消息记录ID") Long id) { + public R readMessage(@PathVariable @ApiParam("消息记录ID") String id) { MessagePushRecordEntity record = messagePushRecordService.getById(id); if(!record.getPusher().equals(AuthUtil.getUserId())) { return R.fail("当前登录人不是消息推送人,修改状态失败"); @@ -75,7 +76,7 @@ public class MessagePushRecordController extends BladeController { LambdaUpdateWrapper eq = Wrappers.lambdaUpdate() .set(MessagePushRecordEntity::getStatus, MessageConstants.CONFIRM) .set(MessagePushRecordEntity::getRespondTime, LocalDateTime.now()) - .eq(MessagePushRecordEntity::getId, id); + .in(MessagePushRecordEntity::getId, Func.toLongList(",",id)); return R.status(messagePushRecordService.update(eq)); }