Commit 1538d55c by 郑永强

bug: [none] 解决导出问题

parent dd70e755
...@@ -1152,9 +1152,11 @@ public class BookAdviserBizImpl implements BookAdviserBiz { ...@@ -1152,9 +1152,11 @@ public class BookAdviserBizImpl implements BookAdviserBiz {
} catch (InterruptedException | ExecutionException | TimeoutException e) { } catch (InterruptedException | ExecutionException | TimeoutException e) {
LOGGER.error("获取二维码信息错误: {}==", e); LOGGER.error("获取二维码信息错误: {}==", e);
} }
// 只查询公众号二维码中未被删除的sceneId对应的企业微信资源数 if(CollUtil.isNotEmpty(mapQrcodeMessage)){
String strSceneIds = mapQrcodeMessage.values().stream().map(x -> x.getSceneIdStr()).collect(Collectors.joining(",")); // 只查询公众号二维码中未被删除的sceneId对应的企业微信资源数
mapWxworkServeCount = bookQrcodeWxworkBiz.mapWxWorkServeCount4BookIds(adviserIds, bookIds, channelIds, strSceneIds); String strSceneIds = mapQrcodeMessage.values().stream().map(x -> x.getSceneIdStr()).collect(Collectors.joining(","));
mapWxworkServeCount = bookQrcodeWxworkBiz.mapWxWorkServeCount4BookIds(adviserIds, bookIds, channelIds, strSceneIds);
}
try { try {
mapBookGroupServeCount = mapBookGroupServeCountSubmit.get(); mapBookGroupServeCount = mapBookGroupServeCountSubmit.get();
}catch (InterruptedException | ExecutionException e) { }catch (InterruptedException | ExecutionException e) {
......
...@@ -125,7 +125,7 @@ ...@@ -125,7 +125,7 @@
SELECT SELECT
CONCAT(book_id,'_',channel_id,'_',adviser_id) bookChannelAdviserId, book_qrcode_id bookQrcodeId,COUNT(id) serveCount, CONCAT(book_id,'_',channel_id,'_',adviser_id) bookChannelAdviserId, book_qrcode_id bookQrcodeId,COUNT(id) serveCount,
book_id bookId, adviser_id adviserId, channel_id channelId, COUNT(DISTINCT book_qrcode_id) qrcodeCount, book_id bookId, adviser_id adviserId, channel_id channelId, COUNT(DISTINCT book_qrcode_id) qrcodeCount,
GROUP_CONCAT(book_qrcode_id) sceneIdStr GROUP_CONCAT(DISTINCT book_qrcode_id) sceneIdStr
FROM FROM
book_qrcode_wxwork book_qrcode_wxwork
WHERE WHERE
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment