Commit 01d02491 by 阮思源

修复统计bug

parent 058d0e1a
......@@ -558,6 +558,7 @@ public class BookGroupBizImpl implements BookGroupBiz {
wechatGroupDtoA.setIds(appIds);
wechatGroupDtoA.setPartyId(partyId);
wechatGroupDtoA.setType("APP");
wechatGroupDtoA.setQrcodeId(qrcodeId);
Map<Long, GroupMoneyDto> productSaleMap = tradeConsr.getQrGroupSaleMoney(wechatGroupDtoP);
Map<Long, GroupMoneyDto> appSaleMap = tradeConsr.getQrGroupSaleMoney(wechatGroupDtoA);
for (AppStatisticsDTO appStatisticsDTO : appStatisticsDTOS) {
......
......@@ -318,6 +318,12 @@ public class BookKeywordBizImpl implements BookKeywordBiz {
PageParam pageParam = new PageParam(currentPage, numPerPage);
Map<String, Object> map = new HashMap<>();
map.put("bookGroupId", bookGroupId);
if (!StringUtil.isEmpty(weixinGroupId)) {
GroupQrcode groupQrcode = groupQrcodeDao.getGroupQrcodeByGroupId(weixinGroupId);
if (groupQrcode != null) {
map.put("classifyId", groupQrcode.getClassifyId());
}
}
//分页获取关键词,创建时间,名称信息
PageBeanNew<KeywordStatisticsDTO> pageBeanNew = bookKeywordDao.listPageNew(pageParam, map, "getKeywordInfoByBookGroupId");
List<KeywordStatisticsDTO> keywordStatisticsDTOS = pageBeanNew.getRecordList();
......
......@@ -224,6 +224,9 @@
WHERE
t.is_delete = 0
AND t.book_group_id = #{bookGroupId}
<if test="classifyId!=null">
AND t.classify_id=#{classifyId}
</if>
order by t.create_time desc
</select>
</mapper>
\ No newline at end of file
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