diff --git a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/gift/LuckyGiftGiveCmdExe.java b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/gift/LuckyGiftGiveCmdExe.java index 3eca5705..062d8b0d 100644 --- a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/gift/LuckyGiftGiveCmdExe.java +++ b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/gift/LuckyGiftGiveCmdExe.java @@ -91,10 +91,12 @@ public class LuckyGiftGiveCmdExe { userProfileGateway.removeCache(cmd.requiredReqUserId()); // 检查是否未完成任务 - Boolean taskStatus = taskService.checkTaskStatus(cmd.getReqUserId(), 8L, null); + String nowed = LocalDateTimeUtils.nowFormat("yyyy-MM-dd"); + Boolean taskStatus = taskService.checkTaskStatus(cmd.getReqUserId(), 8L, nowed); if (taskStatus) { taskMqMessage.sendTask(TaskApprovalEvent.builder() .taskId(8) + .day(nowed) .quantity(cmd.getQuantity()) .userId(cmd.getReqUserId()) .build());