Преглед на файлове

调整事件管理操作日志

hanzhengyi преди 1 година
родител
ревизия
6eb47fac08
променени са 1 файла, в които са добавени 4 реда и са изтрити 0 реда
  1. 4 0
      service-fire/service-fire-biz/src/main/java/com/usky/fire/controller/web/PatrolInspectionEventController.java

+ 4 - 0
service-fire/service-fire-biz/src/main/java/com/usky/fire/controller/web/PatrolInspectionEventController.java

@@ -3,6 +3,8 @@ package com.usky.fire.controller.web;
 
 import com.usky.common.core.bean.ApiResult;
 import com.usky.common.core.bean.CommonPage;
+import com.usky.common.log.annotation.Log;
+import com.usky.common.log.enums.BusinessType;
 import com.usky.fire.domain.PatrolInspectionEvent;
 import com.usky.fire.domain.PatrolInspectionPlan;
 import com.usky.fire.service.PatrolInspectionEventService;
@@ -40,6 +42,7 @@ public class PatrolInspectionEventController {
      * @param patrolInspectionEvent
      * @return
      */
+    @Log(title = "事件管理", businessType = BusinessType.INSERT)
     @PostMapping("add")
     public ApiResult<Void> add(@RequestBody PatrolInspectionEvent patrolInspectionEvent){
         patrolInspectionEventService.add(patrolInspectionEvent);
@@ -51,6 +54,7 @@ public class PatrolInspectionEventController {
      * @param patrolInspectionEvent
      * @return
      */
+    @Log(title = "事件管理", businessType = BusinessType.UPDATE)
     @PutMapping("edit")
     public ApiResult<Void> edit(@RequestBody PatrolInspectionEvent patrolInspectionEvent){
         patrolInspectionEventService.edit(patrolInspectionEvent);