谢茂盛
authored
|
1
2
|
package com.order.erp.controller;
|
谢茂盛
authored
|
3
|
import com.order.erp.common.annotation.AnonymousAccess;
|
谢茂盛
authored
|
4
|
import com.order.erp.common.constant.ServerResult;
|
谢茂盛
authored
|
5
|
import com.order.erp.common.excel4j.exceptions.Excel4JException;
|
谢茂盛
authored
|
6
|
import com.order.erp.common.jsr303.OperateGroup;
|
谢茂盛
authored
|
7
|
import com.order.erp.domain.vo.order.*;
|
谢茂盛
authored
|
8
|
import com.order.erp.service.order.InvoiceBillOrderService;
|
谢茂盛
authored
|
9
|
import io.swagger.annotations.ApiOperation;
|
谢茂盛
authored
|
10
11
12
13
14
15
16
|
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;
|
谢茂盛
authored
|
17
18
|
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
|
谢茂盛
authored
|
19
20
21
22
23
24
25
26
|
/**
* 应收款账单表(InvoiceBillOrder)表控制层
*
* @author makejava
* @since 2024-08-05 16:26:34
*/
@RestController
|
谢茂盛
authored
|
27
|
@RequestMapping("/order/erp/invoice_bill")
|
谢茂盛
authored
|
28
29
30
31
32
33
34
35
36
37
38
39
40
|
public class InvoiceBillOrderController {
/**
* 服务对象
*/
@Resource
private InvoiceBillOrderService invoiceBillOrderService;
/**
* 分页查询
*
* @param invoiceBillOrderQueryVO 查询条件
* @return 查询结果
*/
|
谢茂盛
authored
|
41
42
43
|
@PostMapping("/list_by_page")
public ServerResult listByPage(@RequestBody @Validated({OperateGroup.List.class}) InvoiceBillOrderQueryVO invoiceBillOrderQueryVO) {
return invoiceBillOrderService.listByPage(invoiceBillOrderQueryVO);
|
谢茂盛
authored
|
44
45
46
|
}
/**
|
谢茂盛
authored
|
47
|
* 基础订单查询
|
谢茂盛
authored
|
48
|
*
|
谢茂盛
authored
|
49
50
|
* @param queryVO 查询条件
* @return 查询结果
|
谢茂盛
authored
|
51
|
*/
|
谢茂盛
authored
|
52
|
@PostMapping("/list_base_order_info_by")
|
谢茂盛
authored
|
53
|
public ServerResult listBaseOrderInfoBy(@RequestBody @Validated InvoiceBaseOrderQueryVO queryVO) {
|
谢茂盛
authored
|
54
|
return invoiceBillOrderService.listBaseOrderInfoBy(queryVO);
|
谢茂盛
authored
|
55
56
|
}
|
谢茂盛
authored
|
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
/**
* 分析列表
*
* @param queryVO 查询条件
* @return 查询结果
*/
@PostMapping("/list_analysis_by")
public ServerResult listAnalysisBy(@RequestBody @Validated({OperateGroup.List.class}) InvoiceBillAnalysisVO queryVO) {
return invoiceBillOrderService.listAnalysisBy(queryVO);
}
/**
* 导出分析列表
*
* @param queryVO 查询条件
* @return 查询结果
*/
@PostMapping(value = "/export")
@ApiOperation("导出分析列表")
@AnonymousAccess
public void export(HttpServletResponse response, @RequestBody @Validated InvoiceBillAnalysisVO queryVO) throws IOException, Excel4JException {
invoiceBillOrderService.export(response, queryVO);
}
|
谢茂盛
authored
|
80
|
|
谢茂盛
authored
|
81
|
/**
|
谢茂盛
authored
|
82
|
* 创建invoice单据
|
谢茂盛
authored
|
83
|
*
|
谢茂盛
authored
|
84
|
* @param createVO 数据VO
|
谢茂盛
authored
|
85
86
|
* @return 新增结果
*/
|
谢茂盛
authored
|
87
88
89
90
91
92
|
@PostMapping("/create")
public ServerResult create(@RequestBody InvoiceBillCreateVO createVO) {
return invoiceBillOrderService.create(createVO);
}
/**
|
谢茂盛
authored
|
93
94
95
96
97
98
99
100
101
102
103
|
* 获取必须回款日期
*
* @param createVO 数据VO
* @return 新增结果
*/
@PostMapping("/get_back_refund_date")
public ServerResult getBackRefundDate(@RequestBody InvoiceBillCreateVO createVO) {
return invoiceBillOrderService.getBackRefundDate(createVO);
}
/**
|
谢茂盛
authored
|
104
105
106
107
108
109
110
111
|
* 更新扣款信息
*
* @param deductInfoVO 数据VO
* @return 编辑结果
*/
@PostMapping("/update_deduct_info")
public ServerResult updateDeductInfo(@RequestBody InvoiceBillDeductInfoVO deductInfoVO) {
return invoiceBillOrderService.updateDeductInfo(deductInfoVO);
|
谢茂盛
authored
|
112
113
114
|
}
/**
|
谢茂盛
authored
|
115
|
* 更新其他金额信息
|
谢茂盛
authored
|
116
|
*
|
谢茂盛
authored
|
117
|
* @param amountInfoVO 数据VO
|
谢茂盛
authored
|
118
119
|
* @return 编辑结果
*/
|
谢茂盛
authored
|
120
121
122
|
@PostMapping("/update_amount_info")
public ServerResult updateAmountInfo(@RequestBody InvoiceBillAmountInfoVO amountInfoVO) {
return invoiceBillOrderService.updateAmountInfo(amountInfoVO);
|
谢茂盛
authored
|
123
124
125
|
}
/**
|
谢茂盛
authored
|
126
127
128
129
130
131
132
133
134
135
136
|
* 提交审核
*
* @param commitApplyVO 数据VO
* @return 编辑结果
*/
@PostMapping("/commit_apply")
public ServerResult commitApply(@RequestBody InvoiceBillCommitApplyVO commitApplyVO) {
return invoiceBillOrderService.commitApply(commitApplyVO);
}
/**
|
谢茂盛
authored
|
137
138
139
140
141
142
143
144
145
146
147
148
|
* 删除数据
*
* @param invoiceBillOrderQueryVO 查询条件
* @return 删除是否成功
*/
@PostMapping("/delete_by_id")
public ServerResult deleteById(@RequestBody InvoiceBillOrderQueryVO invoiceBillOrderQueryVO) {
return invoiceBillOrderService.deleteById(invoiceBillOrderQueryVO);
}
}
|