Commit 6edb7155 by 高鹏

Merge branch 'mymaster' into 'master'

修复统计bug

See merge request rays/pcloud-book!18
parents 058d0e1a 01d02491
...@@ -558,6 +558,7 @@ public class BookGroupBizImpl implements BookGroupBiz { ...@@ -558,6 +558,7 @@ public class BookGroupBizImpl implements BookGroupBiz {
wechatGroupDtoA.setIds(appIds); wechatGroupDtoA.setIds(appIds);
wechatGroupDtoA.setPartyId(partyId); wechatGroupDtoA.setPartyId(partyId);
wechatGroupDtoA.setType("APP"); wechatGroupDtoA.setType("APP");
wechatGroupDtoA.setQrcodeId(qrcodeId);
Map<Long, GroupMoneyDto> productSaleMap = tradeConsr.getQrGroupSaleMoney(wechatGroupDtoP); Map<Long, GroupMoneyDto> productSaleMap = tradeConsr.getQrGroupSaleMoney(wechatGroupDtoP);
Map<Long, GroupMoneyDto> appSaleMap = tradeConsr.getQrGroupSaleMoney(wechatGroupDtoA); Map<Long, GroupMoneyDto> appSaleMap = tradeConsr.getQrGroupSaleMoney(wechatGroupDtoA);
for (AppStatisticsDTO appStatisticsDTO : appStatisticsDTOS) { for (AppStatisticsDTO appStatisticsDTO : appStatisticsDTOS) {
......
...@@ -318,6 +318,12 @@ public class BookKeywordBizImpl implements BookKeywordBiz { ...@@ -318,6 +318,12 @@ public class BookKeywordBizImpl implements BookKeywordBiz {
PageParam pageParam = new PageParam(currentPage, numPerPage); PageParam pageParam = new PageParam(currentPage, numPerPage);
Map<String, Object> map = new HashMap<>(); Map<String, Object> map = new HashMap<>();
map.put("bookGroupId", bookGroupId); 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"); PageBeanNew<KeywordStatisticsDTO> pageBeanNew = bookKeywordDao.listPageNew(pageParam, map, "getKeywordInfoByBookGroupId");
List<KeywordStatisticsDTO> keywordStatisticsDTOS = pageBeanNew.getRecordList(); List<KeywordStatisticsDTO> keywordStatisticsDTOS = pageBeanNew.getRecordList();
......
...@@ -224,6 +224,9 @@ ...@@ -224,6 +224,9 @@
WHERE WHERE
t.is_delete = 0 t.is_delete = 0
AND t.book_group_id = #{bookGroupId} AND t.book_group_id = #{bookGroupId}
<if test="classifyId!=null">
AND t.classify_id=#{classifyId}
</if>
order by t.create_time desc order by t.create_time desc
</select> </select>
</mapper> </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