2 changed files with 20 additions and 1 deletions
@ -1,14 +1,33 @@ |
|||
package cn.chjyj.szwh.service.impl; |
|||
|
|||
import cn.chjyj.szwh.mapper.GoodsMapper; |
|||
import cn.chjyj.szwh.service.IndexService; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.stereotype.Service; |
|||
|
|||
import java.util.HashMap; |
|||
import java.util.Map; |
|||
|
|||
@Service |
|||
public class IndexServiceImpl implements IndexService { |
|||
@Autowired |
|||
private GoodsMapper goodsMapper; |
|||
|
|||
@Override |
|||
public Map<String, Object> getCountSys(Map<String, Object> map) { |
|||
// 拼装查询结果
|
|||
Map<String,Object> result = new HashMap<>(); |
|||
Map gmap = new HashMap(); |
|||
// 统计商品数量
|
|||
gmap.put("is_deleted",0); |
|||
int goodsCount= goodsMapper.goodsCount(gmap); |
|||
gmap.clear(); |
|||
|
|||
// 待付款数量
|
|||
|
|||
|
|||
|
|||
result.put("goods_count",goodsCount); |
|||
return null; |
|||
} |
|||
} |
|||
|
|||
Loading…
Reference in new issue