微信消息订阅job问题修复
This commit is contained in:
parent
53aca6ede9
commit
e2d62d40f0
@ -518,7 +518,7 @@ public class AccountUserBindConnectServiceImpl extends BaseServiceImpl<AccountUs
|
||||
@Override
|
||||
public long getAllBindCount(String bindTmpl) {
|
||||
QueryWrapper<AccountUserBindConnect> queryWrapper = new QueryWrapper<>();
|
||||
queryWrapper.eq("bind_type", Arrays.asList(BindCode.MOBILE,BindCode.WEIXIN_XCX))
|
||||
queryWrapper.in("bind_type", Arrays.asList(BindCode.MOBILE,BindCode.WEIXIN_XCX))
|
||||
.eq("user_type", CommonConstant.USER_TYPE_NORMAL)
|
||||
.eq("bind_active", CommonConstant.Enable)
|
||||
.eq("bind_tmpl",bindTmpl)
|
||||
|
||||
@ -16,9 +16,9 @@ public class XcxSubSendMessageJob extends QuartzJobBean {
|
||||
|
||||
@Override
|
||||
protected void executeInternal(JobExecutionContext jobExecutionContext) throws JobExecutionException {
|
||||
Logger logger = LoggerFactory.getLogger(UpdateVoucherStatusJob.class);
|
||||
ShopMessageTemplateService shopMessageTemplateService = SpringUtil.getBean(ShopMessageTemplateService.class);
|
||||
Logger logger = LoggerFactory.getLogger(XcxSubSendMessageJob.class);
|
||||
logger.info("小程序订阅号消息发送消息开始--------start");
|
||||
ShopMessageTemplateService shopMessageTemplateService = SpringUtil.getBean(ShopMessageTemplateService.class);
|
||||
shopMessageTemplateService.sendToXcxAllUserMessage();
|
||||
logger.info("小程序订阅号消息发送消息结束-------end");
|
||||
}
|
||||
|
||||
@ -779,9 +779,9 @@ public class ShopMessageTemplateServiceImpl extends BaseServiceImpl<ShopMessageT
|
||||
// 等待所有任务完成
|
||||
for (Future<?> future : futures) {
|
||||
try {
|
||||
log.info("规格任务结果: {}", future.get());
|
||||
log.info("推送任务结果: {}", future.get());
|
||||
} catch (Exception e) {
|
||||
log.info("规格任务执行异常: {}", e.getMessage());
|
||||
log.info("推送任务执行异常: {}", e.getMessage());
|
||||
}
|
||||
}
|
||||
executor.shutdown();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user