|
@@ -1,6 +1,7 @@
|
1
|
1
|
package com.chinaitop.depot.intelligent.priceApproval.controller;
|
2
|
2
|
|
3
|
3
|
|
|
4
|
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
4
|
5
|
import com.chinaitop.depot.intelligent.common.ResponseEntity;
|
5
|
6
|
import com.chinaitop.depot.intelligent.financialSupervision.model.BusinessFsOutConfirmDiffPriceItem;
|
6
|
7
|
import com.chinaitop.depot.intelligent.priceApproval.model.*;
|
|
@@ -80,7 +81,7 @@ public class BusinessFsSaleRevenueController {
|
80
|
81
|
|
81
|
82
|
@GetMapping("/getCardInfo/{orgId}/{basicStorehouseId}/{warehouseId}")
|
82
|
83
|
@ApiOperation(value = "原核定入库价格", notes = "原核定入库价格")
|
83
|
|
- public ResponseEntity<List<BusinessFsSaleRevenueApprovalPrice>> getCardInfo(@PathVariable("orgId") Integer orgId,
|
|
84
|
+ public ResponseEntity<BusinessFsSaleRevenueApprovalPrice> getCardInfo(@PathVariable("orgId") Integer orgId,
|
84
|
85
|
@PathVariable("basicStorehouseId") Integer basicStorehouseId,
|
85
|
86
|
@PathVariable("warehouseId") Integer warehouseId) {
|
86
|
87
|
return ResponseEntity.ok(saleRevenueService.getCardInfo(orgId, basicStorehouseId, warehouseId));
|
|
@@ -93,4 +94,29 @@ public class BusinessFsSaleRevenueController {
|
93
|
94
|
return ResponseEntity.ok();
|
94
|
95
|
}
|
95
|
96
|
|
|
97
|
+ @PostMapping("/details/{id}")
|
|
98
|
+ @ApiOperation(value = "销售收入上缴详情", notes = "详情")
|
|
99
|
+ public ResponseEntity details(@PathVariable("id") Integer id) {
|
|
100
|
+ return ResponseEntity.ok(saleRevenueService.detailsData(id));
|
|
101
|
+ }
|
|
102
|
+
|
|
103
|
+ @PostMapping("/update")
|
|
104
|
+ @ApiOperation(value = "销售收入上缴修改", notes = "修改")
|
|
105
|
+ public ResponseEntity update(@Validated @RequestBody BusinessFsSaleRevenue param) {
|
|
106
|
+ saleRevenueService.updateData(param);
|
|
107
|
+ return ResponseEntity.ok();
|
|
108
|
+ }
|
|
109
|
+
|
|
110
|
+ @GetMapping("/getPageList")
|
|
111
|
+ @ApiOperation(value = "分页列表", notes = "支持分页")
|
|
112
|
+ public ResponseEntity<Page<BusinessFsSaleRevenue>> getPageList(@Validated BusinessFsSaleRevenuePage param) {
|
|
113
|
+ return ResponseEntity.ok(saleRevenueService.selectPageList(param));
|
|
114
|
+ }
|
|
115
|
+
|
|
116
|
+ @PostMapping("/delete/{id}")
|
|
117
|
+ @ApiOperation(value = "销售收入上缴删除", notes = "删除")
|
|
118
|
+ public ResponseEntity delete(@PathVariable("id") Integer id) {
|
|
119
|
+ saleRevenueService.deleteData(id);
|
|
120
|
+ return ResponseEntity.ok();
|
|
121
|
+ }
|
96
|
122
|
}
|