|
1
2
3
|
package com.order.erp.controller;
import com.order.erp.common.constant.ServerResult;
|
|
4
|
import com.order.erp.domain.vo.OrderProfitAnalysisVo;
|
曾国涛
authored
|
5
6
|
import com.order.erp.domain.vo.order.*;
import com.order.erp.service.order.IOrderCostInfoService;
|
|
7
|
import com.order.erp.service.order.OrderProfitAnalysisService;
|
曾国涛
authored
|
8
9
10
|
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
|
|
11
|
import org.springframework.validation.annotation.Validated;
|
曾国涛
authored
|
12
|
import org.springframework.web.bind.annotation.*;
|
|
13
14
|
import javax.annotation.Resource;
|
曾国涛
authored
|
15
16
17
18
|
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.Arrays;
import java.util.Collections;
|
|
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
/**
* @author zhongnanhuang
* @version 1.0
* @project order-erp
* @description 订单利润表控制层
* @date 2023/10/23 11:48:36
*/
@RestController
@RequestMapping("/order/erp/profit")
public class OrderProfitController {
@Resource
OrderProfitAnalysisService orderProfitAnalysisService;
@PostMapping("/analysis")
|
|
35
|
public ServerResult<OrderProfitAnalysisVO> analysis(@RequestBody @Validated OrderProfitAnalysisVo orderProfitAnalysisVo) {
|
|
36
|
return orderProfitAnalysisService.analysis(orderProfitAnalysisVo);
|
|
37
|
}
|
|
38
39
40
41
42
|
@PostMapping("/calculate")
public ServerResult calculate(@RequestBody @Validated ProfitCalculateVO calculateVO) {
return orderProfitAnalysisService.calculate(calculateVO);
}
|
曾国涛
authored
|
43
|
|
|
44
|
}
|