...
|
...
|
@@ -26,6 +26,7 @@ import org.slf4j.Logger; |
|
|
import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.util.CollectionUtils;
|
|
|
|
...
|
...
|
@@ -64,6 +65,9 @@ public class ChannelGroupServiceImpl implements IChannelGroupService { |
|
|
@Autowired
|
|
|
private IChannelSmsBlackDAO channelSmsBlackDAO;
|
|
|
|
|
|
@Value("${business.mobile}")
|
|
|
private String businessMobile;
|
|
|
|
|
|
@Autowired
|
|
|
private ErpApiServiceHelper erpApiServiceHelper;
|
|
|
|
...
|
...
|
@@ -184,11 +188,15 @@ public class ChannelGroupServiceImpl implements IChannelGroupService { |
|
|
List<String> blackList = channelSmsBlackDAO.selectAll();
|
|
|
mobileSet.removeAll(blackList);
|
|
|
|
|
|
//2.3添加默认运营的号码
|
|
|
List<String> businessMobileList = Arrays.asList(businessMobile.split(","));
|
|
|
mobileSet.addAll(businessMobileList);
|
|
|
|
|
|
//剔除黑名单后,发送手机号为空,返回
|
|
|
if (CollectionUtils.isEmpty(mobileSet)) {
|
|
|
logger.info("not find users to send message,param channelGroupRequestBO{}", channelGroupRequestBO);
|
|
|
return 0;
|
|
|
}
|
|
|
// if (CollectionUtils.isEmpty(mobileSet)) {
|
|
|
// logger.info("not find users to send message,param channelGroupRequestBO{}", channelGroupRequestBO);
|
|
|
// return 0;
|
|
|
// }
|
|
|
|
|
|
//3.记录分组批次表
|
|
|
int sendTime = DateUtils.getCurrentTimeSecond();
|
...
|
...
|
|