From d2038a623e02c2d7bb6b95a908832c0432adf2f0 Mon Sep 17 00:00:00 2001
From: huminmin <mac@MacBook-Pro.local>
Date: 星期四, 21 五月 2026 13:46:21 +0800
Subject: [PATCH] 增加日志
---
src/main/java/com/ruoyi/sales/controller/InvoiceLedgerController.java | 32 ++++++++++++++++++++++++++++++++
1 files changed, 32 insertions(+), 0 deletions(-)
diff --git a/src/main/java/com/ruoyi/sales/controller/InvoiceLedgerController.java b/src/main/java/com/ruoyi/sales/controller/InvoiceLedgerController.java
index b7ce1c1..a798d18 100644
--- a/src/main/java/com/ruoyi/sales/controller/InvoiceLedgerController.java
+++ b/src/main/java/com/ruoyi/sales/controller/InvoiceLedgerController.java
@@ -11,6 +11,8 @@
import com.ruoyi.sales.pojo.InvoiceRegistrationProduct;
import com.ruoyi.sales.service.InvoiceLedgerService;
import io.jsonwebtoken.lang.Collections;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
@@ -22,6 +24,7 @@
@RestController
@RequestMapping("/invoiceLedger")
+@Api(tags = "寮�绁ㄥ彴璐︾鐞�")
public class InvoiceLedgerController {
@Autowired
@@ -39,6 +42,8 @@
* @return
*/
@PostMapping("/saveOrUpdate")
+ @ApiOperation("寮�绁ㄥ彴璐︽柊澧�")
+ @Log(title = "寮�绁ㄥ彴璐︽柊澧�", businessType = BusinessType.UPDATE)
public AjaxResult invoiceLedgerSaveOrUpdate(@RequestBody InvoiceRegistrationProductDto productDto) {
invoiceLedgerService.invoiceLedgerSaveOrUpdate(productDto);
return AjaxResult.success();
@@ -50,6 +55,8 @@
* @return
*/
@DeleteMapping("/del")
+ @ApiOperation("寮�绁ㄥ彴璐﹀垹闄�")
+ @Log(title = "寮�绁ㄥ彴璐﹀垹闄�", businessType = BusinessType.DELETE)
public AjaxResult invoiceLedgerDel(@RequestBody List<Integer> ids) {
invoiceLedgerService.invoiceLedgerDel(ids);
return AjaxResult.success();
@@ -62,6 +69,8 @@
* @return
*/
@GetMapping("/page")
+ @ApiOperation("寮�绁ㄥ彴璐﹀垎椤垫煡璇�")
+ @Log(title = "寮�绁ㄥ彴璐﹀垎椤垫煡璇�", businessType = BusinessType.OTHER)
public AjaxResult invoiceLedgerPage(Page page, InvoiceLedgerDto invoiceLedgerDto) {
return AjaxResult.success(invoiceLedgerService.invoiceLedgerPage(page, invoiceLedgerDto));
}
@@ -72,6 +81,8 @@
* @return
*/
@GetMapping("/fileList")
+ @ApiOperation("寮�绁ㄥ彴璐︽枃浠舵煡璇�")
+ @Log(title = "寮�绁ㄥ彴璐︽枃浠舵煡璇�", businessType = BusinessType.OTHER)
public AjaxResult invoiceLedgerFileList(Integer invoiceLedgerId) {
return AjaxResult.success(invoiceLedgerService.invoiceLedgerFileList(invoiceLedgerId));
}
@@ -80,6 +91,7 @@
* 寮�绁ㄥ彴璐︽枃浠跺垹闄�
*/
@DeleteMapping("/delFile")
+ @ApiOperation("寮�绁ㄥ彴璐︽枃浠跺垹闄�")
@Log(title = "寮�绁ㄥ彴璐�", businessType = BusinessType.DELETE)
public AjaxResult invoiceLedgerDelFile(@RequestBody List<Integer> ids) {
if(Collections.isEmpty(ids)) return AjaxResult.error("璇烽�夋嫨瑕佸垹闄ょ殑鏂囦欢");
@@ -95,6 +107,8 @@
* @return
*/
@PostMapping("/uploadFile")
+ @ApiOperation("寮�绁ㄥ彴璐︽枃浠朵笂浼�")
+ @Log(title = "寮�绁ㄥ彴璐︽枃浠朵笂浼�", businessType = BusinessType.OTHER)
public AjaxResult invoiceLedgerUploadFile(MultipartFile file) {
try {
return AjaxResult.success(invoiceLedgerService.invoiceLedgerUploadFile(file));
@@ -110,6 +124,8 @@
* @return
*/
@PostMapping("/export")
+ @ApiOperation("寮�绁ㄥ彴璐﹀鍑�")
+ @Log(title = "寮�绁ㄥ彴璐﹀鍑�", businessType = BusinessType.EXPORT)
public void invoiceLedgerExport(HttpServletResponse response, InvoiceRegistrationProductDto invoiceRegistrationProductDto) {
invoiceLedgerService.invoiceLedgerExport(response, invoiceRegistrationProductDto);
}
@@ -120,6 +136,8 @@
* @return
*/
@GetMapping("/info")
+ @ApiOperation("寮�绁ㄥ彴璐﹁鎯�")
+ @Log(title = "寮�绁ㄥ彴璐﹁鎯�", businessType = BusinessType.OTHER)
public AjaxResult invoiceLedgerInfo(Integer id) {
return AjaxResult.success(invoiceLedgerService.invoiceLedgerDetail(id));
}
@@ -130,6 +148,8 @@
* @return
*/
@PostMapping("/commitFile")
+ @ApiOperation("鏂囦欢鎻愪氦")
+ @Log(title = "鏂囦欢鎻愪氦", businessType = BusinessType.OTHER)
public AjaxResult invoiceLedgerCommitFile(@RequestBody InvoiceLedgerDto invoiceLedgerDto) {
try {
invoiceLedgerService.invoiceLedgerCommitFile(invoiceLedgerDto);
@@ -145,6 +165,8 @@
* @return
*/
@GetMapping("/list")
+ @ApiOperation("寮�绁ㄥ彴璐︽煡璇�")
+ @Log(title = "寮�绁ㄥ彴璐︽煡璇�", businessType = BusinessType.OTHER)
public AjaxResult invoiceLedgerList(InvoiceLedgerDto invoiceLedgerDto) {
return AjaxResult.success(invoiceLedgerService.invoiceLedgerList(invoiceLedgerDto));
}
@@ -156,6 +178,8 @@
* @return
*/
@GetMapping("/salesAccount")
+ @ApiOperation("瀹㈡埛閿�鍞褰�")
+ @Log(title = "瀹㈡埛閿�鍞褰�", businessType = BusinessType.OTHER)
public AjaxResult invoiceLedgerSalesAccount(Page page, InvoiceLedgerDto invoiceLedgerDto) {
return AjaxResult.success(invoiceLedgerService.invoiceLedgerSalesAccount(page,invoiceLedgerDto));
}
@@ -164,6 +188,8 @@
* 鏈湀寮�绁ㄩ噾棰�
*/
@GetMapping("/getInvoiceAmount")
+ @ApiOperation("鏈湀寮�绁ㄩ噾棰�")
+ @Log(title = "鏈湀寮�绁ㄩ噾棰�", businessType = BusinessType.OTHER)
public AjaxResult getInvoiceAmount() {
try {
BigDecimal amount = invoiceLedgerService.getInvoiceAmount();
@@ -180,6 +206,8 @@
* @return
*/
@GetMapping("/registrationProductPage")
+ @ApiOperation("浜у搧寮�绁ㄨ褰曟煡璇�")
+ @Log(title = "浜у搧寮�绁ㄨ褰曟煡璇�", businessType = BusinessType.OTHER)
public AjaxResult registrationProductPage(Page page, InvoiceRegistrationProductDto registrationProductDto) {
return AjaxResult.success(invoiceLedgerService.registrationProductPage(page,registrationProductDto));
@@ -191,6 +219,8 @@
* @return
*/
@GetMapping("/invoiceLedgerProductInfo")
+ @ApiOperation("浜у搧寮�绁ㄨ鎯�")
+ @Log(title = "浜у搧寮�绁ㄨ鎯�", businessType = BusinessType.OTHER)
public AjaxResult invoiceLedgerProductDetail(Integer id) {
return AjaxResult.success(invoiceLedgerService.invoiceLedgerProductDetail(id));
}
@@ -201,6 +231,8 @@
* @return
*/
@DeleteMapping("delInvoiceLedger/{invoiceRegistrationProductId}")
+ @ApiOperation("寮�绁ㄥ彴璐﹀垹闄�")
+ @Log(title = "寮�绁ㄥ彴璐﹀垹闄�", businessType = BusinessType.DELETE)
public AjaxResult delInvoiceLedger(@PathVariable Integer invoiceRegistrationProductId) {
try {
invoiceLedgerService.delInvoiceLedger(invoiceRegistrationProductId);
--
Gitblit v1.9.3