Commit 1fdb99dd by 田超

Merge branch 'fixbug/mapResourceTotalCount' into 'master'

bug: [none] 解决导出问题

See merge request rays/pcloud-book!1205
parents dd70e755 1538d55c
...@@ -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);
} }
if(CollUtil.isNotEmpty(mapQrcodeMessage)){
// 只查询公众号二维码中未被删除的sceneId对应的企业微信资源数 // 只查询公众号二维码中未被删除的sceneId对应的企业微信资源数
String strSceneIds = mapQrcodeMessage.values().stream().map(x -> x.getSceneIdStr()).collect(Collectors.joining(",")); String strSceneIds = mapQrcodeMessage.values().stream().map(x -> x.getSceneIdStr()).collect(Collectors.joining(","));
mapWxworkServeCount = bookQrcodeWxworkBiz.mapWxWorkServeCount4BookIds(adviserIds, bookIds, channelIds, strSceneIds); 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