|
|
|
@ -80,7 +80,7 @@ public class TimerTaskServiceImpl implements TimerTaskService {
|
|
|
|
|
as.setSellerNick(sellerNick);
|
|
|
|
|
List<TopTrade> list = tradeJpa.getConfirmReceipt(as, tradeStatus);
|
|
|
|
|
if (CollUtil.isEmpty(list)) {
|
|
|
|
|
log.info("======================卖家:{},在 {} 未查询到可发送的 {} 订单==============", sellerNick, DateUtil.now(), settingType);
|
|
|
|
|
log.info("======================卖家:{},在 {} 未查询到可发送的 {} 订单==============", sellerNick, DateUtil.now(), AppSettingTypeEnum.valueOf(settingType));
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
//过滤黑名单
|
|
|
|
@ -105,7 +105,7 @@ public class TimerTaskServiceImpl implements TimerTaskService {
|
|
|
|
|
public void deduct(List<TopTrade> tradeList, SendTemplate template, SellerAccount sellerAccount, AppSetting as, List<String> subNickList) {
|
|
|
|
|
for (TopTrade info : tradeList) {
|
|
|
|
|
String templateStr;
|
|
|
|
|
if (ObjectUtil.isEmpty(template)||StrUtil.isBlank(template.getContent())) {
|
|
|
|
|
if (ObjectUtil.isEmpty(template) || StrUtil.isBlank(template.getContent())) {
|
|
|
|
|
templateStr = RemindTemplates.initShopTitle(as.getMemoContent(), sellerAccount.getShopTitle());
|
|
|
|
|
} else {
|
|
|
|
|
templateStr = RemindTemplates.initShopTitle(template.getContent(), sellerAccount.getShopTitle());
|
|
|
|
@ -129,7 +129,7 @@ public class TimerTaskServiceImpl implements TimerTaskService {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void conditionFilter(List<TopTrade> list, AppSetting as, Integer settingType) {
|
|
|
|
|
if (CollUtil.isNotEmpty(list)) {
|
|
|
|
|
if (CollUtil.isEmpty(list)) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
//一天只发送一次
|
|
|
|
|