|
@@ -43,25 +43,25 @@ public class InvoiceListController {
|
|
|
|
|
|
@PostMapping("/create")
|
|
|
@Operation(summary = "创建发票")
|
|
|
- public CommonResult<String> createInvoiceList(@Valid @RequestBody InvoiceListSaveReqVO createReqVO) {
|
|
|
+ public CommonResult<Long> createInvoiceList(@Valid @RequestBody InvoiceListSaveReqVO createReqVO) {
|
|
|
return success(invoiceListService.createInvoiceList(createReqVO));
|
|
|
}
|
|
|
|
|
|
- @PutMapping("/update")
|
|
|
- @Operation(summary = "更新发票清单")
|
|
|
- @PreAuthorize("@ss.hasPermission('member:invoice-list:update')")
|
|
|
- public CommonResult<Boolean> updateInvoiceList(@Valid @RequestBody InvoiceListSaveReqVO updateReqVO) {
|
|
|
- invoiceListService.updateInvoiceList(updateReqVO);
|
|
|
- return success(true);
|
|
|
- }
|
|
|
-
|
|
|
- @DeleteMapping("/delete")
|
|
|
- @Operation(summary = "删除发票清单")
|
|
|
- @Parameter(name = "id", description = "编号", required = true)
|
|
|
- public CommonResult<Boolean> deleteInvoiceList(@RequestParam("id") String id) {
|
|
|
- invoiceListService.deleteInvoiceList(id);
|
|
|
- return success(true);
|
|
|
- }
|
|
|
+// @PutMapping("/update")
|
|
|
+// @Operation(summary = "更新发票清单")
|
|
|
+// @PreAuthorize("@ss.hasPermission('member:invoice-list:update')")
|
|
|
+// public CommonResult<Boolean> updateInvoiceList(@Valid @RequestBody InvoiceListSaveReqVO updateReqVO) {
|
|
|
+// invoiceListService.updateInvoiceList(updateReqVO);
|
|
|
+// return success(true);
|
|
|
+// }
|
|
|
+
|
|
|
+// @DeleteMapping("/delete")
|
|
|
+// @Operation(summary = "删除发票清单")
|
|
|
+// @Parameter(name = "id", description = "编号", required = true)
|
|
|
+// public CommonResult<Boolean> deleteInvoiceList(@RequestParam("id") String id) {
|
|
|
+// invoiceListService.deleteInvoiceList(id);
|
|
|
+// return success(true);
|
|
|
+// }
|
|
|
|
|
|
@GetMapping("/get")
|
|
|
@Operation(summary = "获得发票清单")
|
|
@@ -80,17 +80,17 @@ public class InvoiceListController {
|
|
|
return success(BeanUtils.toBean(pageResult, InvoiceListRespVO.class));
|
|
|
}
|
|
|
|
|
|
- @GetMapping("/export-excel")
|
|
|
- @Operation(summary = "导出发票清单 Excel")
|
|
|
-// @PreAuthorize("@ss.hasPermission('member:invoice-list:export')")
|
|
|
- @ApiAccessLog(operateType = EXPORT)
|
|
|
- public void exportInvoiceListExcel(@Valid InvoiceListPageReqVO pageReqVO,
|
|
|
- HttpServletResponse response) throws IOException {
|
|
|
- pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
|
|
|
- List<InvoiceListDO> list = invoiceListService.getInvoiceListPage(pageReqVO).getList();
|
|
|
- // 导出 Excel
|
|
|
- ExcelUtils.write(response, "发票清单.xls", "数据", InvoiceListRespVO.class,
|
|
|
- BeanUtils.toBean(list, InvoiceListRespVO.class));
|
|
|
- }
|
|
|
+// @GetMapping("/export-excel")
|
|
|
+// @Operation(summary = "导出发票清单 Excel")
|
|
|
+//// @PreAuthorize("@ss.hasPermission('member:invoice-list:export')")
|
|
|
+// @ApiAccessLog(operateType = EXPORT)
|
|
|
+// public void exportInvoiceListExcel(@Valid InvoiceListPageReqVO pageReqVO,
|
|
|
+// HttpServletResponse response) throws IOException {
|
|
|
+// pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
|
|
|
+// List<InvoiceListDO> list = invoiceListService.getInvoiceListPage(pageReqVO).getList();
|
|
|
+// // 导出 Excel
|
|
|
+// ExcelUtils.write(response, "发票清单.xls", "数据", InvoiceListRespVO.class,
|
|
|
+// BeanUtils.toBean(list, InvoiceListRespVO.class));
|
|
|
+// }
|
|
|
|
|
|
}
|