|
1
2
3
|
package com.order.erp.controller;
import com.order.erp.common.constant.ServerResult;
|
|
4
|
import com.order.erp.domain.vo.OrderProfitAnalysisVo;
|
|
5
|
import com.order.erp.domain.vo.order.OrderProfitAnalysisVO;
|
|
6
|
import com.order.erp.domain.vo.order.ProfitCalculateVO;
|
|
7
|
import com.order.erp.service.order.OrderProfitAnalysisService;
|
|
8
|
import org.springframework.validation.annotation.Validated;
|
|
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
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 javax.annotation.Resource;
/**
* @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")
|
|
31
|
public ServerResult<OrderProfitAnalysisVO> analysis(@RequestBody @Validated OrderProfitAnalysisVo orderProfitAnalysisVo) {
|
|
32
|
return orderProfitAnalysisService.analysis(orderProfitAnalysisVo);
|
|
33
|
}
|
|
34
35
36
37
38
|
@PostMapping("/calculate")
public ServerResult calculate(@RequestBody @Validated ProfitCalculateVO calculateVO) {
return orderProfitAnalysisService.calculate(calculateVO);
}
|
|
39
|
}
|