Merge branch 'master' of http://39.105.213.67:3000/hwj_system/psdc
commit
645ddb4826
@ -0,0 +1,48 @@ |
|||||||
|
package com.psdc.controller.monitor; |
||||||
|
|
||||||
|
import com.psdc.core.domain.AjaxResult; |
||||||
|
import com.psdc.service.IPsdcElectricHtdataService; |
||||||
|
import com.psdc.service.IPsdcElectricRtdataService; |
||||||
|
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:AirSourcePumpController |
||||||
|
* @Date:2023/5/11 9:49 |
||||||
|
* @Version 1.0 |
||||||
|
*/ |
||||||
|
@RestController |
||||||
|
@RequestMapping("/api/monitor/kqyrb/index") |
||||||
|
public class AirSourcePumpController { |
||||||
|
|
||||||
|
@Autowired |
||||||
|
IPsdcElectricRtdataService psdcElectricRtdataService; |
||||||
|
@Autowired |
||||||
|
IPsdcThermometerHtdataService psdcThermometerHtdataService; |
||||||
|
@Autowired |
||||||
|
IPsdcElectricHtdataService psdcElectricHtdataService; |
||||||
|
|
||||||
|
@PreAuthorize("@ss.hasPermi('emonitor:kqyrb')") |
||||||
|
@RequestMapping(value = "/sel1/{deviceId}", method = RequestMethod.GET) |
||||||
|
public AjaxResult seldrgl1(@PathVariable(value = "deviceId", required = false) Integer deviceId){ |
||||||
|
AjaxResult ajax = AjaxResult.success(psdcElectricRtdataService.queryById(deviceId)); |
||||||
|
return ajax; |
||||||
|
} |
||||||
|
|
||||||
|
@PreAuthorize("@ss.hasPermi('emonitor:kqyrb')") |
||||||
|
@RequestMapping(value = "/sel2/{deviceId}", method = RequestMethod.GET) |
||||||
|
public AjaxResult seldrgl2(@PathVariable(value = "deviceId", required = false) Integer deviceId) { |
||||||
|
AjaxResult ajax = psdcThermometerHtdataService.selDzglWenDu(deviceId); |
||||||
|
ajax.put("kqyrbqhour", psdcElectricHtdataService.selDcglThisHourUseElectric(deviceId)); |
||||||
|
ajax.put("kqyrbqday", psdcElectricHtdataService.selDcglThisDayUseElectric(deviceId)); |
||||||
|
return ajax; |
||||||
|
} |
||||||
|
|
||||||
|
} |
@ -0,0 +1,48 @@ |
|||||||
|
package com.psdc.controller.monitor; |
||||||
|
|
||||||
|
import com.psdc.core.domain.AjaxResult; |
||||||
|
import com.psdc.service.IPsdcElectricHtdataService; |
||||||
|
import com.psdc.service.IPsdcElectricRtdataService; |
||||||
|
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:HeatingCableController |
||||||
|
* @Date:2023/5/11 9:48 |
||||||
|
* @Version 1.0 |
||||||
|
*/ |
||||||
|
@RestController |
||||||
|
@RequestMapping("/api/monitor/frdl/index") |
||||||
|
public class HeatingCableController { |
||||||
|
|
||||||
|
@Autowired |
||||||
|
IPsdcElectricRtdataService psdcElectricRtdataService; |
||||||
|
@Autowired |
||||||
|
IPsdcThermometerHtdataService psdcThermometerHtdataService; |
||||||
|
@Autowired |
||||||
|
IPsdcElectricHtdataService psdcElectricHtdataService; |
||||||
|
|
||||||
|
@PreAuthorize("@ss.hasPermi('emonitor:frdl')") |
||||||
|
@RequestMapping(value = "/sel1/{deviceId}", method = RequestMethod.GET) |
||||||
|
public AjaxResult seldrgl1(@PathVariable(value = "deviceId", required = false) Integer deviceId){ |
||||||
|
AjaxResult ajax = AjaxResult.success(psdcElectricRtdataService.queryById(deviceId)); |
||||||
|
return ajax; |
||||||
|
} |
||||||
|
|
||||||
|
@PreAuthorize("@ss.hasPermi('emonitor:frdl')") |
||||||
|
@RequestMapping(value = "/sel2/{deviceId}", method = RequestMethod.GET) |
||||||
|
public AjaxResult seldrgl2(@PathVariable(value = "deviceId", required = false) Integer deviceId) { |
||||||
|
AjaxResult ajax = psdcThermometerHtdataService.selDzglWenDu(deviceId); |
||||||
|
ajax.put("frdlqhour", psdcElectricHtdataService.selDcglThisHourUseElectric(deviceId)); |
||||||
|
ajax.put("frdlqday", psdcElectricHtdataService.selDcglThisDayUseElectric(deviceId)); |
||||||
|
return ajax; |
||||||
|
} |
||||||
|
|
||||||
|
} |
@ -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; |
||||||
|
} |
||||||
|
|
||||||
|
} |
@ -0,0 +1,48 @@ |
|||||||
|
package com.psdc.controller.monitor; |
||||||
|
|
||||||
|
import com.psdc.core.domain.AjaxResult; |
||||||
|
import com.psdc.service.IPsdcElectricHtdataService; |
||||||
|
import com.psdc.service.IPsdcElectricRtdataService; |
||||||
|
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:StrorageBoilerController |
||||||
|
* @Date:2023/5/11 9:49 |
||||||
|
* @Version 1.0 |
||||||
|
*/ |
||||||
|
@RestController |
||||||
|
@RequestMapping("/api/monitor/xrgl/index") |
||||||
|
public class StorageBoilerController { |
||||||
|
|
||||||
|
@Autowired |
||||||
|
IPsdcElectricRtdataService psdcElectricRtdataService; |
||||||
|
@Autowired |
||||||
|
IPsdcThermometerHtdataService psdcThermometerHtdataService; |
||||||
|
@Autowired |
||||||
|
IPsdcElectricHtdataService psdcElectricHtdataService; |
||||||
|
|
||||||
|
@PreAuthorize("@ss.hasPermi('emonitor:xrgl')") |
||||||
|
@RequestMapping(value = "/sel1/{deviceId}", method = RequestMethod.GET) |
||||||
|
public AjaxResult seldrgl1(@PathVariable(value = "deviceId", required = false) Integer deviceId){ |
||||||
|
AjaxResult ajax = AjaxResult.success(psdcElectricRtdataService.queryById(deviceId)); |
||||||
|
return ajax; |
||||||
|
} |
||||||
|
|
||||||
|
@PreAuthorize("@ss.hasPermi('emonitor:xrgl')") |
||||||
|
@RequestMapping(value = "/sel2/{deviceId}", method = RequestMethod.GET) |
||||||
|
public AjaxResult seldrgl2(@PathVariable(value = "deviceId", required = false) Integer deviceId) { |
||||||
|
AjaxResult ajax = psdcThermometerHtdataService.selDzglWenDu(deviceId); |
||||||
|
ajax.put("xrglqhour", psdcElectricHtdataService.selDcglThisHourUseElectric(deviceId)); |
||||||
|
ajax.put("xrglqday", psdcElectricHtdataService.selDcglThisDayUseElectric(deviceId)); |
||||||
|
return ajax; |
||||||
|
} |
||||||
|
|
||||||
|
} |
@ -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