| New file |
| | |
| | | package com.example.erp.controller; |
| | | |
| | | import com.example.erp.common.Result; |
| | | import com.example.erp.entity.sd.Order; |
| | | import com.example.erp.service.sd.OrderService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | @RestController |
| | | @RequestMapping("/app") |
| | | @RequiredArgsConstructor |
| | | @Api(value="App专属接口",tags={"App专属接口"}) |
| | | public class AppController { |
| | | private final OrderService orderService; |
| | | |
| | | @ApiOperation("订单报表") |
| | | @PostMapping("/getOrderList") |
| | | public Result getOrderList() { |
| | | return Result.success(orderService.appGetOrderList()); |
| | | } |
| | | } |