提交代码

dev
姜玉琦 2024-11-05 23:39:25 +08:00
parent ff10ce3e8c
commit 0f10e984e8
1 changed files with 9 additions and 13 deletions

View File

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