CalculateProfitController.java
2.47 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
package com.order.erp.controller;
import com.order.erp.common.constant.ServerResult;
import com.order.erp.domain.vo.order.BusinessProfitRatioQueryVO;
import com.order.erp.domain.vo.order.InnerProfitRatioQueryVO;
import com.order.erp.service.order.impl.CalculateProfitServiceImpl;
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;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
/**
* 应收款账单表(InvoiceBillOrder)表控制层
*
* @author makejava
* @since 2024-08-05 16:26:34
*/
@RestController
@RequestMapping("/order/erp/calculate_profit")
public class CalculateProfitController {
/**
* 服务对象
*/
@Resource
private CalculateProfitServiceImpl calculateProfitService;
/**
* 业务/研发净利润分析
*
* @param queryVO 查询条件
* @return 查询结果
*/
@PostMapping("/business_profit_ratio")
public ServerResult businessProfitRatio(@RequestBody @Validated BusinessProfitRatioQueryVO queryVO) {
return calculateProfitService.businessProfitRatio(queryVO);
}
/**
* 业务/研发净利润分析-导出
*
* @param queryVO 查询条件
* @return 查询结果
*/
@PostMapping("/business_profit_ratio_export")
public void businessProfitRatioExport(HttpServletResponse response, @RequestBody @Validated BusinessProfitRatioQueryVO queryVO) throws IOException {
calculateProfitService.businessProfitRatioExport(response, queryVO);
}
/**
* 内部生产净利润分析表
*
* @param queryVO 查询条件
* @return 查询结果
*/
@PostMapping("/inner_profit_ratio")
public ServerResult innerProfitRatio(@RequestBody @Validated InnerProfitRatioQueryVO queryVO) {
return calculateProfitService.innerProfitRatio(queryVO);
}
/**
* 内部生产净利润分析表-导出
*
* @param queryVO 查询条件
* @return 查询结果
*/
@PostMapping("/inner_profit_ratio_export")
public void innerProfitRatioExport(HttpServletResponse response,@RequestBody @Validated InnerProfitRatioQueryVO queryVO) throws IOException {
calculateProfitService.innerProfitRatioExport(response,queryVO);
}
}