|
|
@@ -7,6 +7,7 @@ import com.yunfeiyun.agmp.iotm.web.domain.resvo.IotHomeTypeStatResVo;
|
|
|
import com.yunfeiyun.agmp.iotm.web.service.IIotHomeService;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
+import org.springframework.web.bind.annotation.PathVariable;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
@@ -49,4 +50,12 @@ public class IotHomeController extends BaseController
|
|
|
public AjaxResult deviceList(IotHomeDeviceListReqVo reqVo) {
|
|
|
return success(iotHomeService.getDeviceList(reqVo));
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 查询设备统计
|
|
|
+ */
|
|
|
+ @GetMapping("/device/info/{devBid}")
|
|
|
+ public AjaxResult deviceInfo(@PathVariable("devBid") String devBid) {
|
|
|
+ return success(iotHomeService.getDeviceInfo(devBid));
|
|
|
+ }
|
|
|
}
|