| | |
| | | JhyOrderDetailsVo detailsVo = new JhyOrderDetailsVo(); |
| | | BeanUtil.copyProperties(order, detailsVo); |
| | | |
| | | detailsVo.setLongitude(order.getLongitude()); |
| | | detailsVo.setLatitude(order.getLatitude()); |
| | | detailsVo.setAddress(order.getArea() + order.getAddress()); |
| | | detailsVo.setTotalPrice(total); |
| | | detailsVo.setItems(items); |
| | |
| | | distribService.distribRecord(order.getId(), order.getUserId()); |
| | | } |
| | | |
| | | public Map<Integer, Integer> orderStatusCount(String userId) { |
| | | List<JhyStatusCountVo> count = jhyOrderMapper.selectOrderStatusCount(userId); |
| | | public Map<Integer, Integer> orderStatusCount(Integer type, String userId) { |
| | | List<JhyStatusCountVo> count = jhyOrderMapper.selectOrderStatusCount(type, userId); |
| | | |
| | | Map<Integer, Integer> map = new HashMap<>(); |
| | | for (int i = 1; i < 6; i++) { |