Compare commits
No commits in common. "4bb09bec02351a4c28c75cfdbcbe8a1db77ab770" and "09fe898087c72b5b1a5c0b54db8d45eabbc19bf0" have entirely different histories.
4bb09bec02
...
09fe898087
|
@ -79,15 +79,19 @@ public class TowerCraneApiController {
|
||||||
*/
|
*/
|
||||||
@GetMapping("/v99/pushIotPower")
|
@GetMapping("/v99/pushIotPower")
|
||||||
public AjaxResult pushIotPower() {
|
public AjaxResult pushIotPower() {
|
||||||
IotDeviceInfo query = new IotDeviceInfo();
|
IotDeviceInfo iotDeviceInfo = new IotDeviceInfo();
|
||||||
query.setDeviceName("配电箱");
|
iotDeviceInfo.setDeviceId("A3gVjYga");
|
||||||
query.setProjectId(229L);
|
iotDeviceInfo.setDeviceName("配电箱");
|
||||||
query.setFactoryName("萨达");
|
iotDeviceInfo.setState(1);
|
||||||
List<IotDeviceInfo> list = iIotDeviceInfoService.selectIotDeviceInfoList(query);
|
iotDeviceInfo.setProjectId(229L);
|
||||||
for(IotDeviceInfo e:list){
|
iotDeviceInfo.setPoints(1L);
|
||||||
e.setProjectId(203L);
|
iotDeviceInfo.setTypeName("配电箱");
|
||||||
iIotDeviceInfoService.updateIotDeviceInfo(e);
|
iotDeviceInfo.setHzTenantId("2RrXaxJ8");
|
||||||
}
|
iotDeviceInfo.setHzProjectId("8NgaaNgY");
|
||||||
|
iotDeviceInfo.setFactoryName("萨达");
|
||||||
|
iotDeviceInfo.setCompanyName("中铁一局建安公司");
|
||||||
|
iotDeviceInfo.setProjectName("西建中国西电集团智慧产业园");
|
||||||
|
iIotDeviceInfoService.insertIotDeviceInfo(iotDeviceInfo);
|
||||||
return AjaxResult.success();
|
return AjaxResult.success();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue