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

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

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