|
|
|
@ -8,6 +8,8 @@ import cn.hutool.core.util.StrUtil;
|
|
|
|
|
import cn.hutool.extra.emoji.EmojiUtil;
|
|
|
|
|
import cn.hutool.json.JSONUtil;
|
|
|
|
|
import com.baomidou.dynamic.datasource.annotation.DS;
|
|
|
|
|
import com.google.common.collect.Lists;
|
|
|
|
|
import com.google.common.collect.Sets;
|
|
|
|
|
import com.hchbox.config.DataSourceConfiguration;
|
|
|
|
|
import com.hchbox.constant.*;
|
|
|
|
|
import com.hchbox.dto.BathSendMessageDTO;
|
|
|
|
@ -87,8 +89,11 @@ public class TaskMessageServiceImpl implements TaskMessageService {
|
|
|
|
|
sellerAccount.getParentId() : sellerAccount.getId();
|
|
|
|
|
List<String> buyerNickByUserId = blacklistService.queryBuyerNickByUserId(accountId);
|
|
|
|
|
submitSendMessageVo.setMessageInfo(EmojiUtil.toUnicode(submitSendMessageVo.getMessageInfo()));
|
|
|
|
|
// 重复数据
|
|
|
|
|
submitSendMessageVo.setBuyerInfoList(Lists.newArrayList(Sets.newHashSet(submitSendMessageVo.getBuyerInfoList())));
|
|
|
|
|
// 剔除黑名单
|
|
|
|
|
submitSendMessageVo.getBuyerInfoList().removeAll(buyerNickByUserId);
|
|
|
|
|
|
|
|
|
|
String templateStr = RemindTemplates.initShopTitle(submitSendMessageVo.getMessageInfo(), sellerAccount.getShopTitle());
|
|
|
|
|
if (StringUtils.isBlank(templateStr)) {
|
|
|
|
|
log.info("========== trade rate handler template is null nick as {} ===========", sellerAccount.getNickname());
|
|
|
|
|