guoyujie
2025-10-28 2666eed6d79350e8f20b402cccb016a3384471a0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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.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")
@RequiredArgsConstructor
@Api(value="App专属接口",tags={"App专属接口"})
public class AppController {
    private final OrderService orderService;
 
    @ApiOperation("订单报表")
    @PostMapping("/getOrderList")
    public Result getOrderList(@RequestBody List<LocalDate> dates) {
        return Result.success(orderService.appGetOrderList(dates));
    }
}