| | |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import java.time.LocalDate; |
| | | import java.util.List; |
| | | |
| | | @RestController |
| | | @RequestMapping("/app") |
| | |
| | | |
| | | @ApiOperation("订单报表") |
| | | @PostMapping("/getOrderList") |
| | | public Result getOrderList() { |
| | | return Result.success(orderService.appGetOrderList()); |
| | | public Result getOrderList(@RequestBody List<LocalDate> dates) { |
| | | return Result.success(orderService.appGetOrderList(dates)); |
| | | } |
| | | } |