From 8b25dae4f4481a72a1adbb09a6628f2e001f45b1 Mon Sep 17 00:00:00 2001 From: yujian <yujian@163.com> Date: 星期三, 29 四月 2020 16:25:46 +0800 Subject: [PATCH] 动态自动删除过期 --- fanli/src/main/java/com/yeshi/fanli/job/ShameUserInviteCodePublishJOB.java | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/job/ShameUserInviteCodePublishJOB.java b/fanli/src/main/java/com/yeshi/fanli/job/ShameUserInviteCodePublishJOB.java index edd793e..f6d08f1 100644 --- a/fanli/src/main/java/com/yeshi/fanli/job/ShameUserInviteCodePublishJOB.java +++ b/fanli/src/main/java/com/yeshi/fanli/job/ShameUserInviteCodePublishJOB.java @@ -70,6 +70,9 @@ } catch (InterruptedException e) { e.printStackTrace(); } + // 鏌ヨ鐢ㄦ埛鏄惁杩�3澶╁唴鍙戝竷杩� + if (codePublishRecordService.listValid(userList.get(0).getId(), 0, 1).size() > 0) + return; if (userList != null && userList.size() > 0) { codePublishRecordService.publishInviteCode(userList.get(0).getId()); } -- Gitblit v1.8.0