parent
0d88bd0448
commit
3131b7135d
@ -0,0 +1,35 @@ |
||||
package com.psdc.controller.monitor; |
||||
|
||||
import com.psdc.core.domain.AjaxResult; |
||||
import com.psdc.service.IPsdcThermometerHtdataService; |
||||
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:WenDuController |
||||
* @Date:2023/5/11 14:21 |
||||
* @Version 1.0 |
||||
*/ |
||||
@RestController |
||||
@RequestMapping("/api/monitor/wdcgq/index") |
||||
public class WenDuController { |
||||
|
||||
@Autowired |
||||
IPsdcThermometerHtdataService psdcThermometerHtdataService; |
||||
|
||||
@PreAuthorize("@ss.hasPermi('emonitor:wdcgq')") |
||||
@RequestMapping(value = "/sel1/{deviceId}", method = RequestMethod.GET) |
||||
public AjaxResult seldrgl1(@PathVariable(value = "deviceId", required = false) Integer deviceId){ |
||||
if (null == psdcThermometerHtdataService.selTodayThermometerById(deviceId)){ |
||||
return AjaxResult.success("今日该设备暂无温度数据!"); |
||||
} |
||||
return AjaxResult.success(psdcThermometerHtdataService.selTodayThermometerById(deviceId)); |
||||
} |
||||
|
||||
} |
Loading…
Reference in new issue