mitao
2024-06-20 cd55aff7eea06f77a8f712cef1ad2744c44d0f8a
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
30
31
package com.ruoyi.order.controller.management;
 
import com.ruoyi.common.core.domain.R;
import com.ruoyi.order.controller.management.dto.MgtOrderStaticsQuery;
import com.ruoyi.order.controller.management.vo.MgtOrderStaticsVO;
import com.ruoyi.order.service.impl.MgtBusinessDataService;
import io.swagger.annotations.Api;
import lombok.RequiredArgsConstructor;
import org.springframework.validation.annotation.Validated;
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;
 
/**
 * @author mitao
 * @date 2024/6/19
 */
@Api(tags = "业务数据相关接口")
@RestController
@RequestMapping("/mgt/business-data")
@RequiredArgsConstructor
public class MgtBusinessDataController {
 
    private final MgtBusinessDataService mgtBusinessDataService;
 
    @PostMapping("/get-overview")
    public R<MgtOrderStaticsVO> getOverview(@Validated @RequestBody MgtOrderStaticsQuery query) {
        return R.ok(mgtBusinessDataService.getOverview(query));
    }
}