提交代码
parent
ff10ce3e8c
commit
0f10e984e8
|
@ -79,19 +79,15 @@ public class TowerCraneApiController {
|
||||||
*/
|
*/
|
||||||
@GetMapping("/v99/pushIotPower")
|
@GetMapping("/v99/pushIotPower")
|
||||||
public AjaxResult pushIotPower() {
|
public AjaxResult pushIotPower() {
|
||||||
IotDeviceInfo iotDeviceInfo = new IotDeviceInfo();
|
IotDeviceInfo query = new IotDeviceInfo();
|
||||||
iotDeviceInfo.setDeviceId("A3gVjYga");
|
query.setDeviceName("配电箱");
|
||||||
iotDeviceInfo.setDeviceName("配电箱");
|
query.setProjectId(229L);
|
||||||
iotDeviceInfo.setState(1);
|
query.setFactoryName("萨达");
|
||||||
iotDeviceInfo.setProjectId(229L);
|
List<IotDeviceInfo> list = iIotDeviceInfoService.selectIotDeviceInfoList(query);
|
||||||
iotDeviceInfo.setPoints(1L);
|
for(IotDeviceInfo e:list){
|
||||||
iotDeviceInfo.setTypeName("配电箱");
|
e.setProjectId(203L);
|
||||||
iotDeviceInfo.setHzTenantId("2RrXaxJ8");
|
iIotDeviceInfoService.updateIotDeviceInfo(e);
|
||||||
iotDeviceInfo.setHzProjectId("8NgaaNgY");
|
}
|
||||||
iotDeviceInfo.setFactoryName("萨达");
|
|
||||||
iotDeviceInfo.setCompanyName("中铁一局建安公司");
|
|
||||||
iotDeviceInfo.setProjectName("西建中国西电集团智慧产业园");
|
|
||||||
iIotDeviceInfoService.insertIotDeviceInfo(iotDeviceInfo);
|
|
||||||
return AjaxResult.success();
|
return AjaxResult.success();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue