parent
78f3453d99
commit
5f350b53f4
@ -0,0 +1,33 @@ |
|||||||
|
package com.psdc.controller.monitor; |
||||||
|
|
||||||
|
import com.psdc.core.domain.AjaxResult; |
||||||
|
import com.psdc.service.IPsdcDeviceService; |
||||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||||
|
import org.springframework.security.access.prepost.PreAuthorize; |
||||||
|
import org.springframework.web.bind.annotation.PathVariable; |
||||||
|
import org.springframework.web.bind.annotation.RequestMapping; |
||||||
|
import org.springframework.web.bind.annotation.RequestMethod; |
||||||
|
import org.springframework.web.bind.annotation.RestController; |
||||||
|
|
||||||
|
/** |
||||||
|
* @Author:戴仕崑 |
||||||
|
* @Project:psdc |
||||||
|
* @Filename:SandTableController |
||||||
|
* @Date:2023/5/11 13:40 |
||||||
|
* @Version 1.0 |
||||||
|
*/ |
||||||
|
@RestController |
||||||
|
@RequestMapping("/api/monitor/sp/index") |
||||||
|
public class SandTableController { |
||||||
|
|
||||||
|
@Autowired |
||||||
|
IPsdcDeviceService psdcDeviceService; |
||||||
|
|
||||||
|
@PreAuthorize("@ss.hasPermi('emonitor:sp')") |
||||||
|
@RequestMapping(value = "/sel1/{deviceId}", method = RequestMethod.GET) |
||||||
|
public AjaxResult seldrgl1(@PathVariable(value = "deviceId", required = false) Integer deviceId){ |
||||||
|
AjaxResult ajax = AjaxResult.success(psdcDeviceService.queryDeviceStatusById(deviceId)); |
||||||
|
return ajax; |
||||||
|
} |
||||||
|
|
||||||
|
} |
Loading…
Reference in new issue