Commit 4bbf0657 by sunxiwang

1、修复活码列表排序bug

2、修复群发详情报错
1 parent 2b26e802
......@@ -3,6 +3,7 @@ package com.linkwechat.wecom.factory.impl.customer;
import com.alibaba.fastjson.JSONObject;
import com.linkwechat.common.constant.WeConstans;
import com.linkwechat.common.enums.MediaType;
import com.linkwechat.common.utils.StringUtils;
import com.linkwechat.wecom.domain.callback.WeBackBaseVo;
import com.linkwechat.wecom.domain.callback.WeBackCustomerVo;
import com.linkwechat.wecom.domain.*;
......@@ -49,7 +50,7 @@ public class WeCallBackAddExternalContactImpl extends WeEventStrategy {
weCustomerService.getCustomersInfoAndSynchWeCustomer(customerInfo.getExternalUserID(),customerInfo.getUserID());
}
if (customerInfo.getState() != null && customerInfo.getWelcomeCode() != null) {
if (StringUtils.isNotEmpty(customerInfo.getState()) && StringUtils.isNotEmpty(customerInfo.getWelcomeCode())) {
if (isFission(customerInfo.getState())) {
taskFissionRecordHandle(customerInfo.getState(), customerInfo.getWelcomeCode(), customerInfo.getUserID(), customerInfo.getExternalUserID());
} else {
......
......@@ -88,7 +88,7 @@ public class WeGroupMessageTemplateServiceImpl extends ServiceImpl<WeGroupMessag
detailVo.setSendTime(weGroupMessageTemplate.getSendTime());
detailVo.setContent(weGroupMessageTemplate.getContent());
List<WeGroupMessageListVo> groupMsgDetail = weGroupMessageListService.getGroupMsgDetail(id);
if (groupMsgDetail != null) {
if (CollectionUtil.isNotEmpty(groupMsgDetail)) {
detailVo.setAttachments(groupMsgDetail.get(0).getAttachments());
//待发送人员列表
......
......@@ -8,10 +8,14 @@ import cn.hutool.core.thread.ThreadUtil;
import cn.hutool.core.util.ObjectUtil;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.linkwechat.common.core.page.PageDomain;
import com.linkwechat.common.core.page.TableSupport;
import com.linkwechat.common.exception.wecom.WeComException;
import com.linkwechat.common.utils.DateUtils;
import com.linkwechat.common.utils.StringUtils;
import com.linkwechat.common.utils.sql.SqlUtil;
import com.linkwechat.wecom.client.WeExternalContactClient;
import com.linkwechat.wecom.domain.WeCustomer;
import com.linkwechat.wecom.domain.WeQrCode;
......@@ -124,6 +128,9 @@ public class WeQrCodeServiceImpl extends ServiceImpl<WeQrCodeMapper, WeQrCode> i
List<WeQrCodeDetailVo> weQrCodeList = new ArrayList<>();
List<Long> qrCodeIdList = this.baseMapper.getQrCodeList(qrCodeListQuery);
if (CollectionUtil.isNotEmpty(qrCodeIdList)) {
PageDomain pageDomain = TableSupport.buildPageRequest();
String orderBy = SqlUtil.escapeOrderBySql(pageDomain.getOrderBy());
PageHelper.orderBy(orderBy);
List<WeQrCodeDetailVo> qrDetailByQrIds = this.baseMapper.getQrDetailByQrIds(qrCodeIdList);
List<WeQrScopeVo> weQrScopeVoList = scopeService.getWeQrScopeByQrIds(qrCodeIdList);
Map<Long, List<WeQrScopeVo>> weQrScopeMap = Optional.ofNullable(weQrScopeVoList).orElseGet(ArrayList::new).stream().collect(Collectors.groupingBy(WeQrScopeVo::getQrId));
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!