Browse Source

调度预案

lihui001 3 years ago
parent
commit
dfb5bf010f

+ 3 - 6
zoniot-water/zoniot-water-web/src/main/java/com/zcxk/water/web/controller/TestController.java

@@ -1,12 +1,12 @@
 package com.zcxk.water.web.controller;
 
 import com.zcxk.core.common.pojo.AjaxMessage;
-import com.zcxk.iot.sync.auth.AuthIotService;
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
 import lombok.extern.slf4j.Slf4j;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.web.bind.annotation.*;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestMethod;
+import org.springframework.web.bind.annotation.RestController;
 
 /**
  * @description
@@ -19,13 +19,10 @@ import org.springframework.web.bind.annotation.*;
 @Slf4j
 public class TestController {
 
-    @Autowired
-    private AuthIotService authIotService;
 
     @RequestMapping(value="getToken" , method = RequestMethod.GET)
     @ApiOperation(value = "查询单个报警详情信息")
     public AjaxMessage getToken(){
-        authIotService.getToken();
         return AjaxMessage.success();
     }
 

+ 0 - 3
zoniot-water/zoniot-water-web/src/main/java/com/zcxk/water/web/service/impl/AlarmTypeServiceImpl.java

@@ -17,12 +17,9 @@ import com.zcxk.water.core.dao.AlarmRuleMapper;
 import com.zcxk.water.core.dao.AlarmTypeMapper;
 import com.zcxk.water.core.entity.AlarmRule;
 import com.zcxk.water.core.entity.AlarmType;
-import com.zcxk.iot.sync.iot.SyncAlarmService;
-import com.zcxk.water.web.enums.AlarmCategoryEnum;
 import com.zcxk.water.web.service.AlarmTypeService;
 import lombok.extern.slf4j.Slf4j;
 import org.apache.commons.lang3.StringUtils;
-import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
 import org.springframework.transaction.annotation.Transactional;
 import org.springframework.util.CollectionUtils;