|
@@ -2,8 +2,10 @@ package com.ruoyi.sim.controller;
|
|
|
|
|
|
import com.ruoyi.common.core.controller.BaseController;
|
|
import com.ruoyi.common.core.controller.BaseController;
|
|
import com.ruoyi.common.core.domain.AjaxResult;
|
|
import com.ruoyi.common.core.domain.AjaxResult;
|
|
|
|
+import com.ruoyi.sim.domain.Fault;
|
|
import com.ruoyi.sim.domain.RealExam;
|
|
import com.ruoyi.sim.domain.RealExam;
|
|
import com.ruoyi.sim.service.impl.CommSendService;
|
|
import com.ruoyi.sim.service.impl.CommSendService;
|
|
|
|
+import com.ruoyi.sim.service.impl.FaultService;
|
|
import com.ruoyi.sim.service.impl.MajorService;
|
|
import com.ruoyi.sim.service.impl.MajorService;
|
|
import com.ruoyi.sim.service.impl.RealExamService;
|
|
import com.ruoyi.sim.service.impl.RealExamService;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.Api;
|
|
@@ -14,6 +16,8 @@ import org.springframework.web.bind.annotation.PathVariable;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
|
|
+import java.util.List;
|
|
|
|
+
|
|
@RestController
|
|
@RestController
|
|
@RequestMapping("/sim/iot")
|
|
@RequestMapping("/sim/iot")
|
|
@Api("测试通信Controller")
|
|
@Api("测试通信Controller")
|
|
@@ -25,6 +29,8 @@ public class TestIotController extends BaseController {
|
|
private CommSendService commSnedService;
|
|
private CommSendService commSnedService;
|
|
@Autowired
|
|
@Autowired
|
|
private RealExamService realExamService;
|
|
private RealExamService realExamService;
|
|
|
|
+ @Autowired
|
|
|
|
+ private FaultService faultService;
|
|
|
|
|
|
@ApiOperation("testIot通信")
|
|
@ApiOperation("testIot通信")
|
|
@GetMapping(value = "/{codeId}")
|
|
@GetMapping(value = "/{codeId}")
|
|
@@ -114,4 +120,11 @@ public class TestIotController extends BaseController {
|
|
}
|
|
}
|
|
return AjaxResult.success();
|
|
return AjaxResult.success();
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ @ApiOperation("testIot通信")
|
|
|
|
+ @GetMapping(value = "/testIndex2/{codeId}")
|
|
|
|
+ public AjaxResult testIndex2(@PathVariable("codeId") Integer codeId) {
|
|
|
|
+ List<Fault> list = faultService.randomEnable3("0001");
|
|
|
|
+ return AjaxResult.success(list);
|
|
|
|
+ }
|
|
}
|
|
}
|