|
|
|
@ -1,6 +1,7 @@ |
|
|
|
package cn.chjyj.szwh.service.impl; |
|
|
|
|
|
|
|
import cn.chjyj.szwh.mapper.GoodsMapper; |
|
|
|
import cn.chjyj.szwh.mapper.OrderGoodsDetailMapper; |
|
|
|
import cn.chjyj.szwh.mapper.OrderMapper; |
|
|
|
import cn.chjyj.szwh.service.IndexService; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
@ -18,6 +19,8 @@ public class IndexServiceImpl implements IndexService { |
|
|
|
private GoodsMapper goodsMapper; |
|
|
|
@Autowired |
|
|
|
private OrderMapper orderMapper; |
|
|
|
@Autowired |
|
|
|
private OrderGoodsDetailMapper orderGoodsDetailMapper; |
|
|
|
|
|
|
|
@Override |
|
|
|
public Map<String, Object> getCountSys() { |
|
|
|
@ -53,12 +56,17 @@ public class IndexServiceImpl implements IndexService { |
|
|
|
String yesterday=sdf.format(calendar.getTime()); |
|
|
|
String yesterday_start = yesterday+"00:00:00"; |
|
|
|
String yesterday_end = yesterday+"23:59:59"; |
|
|
|
//交易数量
|
|
|
|
Integer dealGoodsCount=orderGoodsDetailMapper.countOrderGoodsDetailByTimeSection(yesterday_start,yesterday_end); |
|
|
|
result.put("deal_goods_count",dealGoodsCount); |
|
|
|
|
|
|
|
//交易总额
|
|
|
|
result.put("deal_money",goodsCount); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
result.put("order_money",goodsCount); |
|
|
|
result.put("deal_goods_count",goodsCount); |
|
|
|
|
|
|
|
result.put("shelf_count",goodsCount); |
|
|
|
result.put("out_count",goodsCount); |
|
|
|
result.put("yester_order_count",goodsCount); |
|
|
|
|