Ver código fonte

报告统计接口添加日志注解

fuyuchuan 2 semanas atrás
pai
commit
fd103f4767

+ 4 - 0
service-iot/service-iot-biz/src/main/java/com/usky/iot/controller/web/PmTimeConfController.java

@@ -2,6 +2,8 @@ package com.usky.iot.controller.web;
 
 
 import com.usky.common.core.bean.CommonPage;
+import com.usky.common.log.annotation.Log;
+import com.usky.common.log.enums.BusinessType;
 import com.usky.common.security.utils.SecurityUtils;
 import com.usky.iot.domain.PmTimeConf;
 import com.usky.iot.domain.PmWorkReport;
@@ -86,6 +88,7 @@ public class PmTimeConfController {
      * 添加配置时间
      * @param pmTimeConf 配置时间
      */
+    @Log(title = "新增配置时间", businessType = BusinessType.INSERT)
     @PostMapping("/addTimeConf")
     public void addTimeConf(@RequestBody PmTimeConf pmTimeConf) {
         pmTimeConfService.addOrUpdateTimeConf(pmTimeConf);
@@ -95,6 +98,7 @@ public class PmTimeConfController {
      * 修改配置时间
      * @param pmTimeConf 配置时间
      */
+    @Log(title = "修改配置时间", businessType = BusinessType.UPDATE)
     @PutMapping("/updateTimeConf")
     public void updateTimeConf(@RequestBody PmTimeConf pmTimeConf) {
         pmTimeConfService.addOrUpdateTimeConf(pmTimeConf);