|
@@ -13,6 +13,7 @@ import com.tzld.piaoquan.growth.common.model.po.*;
|
|
|
import com.tzld.piaoquan.growth.common.service.MessageAttachmentService;
|
|
|
import com.tzld.piaoquan.growth.common.service.MessageService;
|
|
|
import com.tzld.piaoquan.growth.common.utils.ToolUtils;
|
|
|
+import com.xxl.job.core.biz.model.ReturnT;
|
|
|
import com.xxl.job.core.handler.annotation.XxlJob;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -63,7 +64,7 @@ public class WeComSpecialDataJob {
|
|
|
}
|
|
|
|
|
|
@XxlJob("sendSpecialPushMessageJob")
|
|
|
- public void sendSpecialPushMessage() {
|
|
|
+ public ReturnT<String> sendSpecialPushMessage(String param) {
|
|
|
List<SpecialSendMessage> groupList = specialSendMessageMapper.getGroupList();
|
|
|
for (SpecialSendMessage specialSendMessage : groupList) {
|
|
|
List<String> externalUserIds = specialSendMessageMapper.selectExternalUserId(specialSendMessage.getStaffId(), specialSendMessage.getGroup());
|
|
@@ -80,6 +81,7 @@ public class WeComSpecialDataJob {
|
|
|
specialSendMessageMapper.updateByExampleSelective(updateSpecialSendMessage, example);
|
|
|
}
|
|
|
}
|
|
|
+ return ReturnT.SUCCESS;
|
|
|
}
|
|
|
|
|
|
private boolean specialPushMessage(List<String> sendUserList, SpecialSendMessage specialSendMessage) {
|