| | |
| | | |
| | | @Override |
| | | public void getDataStatisticsCountByIds(List<Integer> ids, Model model) { |
| | | Integer pendingOrderCount = tOrderMapper.getDataStatisticsCountByIds(ids, OrderStateEnum.PENDING_ORDER.getCode(), LocalDate.now()); |
| | | Integer finishCount = tOrderMapper.getDataStatisticsCountByIds(ids, OrderStateEnum.FINISH.getCode(),LocalDate.now()); |
| | | Integer cancelCount = tOrderMapper.getDataStatisticsCountByIds(ids, OrderStateEnum.CANCELED.getCode(),LocalDate.now()); |
| | | Integer pendingOrderCount = tOrderMapper.getDataStatisticsCountByIds(ids, 1, LocalDate.now()); |
| | | Integer finishCount = tOrderMapper.getDataStatisticsCountByIds(ids, 2,LocalDate.now()); |
| | | Integer cancelCount = tOrderMapper.getDataStatisticsCountByIds(ids, 3,LocalDate.now()); |
| | | Integer serverCount = tOrderMapper.getDataStatisticsServerCountByIds(ids, LocalDate.now()); |
| | | |
| | | model.addAttribute("pendingOrderCount",pendingOrderCount); |
| | |
| | | |
| | | @Override |
| | | public void getDataStatisticsCountByIdsGetMap(List<Integer> ids, HashMap<String, Object> map) { |
| | | Integer pendingOrderCount = tOrderMapper.getDataStatisticsCountByIds(ids, OrderStateEnum.PENDING_ORDER.getCode(), LocalDate.now()); |
| | | Integer finishCount = tOrderMapper.getDataStatisticsCountByIds(ids, OrderStateEnum.FINISH.getCode(),LocalDate.now()); |
| | | Integer cancelCount = tOrderMapper.getDataStatisticsCountByIds(ids, OrderStateEnum.CANCELED.getCode(),LocalDate.now()); |
| | | Integer pendingOrderCount = tOrderMapper.getDataStatisticsCountByIds(ids, 1, LocalDate.now()); |
| | | Integer finishCount = tOrderMapper.getDataStatisticsCountByIds(ids, 2,LocalDate.now()); |
| | | Integer cancelCount = tOrderMapper.getDataStatisticsCountByIds(ids, 3,LocalDate.now()); |
| | | Integer serverCount = tOrderMapper.getDataStatisticsServerCountByIds(ids, LocalDate.now()); |
| | | |
| | | map.put("pendingOrderCount",pendingOrderCount); |