| | |
| | | int year = cal.get(Calendar.YEAR); |
| | | QueryWrapper<Car> wrapper = new QueryWrapper<>(); |
| | | |
| | | int m = cal.get(Calendar.MONTH) + 1; |
| | | |
| | | Month month= iCarService.getCarCount(year); |
| | | if (month==null) { |
| | | month = new Month(); |
| | | } |
| | | |
| | | List<Integer> list = new ArrayList<>(); |
| | | list.add(month.getJanuary()); |
| | | list.add(month.getFebruary()); |
| | |
| | | list.add(month.getOctober()); |
| | | list.add(month.getNovember()); |
| | | list.add(month.getDecember()); |
| | | |
| | | for (int i=m;i<12;i++){ |
| | | list.set(i,0); |
| | | } |
| | | return new ResultUtil<Object>().setData(list); |
| | | } |
| | | |
| | |
| | | Calendar cal = Calendar.getInstance(); |
| | | int year = cal.get(Calendar.YEAR); |
| | | QueryWrapper<Car> wrapper = new QueryWrapper<>(); |
| | | |
| | | int m = cal.get(Calendar.MONTH) + 1; |
| | | |
| | | Month month= iCustomerService.getCustomerCount(year); |
| | | if (month==null) { |
| | |
| | | list.add(month.getOctober()); |
| | | list.add(month.getNovember()); |
| | | list.add(month.getDecember()); |
| | | |
| | | for (int i=m;i<12;i++){ |
| | | list.set(i,0); |
| | | } |
| | | return new ResultUtil<Object>().setData(list); |
| | | } |
| | | |