Browse Source

msg

release_toaliyun_real
xhxu 4 years ago
parent
commit
30cce236a7
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      mallinkSchedule/src/main/java/com/iformall/schedule/MsgSendingSchedule.java

+ 2
- 0
mallinkSchedule/src/main/java/com/iformall/schedule/MsgSendingSchedule.java View File

@@ -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);


Loading…
Cancel
Save