数据报表-销量 统计值
This commit is contained in:
@@ -436,17 +436,11 @@ public class SummaryServiceImpl implements SummaryService {
|
||||
refCount.setIcon("el-icon-money");
|
||||
list.add(refCount);
|
||||
|
||||
List<TbOrderPayCountVo> tbOrderPayCountVos = detailRepository.queryTbOrderSalesCount(Integer.valueOf(shopId), startTime, endTime);
|
||||
for (TbOrderPayCountVo tbOrderPayCountVo : tbOrderPayCountVos) {
|
||||
if (tbOrderPayCountVo.getPayType().equals("closed")) {
|
||||
tbOrderPayCountVo.setPayType("销售量");
|
||||
tbOrderPayCountVo.setIcon("el-icon-goods");
|
||||
} else if (tbOrderPayCountVo.getPayType().equals("refund")) {
|
||||
tbOrderPayCountVo.setPayType("退单量");
|
||||
tbOrderPayCountVo.setIcon("el-icon-circle-close");
|
||||
}
|
||||
list.add(tbOrderPayCountVo);
|
||||
}
|
||||
TbOrderSalesCountByDayVo numCount = detailRepository.queryTbOrderSalesCount(Integer.valueOf(shopId), startTime, endTime);
|
||||
TbOrderPayCountVo salesNum =new TbOrderPayCountVo("el-icon-goods","销售量","0",numCount.getSalesNum());
|
||||
TbOrderPayCountVo refNum =new TbOrderPayCountVo("el-icon-goods","销售量","0",numCount.getRefNum());
|
||||
list.add(salesNum);
|
||||
list.add(refNum);
|
||||
return list;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user