|
|
@@ -0,0 +1,43 @@
|
|
|
+package com.yunfeiyun.agmp.iotm.device.qxz.controller;
|
|
|
+
|
|
|
+import com.yunfeiyun.agmp.common.core.page.TableDataInfo;
|
|
|
+import com.yunfeiyun.agmp.iot.common.constant.devicetype.IotDeviceDictConst;
|
|
|
+import com.yunfeiyun.agmp.iotm.common.controller.BaseController;
|
|
|
+import com.yunfeiyun.agmp.iotm.web.domain.reqvo.IotDeviceListReqVo;
|
|
|
+import com.yunfeiyun.agmp.iotm.web.domain.resvo.IotDeviceListResVo;
|
|
|
+import com.yunfeiyun.agmp.iotm.web.service.IIotDeviceService;
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.web.bind.annotation.GetMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
+
|
|
|
+import java.util.Arrays;
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
+/**
|
|
|
+ * 气象站设备控制器
|
|
|
+ */
|
|
|
+@RestController
|
|
|
+@RequestMapping("/iot/device/qxz")
|
|
|
+@Slf4j
|
|
|
+public class IotDeviceQxzController extends BaseController {
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private IIotDeviceService iIotDeviceService;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 气象站列表
|
|
|
+ * @param reqVo
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @GetMapping("/list")
|
|
|
+ public TableDataInfo list(IotDeviceListReqVo reqVo) {
|
|
|
+ startPage();
|
|
|
+ String[] devTypeList = new String[]{IotDeviceDictConst.TYPE_YF_QXZ};
|
|
|
+ reqVo.setDevtypeBidList(Arrays.asList(devTypeList));
|
|
|
+
|
|
|
+ List<IotDeviceListResVo> list = iIotDeviceService.selectIotDeviceListByType(reqVo);
|
|
|
+ return getDataTable(list);
|
|
|
+ }
|
|
|
+}
|