Browse Source

调整事件管理操作日志

hanzhengyi 10 months ago
parent
commit
6eb47fac08

+ 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);