|
|
|
@@ -55,6 +55,7 @@ public class MsgSendingSchedule { |
|
|
|
for (WxMsg msg : list) { |
|
|
|
//sendmsg(msg); |
|
|
|
msg.setStatus(EnumMsgStatus.MSG_STATUS_SENDED.getCode()); |
|
|
|
logger.info("sendmsg定时任务"+wxMsg.getWay()); |
|
|
|
if(EnumSendWay.TAG.getCode().equals(wxMsg.getWay())){ |
|
|
|
if (wxMsg.getExpectSendNumber().intValue() > 1000) { |
|
|
|
WxMsgService.batchSendMsg(wxMsg, null, null); |
|
|
|
@@ -67,6 +68,7 @@ public class MsgSendingSchedule { |
|
|
|
}else if(EnumSendWay.APPINFOR.getCode().equals(msg.getWay())){ |
|
|
|
WxMsgService.batchSendAppinfo(msg); |
|
|
|
}else{ |
|
|
|
logger.info("sendmsg定时任务"+wxMsg.getWay()); |
|
|
|
break; |
|
|
|
} |
|
|
|
wxMsgMapper.updateById(msg); |
|
|
|
|