Commit b2857c4a by daixing

fix-空指针

parent 9af44ce4
...@@ -1422,9 +1422,9 @@ public class BookGroupBizImpl implements BookGroupBiz { ...@@ -1422,9 +1422,9 @@ public class BookGroupBizImpl implements BookGroupBiz {
statisticsIncomeDto.setProductId(e.getRescourceId()); statisticsIncomeDto.setProductId(e.getRescourceId());
statisticsIncomeDto.setIncome(e.getTotalIncome()); statisticsIncomeDto.setIncome(e.getTotalIncome());
statisticsIncomeDto.setProductName(e.getRescourceName()); statisticsIncomeDto.setProductName(e.getRescourceName());
statisticsIncomeDto.setSaleCounts(e.getSaleCount().intValue()); statisticsIncomeDto.setSaleCounts(e.getSaleCount() == null ? 0 : e.getSaleCount().intValue());
statisticsIncomeDto.setSaleMoney(e.getTotalSale()); statisticsIncomeDto.setSaleMoney(e.getTotalSale());
statisticsIncomeDto.setScanCounts(e.getBrowseCount().intValue()); statisticsIncomeDto.setScanCounts(e.getBrowseCount() == null? 0 :e.getBrowseCount().intValue());
productStatisticsIncomeDtos.add(statisticsIncomeDto); productStatisticsIncomeDtos.add(statisticsIncomeDto);
}); });
productStaticUnderAppMap.put(k,productStatisticsIncomeDtos); productStaticUnderAppMap.put(k,productStatisticsIncomeDtos);
......
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