chenshudong 1 неделя назад
Родитель
Сommit
b1d99efcb2

+ 4 - 0
airport-admin/src/main/java/com/sundot/airport/web/controller/ledger/LedgerSyncController.java

@@ -1,7 +1,9 @@
1 1
 package com.sundot.airport.web.controller.ledger;
2 2
 
3
+import com.sundot.airport.common.annotation.Log;
3 4
 import com.sundot.airport.common.core.controller.BaseController;
4 5
 import com.sundot.airport.common.core.domain.AjaxResult;
6
+import com.sundot.airport.common.enums.BusinessType;
5 7
 import com.sundot.airport.ledger.service.ILedgerSyncService;
6 8
 import org.springframework.beans.factory.annotation.Autowired;
7 9
 import org.springframework.security.access.prepost.PreAuthorize;
@@ -28,6 +30,7 @@ public class LedgerSyncController extends BaseController {
28 30
      * POST /ledger/sync/all
29 31
      */
30 32
     @PreAuthorize("@ss.hasPermi('ledger:sync:all')")
33
+    @Log(title = "全量同步台账", businessType = BusinessType.INSERT)
31 34
     @PostMapping("/all")
32 35
     public AjaxResult syncAll() {
33 36
         ILedgerSyncService.SyncResult result = ledgerSyncService.syncAll();
@@ -44,6 +47,7 @@ public class LedgerSyncController extends BaseController {
44 47
      *   bannerLetter / examScore / rewardPenalty / leaveSpecial
45 48
      */
46 49
     @PreAuthorize("@ss.hasPermi('ledger:sync:all')")
50
+    @Log(title = "按类型同步台账", businessType = BusinessType.INSERT)
47 51
     @PostMapping("/{type}")
48 52
     public AjaxResult syncByType(@PathVariable String type) {
49 53
         ILedgerSyncService.SyncResult result = ledgerSyncService.syncByType(type);