| | |
| | | |
| | | @GetMapping("/summary") |
| | | @Operation(summary = "获得销售统计") |
| | | @PreAuthorize("@ss.hasPermission('erp:statistics:query')") |
| | | public CommonResult<ErpSaleSummaryRespVO> getSaleSummary() { |
| | | LocalDateTime today = LocalDateTimeUtils.getToday(); |
| | | LocalDateTime yesterday = LocalDateTimeUtils.getYesterday(); |
| | |
| | | @GetMapping("/time-summary") |
| | | @Operation(summary = "获得销售时间段统计") |
| | | @Parameter(name = "count", description = "时间段数量", example = "6") |
| | | @PreAuthorize("@ss.hasPermission('erp:statistics:query')") |
| | | public CommonResult<List<ErpSaleTimeSummaryRespVO>> getSaleTimeSummary( |
| | | @RequestParam(value = "count", defaultValue = "6") Integer count) { |
| | | List<ErpSaleTimeSummaryRespVO> summaryList = new ArrayList<>(); |