|
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
|
package com.order.erp.controller;
import com.order.erp.common.annotation.AnonymousAccess;
import com.order.erp.common.constant.ServerResult;
import com.order.erp.common.excel4j.exceptions.Excel4JException;
import com.order.erp.common.jsr303.OperateGroup;
import com.order.erp.domain.dto.order.ProducePaymentCheckBillOrderDO;
import com.order.erp.domain.vo.order.*;
import com.order.erp.service.order.ProducePaymentCheckBillOrderService;
import io.swagger.annotations.ApiOperation;
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;
/**
* 生产科对账单应收账单(ProducePaymentCheckBillOrder)表控制
*
* @author makejava
* @since 2024-08-05 16:26:35
*/
@RestController
@RequestMapping("/order/erp/check_bill/")
public class ProducePaymentCheckBillOrderController {
/**
* 服务对象
*/
@Resource
private ProducePaymentCheckBillOrderService producePaymentCheckBillOrderService;
/**
* 分页查询
*
* @param queryVO 查询条件
* @return 查询结果
*/
@PostMapping("/list_by_page")
public ServerResult listByPage(@RequestBody @Validated({OperateGroup.List.class}) ProducePaymentCheckBillOrderQueryVO queryVO) {
return producePaymentCheckBillOrderService.listByPage(queryVO);
}
/**
|
|
48
|
* 基础订单查询 wanchen
|
|
49
50
51
52
53
54
55
56
57
58
|
*
* @param queryVO 查询条件
* @return 查询结果
*/
@PostMapping("/list_base_order_info_by")
public ServerResult listBaseOrderInfoBy(@RequestBody @Validated ProducePaymentBaseOrderQueryVO queryVO) {
return producePaymentCheckBillOrderService.listBaseOrderInfoBy(queryVO);
}
/**
|
|
59
|
* 分析列表 wanchen
|
|
60
61
62
63
64
65
66
67
68
69
|
*
* @param queryVO 查询条件
* @return 查询结果
*/
@PostMapping("/list_analysis_by")
public ServerResult listAnalysisBy(@RequestBody @Validated({OperateGroup.List.class}) ProducePaymentCheckBillOrderQueryVO queryVO) {
return producePaymentCheckBillOrderService.listAnalysisBy(queryVO);
}
/**
|
|
70
|
* 导出分析列表 wanchen
|
|
71
72
73
74
75
76
77
78
79
80
81
82
|
*
* @param queryVO 查询条件
* @return 查询结果
*/
@PostMapping(value = "/export")
@ApiOperation("导出分析列表")
@AnonymousAccess
public void export(HttpServletResponse response, @RequestBody @Validated ProducePaymentCheckBillOrderQueryVO queryVO) throws IOException, Excel4JException {
producePaymentCheckBillOrderService.export(response, queryVO);
}
/**
|
|
83
|
* 创建生产科应付单据 wanchen 2
|
|
84
85
86
87
88
89
90
91
92
93
|
*
* @param createVO 数据VO
* @return 新增结果
*/
@PostMapping("/create")
public ServerResult create(@RequestBody ProducePaymentCheckBillCreateVO createVO) {
return producePaymentCheckBillOrderService.create(createVO);
}
/**
|
|
94
|
* 获取生产科应回款日期 wanchen 2
|
|
95
96
97
98
99
100
101
102
103
104
|
*
* @param createVO 数据VO
* @return 新增结果
*/
@PostMapping("/get_payed_date")
public ServerResult getPayedDate(@RequestBody ProducePaymentCheckBillCreateVO createVO) {
return producePaymentCheckBillOrderService.getPayedDate(createVO);
}
/**
|
|
105
|
* 更新扣款信息 wanchen
|
|
106
107
108
109
110
111
112
113
114
115
|
*
* @param deductInfoVO 数据VO
* @return 编辑结果
*/
@PostMapping("/update_deduct_info")
public ServerResult updateDeductInfo(@RequestBody ProducePaymentCheckBillDeductInfoVO deductInfoVO) {
return producePaymentCheckBillOrderService.updateDeductInfo(deductInfoVO);
}
/**
|
|
116
|
* 更新其他金额信息 wanchen
|
|
117
118
119
120
121
122
123
124
125
126
|
*
* @param amountInfoVO 数据VO
* @return 编辑结果
*/
@PostMapping("/update_amount_info")
public ServerResult updateAmountInfo(@RequestBody ProducePaymentCheckBillAmountInfoVO amountInfoVO) {
return producePaymentCheckBillOrderService.updateAmountInfo(amountInfoVO);
}
/**
|
|
127
|
* 更新发票信息 wanchen
|
|
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
|
*
* @param invoiceInfoVO 数据VO
* @return 编辑结果
*/
@PostMapping("/update_invoice_info")
public ServerResult updateInvoiceInfo(@RequestBody ProducePaymentCheckBillInvoiceInfoVO invoiceInfoVO) {
return producePaymentCheckBillOrderService.updateInvoiceInfo(invoiceInfoVO);
}
/**
* 提交审核
*
* @param commitApplyVO 数据VO
* @return 编辑结果
*/
@PostMapping("/commit_apply")
public ServerResult commitApply(@RequestBody ProducePaymentCheckBillCommitApplyVO commitApplyVO) {
return producePaymentCheckBillOrderService.commitApply(commitApplyVO);
}
/**
|
|
149
|
* 删除数据 wanchen
|
|
150
151
152
153
154
155
156
157
158
|
*
* @param producePaymentCheckBillOrderQueryVO 查询条件
* @return 删除是否成功
*/
@PostMapping("/delete_by_id")
public ServerResult deleteById(@RequestBody ProducePaymentCheckBillOrderQueryVO producePaymentCheckBillOrderQueryVO) {
return producePaymentCheckBillOrderService.deleteById(producePaymentCheckBillOrderQueryVO);
}
/**
|
|
159
|
* 获取扣款单 wanchen 2
|
|
160
161
162
163
164
165
166
167
168
169
|
*
* @param producePaymentCheckBillOrderQueryVO 查询条件
* @return 扣款单
*/
@PostMapping("/getDeductUrl_by_id")
public ServerResult getDeductUrl(@RequestBody ProducePaymentCheckBillOrderQueryVO producePaymentCheckBillOrderQueryVO) {
//一定要保证文件中包含?和/.这样才不会报错。
return producePaymentCheckBillOrderService.getDeductUrlById(producePaymentCheckBillOrderQueryVO);
}
/**
|
|
170
|
* 获取生产科发票 wanchen 2
|
|
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
|
*
* @param producePaymentCheckBillOrderQueryVO 查询条件
* @return 扣款单
*/
@PostMapping("/getInvoiceUrl_by_id")
public ServerResult getInvoiceUrl(@RequestBody ProducePaymentCheckBillOrderQueryVO producePaymentCheckBillOrderQueryVO) {
return producePaymentCheckBillOrderService.getInvoiceUrlById(producePaymentCheckBillOrderQueryVO);
}
/**
* 审核付款单导出
*
* @param queryVO 查询条件
* @return 扣款单
*/
@PostMapping("/exportReceipt")
@AnonymousAccess
public void exportReceipt(HttpServletResponse response, @RequestBody ProducePaymentCheckBillOrderDO queryVO) throws IOException {
producePaymentCheckBillOrderService.exportReceipt(response,queryVO);
}
|
|
190
191
192
193
194
195
|
/**
* 设置应付款日期 wanchen
*
* @param producePaymentCheckBillCreatevo 查询条件
* @return 日期
*/
|
|
196
197
198
199
|
@PostMapping("/setPayedDate")
public void setPayedDate(@RequestBody ProducePaymentCheckBillCreateVO producePaymentCheckBillCreatevo) {
producePaymentCheckBillOrderService.setPayedDate(producePaymentCheckBillCreatevo);
}
|
|
200
201
202
203
204
205
206
207
208
209
|
/**
*设置备注信息 wanchen 2
* @param producePaymentCheckBillCreatevo 备注信息
* @return
*/
@PostMapping("/notes")
public void byIdAddNotes(@RequestBody ProducePaymentCheckBillCreateVO producePaymentCheckBillCreatevo) {
producePaymentCheckBillOrderService.byIdAddNotes(producePaymentCheckBillCreatevo);
}
|
|
210
211
|
}
|