From 17f45fe20aeaa233bce56c6d5287265aa8613aad Mon Sep 17 00:00:00 2001 From: yujian <yujian@163.com> Date: 星期四, 11 六月 2020 14:36:26 +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