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)); }