|
|
@@ -1,6 +1,7 @@
|
|
|
package com.uas.platform.b2b.controller;
|
|
|
|
|
|
import java.util.List;
|
|
|
+
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.data.domain.Sort.Direction;
|
|
|
import org.springframework.ui.ModelMap;
|
|
|
@@ -15,6 +16,7 @@ import com.uas.platform.b2b.model.SaleStatYear;
|
|
|
import com.uas.platform.b2b.service.SaleStatService;
|
|
|
import com.uas.platform.b2b.support.SystemSession;
|
|
|
import com.uas.platform.core.model.PageInfo;
|
|
|
+import com.uas.platform.core.util.ArrayUtils;
|
|
|
|
|
|
/**
|
|
|
* 平台销售数据统计
|
|
|
@@ -42,15 +44,15 @@ public class SaleStatController {
|
|
|
PageInfo info = new PageInfo(1, 15, 0);
|
|
|
info.filter("enUU", SystemSession.getUser().getEnterprise().getUu());
|
|
|
info.sorting(Direction.DESC, "year", "month", "day");
|
|
|
- map.put("day", saleStatService.findDayByPageInfo(info).getContent());
|
|
|
+ map.put("day", ArrayUtils.reverse(saleStatService.findDayByPageInfo(info).getContent()));
|
|
|
info = new PageInfo(1, 12, 0);
|
|
|
info.filter("enUU", SystemSession.getUser().getEnterprise().getUu());
|
|
|
info.sorting(Direction.DESC, "year", "month");
|
|
|
- map.put("month", saleStatService.findMonthByPageInfo(info).getContent());
|
|
|
+ map.put("month", ArrayUtils.reverse(saleStatService.findMonthByPageInfo(info).getContent()));
|
|
|
info = new PageInfo(1, 10, 0);
|
|
|
info.filter("enUU", SystemSession.getUser().getEnterprise().getUu());
|
|
|
info.sorting(Direction.DESC, "year");
|
|
|
- map.put("year", saleStatService.findYearByPageInfo(info).getContent());
|
|
|
+ map.put("year", ArrayUtils.reverse(saleStatService.findYearByPageInfo(info).getContent()));
|
|
|
return map;
|
|
|
}
|
|
|
|