mirror of
https://github.com/hpd840321/starRiverProperty.git
synced 2026-06-10 00:40:30 +08:00
fix: relocate cwos-portal decompiled output to correct path; remove nested directory
Former-commit-id: dc30d42a8c55ed8b2382a41dc2434233fbed9930
This commit is contained in:
+18
@@ -0,0 +1,18 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package cn.cloudwalk.elevator.device.dao;
|
||||
|
||||
import cn.cloudwalk.elevator.device.dto.AcsDeviceTaskAddDto;
|
||||
import cn.cloudwalk.elevator.device.dto.AcsDeviceTaskDTO;
|
||||
|
||||
public interface AcsDeviceTaskDao {
|
||||
public Integer insert(AcsDeviceTaskAddDto var1);
|
||||
|
||||
public Integer updateBingDevices(AcsDeviceTaskAddDto var1);
|
||||
|
||||
public Integer updateIsStop(AcsDeviceTaskAddDto var1);
|
||||
|
||||
public AcsDeviceTaskDTO getById(String var1);
|
||||
}
|
||||
|
||||
+50
@@ -0,0 +1,50 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.cloud.exception.DataAccessException
|
||||
* cn.cloudwalk.cloud.exception.ServiceException
|
||||
* cn.cloudwalk.cloud.page.CloudwalkPageAble
|
||||
* cn.cloudwalk.cloud.page.CloudwalkPageInfo
|
||||
*/
|
||||
package cn.cloudwalk.elevator.device.dao;
|
||||
|
||||
import cn.cloudwalk.cloud.exception.DataAccessException;
|
||||
import cn.cloudwalk.cloud.exception.ServiceException;
|
||||
import cn.cloudwalk.cloud.page.CloudwalkPageAble;
|
||||
import cn.cloudwalk.cloud.page.CloudwalkPageInfo;
|
||||
import cn.cloudwalk.elevator.device.dto.AcsElevatorDeviceAddDTO;
|
||||
import cn.cloudwalk.elevator.device.dto.AcsElevatorDeviceEditDTO;
|
||||
import cn.cloudwalk.elevator.device.dto.AcsElevatorDeviceListByBuildingIdDto;
|
||||
import cn.cloudwalk.elevator.device.dto.AcsElevatorDeviceListDto;
|
||||
import cn.cloudwalk.elevator.device.dto.AcsElevatorDeviceQueryByIdDTO;
|
||||
import cn.cloudwalk.elevator.device.dto.AcsElevatorDeviceQueryDTO;
|
||||
import cn.cloudwalk.elevator.device.dto.AcsElevatorDeviceResultDTO;
|
||||
import java.util.List;
|
||||
|
||||
public interface AcsElevatorDeviceDao {
|
||||
public Integer add(AcsElevatorDeviceAddDTO var1) throws DataAccessException;
|
||||
|
||||
public Integer edit(AcsElevatorDeviceEditDTO var1) throws DataAccessException;
|
||||
|
||||
public Integer delete(List<String> var1) throws DataAccessException;
|
||||
|
||||
public CloudwalkPageAble<AcsElevatorDeviceResultDTO> page(AcsElevatorDeviceQueryDTO var1, CloudwalkPageInfo var2) throws DataAccessException;
|
||||
|
||||
public List<AcsElevatorDeviceResultDTO> listByZoneId(AcsElevatorDeviceListDto var1) throws DataAccessException;
|
||||
|
||||
public List<AcsElevatorDeviceResultDTO> listByZoneIds(AcsElevatorDeviceListDto var1) throws DataAccessException;
|
||||
|
||||
public List<AcsElevatorDeviceResultDTO> listBuBuildingId(AcsElevatorDeviceListByBuildingIdDto var1) throws DataAccessException;
|
||||
|
||||
public List<AcsElevatorDeviceResultDTO> get(AcsElevatorDeviceQueryDTO var1) throws ServiceException;
|
||||
|
||||
public AcsElevatorDeviceResultDTO getById(AcsElevatorDeviceQueryByIdDTO var1) throws ServiceException;
|
||||
|
||||
public AcsElevatorDeviceResultDTO getByDeciveCode(String var1) throws ServiceException;
|
||||
|
||||
public String getBuildingId(AcsElevatorDeviceQueryDTO var1) throws ServiceException;
|
||||
|
||||
public String getBusinessId(AcsElevatorDeviceQueryDTO var1) throws ServiceException;
|
||||
}
|
||||
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.cloud.exception.ServiceException
|
||||
*/
|
||||
package cn.cloudwalk.elevator.device.dao;
|
||||
|
||||
import cn.cloudwalk.cloud.exception.ServiceException;
|
||||
|
||||
public interface DeviceImageStoreDao {
|
||||
public Boolean save(String var1, String var2) throws ServiceException;
|
||||
|
||||
public String getByBuildingId(String var1) throws ServiceException;
|
||||
}
|
||||
|
||||
+103
@@ -0,0 +1,103 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package cn.cloudwalk.elevator.device.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
public class AcsDeviceQueryDTO
|
||||
implements Serializable {
|
||||
private static final long serialVersionUID = -9107652629099620576L;
|
||||
private String id;
|
||||
private List<String> ids;
|
||||
private String businessId;
|
||||
private String deviceId;
|
||||
private List<String> deviceIds;
|
||||
private String deviceCode;
|
||||
private String parentDeviceId;
|
||||
private List<String> parentDeviceIds;
|
||||
private Integer openStatus;
|
||||
private Integer queryParent;
|
||||
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public List<String> getIds() {
|
||||
return this.ids;
|
||||
}
|
||||
|
||||
public void setIds(List<String> ids) {
|
||||
this.ids = ids;
|
||||
}
|
||||
|
||||
public String getBusinessId() {
|
||||
return this.businessId;
|
||||
}
|
||||
|
||||
public void setBusinessId(String businessId) {
|
||||
this.businessId = businessId;
|
||||
}
|
||||
|
||||
public String getDeviceId() {
|
||||
return this.deviceId;
|
||||
}
|
||||
|
||||
public void setDeviceId(String deviceId) {
|
||||
this.deviceId = deviceId;
|
||||
}
|
||||
|
||||
public List<String> getDeviceIds() {
|
||||
return this.deviceIds;
|
||||
}
|
||||
|
||||
public void setDeviceIds(List<String> deviceIds) {
|
||||
this.deviceIds = deviceIds;
|
||||
}
|
||||
|
||||
public String getDeviceCode() {
|
||||
return this.deviceCode;
|
||||
}
|
||||
|
||||
public void setDeviceCode(String deviceCode) {
|
||||
this.deviceCode = deviceCode;
|
||||
}
|
||||
|
||||
public String getParentDeviceId() {
|
||||
return this.parentDeviceId;
|
||||
}
|
||||
|
||||
public void setParentDeviceId(String parentDeviceId) {
|
||||
this.parentDeviceId = parentDeviceId;
|
||||
}
|
||||
|
||||
public List<String> getParentDeviceIds() {
|
||||
return this.parentDeviceIds;
|
||||
}
|
||||
|
||||
public void setParentDeviceIds(List<String> parentDeviceIds) {
|
||||
this.parentDeviceIds = parentDeviceIds;
|
||||
}
|
||||
|
||||
public Integer getQueryParent() {
|
||||
return this.queryParent;
|
||||
}
|
||||
|
||||
public void setQueryParent(Integer queryParent) {
|
||||
this.queryParent = queryParent;
|
||||
}
|
||||
|
||||
public Integer getOpenStatus() {
|
||||
return this.openStatus;
|
||||
}
|
||||
|
||||
public void setOpenStatus(Integer openStatus) {
|
||||
this.openStatus = openStatus;
|
||||
}
|
||||
}
|
||||
|
||||
+80
@@ -0,0 +1,80 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.cloud.entity.CloudwalkBaseTimes
|
||||
*/
|
||||
package cn.cloudwalk.elevator.device.dto;
|
||||
|
||||
import cn.cloudwalk.cloud.entity.CloudwalkBaseTimes;
|
||||
import java.io.Serializable;
|
||||
|
||||
public class AcsDeviceResultDTO
|
||||
extends CloudwalkBaseTimes
|
||||
implements Serializable {
|
||||
private static final long serialVersionUID = 6868258119634367362L;
|
||||
private String id;
|
||||
private String businessId;
|
||||
private String deviceId;
|
||||
private String deviceCode;
|
||||
private String parentDeviceId;
|
||||
private String imageStoreId;
|
||||
private Integer openStatus;
|
||||
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getBusinessId() {
|
||||
return this.businessId;
|
||||
}
|
||||
|
||||
public void setBusinessId(String businessId) {
|
||||
this.businessId = businessId;
|
||||
}
|
||||
|
||||
public String getDeviceId() {
|
||||
return this.deviceId;
|
||||
}
|
||||
|
||||
public void setDeviceId(String deviceId) {
|
||||
this.deviceId = deviceId;
|
||||
}
|
||||
|
||||
public String getDeviceCode() {
|
||||
return this.deviceCode;
|
||||
}
|
||||
|
||||
public void setDeviceCode(String deviceCode) {
|
||||
this.deviceCode = deviceCode;
|
||||
}
|
||||
|
||||
public String getParentDeviceId() {
|
||||
return this.parentDeviceId;
|
||||
}
|
||||
|
||||
public void setParentDeviceId(String parentDeviceId) {
|
||||
this.parentDeviceId = parentDeviceId;
|
||||
}
|
||||
|
||||
public String getImageStoreId() {
|
||||
return this.imageStoreId;
|
||||
}
|
||||
|
||||
public void setImageStoreId(String imageStoreId) {
|
||||
this.imageStoreId = imageStoreId;
|
||||
}
|
||||
|
||||
public Integer getOpenStatus() {
|
||||
return this.openStatus;
|
||||
}
|
||||
|
||||
public void setOpenStatus(Integer openStatus) {
|
||||
this.openStatus = openStatus;
|
||||
}
|
||||
}
|
||||
|
||||
+44
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.cloud.entity.CloudwalkBaseTimes
|
||||
*/
|
||||
package cn.cloudwalk.elevator.device.dto;
|
||||
|
||||
import cn.cloudwalk.cloud.entity.CloudwalkBaseTimes;
|
||||
import java.io.Serializable;
|
||||
|
||||
public class AcsDeviceTaskAddDto
|
||||
extends CloudwalkBaseTimes
|
||||
implements Serializable {
|
||||
private static final long serialVersionUID = 6909321999650444051L;
|
||||
private Integer allDevices;
|
||||
private Integer bindDevices;
|
||||
private Integer isStop;
|
||||
|
||||
public Integer getAllDevices() {
|
||||
return this.allDevices;
|
||||
}
|
||||
|
||||
public void setAllDevices(Integer allDevices) {
|
||||
this.allDevices = allDevices;
|
||||
}
|
||||
|
||||
public Integer getBindDevices() {
|
||||
return this.bindDevices;
|
||||
}
|
||||
|
||||
public void setBindDevices(Integer bindDevices) {
|
||||
this.bindDevices = bindDevices;
|
||||
}
|
||||
|
||||
public Integer getIsStop() {
|
||||
return this.isStop;
|
||||
}
|
||||
|
||||
public void setIsStop(Integer isStop) {
|
||||
this.isStop = isStop;
|
||||
}
|
||||
}
|
||||
|
||||
+48
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package cn.cloudwalk.elevator.device.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class AcsDeviceTaskDTO
|
||||
implements Serializable {
|
||||
private static final long serialVersionUID = -3746361327881264974L;
|
||||
private String id;
|
||||
private Integer allDevices;
|
||||
private Integer bindDevices;
|
||||
private Integer isStop;
|
||||
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Integer getAllDevices() {
|
||||
return this.allDevices;
|
||||
}
|
||||
|
||||
public void setAllDevices(Integer allDevices) {
|
||||
this.allDevices = allDevices;
|
||||
}
|
||||
|
||||
public Integer getBindDevices() {
|
||||
return this.bindDevices;
|
||||
}
|
||||
|
||||
public void setBindDevices(Integer bindDevices) {
|
||||
this.bindDevices = bindDevices;
|
||||
}
|
||||
|
||||
public Integer getIsStop() {
|
||||
return this.isStop;
|
||||
}
|
||||
|
||||
public void setIsStop(Integer isStop) {
|
||||
this.isStop = isStop;
|
||||
}
|
||||
}
|
||||
|
||||
+155
@@ -0,0 +1,155 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.cloud.entity.CloudwalkBaseTimes
|
||||
*/
|
||||
package cn.cloudwalk.elevator.device.dto;
|
||||
|
||||
import cn.cloudwalk.cloud.entity.CloudwalkBaseTimes;
|
||||
import java.io.Serializable;
|
||||
|
||||
public class AcsElevatorDeviceAddDTO
|
||||
extends CloudwalkBaseTimes
|
||||
implements Serializable {
|
||||
private String businessId;
|
||||
private String deviceId;
|
||||
private String deviceCode;
|
||||
private String deviceName;
|
||||
private String deviceTypeName;
|
||||
private String elevatorFloorList;
|
||||
private String currentFloorId;
|
||||
private String currentFloor;
|
||||
private String currentBuilding;
|
||||
private String currentBuildingId;
|
||||
private String areaName;
|
||||
private Integer status;
|
||||
private Integer deleteFlag;
|
||||
private String areaId;
|
||||
private String elevatorFloorIdList;
|
||||
|
||||
public String getElevatorFloorIdList() {
|
||||
return this.elevatorFloorIdList;
|
||||
}
|
||||
|
||||
public void setElevatorFloorIdList(String elevatorFloorIdList) {
|
||||
this.elevatorFloorIdList = elevatorFloorIdList;
|
||||
}
|
||||
|
||||
public String getCurrentBuildingId() {
|
||||
return this.currentBuildingId;
|
||||
}
|
||||
|
||||
public void setCurrentBuildingId(String currentBuildingId) {
|
||||
this.currentBuildingId = currentBuildingId;
|
||||
}
|
||||
|
||||
public String getAreaId() {
|
||||
return this.areaId;
|
||||
}
|
||||
|
||||
public void setAreaId(String areaId) {
|
||||
this.areaId = areaId;
|
||||
}
|
||||
|
||||
public String getBusinessId() {
|
||||
return this.businessId;
|
||||
}
|
||||
|
||||
public void setBusinessId(String businessId) {
|
||||
this.businessId = businessId;
|
||||
}
|
||||
|
||||
public String getDeviceId() {
|
||||
return this.deviceId;
|
||||
}
|
||||
|
||||
public void setDeviceId(String deviceId) {
|
||||
this.deviceId = deviceId;
|
||||
}
|
||||
|
||||
public String getDeviceCode() {
|
||||
return this.deviceCode;
|
||||
}
|
||||
|
||||
public void setDeviceCode(String deviceCode) {
|
||||
this.deviceCode = deviceCode;
|
||||
}
|
||||
|
||||
public String getDeviceName() {
|
||||
return this.deviceName;
|
||||
}
|
||||
|
||||
public void setDeviceName(String deviceName) {
|
||||
this.deviceName = deviceName;
|
||||
}
|
||||
|
||||
public String getDeviceTypeName() {
|
||||
return this.deviceTypeName;
|
||||
}
|
||||
|
||||
public void setDeviceTypeName(String deviceTypeName) {
|
||||
this.deviceTypeName = deviceTypeName;
|
||||
}
|
||||
|
||||
public String getElevatorFloorList() {
|
||||
return this.elevatorFloorList;
|
||||
}
|
||||
|
||||
public void setElevatorFloorList(String elevatorFloorList) {
|
||||
this.elevatorFloorList = elevatorFloorList;
|
||||
}
|
||||
|
||||
public String getCurrentFloorId() {
|
||||
return this.currentFloorId;
|
||||
}
|
||||
|
||||
public void setCurrentFloorId(String currentFloorId) {
|
||||
this.currentFloorId = currentFloorId;
|
||||
}
|
||||
|
||||
public String getCurrentFloor() {
|
||||
return this.currentFloor;
|
||||
}
|
||||
|
||||
public void setCurrentFloor(String currentFloor) {
|
||||
this.currentFloor = currentFloor;
|
||||
}
|
||||
|
||||
public String getCurrentBuilding() {
|
||||
return this.currentBuilding;
|
||||
}
|
||||
|
||||
public void setCurrentBuilding(String currentBuilding) {
|
||||
this.currentBuilding = currentBuilding;
|
||||
}
|
||||
|
||||
public String getAreaName() {
|
||||
return this.areaName;
|
||||
}
|
||||
|
||||
public void setAreaName(String areaName) {
|
||||
this.areaName = areaName;
|
||||
}
|
||||
|
||||
public Integer getStatus() {
|
||||
return this.status;
|
||||
}
|
||||
|
||||
public void setStatus(Integer status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public Integer getDeleteFlag() {
|
||||
return this.deleteFlag;
|
||||
}
|
||||
|
||||
public void setDeleteFlag(Integer deleteFlag) {
|
||||
this.deleteFlag = deleteFlag;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "AcsElevatorDeviceAddDTO{businessId='" + this.businessId + '\'' + ", deviceId='" + this.deviceId + '\'' + ", deviceCode='" + this.deviceCode + '\'' + ", deviceName='" + this.deviceName + '\'' + ", deviceTypeName='" + this.deviceTypeName + '\'' + ", elevatorFloorList='" + this.elevatorFloorList + '\'' + ", currentFloorId='" + this.currentFloorId + '\'' + ", currentFloor='" + this.currentFloor + '\'' + ", currentBuilding='" + this.currentBuilding + '\'' + ", areaName='" + this.areaName + '\'' + ", status=" + this.status + ", deleteFlag=" + this.deleteFlag + '}';
|
||||
}
|
||||
}
|
||||
|
||||
+84
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.cloud.entity.CloudwalkBaseTimes
|
||||
*/
|
||||
package cn.cloudwalk.elevator.device.dto;
|
||||
|
||||
import cn.cloudwalk.cloud.entity.CloudwalkBaseTimes;
|
||||
import java.io.Serializable;
|
||||
|
||||
public class AcsElevatorDeviceEditDTO
|
||||
extends CloudwalkBaseTimes
|
||||
implements Serializable {
|
||||
private static final long serialVersionUID = 885170301572808321L;
|
||||
private String elevatorFloorList;
|
||||
private String currentFloorId;
|
||||
private String currentFloor;
|
||||
private String currentBuilding;
|
||||
private String currentBuildingId;
|
||||
private String areaId;
|
||||
private String elevatorFloorIdList;
|
||||
|
||||
public String getElevatorFloorIdList() {
|
||||
return this.elevatorFloorIdList;
|
||||
}
|
||||
|
||||
public void setElevatorFloorIdList(String elevatorFloorIdList) {
|
||||
this.elevatorFloorIdList = elevatorFloorIdList;
|
||||
}
|
||||
|
||||
public String getAreaId() {
|
||||
return this.areaId;
|
||||
}
|
||||
|
||||
public void setAreaId(String areaId) {
|
||||
this.areaId = areaId;
|
||||
}
|
||||
|
||||
public String getElevatorFloorList() {
|
||||
return this.elevatorFloorList;
|
||||
}
|
||||
|
||||
public void setElevatorFloorList(String elevatorFloorList) {
|
||||
this.elevatorFloorList = elevatorFloorList;
|
||||
}
|
||||
|
||||
public String getCurrentFloorId() {
|
||||
return this.currentFloorId;
|
||||
}
|
||||
|
||||
public void setCurrentFloorId(String currentFloorId) {
|
||||
this.currentFloorId = currentFloorId;
|
||||
}
|
||||
|
||||
public String getCurrentFloor() {
|
||||
return this.currentFloor;
|
||||
}
|
||||
|
||||
public void setCurrentFloor(String currentFloor) {
|
||||
this.currentFloor = currentFloor;
|
||||
}
|
||||
|
||||
public String getCurrentBuilding() {
|
||||
return this.currentBuilding;
|
||||
}
|
||||
|
||||
public void setCurrentBuilding(String currentBuilding) {
|
||||
this.currentBuilding = currentBuilding;
|
||||
}
|
||||
|
||||
public String getCurrentBuildingId() {
|
||||
return this.currentBuildingId;
|
||||
}
|
||||
|
||||
public void setCurrentBuildingId(String currentBuildingId) {
|
||||
this.currentBuildingId = currentBuildingId;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "AcsElevatorDeciveEditDTO{elevatorFloorList='" + this.elevatorFloorList + '\'' + ", currentFloorId='" + this.currentFloorId + '\'' + ", currentFloor='" + this.currentFloor + '\'' + ", currentBuilding='" + this.currentBuilding + '\'' + ", currentBuildingId='" + this.currentBuildingId + '\'' + '}';
|
||||
}
|
||||
}
|
||||
|
||||
+68
@@ -0,0 +1,68 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package cn.cloudwalk.elevator.device.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class AcsElevatorDeviceListByBuildingIdDto
|
||||
implements Serializable {
|
||||
private String businessId;
|
||||
private String currentBuildingId;
|
||||
|
||||
public String getBusinessId() {
|
||||
return this.businessId;
|
||||
}
|
||||
|
||||
public String getCurrentBuildingId() {
|
||||
return this.currentBuildingId;
|
||||
}
|
||||
|
||||
public void setBusinessId(String businessId) {
|
||||
this.businessId = businessId;
|
||||
}
|
||||
|
||||
public void setCurrentBuildingId(String currentBuildingId) {
|
||||
this.currentBuildingId = currentBuildingId;
|
||||
}
|
||||
|
||||
public boolean equals(Object o) {
|
||||
if (o == this) {
|
||||
return true;
|
||||
}
|
||||
if (!(o instanceof AcsElevatorDeviceListByBuildingIdDto)) {
|
||||
return false;
|
||||
}
|
||||
AcsElevatorDeviceListByBuildingIdDto other = (AcsElevatorDeviceListByBuildingIdDto)o;
|
||||
if (!other.canEqual(this)) {
|
||||
return false;
|
||||
}
|
||||
String this$businessId = this.getBusinessId();
|
||||
String other$businessId = other.getBusinessId();
|
||||
if (this$businessId == null ? other$businessId != null : !this$businessId.equals(other$businessId)) {
|
||||
return false;
|
||||
}
|
||||
String this$currentBuildingId = this.getCurrentBuildingId();
|
||||
String other$currentBuildingId = other.getCurrentBuildingId();
|
||||
return !(this$currentBuildingId == null ? other$currentBuildingId != null : !this$currentBuildingId.equals(other$currentBuildingId));
|
||||
}
|
||||
|
||||
protected boolean canEqual(Object other) {
|
||||
return other instanceof AcsElevatorDeviceListByBuildingIdDto;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
int PRIME = 59;
|
||||
int result = 1;
|
||||
String $businessId = this.getBusinessId();
|
||||
result = result * 59 + ($businessId == null ? 43 : $businessId.hashCode());
|
||||
String $currentBuildingId = this.getCurrentBuildingId();
|
||||
result = result * 59 + ($currentBuildingId == null ? 43 : $currentBuildingId.hashCode());
|
||||
return result;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "AcsElevatorDeviceListByBuildingIdDto(businessId=" + this.getBusinessId() + ", currentBuildingId=" + this.getCurrentBuildingId() + ")";
|
||||
}
|
||||
}
|
||||
|
||||
+44
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.cloud.entity.CloudwalkBaseTimes
|
||||
*/
|
||||
package cn.cloudwalk.elevator.device.dto;
|
||||
|
||||
import cn.cloudwalk.cloud.entity.CloudwalkBaseTimes;
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
public class AcsElevatorDeviceListDto
|
||||
extends CloudwalkBaseTimes
|
||||
implements Serializable {
|
||||
private String businessId;
|
||||
private String currentFloorId;
|
||||
private List<String> currentFloorIds;
|
||||
|
||||
public List<String> getCurrentFloorIds() {
|
||||
return this.currentFloorIds;
|
||||
}
|
||||
|
||||
public void setCurrentFloorIds(List<String> currentFloorIds) {
|
||||
this.currentFloorIds = currentFloorIds;
|
||||
}
|
||||
|
||||
public String getBusinessId() {
|
||||
return this.businessId;
|
||||
}
|
||||
|
||||
public void setBusinessId(String businessId) {
|
||||
this.businessId = businessId;
|
||||
}
|
||||
|
||||
public String getCurrentFloorId() {
|
||||
return this.currentFloorId;
|
||||
}
|
||||
|
||||
public void setCurrentFloorId(String currentFloorId) {
|
||||
this.currentFloorId = currentFloorId;
|
||||
}
|
||||
}
|
||||
|
||||
+233
@@ -0,0 +1,233 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.cloud.entity.CloudwalkBaseTimes
|
||||
*/
|
||||
package cn.cloudwalk.elevator.device.dto;
|
||||
|
||||
import cn.cloudwalk.cloud.entity.CloudwalkBaseTimes;
|
||||
import java.io.Serializable;
|
||||
|
||||
public class AcsElevatorDeviceListResultDto
|
||||
extends CloudwalkBaseTimes
|
||||
implements Serializable {
|
||||
private String businessId;
|
||||
private String deviceId;
|
||||
private String deviceCode;
|
||||
private String deviceName;
|
||||
private String deviceTypeName;
|
||||
private String elevatorFloorList;
|
||||
private String currentFloorId;
|
||||
private String currentFloor;
|
||||
private String currentBuilding;
|
||||
private String currentBuildingId;
|
||||
private String areaName;
|
||||
private Integer status;
|
||||
|
||||
public String getBusinessId() {
|
||||
return this.businessId;
|
||||
}
|
||||
|
||||
public void setBusinessId(String businessId) {
|
||||
this.businessId = businessId;
|
||||
}
|
||||
|
||||
public String getDeviceId() {
|
||||
return this.deviceId;
|
||||
}
|
||||
|
||||
public void setDeviceId(String deviceId) {
|
||||
this.deviceId = deviceId;
|
||||
}
|
||||
|
||||
public String getDeviceCode() {
|
||||
return this.deviceCode;
|
||||
}
|
||||
|
||||
public void setDeviceCode(String deviceCode) {
|
||||
this.deviceCode = deviceCode;
|
||||
}
|
||||
|
||||
public String getDeviceName() {
|
||||
return this.deviceName;
|
||||
}
|
||||
|
||||
public void setDeviceName(String deviceName) {
|
||||
this.deviceName = deviceName;
|
||||
}
|
||||
|
||||
public String getDeviceTypeName() {
|
||||
return this.deviceTypeName;
|
||||
}
|
||||
|
||||
public void setDeviceTypeName(String deviceTypeName) {
|
||||
this.deviceTypeName = deviceTypeName;
|
||||
}
|
||||
|
||||
public String getElevatorFloorList() {
|
||||
return this.elevatorFloorList;
|
||||
}
|
||||
|
||||
public void setElevatorFloorList(String elevatorFloorList) {
|
||||
this.elevatorFloorList = elevatorFloorList;
|
||||
}
|
||||
|
||||
public String getCurrentFloorId() {
|
||||
return this.currentFloorId;
|
||||
}
|
||||
|
||||
public void setCurrentFloorId(String currentFloorId) {
|
||||
this.currentFloorId = currentFloorId;
|
||||
}
|
||||
|
||||
public String getCurrentFloor() {
|
||||
return this.currentFloor;
|
||||
}
|
||||
|
||||
public void setCurrentFloor(String currentFloor) {
|
||||
this.currentFloor = currentFloor;
|
||||
}
|
||||
|
||||
public String getCurrentBuilding() {
|
||||
return this.currentBuilding;
|
||||
}
|
||||
|
||||
public void setCurrentBuilding(String currentBuilding) {
|
||||
this.currentBuilding = currentBuilding;
|
||||
}
|
||||
|
||||
public String getCurrentBuildingId() {
|
||||
return this.currentBuildingId;
|
||||
}
|
||||
|
||||
public void setCurrentBuildingId(String currentBuildingId) {
|
||||
this.currentBuildingId = currentBuildingId;
|
||||
}
|
||||
|
||||
public String getAreaName() {
|
||||
return this.areaName;
|
||||
}
|
||||
|
||||
public void setAreaName(String areaName) {
|
||||
this.areaName = areaName;
|
||||
}
|
||||
|
||||
public Integer getStatus() {
|
||||
return this.status;
|
||||
}
|
||||
|
||||
public void setStatus(Integer status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public boolean equals(Object o) {
|
||||
if (o == this) {
|
||||
return true;
|
||||
}
|
||||
if (!(o instanceof AcsElevatorDeviceListResultDto)) {
|
||||
return false;
|
||||
}
|
||||
AcsElevatorDeviceListResultDto other = (AcsElevatorDeviceListResultDto)o;
|
||||
if (!other.canEqual(this)) {
|
||||
return false;
|
||||
}
|
||||
String this$businessId = this.getBusinessId();
|
||||
String other$businessId = other.getBusinessId();
|
||||
if (this$businessId == null ? other$businessId != null : !this$businessId.equals(other$businessId)) {
|
||||
return false;
|
||||
}
|
||||
String this$deviceId = this.getDeviceId();
|
||||
String other$deviceId = other.getDeviceId();
|
||||
if (this$deviceId == null ? other$deviceId != null : !this$deviceId.equals(other$deviceId)) {
|
||||
return false;
|
||||
}
|
||||
String this$deviceCode = this.getDeviceCode();
|
||||
String other$deviceCode = other.getDeviceCode();
|
||||
if (this$deviceCode == null ? other$deviceCode != null : !this$deviceCode.equals(other$deviceCode)) {
|
||||
return false;
|
||||
}
|
||||
String this$deviceName = this.getDeviceName();
|
||||
String other$deviceName = other.getDeviceName();
|
||||
if (this$deviceName == null ? other$deviceName != null : !this$deviceName.equals(other$deviceName)) {
|
||||
return false;
|
||||
}
|
||||
String this$deviceTypeName = this.getDeviceTypeName();
|
||||
String other$deviceTypeName = other.getDeviceTypeName();
|
||||
if (this$deviceTypeName == null ? other$deviceTypeName != null : !this$deviceTypeName.equals(other$deviceTypeName)) {
|
||||
return false;
|
||||
}
|
||||
String this$elevatorFloorList = this.getElevatorFloorList();
|
||||
String other$elevatorFloorList = other.getElevatorFloorList();
|
||||
if (this$elevatorFloorList == null ? other$elevatorFloorList != null : !this$elevatorFloorList.equals(other$elevatorFloorList)) {
|
||||
return false;
|
||||
}
|
||||
String this$currentFloorId = this.getCurrentFloorId();
|
||||
String other$currentFloorId = other.getCurrentFloorId();
|
||||
if (this$currentFloorId == null ? other$currentFloorId != null : !this$currentFloorId.equals(other$currentFloorId)) {
|
||||
return false;
|
||||
}
|
||||
String this$currentFloor = this.getCurrentFloor();
|
||||
String other$currentFloor = other.getCurrentFloor();
|
||||
if (this$currentFloor == null ? other$currentFloor != null : !this$currentFloor.equals(other$currentFloor)) {
|
||||
return false;
|
||||
}
|
||||
String this$currentBuilding = this.getCurrentBuilding();
|
||||
String other$currentBuilding = other.getCurrentBuilding();
|
||||
if (this$currentBuilding == null ? other$currentBuilding != null : !this$currentBuilding.equals(other$currentBuilding)) {
|
||||
return false;
|
||||
}
|
||||
String this$currentBuildingId = this.getCurrentBuildingId();
|
||||
String other$currentBuildingId = other.getCurrentBuildingId();
|
||||
if (this$currentBuildingId == null ? other$currentBuildingId != null : !this$currentBuildingId.equals(other$currentBuildingId)) {
|
||||
return false;
|
||||
}
|
||||
String this$areaName = this.getAreaName();
|
||||
String other$areaName = other.getAreaName();
|
||||
if (this$areaName == null ? other$areaName != null : !this$areaName.equals(other$areaName)) {
|
||||
return false;
|
||||
}
|
||||
Integer this$status = this.getStatus();
|
||||
Integer other$status = other.getStatus();
|
||||
return !(this$status == null ? other$status != null : !((Object)this$status).equals(other$status));
|
||||
}
|
||||
|
||||
protected boolean canEqual(Object other) {
|
||||
return other instanceof AcsElevatorDeviceListResultDto;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
int PRIME = 59;
|
||||
int result = 1;
|
||||
String $businessId = this.getBusinessId();
|
||||
result = result * 59 + ($businessId == null ? 43 : $businessId.hashCode());
|
||||
String $deviceId = this.getDeviceId();
|
||||
result = result * 59 + ($deviceId == null ? 43 : $deviceId.hashCode());
|
||||
String $deviceCode = this.getDeviceCode();
|
||||
result = result * 59 + ($deviceCode == null ? 43 : $deviceCode.hashCode());
|
||||
String $deviceName = this.getDeviceName();
|
||||
result = result * 59 + ($deviceName == null ? 43 : $deviceName.hashCode());
|
||||
String $deviceTypeName = this.getDeviceTypeName();
|
||||
result = result * 59 + ($deviceTypeName == null ? 43 : $deviceTypeName.hashCode());
|
||||
String $elevatorFloorList = this.getElevatorFloorList();
|
||||
result = result * 59 + ($elevatorFloorList == null ? 43 : $elevatorFloorList.hashCode());
|
||||
String $currentFloorId = this.getCurrentFloorId();
|
||||
result = result * 59 + ($currentFloorId == null ? 43 : $currentFloorId.hashCode());
|
||||
String $currentFloor = this.getCurrentFloor();
|
||||
result = result * 59 + ($currentFloor == null ? 43 : $currentFloor.hashCode());
|
||||
String $currentBuilding = this.getCurrentBuilding();
|
||||
result = result * 59 + ($currentBuilding == null ? 43 : $currentBuilding.hashCode());
|
||||
String $currentBuildingId = this.getCurrentBuildingId();
|
||||
result = result * 59 + ($currentBuildingId == null ? 43 : $currentBuildingId.hashCode());
|
||||
String $areaName = this.getAreaName();
|
||||
result = result * 59 + ($areaName == null ? 43 : $areaName.hashCode());
|
||||
Integer $status = this.getStatus();
|
||||
result = result * 59 + ($status == null ? 43 : ((Object)$status).hashCode());
|
||||
return result;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "AcsElevatorDeviceListResultDto(businessId=" + this.getBusinessId() + ", deviceId=" + this.getDeviceId() + ", deviceCode=" + this.getDeviceCode() + ", deviceName=" + this.getDeviceName() + ", deviceTypeName=" + this.getDeviceTypeName() + ", elevatorFloorList=" + this.getElevatorFloorList() + ", currentFloorId=" + this.getCurrentFloorId() + ", currentFloor=" + this.getCurrentFloor() + ", currentBuilding=" + this.getCurrentBuilding() + ", currentBuildingId=" + this.getCurrentBuildingId() + ", areaName=" + this.getAreaName() + ", status=" + this.getStatus() + ")";
|
||||
}
|
||||
}
|
||||
|
||||
+25
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.cloud.page.CloudwalkBasePageForm
|
||||
*/
|
||||
package cn.cloudwalk.elevator.device.dto;
|
||||
|
||||
import cn.cloudwalk.cloud.page.CloudwalkBasePageForm;
|
||||
import java.io.Serializable;
|
||||
|
||||
public class AcsElevatorDeviceQueryByIdDTO
|
||||
extends CloudwalkBasePageForm
|
||||
implements Serializable {
|
||||
private String id;
|
||||
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
}
|
||||
|
||||
+108
@@ -0,0 +1,108 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.cloud.entity.CloudwalkBaseTimes
|
||||
*/
|
||||
package cn.cloudwalk.elevator.device.dto;
|
||||
|
||||
import cn.cloudwalk.cloud.entity.CloudwalkBaseTimes;
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
public class AcsElevatorDeviceQueryDTO
|
||||
extends CloudwalkBaseTimes
|
||||
implements Serializable {
|
||||
private static final long serialVersionUID = -761586737506722816L;
|
||||
private String areaName;
|
||||
private String deviceCode;
|
||||
private String deviceName;
|
||||
private String deviceTypeName;
|
||||
private List<String> areaIds;
|
||||
private String deviceId;
|
||||
private String businessId;
|
||||
private String ip;
|
||||
private Integer status;
|
||||
private Integer onlineStatus;
|
||||
|
||||
public String getIp() {
|
||||
return this.ip;
|
||||
}
|
||||
|
||||
public void setIp(String ip) {
|
||||
this.ip = ip;
|
||||
}
|
||||
|
||||
public Integer getStatus() {
|
||||
return this.status;
|
||||
}
|
||||
|
||||
public void setStatus(Integer status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public Integer getOnlineStatus() {
|
||||
return this.onlineStatus;
|
||||
}
|
||||
|
||||
public void setOnlineStatus(Integer onlineStatus) {
|
||||
this.onlineStatus = onlineStatus;
|
||||
}
|
||||
|
||||
public String getBusinessId() {
|
||||
return this.businessId;
|
||||
}
|
||||
|
||||
public void setBusinessId(String businessId) {
|
||||
this.businessId = businessId;
|
||||
}
|
||||
|
||||
public String getDeviceId() {
|
||||
return this.deviceId;
|
||||
}
|
||||
|
||||
public void setDeviceId(String deviceId) {
|
||||
this.deviceId = deviceId;
|
||||
}
|
||||
|
||||
public List<String> getAreaIds() {
|
||||
return this.areaIds;
|
||||
}
|
||||
|
||||
public void setAreaIds(List<String> areaIds) {
|
||||
this.areaIds = areaIds;
|
||||
}
|
||||
|
||||
public String getAreaName() {
|
||||
return this.areaName;
|
||||
}
|
||||
|
||||
public void setAreaName(String areaName) {
|
||||
this.areaName = areaName;
|
||||
}
|
||||
|
||||
public String getDeviceCode() {
|
||||
return this.deviceCode;
|
||||
}
|
||||
|
||||
public void setDeviceCode(String deviceCode) {
|
||||
this.deviceCode = deviceCode;
|
||||
}
|
||||
|
||||
public String getDeviceName() {
|
||||
return this.deviceName;
|
||||
}
|
||||
|
||||
public void setDeviceName(String deviceName) {
|
||||
this.deviceName = deviceName;
|
||||
}
|
||||
|
||||
public String getDeviceTypeName() {
|
||||
return this.deviceTypeName;
|
||||
}
|
||||
|
||||
public void setDeviceTypeName(String deviceTypeName) {
|
||||
this.deviceTypeName = deviceTypeName;
|
||||
}
|
||||
}
|
||||
|
||||
+257
@@ -0,0 +1,257 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package cn.cloudwalk.elevator.device.dto;
|
||||
|
||||
public class AcsElevatorDeviceQueryFoDTO {
|
||||
private String id;
|
||||
private String businessId;
|
||||
private String deviceId;
|
||||
private String deviceCode;
|
||||
private String deviceName;
|
||||
private String deviceTypeName;
|
||||
private String elevatorFloorList;
|
||||
private String currentFloorId;
|
||||
private String currentFloor;
|
||||
private String currentBuilding;
|
||||
private String currentBuildingId;
|
||||
private String areaName;
|
||||
private String areaId;
|
||||
private String elevatorFloorIdList;
|
||||
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public String getBusinessId() {
|
||||
return this.businessId;
|
||||
}
|
||||
|
||||
public String getDeviceId() {
|
||||
return this.deviceId;
|
||||
}
|
||||
|
||||
public String getDeviceCode() {
|
||||
return this.deviceCode;
|
||||
}
|
||||
|
||||
public String getDeviceName() {
|
||||
return this.deviceName;
|
||||
}
|
||||
|
||||
public String getDeviceTypeName() {
|
||||
return this.deviceTypeName;
|
||||
}
|
||||
|
||||
public String getElevatorFloorList() {
|
||||
return this.elevatorFloorList;
|
||||
}
|
||||
|
||||
public String getCurrentFloorId() {
|
||||
return this.currentFloorId;
|
||||
}
|
||||
|
||||
public String getCurrentFloor() {
|
||||
return this.currentFloor;
|
||||
}
|
||||
|
||||
public String getCurrentBuilding() {
|
||||
return this.currentBuilding;
|
||||
}
|
||||
|
||||
public String getCurrentBuildingId() {
|
||||
return this.currentBuildingId;
|
||||
}
|
||||
|
||||
public String getAreaName() {
|
||||
return this.areaName;
|
||||
}
|
||||
|
||||
public String getAreaId() {
|
||||
return this.areaId;
|
||||
}
|
||||
|
||||
public String getElevatorFloorIdList() {
|
||||
return this.elevatorFloorIdList;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public void setBusinessId(String businessId) {
|
||||
this.businessId = businessId;
|
||||
}
|
||||
|
||||
public void setDeviceId(String deviceId) {
|
||||
this.deviceId = deviceId;
|
||||
}
|
||||
|
||||
public void setDeviceCode(String deviceCode) {
|
||||
this.deviceCode = deviceCode;
|
||||
}
|
||||
|
||||
public void setDeviceName(String deviceName) {
|
||||
this.deviceName = deviceName;
|
||||
}
|
||||
|
||||
public void setDeviceTypeName(String deviceTypeName) {
|
||||
this.deviceTypeName = deviceTypeName;
|
||||
}
|
||||
|
||||
public void setElevatorFloorList(String elevatorFloorList) {
|
||||
this.elevatorFloorList = elevatorFloorList;
|
||||
}
|
||||
|
||||
public void setCurrentFloorId(String currentFloorId) {
|
||||
this.currentFloorId = currentFloorId;
|
||||
}
|
||||
|
||||
public void setCurrentFloor(String currentFloor) {
|
||||
this.currentFloor = currentFloor;
|
||||
}
|
||||
|
||||
public void setCurrentBuilding(String currentBuilding) {
|
||||
this.currentBuilding = currentBuilding;
|
||||
}
|
||||
|
||||
public void setCurrentBuildingId(String currentBuildingId) {
|
||||
this.currentBuildingId = currentBuildingId;
|
||||
}
|
||||
|
||||
public void setAreaName(String areaName) {
|
||||
this.areaName = areaName;
|
||||
}
|
||||
|
||||
public void setAreaId(String areaId) {
|
||||
this.areaId = areaId;
|
||||
}
|
||||
|
||||
public void setElevatorFloorIdList(String elevatorFloorIdList) {
|
||||
this.elevatorFloorIdList = elevatorFloorIdList;
|
||||
}
|
||||
|
||||
public boolean equals(Object o) {
|
||||
if (o == this) {
|
||||
return true;
|
||||
}
|
||||
if (!(o instanceof AcsElevatorDeviceQueryFoDTO)) {
|
||||
return false;
|
||||
}
|
||||
AcsElevatorDeviceQueryFoDTO other = (AcsElevatorDeviceQueryFoDTO)o;
|
||||
if (!other.canEqual(this)) {
|
||||
return false;
|
||||
}
|
||||
String this$id = this.getId();
|
||||
String other$id = other.getId();
|
||||
if (this$id == null ? other$id != null : !this$id.equals(other$id)) {
|
||||
return false;
|
||||
}
|
||||
String this$businessId = this.getBusinessId();
|
||||
String other$businessId = other.getBusinessId();
|
||||
if (this$businessId == null ? other$businessId != null : !this$businessId.equals(other$businessId)) {
|
||||
return false;
|
||||
}
|
||||
String this$deviceId = this.getDeviceId();
|
||||
String other$deviceId = other.getDeviceId();
|
||||
if (this$deviceId == null ? other$deviceId != null : !this$deviceId.equals(other$deviceId)) {
|
||||
return false;
|
||||
}
|
||||
String this$deviceCode = this.getDeviceCode();
|
||||
String other$deviceCode = other.getDeviceCode();
|
||||
if (this$deviceCode == null ? other$deviceCode != null : !this$deviceCode.equals(other$deviceCode)) {
|
||||
return false;
|
||||
}
|
||||
String this$deviceName = this.getDeviceName();
|
||||
String other$deviceName = other.getDeviceName();
|
||||
if (this$deviceName == null ? other$deviceName != null : !this$deviceName.equals(other$deviceName)) {
|
||||
return false;
|
||||
}
|
||||
String this$deviceTypeName = this.getDeviceTypeName();
|
||||
String other$deviceTypeName = other.getDeviceTypeName();
|
||||
if (this$deviceTypeName == null ? other$deviceTypeName != null : !this$deviceTypeName.equals(other$deviceTypeName)) {
|
||||
return false;
|
||||
}
|
||||
String this$elevatorFloorList = this.getElevatorFloorList();
|
||||
String other$elevatorFloorList = other.getElevatorFloorList();
|
||||
if (this$elevatorFloorList == null ? other$elevatorFloorList != null : !this$elevatorFloorList.equals(other$elevatorFloorList)) {
|
||||
return false;
|
||||
}
|
||||
String this$currentFloorId = this.getCurrentFloorId();
|
||||
String other$currentFloorId = other.getCurrentFloorId();
|
||||
if (this$currentFloorId == null ? other$currentFloorId != null : !this$currentFloorId.equals(other$currentFloorId)) {
|
||||
return false;
|
||||
}
|
||||
String this$currentFloor = this.getCurrentFloor();
|
||||
String other$currentFloor = other.getCurrentFloor();
|
||||
if (this$currentFloor == null ? other$currentFloor != null : !this$currentFloor.equals(other$currentFloor)) {
|
||||
return false;
|
||||
}
|
||||
String this$currentBuilding = this.getCurrentBuilding();
|
||||
String other$currentBuilding = other.getCurrentBuilding();
|
||||
if (this$currentBuilding == null ? other$currentBuilding != null : !this$currentBuilding.equals(other$currentBuilding)) {
|
||||
return false;
|
||||
}
|
||||
String this$currentBuildingId = this.getCurrentBuildingId();
|
||||
String other$currentBuildingId = other.getCurrentBuildingId();
|
||||
if (this$currentBuildingId == null ? other$currentBuildingId != null : !this$currentBuildingId.equals(other$currentBuildingId)) {
|
||||
return false;
|
||||
}
|
||||
String this$areaName = this.getAreaName();
|
||||
String other$areaName = other.getAreaName();
|
||||
if (this$areaName == null ? other$areaName != null : !this$areaName.equals(other$areaName)) {
|
||||
return false;
|
||||
}
|
||||
String this$areaId = this.getAreaId();
|
||||
String other$areaId = other.getAreaId();
|
||||
if (this$areaId == null ? other$areaId != null : !this$areaId.equals(other$areaId)) {
|
||||
return false;
|
||||
}
|
||||
String this$elevatorFloorIdList = this.getElevatorFloorIdList();
|
||||
String other$elevatorFloorIdList = other.getElevatorFloorIdList();
|
||||
return !(this$elevatorFloorIdList == null ? other$elevatorFloorIdList != null : !this$elevatorFloorIdList.equals(other$elevatorFloorIdList));
|
||||
}
|
||||
|
||||
protected boolean canEqual(Object other) {
|
||||
return other instanceof AcsElevatorDeviceQueryFoDTO;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
int PRIME = 59;
|
||||
int result = 1;
|
||||
String $id = this.getId();
|
||||
result = result * 59 + ($id == null ? 43 : $id.hashCode());
|
||||
String $businessId = this.getBusinessId();
|
||||
result = result * 59 + ($businessId == null ? 43 : $businessId.hashCode());
|
||||
String $deviceId = this.getDeviceId();
|
||||
result = result * 59 + ($deviceId == null ? 43 : $deviceId.hashCode());
|
||||
String $deviceCode = this.getDeviceCode();
|
||||
result = result * 59 + ($deviceCode == null ? 43 : $deviceCode.hashCode());
|
||||
String $deviceName = this.getDeviceName();
|
||||
result = result * 59 + ($deviceName == null ? 43 : $deviceName.hashCode());
|
||||
String $deviceTypeName = this.getDeviceTypeName();
|
||||
result = result * 59 + ($deviceTypeName == null ? 43 : $deviceTypeName.hashCode());
|
||||
String $elevatorFloorList = this.getElevatorFloorList();
|
||||
result = result * 59 + ($elevatorFloorList == null ? 43 : $elevatorFloorList.hashCode());
|
||||
String $currentFloorId = this.getCurrentFloorId();
|
||||
result = result * 59 + ($currentFloorId == null ? 43 : $currentFloorId.hashCode());
|
||||
String $currentFloor = this.getCurrentFloor();
|
||||
result = result * 59 + ($currentFloor == null ? 43 : $currentFloor.hashCode());
|
||||
String $currentBuilding = this.getCurrentBuilding();
|
||||
result = result * 59 + ($currentBuilding == null ? 43 : $currentBuilding.hashCode());
|
||||
String $currentBuildingId = this.getCurrentBuildingId();
|
||||
result = result * 59 + ($currentBuildingId == null ? 43 : $currentBuildingId.hashCode());
|
||||
String $areaName = this.getAreaName();
|
||||
result = result * 59 + ($areaName == null ? 43 : $areaName.hashCode());
|
||||
String $areaId = this.getAreaId();
|
||||
result = result * 59 + ($areaId == null ? 43 : $areaId.hashCode());
|
||||
String $elevatorFloorIdList = this.getElevatorFloorIdList();
|
||||
result = result * 59 + ($elevatorFloorIdList == null ? 43 : $elevatorFloorIdList.hashCode());
|
||||
return result;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "AcsElevatorDeviceQueryFoDTO(id=" + this.getId() + ", businessId=" + this.getBusinessId() + ", deviceId=" + this.getDeviceId() + ", deviceCode=" + this.getDeviceCode() + ", deviceName=" + this.getDeviceName() + ", deviceTypeName=" + this.getDeviceTypeName() + ", elevatorFloorList=" + this.getElevatorFloorList() + ", currentFloorId=" + this.getCurrentFloorId() + ", currentFloor=" + this.getCurrentFloor() + ", currentBuilding=" + this.getCurrentBuilding() + ", currentBuildingId=" + this.getCurrentBuildingId() + ", areaName=" + this.getAreaName() + ", areaId=" + this.getAreaId() + ", elevatorFloorIdList=" + this.getElevatorFloorIdList() + ")";
|
||||
}
|
||||
}
|
||||
|
||||
+28
@@ -0,0 +1,28 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.cloud.entity.CloudwalkBaseTimes
|
||||
*/
|
||||
package cn.cloudwalk.elevator.device.dto;
|
||||
|
||||
import cn.cloudwalk.cloud.entity.CloudwalkBaseTimes;
|
||||
import java.io.Serializable;
|
||||
|
||||
public class AcsElevatorDeviceQueryResultDTO
|
||||
extends CloudwalkBaseTimes
|
||||
implements Serializable {
|
||||
private static final long serialVersionUID = -761586737506722816L;
|
||||
private String businessId;
|
||||
private String deviceId;
|
||||
private String deviceCode;
|
||||
private String deviceName;
|
||||
private String deviceTypeName;
|
||||
private String elevatorFloorList;
|
||||
private String currentFloorId;
|
||||
private String currentFloor;
|
||||
private String currentBuilding;
|
||||
private String currentBuildingId;
|
||||
private Integer status;
|
||||
}
|
||||
|
||||
+353
@@ -0,0 +1,353 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package cn.cloudwalk.elevator.device.dto;
|
||||
|
||||
public class AcsElevatorDeviceResultDTO {
|
||||
private String id;
|
||||
private String businessId;
|
||||
private String deviceId;
|
||||
private String deviceCode;
|
||||
private String deviceName;
|
||||
private String deviceTypeName;
|
||||
private String elevatorFloorList;
|
||||
private String currentFloorId;
|
||||
private String currentFloor;
|
||||
private String currentBuilding;
|
||||
private String currentBuildingId;
|
||||
private String areaName;
|
||||
private String areaId;
|
||||
private Integer status;
|
||||
private String statusString;
|
||||
private String elevatorFloorIdList;
|
||||
private Long lastHeartbeatTime;
|
||||
private String imageStoreId;
|
||||
private String ip;
|
||||
private Integer onlineStatus;
|
||||
|
||||
public String getElevatorFloorIdList() {
|
||||
return this.elevatorFloorIdList;
|
||||
}
|
||||
|
||||
public void setElevatorFloorIdList(String elevatorFloorIdList) {
|
||||
this.elevatorFloorIdList = elevatorFloorIdList;
|
||||
}
|
||||
|
||||
public String getBusinessId() {
|
||||
return this.businessId;
|
||||
}
|
||||
|
||||
public void setBusinessId(String businessId) {
|
||||
this.businessId = businessId;
|
||||
}
|
||||
|
||||
public String getDeviceId() {
|
||||
return this.deviceId;
|
||||
}
|
||||
|
||||
public void setDeviceId(String deviceId) {
|
||||
this.deviceId = deviceId;
|
||||
}
|
||||
|
||||
public String getDeviceCode() {
|
||||
return this.deviceCode;
|
||||
}
|
||||
|
||||
public void setDeviceCode(String deviceCode) {
|
||||
this.deviceCode = deviceCode;
|
||||
}
|
||||
|
||||
public String getDeviceName() {
|
||||
return this.deviceName;
|
||||
}
|
||||
|
||||
public void setDeviceName(String deviceName) {
|
||||
this.deviceName = deviceName;
|
||||
}
|
||||
|
||||
public String getDeviceTypeName() {
|
||||
return this.deviceTypeName;
|
||||
}
|
||||
|
||||
public void setDeviceTypeName(String deviceTypeName) {
|
||||
this.deviceTypeName = deviceTypeName;
|
||||
}
|
||||
|
||||
public String getElevatorFloorList() {
|
||||
return this.elevatorFloorList;
|
||||
}
|
||||
|
||||
public void setElevatorFloorList(String elevatorFloorList) {
|
||||
this.elevatorFloorList = elevatorFloorList;
|
||||
}
|
||||
|
||||
public String getCurrentFloorId() {
|
||||
return this.currentFloorId;
|
||||
}
|
||||
|
||||
public void setCurrentFloorId(String currentFloorId) {
|
||||
this.currentFloorId = currentFloorId;
|
||||
}
|
||||
|
||||
public String getCurrentFloor() {
|
||||
return this.currentFloor;
|
||||
}
|
||||
|
||||
public void setCurrentFloor(String currentFloor) {
|
||||
this.currentFloor = currentFloor;
|
||||
}
|
||||
|
||||
public String getCurrentBuilding() {
|
||||
return this.currentBuilding;
|
||||
}
|
||||
|
||||
public void setCurrentBuilding(String currentBuilding) {
|
||||
this.currentBuilding = currentBuilding;
|
||||
}
|
||||
|
||||
public String getCurrentBuildingId() {
|
||||
return this.currentBuildingId;
|
||||
}
|
||||
|
||||
public void setCurrentBuildingId(String currentBuildingId) {
|
||||
this.currentBuildingId = currentBuildingId;
|
||||
}
|
||||
|
||||
public String getAreaName() {
|
||||
return this.areaName;
|
||||
}
|
||||
|
||||
public void setAreaName(String areaName) {
|
||||
this.areaName = areaName;
|
||||
}
|
||||
|
||||
public Integer getStatus() {
|
||||
return this.status;
|
||||
}
|
||||
|
||||
public void setStatus(Integer status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public Long getLastHeartbeatTime() {
|
||||
return this.lastHeartbeatTime;
|
||||
}
|
||||
|
||||
public void setLastHeartbeatTime(Long lastHeartbeatTime) {
|
||||
this.lastHeartbeatTime = lastHeartbeatTime;
|
||||
}
|
||||
|
||||
public String getAreaId() {
|
||||
return this.areaId;
|
||||
}
|
||||
|
||||
public void setAreaId(String areaId) {
|
||||
this.areaId = areaId;
|
||||
}
|
||||
|
||||
public String getStatusString() {
|
||||
return this.statusString;
|
||||
}
|
||||
|
||||
public void setStatusString(String statusString) {
|
||||
this.statusString = statusString;
|
||||
}
|
||||
|
||||
public String getImageStoreId() {
|
||||
return this.imageStoreId;
|
||||
}
|
||||
|
||||
public void setImageStoreId(String imageStoreId) {
|
||||
this.imageStoreId = imageStoreId;
|
||||
}
|
||||
|
||||
public Integer getOnlineStatus() {
|
||||
return this.onlineStatus;
|
||||
}
|
||||
|
||||
public void setOnlineStatus(Integer onlineStatus) {
|
||||
this.onlineStatus = onlineStatus;
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public String getIp() {
|
||||
return this.ip;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public void setIp(String ip) {
|
||||
this.ip = ip;
|
||||
}
|
||||
|
||||
public boolean equals(Object o) {
|
||||
if (o == this) {
|
||||
return true;
|
||||
}
|
||||
if (!(o instanceof AcsElevatorDeviceResultDTO)) {
|
||||
return false;
|
||||
}
|
||||
AcsElevatorDeviceResultDTO other = (AcsElevatorDeviceResultDTO)o;
|
||||
if (!other.canEqual(this)) {
|
||||
return false;
|
||||
}
|
||||
String this$id = this.getId();
|
||||
String other$id = other.getId();
|
||||
if (this$id == null ? other$id != null : !this$id.equals(other$id)) {
|
||||
return false;
|
||||
}
|
||||
String this$businessId = this.getBusinessId();
|
||||
String other$businessId = other.getBusinessId();
|
||||
if (this$businessId == null ? other$businessId != null : !this$businessId.equals(other$businessId)) {
|
||||
return false;
|
||||
}
|
||||
String this$deviceId = this.getDeviceId();
|
||||
String other$deviceId = other.getDeviceId();
|
||||
if (this$deviceId == null ? other$deviceId != null : !this$deviceId.equals(other$deviceId)) {
|
||||
return false;
|
||||
}
|
||||
String this$deviceCode = this.getDeviceCode();
|
||||
String other$deviceCode = other.getDeviceCode();
|
||||
if (this$deviceCode == null ? other$deviceCode != null : !this$deviceCode.equals(other$deviceCode)) {
|
||||
return false;
|
||||
}
|
||||
String this$deviceName = this.getDeviceName();
|
||||
String other$deviceName = other.getDeviceName();
|
||||
if (this$deviceName == null ? other$deviceName != null : !this$deviceName.equals(other$deviceName)) {
|
||||
return false;
|
||||
}
|
||||
String this$deviceTypeName = this.getDeviceTypeName();
|
||||
String other$deviceTypeName = other.getDeviceTypeName();
|
||||
if (this$deviceTypeName == null ? other$deviceTypeName != null : !this$deviceTypeName.equals(other$deviceTypeName)) {
|
||||
return false;
|
||||
}
|
||||
String this$elevatorFloorList = this.getElevatorFloorList();
|
||||
String other$elevatorFloorList = other.getElevatorFloorList();
|
||||
if (this$elevatorFloorList == null ? other$elevatorFloorList != null : !this$elevatorFloorList.equals(other$elevatorFloorList)) {
|
||||
return false;
|
||||
}
|
||||
String this$currentFloorId = this.getCurrentFloorId();
|
||||
String other$currentFloorId = other.getCurrentFloorId();
|
||||
if (this$currentFloorId == null ? other$currentFloorId != null : !this$currentFloorId.equals(other$currentFloorId)) {
|
||||
return false;
|
||||
}
|
||||
String this$currentFloor = this.getCurrentFloor();
|
||||
String other$currentFloor = other.getCurrentFloor();
|
||||
if (this$currentFloor == null ? other$currentFloor != null : !this$currentFloor.equals(other$currentFloor)) {
|
||||
return false;
|
||||
}
|
||||
String this$currentBuilding = this.getCurrentBuilding();
|
||||
String other$currentBuilding = other.getCurrentBuilding();
|
||||
if (this$currentBuilding == null ? other$currentBuilding != null : !this$currentBuilding.equals(other$currentBuilding)) {
|
||||
return false;
|
||||
}
|
||||
String this$currentBuildingId = this.getCurrentBuildingId();
|
||||
String other$currentBuildingId = other.getCurrentBuildingId();
|
||||
if (this$currentBuildingId == null ? other$currentBuildingId != null : !this$currentBuildingId.equals(other$currentBuildingId)) {
|
||||
return false;
|
||||
}
|
||||
String this$areaName = this.getAreaName();
|
||||
String other$areaName = other.getAreaName();
|
||||
if (this$areaName == null ? other$areaName != null : !this$areaName.equals(other$areaName)) {
|
||||
return false;
|
||||
}
|
||||
String this$areaId = this.getAreaId();
|
||||
String other$areaId = other.getAreaId();
|
||||
if (this$areaId == null ? other$areaId != null : !this$areaId.equals(other$areaId)) {
|
||||
return false;
|
||||
}
|
||||
Integer this$status = this.getStatus();
|
||||
Integer other$status = other.getStatus();
|
||||
if (this$status == null ? other$status != null : !((Object)this$status).equals(other$status)) {
|
||||
return false;
|
||||
}
|
||||
String this$statusString = this.getStatusString();
|
||||
String other$statusString = other.getStatusString();
|
||||
if (this$statusString == null ? other$statusString != null : !this$statusString.equals(other$statusString)) {
|
||||
return false;
|
||||
}
|
||||
String this$elevatorFloorIdList = this.getElevatorFloorIdList();
|
||||
String other$elevatorFloorIdList = other.getElevatorFloorIdList();
|
||||
if (this$elevatorFloorIdList == null ? other$elevatorFloorIdList != null : !this$elevatorFloorIdList.equals(other$elevatorFloorIdList)) {
|
||||
return false;
|
||||
}
|
||||
Long this$lastHeartbeatTime = this.getLastHeartbeatTime();
|
||||
Long other$lastHeartbeatTime = other.getLastHeartbeatTime();
|
||||
if (this$lastHeartbeatTime == null ? other$lastHeartbeatTime != null : !((Object)this$lastHeartbeatTime).equals(other$lastHeartbeatTime)) {
|
||||
return false;
|
||||
}
|
||||
String this$imageStoreId = this.getImageStoreId();
|
||||
String other$imageStoreId = other.getImageStoreId();
|
||||
if (this$imageStoreId == null ? other$imageStoreId != null : !this$imageStoreId.equals(other$imageStoreId)) {
|
||||
return false;
|
||||
}
|
||||
String this$ip = this.getIp();
|
||||
String other$ip = other.getIp();
|
||||
if (this$ip == null ? other$ip != null : !this$ip.equals(other$ip)) {
|
||||
return false;
|
||||
}
|
||||
Integer this$onlineStatus = this.getOnlineStatus();
|
||||
Integer other$onlineStatus = other.getOnlineStatus();
|
||||
return !(this$onlineStatus == null ? other$onlineStatus != null : !((Object)this$onlineStatus).equals(other$onlineStatus));
|
||||
}
|
||||
|
||||
protected boolean canEqual(Object other) {
|
||||
return other instanceof AcsElevatorDeviceResultDTO;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
int PRIME = 59;
|
||||
int result = 1;
|
||||
String $id = this.getId();
|
||||
result = result * 59 + ($id == null ? 43 : $id.hashCode());
|
||||
String $businessId = this.getBusinessId();
|
||||
result = result * 59 + ($businessId == null ? 43 : $businessId.hashCode());
|
||||
String $deviceId = this.getDeviceId();
|
||||
result = result * 59 + ($deviceId == null ? 43 : $deviceId.hashCode());
|
||||
String $deviceCode = this.getDeviceCode();
|
||||
result = result * 59 + ($deviceCode == null ? 43 : $deviceCode.hashCode());
|
||||
String $deviceName = this.getDeviceName();
|
||||
result = result * 59 + ($deviceName == null ? 43 : $deviceName.hashCode());
|
||||
String $deviceTypeName = this.getDeviceTypeName();
|
||||
result = result * 59 + ($deviceTypeName == null ? 43 : $deviceTypeName.hashCode());
|
||||
String $elevatorFloorList = this.getElevatorFloorList();
|
||||
result = result * 59 + ($elevatorFloorList == null ? 43 : $elevatorFloorList.hashCode());
|
||||
String $currentFloorId = this.getCurrentFloorId();
|
||||
result = result * 59 + ($currentFloorId == null ? 43 : $currentFloorId.hashCode());
|
||||
String $currentFloor = this.getCurrentFloor();
|
||||
result = result * 59 + ($currentFloor == null ? 43 : $currentFloor.hashCode());
|
||||
String $currentBuilding = this.getCurrentBuilding();
|
||||
result = result * 59 + ($currentBuilding == null ? 43 : $currentBuilding.hashCode());
|
||||
String $currentBuildingId = this.getCurrentBuildingId();
|
||||
result = result * 59 + ($currentBuildingId == null ? 43 : $currentBuildingId.hashCode());
|
||||
String $areaName = this.getAreaName();
|
||||
result = result * 59 + ($areaName == null ? 43 : $areaName.hashCode());
|
||||
String $areaId = this.getAreaId();
|
||||
result = result * 59 + ($areaId == null ? 43 : $areaId.hashCode());
|
||||
Integer $status = this.getStatus();
|
||||
result = result * 59 + ($status == null ? 43 : ((Object)$status).hashCode());
|
||||
String $statusString = this.getStatusString();
|
||||
result = result * 59 + ($statusString == null ? 43 : $statusString.hashCode());
|
||||
String $elevatorFloorIdList = this.getElevatorFloorIdList();
|
||||
result = result * 59 + ($elevatorFloorIdList == null ? 43 : $elevatorFloorIdList.hashCode());
|
||||
Long $lastHeartbeatTime = this.getLastHeartbeatTime();
|
||||
result = result * 59 + ($lastHeartbeatTime == null ? 43 : ((Object)$lastHeartbeatTime).hashCode());
|
||||
String $imageStoreId = this.getImageStoreId();
|
||||
result = result * 59 + ($imageStoreId == null ? 43 : $imageStoreId.hashCode());
|
||||
String $ip = this.getIp();
|
||||
result = result * 59 + ($ip == null ? 43 : $ip.hashCode());
|
||||
Integer $onlineStatus = this.getOnlineStatus();
|
||||
result = result * 59 + ($onlineStatus == null ? 43 : ((Object)$onlineStatus).hashCode());
|
||||
return result;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "AcsElevatorDeviceResultDTO(id=" + this.getId() + ", businessId=" + this.getBusinessId() + ", deviceId=" + this.getDeviceId() + ", deviceCode=" + this.getDeviceCode() + ", deviceName=" + this.getDeviceName() + ", deviceTypeName=" + this.getDeviceTypeName() + ", elevatorFloorList=" + this.getElevatorFloorList() + ", currentFloorId=" + this.getCurrentFloorId() + ", currentFloor=" + this.getCurrentFloor() + ", currentBuilding=" + this.getCurrentBuilding() + ", currentBuildingId=" + this.getCurrentBuildingId() + ", areaName=" + this.getAreaName() + ", areaId=" + this.getAreaId() + ", status=" + this.getStatus() + ", statusString=" + this.getStatusString() + ", elevatorFloorIdList=" + this.getElevatorFloorIdList() + ", lastHeartbeatTime=" + this.getLastHeartbeatTime() + ", imageStoreId=" + this.getImageStoreId() + ", ip=" + this.getIp() + ", onlineStatus=" + this.getOnlineStatus() + ")";
|
||||
}
|
||||
}
|
||||
|
||||
+43
@@ -0,0 +1,43 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* org.springframework.beans.factory.annotation.Autowired
|
||||
* org.springframework.stereotype.Repository
|
||||
*/
|
||||
package cn.cloudwalk.elevator.device.impl;
|
||||
|
||||
import cn.cloudwalk.elevator.device.dao.AcsDeviceTaskDao;
|
||||
import cn.cloudwalk.elevator.device.dto.AcsDeviceTaskAddDto;
|
||||
import cn.cloudwalk.elevator.device.dto.AcsDeviceTaskDTO;
|
||||
import cn.cloudwalk.elevator.device.mapper.AcsDeviceTaskMapper;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
@Repository
|
||||
public class AcsDeviceTaskDaoImpl
|
||||
implements AcsDeviceTaskDao {
|
||||
@Autowired
|
||||
private AcsDeviceTaskMapper acsDeviceTaskMapper;
|
||||
|
||||
@Override
|
||||
public Integer insert(AcsDeviceTaskAddDto dto) {
|
||||
return this.acsDeviceTaskMapper.insert(dto);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer updateBingDevices(AcsDeviceTaskAddDto dto) {
|
||||
return this.acsDeviceTaskMapper.updateBingDevices(dto);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer updateIsStop(AcsDeviceTaskAddDto dto) {
|
||||
return this.acsDeviceTaskMapper.updateIsStop(dto);
|
||||
}
|
||||
|
||||
@Override
|
||||
public AcsDeviceTaskDTO getById(String taskId) {
|
||||
return this.acsDeviceTaskMapper.getById(taskId);
|
||||
}
|
||||
}
|
||||
|
||||
+150
@@ -0,0 +1,150 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.cloud.context.CloudwalkCallContext
|
||||
* cn.cloudwalk.cloud.exception.ServiceException
|
||||
* cn.cloudwalk.elevator.device.dao.AcsDeviceTaskDao
|
||||
* cn.cloudwalk.elevator.device.dto.AcsDeviceTaskAddDto
|
||||
* cn.cloudwalk.elevator.device.dto.AcsDeviceTaskDTO
|
||||
* cn.cloudwalk.elevator.passrule.dao.ImageRuleRefDao
|
||||
* cn.cloudwalk.elevator.passrule.dto.AcsPassRuleDeleteDto
|
||||
* cn.cloudwalk.elevator.passrule.dto.AcsPassRuleImageResultDto
|
||||
* cn.cloudwalk.elevator.util.CollectionUtils
|
||||
* org.springframework.beans.factory.annotation.Autowired
|
||||
* org.springframework.scheduling.annotation.Async
|
||||
* org.springframework.stereotype.Service
|
||||
* org.springframework.util.ObjectUtils
|
||||
*/
|
||||
package cn.cloudwalk.elevator.device.impl;
|
||||
|
||||
import cn.cloudwalk.cloud.context.CloudwalkCallContext;
|
||||
import cn.cloudwalk.cloud.exception.ServiceException;
|
||||
import cn.cloudwalk.elevator.common.AbstractAcsDeviceService;
|
||||
import cn.cloudwalk.elevator.device.dao.AcsDeviceTaskDao;
|
||||
import cn.cloudwalk.elevator.device.dto.AcsDeviceTaskAddDto;
|
||||
import cn.cloudwalk.elevator.device.dto.AcsDeviceTaskDTO;
|
||||
import cn.cloudwalk.elevator.device.param.AcsRestructureBindingParam;
|
||||
import cn.cloudwalk.elevator.device.service.AcsDeviceTaskService;
|
||||
import cn.cloudwalk.elevator.passrule.dao.ImageRuleRefDao;
|
||||
import cn.cloudwalk.elevator.passrule.dto.AcsPassRuleDeleteDto;
|
||||
import cn.cloudwalk.elevator.passrule.dto.AcsPassRuleImageResultDto;
|
||||
import cn.cloudwalk.elevator.passrule.param.AcsPassRuleDeleteParam;
|
||||
import cn.cloudwalk.elevator.passrule.param.AcsPassRuleNewParam;
|
||||
import cn.cloudwalk.elevator.passrule.service.ImageRuleRefService;
|
||||
import cn.cloudwalk.elevator.person.param.AcsPersonAddParam;
|
||||
import cn.cloudwalk.elevator.person.param.AcsPersonDeleteParam;
|
||||
import cn.cloudwalk.elevator.person.service.PersonRuleService;
|
||||
import cn.cloudwalk.elevator.util.CollectionUtils;
|
||||
import java.util.Collections;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import javax.annotation.Resource;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.scheduling.annotation.Async;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.util.ObjectUtils;
|
||||
|
||||
@Service
|
||||
public class AcsDeviceTaskServiceImpl
|
||||
extends AbstractAcsDeviceService
|
||||
implements AcsDeviceTaskService {
|
||||
@Autowired
|
||||
private PersonRuleService personRuleService;
|
||||
@Autowired
|
||||
private ImageRuleRefService imageRuleRefService;
|
||||
@Resource
|
||||
private AcsDeviceTaskDao acsDeviceTaskDao;
|
||||
@Resource
|
||||
private ImageRuleRefDao imageRuleRefDao;
|
||||
|
||||
@Override
|
||||
@Async(value="updateFloorsExecutor")
|
||||
public void updateFloors(AcsRestructureBindingParam param, List<AcsPassRuleImageResultDto> addFloors, List<String> delFloorIds, CloudwalkCallContext context) throws ServiceException {
|
||||
block16: {
|
||||
try {
|
||||
if (!CollectionUtils.isEmpty(addFloors)) {
|
||||
for (AcsPassRuleImageResultDto addFloor : addFloors) {
|
||||
AcsDeviceTaskDTO task = this.acsDeviceTaskDao.getById(param.getTaskId());
|
||||
if (task.getIsStop() != 0) break;
|
||||
if (!ObjectUtils.isEmpty((Object)param.getPersonId())) {
|
||||
AcsPersonAddParam addParam = new AcsPersonAddParam();
|
||||
addParam.setPersonIds(Collections.singletonList(param.getPersonId()));
|
||||
addParam.setParentId(param.getParentId());
|
||||
addParam.setZoneId(addFloor.getZoneId());
|
||||
addParam.setZoneName(addFloor.getZoneName());
|
||||
this.personRuleService.add(addParam, context);
|
||||
} else {
|
||||
AcsPassRuleNewParam ruleParam = new AcsPassRuleNewParam();
|
||||
ruleParam.setParentId(param.getParentId());
|
||||
ruleParam.setZoneId(addFloor.getZoneId());
|
||||
ruleParam.setZoneName(addFloor.getZoneName());
|
||||
if (!ObjectUtils.isEmpty((Object)param.getLabelId())) {
|
||||
ruleParam.setIncludeLabels(Collections.singletonList(param.getLabelId()));
|
||||
ruleParam.setRuleName(addFloor.getZoneName() + param.getLabelName());
|
||||
}
|
||||
if (!ObjectUtils.isEmpty((Object)param.getOrgId())) {
|
||||
ruleParam.setIncludeOrganizations(Collections.singletonList(param.getOrgId()));
|
||||
ruleParam.setRuleName(addFloor.getZoneName() + param.getOrgName());
|
||||
}
|
||||
this.imageRuleRefService.addOnlyRule(ruleParam, context);
|
||||
}
|
||||
AcsDeviceTaskAddDto addDto = new AcsDeviceTaskAddDto();
|
||||
addDto.setId(task.getId());
|
||||
addDto.setBindDevices(Integer.valueOf(task.getBindDevices() + 1));
|
||||
this.acsDeviceTaskDao.updateBingDevices(addDto);
|
||||
}
|
||||
}
|
||||
if (CollectionUtils.isEmpty(delFloorIds)) break block16;
|
||||
List ruleList = this.imageRuleRefDao.listZoneInfoByIds(delFloorIds);
|
||||
HashMap ruleMap = new HashMap();
|
||||
ruleList.forEach(rule -> ruleMap.put(rule.getZoneId(), rule.getZoneName()));
|
||||
for (String delFloorId : delFloorIds) {
|
||||
AcsDeviceTaskDTO task = this.acsDeviceTaskDao.getById(param.getTaskId());
|
||||
if (task.getIsStop() == 0) {
|
||||
if (!ObjectUtils.isEmpty((Object)param.getPersonId())) {
|
||||
AcsPersonDeleteParam delParam = new AcsPersonDeleteParam();
|
||||
delParam.setParentId(param.getParentId());
|
||||
delParam.setZoneId(delFloorId);
|
||||
delParam.setPersonIds(Collections.singletonList(param.getPersonId()));
|
||||
this.personRuleService.delete(delParam, context);
|
||||
} else {
|
||||
String ruleId;
|
||||
String ruleName = "";
|
||||
if (!ObjectUtils.isEmpty((Object)param.getLabelName())) {
|
||||
ruleName = (String)ruleMap.get(delFloorId) + param.getLabelName();
|
||||
}
|
||||
if (!ObjectUtils.isEmpty((Object)param.getOrgName())) {
|
||||
ruleName = (String)ruleMap.get(delFloorId) + param.getOrgName();
|
||||
}
|
||||
if (!ObjectUtils.isEmpty((Object)(ruleId = this.imageRuleRefDao.getByRuleName(ruleName, delFloorId)))) {
|
||||
AcsPassRuleDeleteParam deleteParam = new AcsPassRuleDeleteParam();
|
||||
deleteParam.setIds(Collections.singletonList(ruleId));
|
||||
deleteParam.setZoneId(delFloorId);
|
||||
deleteParam.setParentId(param.getParentId());
|
||||
this.imageRuleRefService.delete(deleteParam, context);
|
||||
} else {
|
||||
AcsPassRuleDeleteDto dto = new AcsPassRuleDeleteDto();
|
||||
dto.setZoneId(delFloorId);
|
||||
dto.setLabelId(param.getLabelId());
|
||||
dto.setOrgId(param.getOrgId());
|
||||
this.imageRuleRefDao.deleteByOrgAndLabel(dto);
|
||||
}
|
||||
}
|
||||
AcsDeviceTaskAddDto addDto = new AcsDeviceTaskAddDto();
|
||||
addDto.setId(task.getId());
|
||||
addDto.setBindDevices(Integer.valueOf(task.getBindDevices() + 1));
|
||||
this.acsDeviceTaskDao.updateBingDevices(addDto);
|
||||
continue;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
catch (Exception e) {
|
||||
this.logger.error("\u5904\u7406\u8bbe\u5907\u4efb\u52a1\u5931\u8d25\uff0c\u5931\u8d25\u539f\u56e0\uff1a{}", (Throwable)e);
|
||||
throw new ServiceException(e.getMessage());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+154
@@ -0,0 +1,154 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.cloud.exception.DataAccessException
|
||||
* cn.cloudwalk.cloud.exception.ServiceException
|
||||
* cn.cloudwalk.cloud.page.CloudwalkPageAble
|
||||
* cn.cloudwalk.cloud.page.CloudwalkPageInfo
|
||||
* cn.cloudwalk.cloud.utils.BeanCopyUtils
|
||||
* com.github.pagehelper.Page
|
||||
* com.github.pagehelper.PageHelper
|
||||
* org.slf4j.Logger
|
||||
* org.slf4j.LoggerFactory
|
||||
* org.springframework.stereotype.Repository
|
||||
*/
|
||||
package cn.cloudwalk.elevator.device.impl;
|
||||
|
||||
import cn.cloudwalk.cloud.exception.DataAccessException;
|
||||
import cn.cloudwalk.cloud.exception.ServiceException;
|
||||
import cn.cloudwalk.cloud.page.CloudwalkPageAble;
|
||||
import cn.cloudwalk.cloud.page.CloudwalkPageInfo;
|
||||
import cn.cloudwalk.cloud.utils.BeanCopyUtils;
|
||||
import cn.cloudwalk.elevator.device.dao.AcsElevatorDeviceDao;
|
||||
import cn.cloudwalk.elevator.device.dto.AcsElevatorDeviceAddDTO;
|
||||
import cn.cloudwalk.elevator.device.dto.AcsElevatorDeviceEditDTO;
|
||||
import cn.cloudwalk.elevator.device.dto.AcsElevatorDeviceListByBuildingIdDto;
|
||||
import cn.cloudwalk.elevator.device.dto.AcsElevatorDeviceListDto;
|
||||
import cn.cloudwalk.elevator.device.dto.AcsElevatorDeviceQueryByIdDTO;
|
||||
import cn.cloudwalk.elevator.device.dto.AcsElevatorDeviceQueryDTO;
|
||||
import cn.cloudwalk.elevator.device.dto.AcsElevatorDeviceResultDTO;
|
||||
import cn.cloudwalk.elevator.device.mapper.AcsElevatorDeviceMapper;
|
||||
import com.github.pagehelper.Page;
|
||||
import com.github.pagehelper.PageHelper;
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
import javax.annotation.Resource;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
@Repository
|
||||
public class AcsElevatorDeviceDaoImpl
|
||||
implements AcsElevatorDeviceDao {
|
||||
@Resource
|
||||
private AcsElevatorDeviceMapper acsElevatorDeviceMapper;
|
||||
protected final Logger logger = LoggerFactory.getLogger(this.getClass());
|
||||
|
||||
@Override
|
||||
public Integer add(AcsElevatorDeviceAddDTO dto) throws DataAccessException {
|
||||
try {
|
||||
return this.acsElevatorDeviceMapper.add(dto);
|
||||
}
|
||||
catch (Exception e) {
|
||||
this.logger.error("\u4fdd\u5b58\u6d3e\u68af\u8bbe\u5907\u4fe1\u606f\u5931\u8d25\uff0c\u539f\u56e0\uff1a", (Throwable)e);
|
||||
throw new DataAccessException((Throwable)e);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer edit(AcsElevatorDeviceEditDTO dto) throws DataAccessException {
|
||||
try {
|
||||
return this.acsElevatorDeviceMapper.edit(dto);
|
||||
}
|
||||
catch (Exception e) {
|
||||
this.logger.error("\u4fdd\u5b58\u6d3e\u68af\u8bbe\u5907\u4fe1\u606f\u5931\u8d25\uff0c\u539f\u56e0\uff1a", (Throwable)e);
|
||||
throw new DataAccessException((Throwable)e);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer delete(List<String> ids) throws DataAccessException {
|
||||
try {
|
||||
return this.acsElevatorDeviceMapper.delete(ids);
|
||||
}
|
||||
catch (Exception e) {
|
||||
this.logger.error("\u5220\u9664\u6d3e\u68af\u8bbe\u5907\u4fe1\u606f\u5931\u8d25\uff0c\u539f\u56e0\uff1a", (Throwable)e);
|
||||
throw new DataAccessException((Throwable)e);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public CloudwalkPageAble<AcsElevatorDeviceResultDTO> page(AcsElevatorDeviceQueryDTO dto, CloudwalkPageInfo page) throws DataAccessException {
|
||||
try {
|
||||
PageHelper.startPage((int)page.getCurrentPage(), (int)page.getPageSize());
|
||||
Page result = (Page)this.acsElevatorDeviceMapper.page(dto);
|
||||
return new CloudwalkPageAble((Collection)BeanCopyUtils.copy((Collection)result.getResult(), AcsElevatorDeviceResultDTO.class), page, result.getTotal());
|
||||
}
|
||||
catch (Exception e) {
|
||||
this.logger.error("\u8bbe\u5907\u5206\u9875\u67e5\u8be2\u5931\u8d25\uff0c\u539f\u56e0\uff1a", (Throwable)e);
|
||||
throw new DataAccessException((Throwable)e);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<AcsElevatorDeviceResultDTO> listByZoneId(AcsElevatorDeviceListDto dto) throws DataAccessException {
|
||||
try {
|
||||
return this.acsElevatorDeviceMapper.listByZoneId(dto);
|
||||
}
|
||||
catch (Exception e) {
|
||||
this.logger.error("\u6839\u636e\u697c\u5c42id\u83b7\u53d6\u8bbe\u5907\u4fe1\u606f\u5931\u8d25\uff0c\u539f\u56e0\uff1a", (Throwable)e);
|
||||
throw new DataAccessException((Throwable)e);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<AcsElevatorDeviceResultDTO> listByZoneIds(AcsElevatorDeviceListDto dto) throws DataAccessException {
|
||||
try {
|
||||
return this.acsElevatorDeviceMapper.listByZoneIds(dto);
|
||||
}
|
||||
catch (Exception e) {
|
||||
this.logger.error("\u6839\u636e\u697c\u5c42id\u96c6\u5408\u83b7\u53d6\u8bbe\u5907\u4fe1\u606f\u5931\u8d25\uff0c\u539f\u56e0\uff1a", (Throwable)e);
|
||||
throw new DataAccessException((Throwable)e);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<AcsElevatorDeviceResultDTO> listBuBuildingId(AcsElevatorDeviceListByBuildingIdDto dto) throws DataAccessException {
|
||||
try {
|
||||
return this.acsElevatorDeviceMapper.listBuBuildingId(dto);
|
||||
}
|
||||
catch (Exception e) {
|
||||
this.logger.error("\u6839\u636e\u697c\u680bid\u83b7\u53d6\u8bbe\u5907\u4fe1\u606f\u5931\u8d25\uff0c\u539f\u56e0\uff1a", (Throwable)e);
|
||||
throw new DataAccessException((Throwable)e);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<AcsElevatorDeviceResultDTO> get(AcsElevatorDeviceQueryDTO dto) throws ServiceException {
|
||||
return this.acsElevatorDeviceMapper.get(dto);
|
||||
}
|
||||
|
||||
@Override
|
||||
public AcsElevatorDeviceResultDTO getById(AcsElevatorDeviceQueryByIdDTO dto) throws ServiceException {
|
||||
return this.acsElevatorDeviceMapper.getById(dto);
|
||||
}
|
||||
|
||||
@Override
|
||||
public AcsElevatorDeviceResultDTO getByDeciveCode(String deviceCode) throws ServiceException {
|
||||
AcsElevatorDeviceQueryDTO dto = new AcsElevatorDeviceQueryDTO();
|
||||
dto.setDeviceCode(deviceCode);
|
||||
return this.acsElevatorDeviceMapper.getByDeciveCode(dto);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getBuildingId(AcsElevatorDeviceQueryDTO dto) throws ServiceException {
|
||||
return this.acsElevatorDeviceMapper.getBuildingId(dto);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getBusinessId(AcsElevatorDeviceQueryDTO dto) throws ServiceException {
|
||||
return this.acsElevatorDeviceMapper.getBusinessId(dto);
|
||||
}
|
||||
}
|
||||
|
||||
+960
@@ -0,0 +1,960 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.client.cwoscomponent.intelligent.device.param.DeviceQueryParam
|
||||
* cn.cloudwalk.client.cwoscomponent.intelligent.device.result.DeviceResult
|
||||
* cn.cloudwalk.client.cwoscomponent.intelligent.device.service.DeviceService
|
||||
* cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.param.ImageStoreAddParam
|
||||
* cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.param.ImageStoreDelParam
|
||||
* cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.service.ImageStoreService
|
||||
* cn.cloudwalk.client.cwoscomponent.intelligent.person.param.PersonDetailParam
|
||||
* cn.cloudwalk.client.cwoscomponent.intelligent.person.result.PersonResult
|
||||
* cn.cloudwalk.client.cwoscomponent.intelligent.person.service.PersonService
|
||||
* cn.cloudwalk.client.cwoscomponent.intelligent.sysetting.param.DeviceAreaTreeParam
|
||||
* cn.cloudwalk.client.cwoscomponent.intelligent.sysetting.result.AreaTreeResult
|
||||
* cn.cloudwalk.cloud.context.CloudwalkCallContext
|
||||
* cn.cloudwalk.cloud.exception.ServiceException
|
||||
* cn.cloudwalk.cloud.page.CloudwalkPageAble
|
||||
* cn.cloudwalk.cloud.page.CloudwalkPageInfo
|
||||
* cn.cloudwalk.cloud.result.CloudwalkResult
|
||||
* cn.cloudwalk.cloud.utils.BeanCopyUtils
|
||||
* cn.cloudwalk.elevator.device.dao.AcsDeviceTaskDao
|
||||
* cn.cloudwalk.elevator.device.dao.AcsElevatorDeviceDao
|
||||
* cn.cloudwalk.elevator.device.dao.DeviceImageStoreDao
|
||||
* cn.cloudwalk.elevator.device.dto.AcsDeviceTaskAddDto
|
||||
* cn.cloudwalk.elevator.device.dto.AcsDeviceTaskDTO
|
||||
* cn.cloudwalk.elevator.device.dto.AcsElevatorDeviceAddDTO
|
||||
* cn.cloudwalk.elevator.device.dto.AcsElevatorDeviceEditDTO
|
||||
* cn.cloudwalk.elevator.device.dto.AcsElevatorDeviceListDto
|
||||
* cn.cloudwalk.elevator.device.dto.AcsElevatorDeviceQueryByIdDTO
|
||||
* cn.cloudwalk.elevator.device.dto.AcsElevatorDeviceQueryDTO
|
||||
* cn.cloudwalk.elevator.device.dto.AcsElevatorDeviceQueryFoDTO
|
||||
* cn.cloudwalk.elevator.device.dto.AcsElevatorDeviceResultDTO
|
||||
* cn.cloudwalk.elevator.passrule.dao.AcsPassRuleDao
|
||||
* cn.cloudwalk.elevator.passrule.dao.ImageRuleRefDao
|
||||
* cn.cloudwalk.elevator.passrule.dto.AcsPassRuleImageDto
|
||||
* cn.cloudwalk.elevator.passrule.dto.AcsPassRuleImageResultDto
|
||||
* cn.cloudwalk.elevator.passrule.dto.AcsPassRuleLabelResultDto
|
||||
* cn.cloudwalk.elevator.passrule.dto.AcsPassRuleQueryDto
|
||||
* cn.cloudwalk.elevator.util.CollectionUtils
|
||||
* cn.cloudwalk.elevator.util.StringUtils
|
||||
* com.alibaba.fastjson.JSONObject
|
||||
* org.slf4j.Logger
|
||||
* org.slf4j.LoggerFactory
|
||||
* org.springframework.beans.factory.annotation.Autowired
|
||||
* org.springframework.beans.factory.annotation.Value
|
||||
* org.springframework.stereotype.Repository
|
||||
* org.springframework.util.ObjectUtils
|
||||
*/
|
||||
package cn.cloudwalk.elevator.device.impl;
|
||||
|
||||
import cn.cloudwalk.client.cwoscomponent.intelligent.device.param.DeviceQueryParam;
|
||||
import cn.cloudwalk.client.cwoscomponent.intelligent.device.result.DeviceResult;
|
||||
import cn.cloudwalk.client.cwoscomponent.intelligent.device.service.DeviceService;
|
||||
import cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.param.ImageStoreAddParam;
|
||||
import cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.param.ImageStoreDelParam;
|
||||
import cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.service.ImageStoreService;
|
||||
import cn.cloudwalk.client.cwoscomponent.intelligent.person.param.PersonDetailParam;
|
||||
import cn.cloudwalk.client.cwoscomponent.intelligent.person.result.PersonResult;
|
||||
import cn.cloudwalk.client.cwoscomponent.intelligent.person.service.PersonService;
|
||||
import cn.cloudwalk.client.cwoscomponent.intelligent.sysetting.param.DeviceAreaTreeParam;
|
||||
import cn.cloudwalk.client.cwoscomponent.intelligent.sysetting.result.AreaTreeResult;
|
||||
import cn.cloudwalk.cloud.context.CloudwalkCallContext;
|
||||
import cn.cloudwalk.cloud.exception.ServiceException;
|
||||
import cn.cloudwalk.cloud.page.CloudwalkPageAble;
|
||||
import cn.cloudwalk.cloud.page.CloudwalkPageInfo;
|
||||
import cn.cloudwalk.cloud.result.CloudwalkResult;
|
||||
import cn.cloudwalk.cloud.utils.BeanCopyUtils;
|
||||
import cn.cloudwalk.elevator.cacheable.AcsAreaTreeCacheableService;
|
||||
import cn.cloudwalk.elevator.common.service.AcsApplicationService;
|
||||
import cn.cloudwalk.elevator.device.dao.AcsDeviceTaskDao;
|
||||
import cn.cloudwalk.elevator.device.dao.AcsElevatorDeviceDao;
|
||||
import cn.cloudwalk.elevator.device.dao.DeviceImageStoreDao;
|
||||
import cn.cloudwalk.elevator.device.dto.AcsDeviceTaskAddDto;
|
||||
import cn.cloudwalk.elevator.device.dto.AcsDeviceTaskDTO;
|
||||
import cn.cloudwalk.elevator.device.dto.AcsElevatorDeviceAddDTO;
|
||||
import cn.cloudwalk.elevator.device.dto.AcsElevatorDeviceEditDTO;
|
||||
import cn.cloudwalk.elevator.device.dto.AcsElevatorDeviceListDto;
|
||||
import cn.cloudwalk.elevator.device.dto.AcsElevatorDeviceQueryByIdDTO;
|
||||
import cn.cloudwalk.elevator.device.dto.AcsElevatorDeviceQueryDTO;
|
||||
import cn.cloudwalk.elevator.device.dto.AcsElevatorDeviceQueryFoDTO;
|
||||
import cn.cloudwalk.elevator.device.dto.AcsElevatorDeviceResultDTO;
|
||||
import cn.cloudwalk.elevator.device.param.AcsDeviceQueryParam;
|
||||
import cn.cloudwalk.elevator.device.param.AcsDeviceRestructureTaskParam;
|
||||
import cn.cloudwalk.elevator.device.param.AcsElevatorDeviceAddParam;
|
||||
import cn.cloudwalk.elevator.device.param.AcsElevatorDeviceEditParam;
|
||||
import cn.cloudwalk.elevator.device.param.AcsElevatorDeviceQueryByIdParam;
|
||||
import cn.cloudwalk.elevator.device.param.AcsElevatorDeviceQueryParam;
|
||||
import cn.cloudwalk.elevator.device.param.AcsRestructureBindingParam;
|
||||
import cn.cloudwalk.elevator.device.param.AcsRestructureQueryParam;
|
||||
import cn.cloudwalk.elevator.device.result.AcsDeviceNewResult;
|
||||
import cn.cloudwalk.elevator.device.result.AcsDeviceRestructureResult;
|
||||
import cn.cloudwalk.elevator.device.result.AcsLabelElevatorResult;
|
||||
import cn.cloudwalk.elevator.device.service.AcsDeviceTaskService;
|
||||
import cn.cloudwalk.elevator.device.service.AcsElevatorDeviceService;
|
||||
import cn.cloudwalk.elevator.device.setting.impl.AcsDeviceImageStoreAppBindServiceImpl;
|
||||
import cn.cloudwalk.elevator.device.setting.param.DeviceImageStoreAppBindParam;
|
||||
import cn.cloudwalk.elevator.device.setting.param.DeviceImageStoreAppUnbindParam;
|
||||
import cn.cloudwalk.elevator.device.setting.service.AcsDeviceImageStoreAppBindService;
|
||||
import cn.cloudwalk.elevator.passrule.dao.AcsPassRuleDao;
|
||||
import cn.cloudwalk.elevator.passrule.dao.ImageRuleRefDao;
|
||||
import cn.cloudwalk.elevator.passrule.dto.AcsPassRuleImageDto;
|
||||
import cn.cloudwalk.elevator.passrule.dto.AcsPassRuleImageResultDto;
|
||||
import cn.cloudwalk.elevator.passrule.dto.AcsPassRuleLabelResultDto;
|
||||
import cn.cloudwalk.elevator.passrule.dto.AcsPassRuleQueryDto;
|
||||
import cn.cloudwalk.elevator.passrule.impl.AbstractAcsPassService;
|
||||
import cn.cloudwalk.elevator.passrule.service.AcsPassRuleService;
|
||||
import cn.cloudwalk.elevator.util.CollectionUtils;
|
||||
import cn.cloudwalk.elevator.util.StringUtils;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.stream.Collectors;
|
||||
import javax.annotation.Resource;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.stereotype.Repository;
|
||||
import org.springframework.util.ObjectUtils;
|
||||
|
||||
@Repository
|
||||
public class AcsElevatorDeviceServiceImpl
|
||||
extends AbstractAcsPassService
|
||||
implements AcsElevatorDeviceService {
|
||||
@Value(value="${floor.building.id}")
|
||||
private String floorBuildingId;
|
||||
@Resource
|
||||
private ImageStoreService imageStoreService;
|
||||
@Resource
|
||||
private AcsElevatorDeviceDao acsElevatorDeviceDao;
|
||||
@Resource
|
||||
private AcsPassRuleDao acsPassRuleDao;
|
||||
@Resource
|
||||
private ImageRuleRefDao imageRuleRefDao;
|
||||
@Autowired
|
||||
private AcsDeviceTaskService acsDeviceTaskService;
|
||||
@Resource
|
||||
private AcsDeviceTaskDao acsDeviceTaskDao;
|
||||
@Resource
|
||||
private DeviceImageStoreDao deviceImageStoreDao;
|
||||
@Resource
|
||||
private PersonService personService;
|
||||
@Resource
|
||||
private AcsDeviceImageStoreAppBindService acsDeviceImageStoreAppBindService;
|
||||
@Resource
|
||||
private AcsDeviceImageStoreAppBindServiceImpl acsDeviceImageStoreAppBindServiceImpl;
|
||||
@Resource
|
||||
private DeviceService deviceService;
|
||||
@Autowired
|
||||
private AcsApplicationService acsApplicationService;
|
||||
@Resource
|
||||
private AcsPassRuleService acsPassRuleService;
|
||||
@Resource
|
||||
private AcsAreaTreeCacheableService acsAreaTreeCacheableService;
|
||||
protected final Logger logger = LoggerFactory.getLogger(this.getClass());
|
||||
|
||||
@Override
|
||||
public Integer add(AcsElevatorDeviceAddParam param, CloudwalkCallContext context) throws ServiceException {
|
||||
AcsElevatorDeviceAddDTO dto = (AcsElevatorDeviceAddDTO)BeanCopyUtils.copyProperties((Object)param, AcsElevatorDeviceAddDTO.class);
|
||||
try {
|
||||
Long createTime = System.currentTimeMillis();
|
||||
dto.setCreateTime(createTime);
|
||||
dto.setLastUpdateTime(createTime);
|
||||
String currentBuildingId = dto.getCurrentBuildingId();
|
||||
if (dto.getDeleteFlag() == null) {
|
||||
dto.setDeleteFlag(Integer.valueOf(1));
|
||||
}
|
||||
if (StringUtils.isNotBlank((String)currentBuildingId)) {
|
||||
String imageStoreId = this.deviceImageStoreDao.getByBuildingId(currentBuildingId);
|
||||
if (ObjectUtils.isEmpty((Object)imageStoreId)) {
|
||||
String bigImageStoreId = this.addImageStore(param, context);
|
||||
this.deviceImageStoreDao.save(currentBuildingId, bigImageStoreId);
|
||||
} else {
|
||||
String applicationId = this.acsApplicationService.getApplicationId(context.getCompany().getCompanyId());
|
||||
DeviceImageStoreAppBindParam bindParam = new DeviceImageStoreAppBindParam();
|
||||
bindParam.setImageStoreId(imageStoreId);
|
||||
bindParam.setDeviceId(param.getDeviceId());
|
||||
bindParam.setApplicationId(applicationId);
|
||||
this.acsDeviceImageStoreAppBindService.bindDeviceAndImageStore(bindParam, context);
|
||||
}
|
||||
}
|
||||
return this.acsElevatorDeviceDao.add(dto);
|
||||
}
|
||||
catch (Exception e) {
|
||||
this.logger.error("\u4fdd\u5b58\u6d3e\u68af\u8bbe\u5907\u4fe1\u606f\u5931\u8d25\uff0c\u539f\u56e0\uff1a", (Throwable)e);
|
||||
throw new ServiceException((Throwable)e);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer edit(AcsElevatorDeviceEditParam param, CloudwalkCallContext context) throws ServiceException {
|
||||
AcsElevatorDeviceEditDTO dto = (AcsElevatorDeviceEditDTO)BeanCopyUtils.copyProperties((Object)param, AcsElevatorDeviceEditDTO.class);
|
||||
try {
|
||||
AcsElevatorDeviceQueryByIdDTO deviceQueryByIdDTO = new AcsElevatorDeviceQueryByIdDTO();
|
||||
deviceQueryByIdDTO.setId(param.getId());
|
||||
AcsElevatorDeviceResultDTO deviceResultDTO = this.acsElevatorDeviceDao.getById(deviceQueryByIdDTO);
|
||||
String oldImageStoreId = this.deviceImageStoreDao.getByBuildingId(deviceResultDTO.getCurrentBuildingId());
|
||||
if (deviceResultDTO != null && StringUtils.isNotBlank((String)deviceResultDTO.getCurrentFloorId()) && !deviceResultDTO.getCurrentBuildingId().equals(param.getCurrentBuildingId())) {
|
||||
String applicationId = this.acsApplicationService.getApplicationId(context.getCompany().getCompanyId());
|
||||
DeviceImageStoreAppUnbindParam unbindParam = new DeviceImageStoreAppUnbindParam();
|
||||
unbindParam.setApplicationId(applicationId);
|
||||
unbindParam.setImageStoreId(oldImageStoreId);
|
||||
unbindParam.setDeviceId(deviceResultDTO.getDeviceId());
|
||||
unbindParam.setDeviceCode(deviceResultDTO.getDeviceCode());
|
||||
this.acsDeviceImageStoreAppBindService.unbindAppImageStoreDeviceNotDeleteImage(unbindParam, context);
|
||||
String imageStoreId = this.deviceImageStoreDao.getByBuildingId(param.getCurrentBuildingId());
|
||||
if (ObjectUtils.isEmpty((Object)imageStoreId)) {
|
||||
AcsElevatorDeviceAddParam addParam = (AcsElevatorDeviceAddParam)BeanCopyUtils.copyProperties((Object)param, AcsElevatorDeviceAddParam.class);
|
||||
String bigImageStoreId = this.addImageStore(addParam, context);
|
||||
this.deviceImageStoreDao.save(param.getCurrentBuildingId(), bigImageStoreId);
|
||||
} else {
|
||||
DeviceImageStoreAppBindParam bindParam = new DeviceImageStoreAppBindParam();
|
||||
bindParam.setImageStoreId(imageStoreId);
|
||||
bindParam.setDeviceId(deviceResultDTO.getDeviceId());
|
||||
bindParam.setApplicationId(applicationId);
|
||||
this.acsDeviceImageStoreAppBindService.bindDeviceAndImageStore(bindParam, context);
|
||||
}
|
||||
}
|
||||
Long nowTime = System.currentTimeMillis();
|
||||
dto.setLastUpdateTime(nowTime);
|
||||
return this.acsElevatorDeviceDao.edit(dto);
|
||||
}
|
||||
catch (Exception e) {
|
||||
this.logger.error("\u66f4\u65b0\u6d3e\u68af\u8bbe\u5907\u4fe1\u606f\u5931\u8d25\uff0c\u539f\u56e0\uff1a", (Throwable)e);
|
||||
throw new ServiceException((Throwable)e);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer delete(List<String> ids, CloudwalkCallContext context) throws ServiceException {
|
||||
try {
|
||||
String applicationId = this.acsApplicationService.getApplicationId(context.getCompany().getCompanyId());
|
||||
for (String id : ids) {
|
||||
AcsElevatorDeviceQueryByIdDTO byIdDTO = new AcsElevatorDeviceQueryByIdDTO();
|
||||
byIdDTO.setId(id);
|
||||
AcsElevatorDeviceResultDTO deviceResultDTO = this.acsElevatorDeviceDao.getById(byIdDTO);
|
||||
String imageStoreId = this.deviceImageStoreDao.getByBuildingId(deviceResultDTO.getCurrentBuildingId());
|
||||
DeviceImageStoreAppUnbindParam unbindParam = new DeviceImageStoreAppUnbindParam();
|
||||
unbindParam.setApplicationId(applicationId);
|
||||
unbindParam.setImageStoreId(imageStoreId);
|
||||
unbindParam.setDeviceId(deviceResultDTO.getDeviceId());
|
||||
unbindParam.setDeviceCode(deviceResultDTO.getDeviceCode());
|
||||
this.acsDeviceImageStoreAppBindService.unbindAppImageStoreDeviceNotDeleteImage(unbindParam, context);
|
||||
}
|
||||
int result = this.acsElevatorDeviceDao.delete(ids);
|
||||
return 1;
|
||||
}
|
||||
catch (Exception e) {
|
||||
this.logger.error("\u66f4\u65b0\u6d3e\u68af\u8bbe\u5907\u4fe1\u606f\u5931\u8d25\uff0c\u539f\u56e0\uff1a", (Throwable)e);
|
||||
throw new ServiceException((Throwable)e);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getBuildingId(AcsElevatorDeviceQueryParam param) throws ServiceException {
|
||||
AcsElevatorDeviceQueryDTO dto = (AcsElevatorDeviceQueryDTO)BeanCopyUtils.copyProperties((Object)param, AcsElevatorDeviceQueryDTO.class);
|
||||
return this.acsElevatorDeviceDao.getBuildingId(dto);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getBusinessId(AcsElevatorDeviceQueryParam param) throws ServiceException {
|
||||
AcsElevatorDeviceQueryDTO dto = (AcsElevatorDeviceQueryDTO)BeanCopyUtils.copyProperties((Object)param, AcsElevatorDeviceQueryDTO.class);
|
||||
return this.acsElevatorDeviceDao.getBusinessId(dto);
|
||||
}
|
||||
|
||||
@Override
|
||||
public CloudwalkResult<CloudwalkPageAble<AcsElevatorDeviceResultDTO>> get(AcsElevatorDeviceQueryParam param, CloudwalkCallContext context) throws ServiceException {
|
||||
AcsElevatorDeviceQueryDTO dto = (AcsElevatorDeviceQueryDTO)BeanCopyUtils.copyProperties((Object)param, AcsElevatorDeviceQueryDTO.class);
|
||||
dto.setBusinessId(context.getCompany().getCompanyId());
|
||||
CloudwalkPageInfo page = new CloudwalkPageInfo(param.getCurrentPage(), param.getRowsOfPage());
|
||||
try {
|
||||
CloudwalkPageAble deviceList = this.acsElevatorDeviceDao.page(dto, page);
|
||||
return CloudwalkResult.success((Object)deviceList);
|
||||
}
|
||||
catch (Exception e) {
|
||||
this.logger.error("\u5206\u9875\u67e5\u8be2\u6d3e\u68af\u8bbe\u5907\u5931\u8d25\uff0c\u5931\u8d25\u539f\u56e0\uff1a", (Throwable)e);
|
||||
throw new ServiceException("76260108", this.getMessage("76260108"));
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public CloudwalkResult<CloudwalkPageAble<DeviceResult>> devicePage(AcsDeviceQueryParam param, CloudwalkPageInfo pageInfo, CloudwalkCallContext context) throws ServiceException {
|
||||
try {
|
||||
DeviceQueryParam queryParam = new DeviceQueryParam();
|
||||
if (!ObjectUtils.isEmpty((Object)param.getDeviceName())) {
|
||||
queryParam.setDeviceName(param.getDeviceName());
|
||||
}
|
||||
if (!ObjectUtils.isEmpty((Object)param.getAreaId())) {
|
||||
queryParam.setAreaIds(Collections.singletonList(param.getAreaId()));
|
||||
}
|
||||
if (!ObjectUtils.isEmpty((Object)param.getDeviceCategoryId())) {
|
||||
queryParam.setDeviceTypeCategoryId(param.getDeviceCategoryId());
|
||||
}
|
||||
queryParam.setBusinessId(context.getCompany().getCompanyId());
|
||||
CloudwalkResult pageResult = this.deviceService.list(queryParam, context);
|
||||
List<Object> result = new ArrayList();
|
||||
if (!pageResult.isSuccess() || CollectionUtils.isEmpty((Collection)((Collection)pageResult.getData()))) {
|
||||
return CloudwalkResult.success((Object)new CloudwalkPageAble(result, pageInfo, 0L));
|
||||
}
|
||||
List<DeviceResult> deviceResult = this.deviceFilter((List)pageResult.getData(), context);
|
||||
if (CollectionUtils.isEmpty(deviceResult)) {
|
||||
return CloudwalkResult.success((Object)new CloudwalkPageAble(result, pageInfo, 0L));
|
||||
}
|
||||
Map<String, String> areaMap = this.getAllAreaMap(context);
|
||||
result = this.page(this.convertDeviceNewResult(deviceResult, areaMap), pageInfo.getPageSize(), pageInfo.getCurrentPage());
|
||||
return CloudwalkResult.success((Object)new CloudwalkPageAble(result, pageInfo, (long)deviceResult.size()));
|
||||
}
|
||||
catch (Exception e) {
|
||||
this.logger.error("\u5206\u9875\u67e5\u8be2\u8bbe\u5907\u5f02\u5e38\uff0c\u539f\u56e0\uff1a", (Throwable)e);
|
||||
throw new ServiceException((Throwable)e);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<AcsElevatorDeviceQueryFoDTO> getFo(AcsElevatorDeviceQueryParam param) throws ServiceException {
|
||||
AcsElevatorDeviceQueryDTO dto = (AcsElevatorDeviceQueryDTO)BeanCopyUtils.copyProperties((Object)param, AcsElevatorDeviceQueryDTO.class);
|
||||
List deviceList = this.acsElevatorDeviceDao.get(dto);
|
||||
ArrayList<AcsElevatorDeviceQueryFoDTO> deviceFoList = new ArrayList<AcsElevatorDeviceQueryFoDTO>();
|
||||
for (AcsElevatorDeviceResultDTO resultDTO : deviceList) {
|
||||
AcsElevatorDeviceQueryFoDTO foDto = (AcsElevatorDeviceQueryFoDTO)BeanCopyUtils.copyProperties((Object)resultDTO, AcsElevatorDeviceQueryFoDTO.class);
|
||||
deviceFoList.add(foDto);
|
||||
}
|
||||
return deviceFoList;
|
||||
}
|
||||
|
||||
@Override
|
||||
public AcsElevatorDeviceResultDTO getById(AcsElevatorDeviceQueryByIdParam param, CloudwalkCallContext var2) throws ServiceException {
|
||||
AcsElevatorDeviceQueryByIdDTO dto = (AcsElevatorDeviceQueryByIdDTO)BeanCopyUtils.copyProperties((Object)param, AcsElevatorDeviceQueryByIdDTO.class);
|
||||
AcsElevatorDeviceResultDTO resultDTO = this.acsElevatorDeviceDao.getById(dto);
|
||||
if (resultDTO != null && StringUtils.isNotBlank((String)resultDTO.getDeviceId())) {
|
||||
DeviceResult deviceResult;
|
||||
DeviceQueryParam deviceQueryParam = new DeviceQueryParam();
|
||||
deviceQueryParam.setId(resultDTO.getId());
|
||||
CloudwalkResult result = this.deviceService.list(deviceQueryParam, var2);
|
||||
List list = (List)result.getData();
|
||||
if (list != null && list.size() > 0 && (deviceResult = (DeviceResult)list.get(0)) != null) {
|
||||
String id = deviceResult.getId();
|
||||
Long lastHeartbeatTime = deviceResult.getLastHeartbeatTime();
|
||||
String status = deviceResult.getOnlineStatus();
|
||||
resultDTO.setStatusString(status);
|
||||
resultDTO.setLastHeartbeatTime(lastHeartbeatTime);
|
||||
}
|
||||
}
|
||||
return resultDTO;
|
||||
}
|
||||
|
||||
@Override
|
||||
public AcsElevatorDeviceResultDTO getByDeciveCode(String deviceCode) throws ServiceException {
|
||||
return this.acsElevatorDeviceDao.getByDeciveCode(deviceCode);
|
||||
}
|
||||
|
||||
@Override
|
||||
public CloudwalkResult listUnbindFloors(AcsRestructureQueryParam param, CloudwalkCallContext context) throws ServiceException {
|
||||
try {
|
||||
List floorList;
|
||||
AcsPassRuleImageDto dto;
|
||||
ArrayList results = new ArrayList();
|
||||
if (!ObjectUtils.isEmpty((Object)param.getPersonId())) {
|
||||
dto = new AcsPassRuleImageDto();
|
||||
dto.setPersonId(param.getPersonId());
|
||||
PersonDetailParam detailParam = new PersonDetailParam();
|
||||
detailParam.setId(param.getPersonId());
|
||||
detailParam.setBusinessId(context.getCompany().getCompanyId());
|
||||
CloudwalkResult detail = this.personService.detail(detailParam, context);
|
||||
if (!CollectionUtils.isEmpty((Collection)((PersonResult)detail.getData()).getLabelIds())) {
|
||||
dto.setIncludeLabels(((PersonResult)detail.getData()).getLabelIds());
|
||||
}
|
||||
if (!CollectionUtils.isEmpty((Collection)((PersonResult)detail.getData()).getOrganizationIds())) {
|
||||
dto.setIncludeOrganizations(((PersonResult)detail.getData()).getOrganizationIds());
|
||||
}
|
||||
floorList = this.imageRuleRefDao.listByPersonInfo(dto);
|
||||
} else {
|
||||
dto = new AcsPassRuleImageDto();
|
||||
if (!ObjectUtils.isEmpty((Object)param.getLabelId())) {
|
||||
dto.setIncludeLabels(Collections.singletonList(param.getLabelId()));
|
||||
}
|
||||
if (!ObjectUtils.isEmpty((Object)param.getOrgId())) {
|
||||
dto.setIncludeOrganizations(Collections.singletonList(param.getOrgId()));
|
||||
}
|
||||
floorList = this.imageRuleRefDao.listByRestructure(dto);
|
||||
}
|
||||
ArrayList floorIds = new ArrayList();
|
||||
if (!CollectionUtils.isEmpty((Collection)floorList)) {
|
||||
floorList.forEach(floor -> floorIds.add(floor.getZoneId()));
|
||||
}
|
||||
AcsPassRuleQueryDto queryDto = new AcsPassRuleQueryDto();
|
||||
queryDto.setZoneIds(floorIds);
|
||||
return CloudwalkResult.success((Object)this.imageRuleRefDao.listByNotZoneIds(queryDto));
|
||||
}
|
||||
catch (Exception e) {
|
||||
this.logger.error("\u67e5\u8be2\u672a\u7ed1\u5b9a\u7684\u6d3e\u68af\u697c\u5c42\u5f02\u5e38\uff0c\u539f\u56e0\uff1a", (Throwable)e);
|
||||
throw new ServiceException((Throwable)e);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public CloudwalkResult listFloors(AcsRestructureQueryParam param, CloudwalkCallContext context) throws ServiceException {
|
||||
try {
|
||||
List unBindFloors;
|
||||
List floorList;
|
||||
AcsPassRuleImageDto dto;
|
||||
ArrayList<AcsDeviceRestructureResult> results = new ArrayList<AcsDeviceRestructureResult>();
|
||||
if (!ObjectUtils.isEmpty((Object)param.getPersonId())) {
|
||||
dto = new AcsPassRuleImageDto();
|
||||
dto.setPersonId(param.getPersonId());
|
||||
PersonDetailParam detailParam = new PersonDetailParam();
|
||||
detailParam.setId(param.getPersonId());
|
||||
detailParam.setBusinessId(context.getCompany().getCompanyId());
|
||||
CloudwalkResult detail = this.personService.detail(detailParam, context);
|
||||
if (!CollectionUtils.isEmpty((Collection)((PersonResult)detail.getData()).getLabelIds())) {
|
||||
dto.setIncludeLabels(((PersonResult)detail.getData()).getLabelIds());
|
||||
}
|
||||
if (!CollectionUtils.isEmpty((Collection)((PersonResult)detail.getData()).getOrganizationIds())) {
|
||||
dto.setIncludeOrganizations(((PersonResult)detail.getData()).getOrganizationIds());
|
||||
}
|
||||
floorList = this.imageRuleRefDao.listByPersonInfo(dto);
|
||||
} else {
|
||||
dto = new AcsPassRuleImageDto();
|
||||
if (!ObjectUtils.isEmpty((Object)param.getLabelId())) {
|
||||
dto.setIncludeLabels(Collections.singletonList(param.getLabelId()));
|
||||
}
|
||||
if (!ObjectUtils.isEmpty((Object)param.getOrgId())) {
|
||||
dto.setIncludeOrganizations(Collections.singletonList(param.getOrgId()));
|
||||
}
|
||||
floorList = this.imageRuleRefDao.listByRestructure(dto);
|
||||
}
|
||||
dto = new AcsElevatorDeviceListDto();
|
||||
ArrayList floorIds = new ArrayList();
|
||||
if (!CollectionUtils.isEmpty((Collection)floorList)) {
|
||||
floorList.forEach(floor -> floorIds.add(floor.getZoneId()));
|
||||
}
|
||||
AcsPassRuleQueryDto queryDto = new AcsPassRuleQueryDto();
|
||||
if (!ObjectUtils.isEmpty((Object)param.getZoneId())) {
|
||||
if (floorIds.contains(param.getZoneId())) {
|
||||
return CloudwalkResult.success(results);
|
||||
}
|
||||
queryDto.setZoneId(param.getZoneId());
|
||||
unBindFloors = this.imageRuleRefDao.listByNotZoneIds(queryDto);
|
||||
} else {
|
||||
queryDto.setZoneIds(floorIds);
|
||||
unBindFloors = this.imageRuleRefDao.listByNotZoneIds(queryDto);
|
||||
}
|
||||
ArrayList unBindFloorIds = new ArrayList();
|
||||
if (CollectionUtils.isEmpty((Collection)unBindFloors)) {
|
||||
return CloudwalkResult.success(results);
|
||||
}
|
||||
unBindFloors.forEach(floor -> unBindFloorIds.add(floor.getZoneId()));
|
||||
if (!ObjectUtils.isEmpty((Object)param.getZoneId())) {
|
||||
dto.setCurrentFloorId(param.getZoneId());
|
||||
} else {
|
||||
dto.setCurrentFloorIds(unBindFloorIds);
|
||||
}
|
||||
List deviceList = this.acsElevatorDeviceDao.listByZoneIds((AcsElevatorDeviceListDto)dto);
|
||||
ArrayList deviceIds = new ArrayList();
|
||||
HashMap<String, DeviceResult> mapDevice = new HashMap<String, DeviceResult>();
|
||||
if (!CollectionUtils.isEmpty((Collection)deviceList)) {
|
||||
deviceList.forEach(device -> deviceIds.add(device.getDeviceId()));
|
||||
DeviceQueryParam queryParam = new DeviceQueryParam();
|
||||
queryParam.setBusinessId(context.getCompany().getCompanyId());
|
||||
queryParam.setIds(deviceIds);
|
||||
CloudwalkResult resultList = this.deviceService.list(queryParam, context);
|
||||
List list = (List)resultList.getData();
|
||||
if (list != null && list.size() > 0) {
|
||||
for (DeviceResult deviceResult : list) {
|
||||
mapDevice.put(deviceResult.getId(), deviceResult);
|
||||
}
|
||||
}
|
||||
}
|
||||
for (AcsPassRuleImageResultDto floor2 : unBindFloors) {
|
||||
AcsDeviceRestructureResult result = new AcsDeviceRestructureResult();
|
||||
result.setZoneId(floor2.getZoneId());
|
||||
result.setZoneName(floor2.getZoneName());
|
||||
if (!CollectionUtils.isEmpty((Collection)deviceList)) {
|
||||
result.setParentId(((AcsElevatorDeviceResultDTO)deviceList.get(0)).getCurrentBuildingId());
|
||||
} else {
|
||||
result.setParentId(this.floorBuildingId);
|
||||
}
|
||||
String online = "";
|
||||
String offline = "";
|
||||
if (!CollectionUtils.isEmpty((Collection)deviceList)) {
|
||||
for (int i = 0; i < deviceList.size(); ++i) {
|
||||
DeviceResult deviceResult;
|
||||
if (!floor2.getZoneId().equals(((AcsElevatorDeviceResultDTO)deviceList.get(i)).getCurrentFloorId()) || ObjectUtils.isEmpty((Object)(deviceResult = (DeviceResult)mapDevice.get(((AcsElevatorDeviceResultDTO)deviceList.get(i)).getDeviceId())))) continue;
|
||||
if ("2".equals(deviceResult.getOnlineStatus())) {
|
||||
if ("".equals(online)) {
|
||||
online = online + deviceResult.getDeviceName();
|
||||
continue;
|
||||
}
|
||||
online = online + "," + deviceResult.getDeviceName();
|
||||
continue;
|
||||
}
|
||||
offline = "".equals(offline) ? offline + deviceResult.getDeviceName() : offline + ',' + deviceResult.getDeviceName();
|
||||
}
|
||||
}
|
||||
result.setOnlineDevices(online);
|
||||
result.setOfflineDevices(offline);
|
||||
results.add(result);
|
||||
}
|
||||
return CloudwalkResult.success(results);
|
||||
}
|
||||
catch (Exception e) {
|
||||
this.logger.error("\u67e5\u8be2\u672a\u7ed1\u5b9a\u7684\u6d3e\u68af\u697c\u5c42\u5f02\u5e38\uff0c\u539f\u56e0\uff1a", (Throwable)e);
|
||||
throw new ServiceException((Throwable)e);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Enabled force condition propagation
|
||||
* Lifted jumps to return sites
|
||||
*/
|
||||
@Override
|
||||
public CloudwalkResult listCondition(AcsRestructureQueryParam param, CloudwalkCallContext context) throws ServiceException {
|
||||
try {
|
||||
List floorList;
|
||||
AcsPassRuleImageDto dto;
|
||||
ArrayList<AcsDeviceRestructureResult> results = new ArrayList<AcsDeviceRestructureResult>();
|
||||
if (!ObjectUtils.isEmpty((Object)param.getBusinessId())) {
|
||||
context.getCompany().setCompanyId(param.getBusinessId());
|
||||
}
|
||||
if (!ObjectUtils.isEmpty((Object)param.getPersonId())) {
|
||||
dto = new AcsPassRuleImageDto();
|
||||
dto.setPersonId(param.getPersonId());
|
||||
PersonDetailParam detailParam = new PersonDetailParam();
|
||||
detailParam.setId(param.getPersonId());
|
||||
detailParam.setBusinessId(context.getCompany().getCompanyId());
|
||||
CloudwalkResult detail = this.personService.detail(detailParam, context);
|
||||
if (!CollectionUtils.isEmpty((Collection)((PersonResult)detail.getData()).getLabelIds())) {
|
||||
dto.setIncludeLabels(((PersonResult)detail.getData()).getLabelIds());
|
||||
}
|
||||
if (!CollectionUtils.isEmpty((Collection)((PersonResult)detail.getData()).getOrganizationIds())) {
|
||||
dto.setIncludeOrganizations(((PersonResult)detail.getData()).getOrganizationIds());
|
||||
}
|
||||
floorList = this.imageRuleRefDao.listByPersonInfo(dto);
|
||||
} else {
|
||||
dto = new AcsPassRuleImageDto();
|
||||
if (!ObjectUtils.isEmpty((Object)param.getLabelId())) {
|
||||
dto.setIncludeLabels(Collections.singletonList(param.getLabelId()));
|
||||
}
|
||||
if (!ObjectUtils.isEmpty((Object)param.getOrgId())) {
|
||||
dto.setIncludeOrganizations(Collections.singletonList(param.getOrgId()));
|
||||
}
|
||||
floorList = this.imageRuleRefDao.listByRestructure(dto);
|
||||
}
|
||||
if (CollectionUtils.isEmpty((Collection)floorList)) return CloudwalkResult.success(results);
|
||||
dto = new AcsElevatorDeviceListDto();
|
||||
ArrayList floorIds = new ArrayList();
|
||||
floorList.forEach(floor -> floorIds.add(floor.getZoneId()));
|
||||
if (!ObjectUtils.isEmpty((Object)param.getZoneId())) {
|
||||
if (!floorIds.contains(param.getZoneId())) return CloudwalkResult.success(results);
|
||||
dto.setCurrentFloorIds(Collections.singletonList(param.getZoneId()));
|
||||
} else {
|
||||
dto.setCurrentFloorIds(floorIds);
|
||||
}
|
||||
List deviceList = this.acsElevatorDeviceDao.listByZoneIds((AcsElevatorDeviceListDto)dto);
|
||||
if (!CollectionUtils.isEmpty((Collection)deviceList)) {
|
||||
ArrayList deviceIds = new ArrayList();
|
||||
deviceList.forEach(device -> deviceIds.add(device.getDeviceId()));
|
||||
HashMap<String, DeviceResult> mapDevice = new HashMap<String, DeviceResult>();
|
||||
DeviceQueryParam queryParam = new DeviceQueryParam();
|
||||
queryParam.setBusinessId(context.getCompany().getCompanyId());
|
||||
queryParam.setIds(deviceIds);
|
||||
CloudwalkResult resultList = this.deviceService.list(queryParam, context);
|
||||
List list = (List)resultList.getData();
|
||||
if (list != null && list.size() > 0) {
|
||||
for (DeviceResult deviceResult : list) {
|
||||
mapDevice.put(deviceResult.getId(), deviceResult);
|
||||
}
|
||||
}
|
||||
for (AcsPassRuleImageResultDto floor2 : floorList) {
|
||||
if (!ObjectUtils.isEmpty((Object)param.getZoneId()) && !param.getZoneId().equals(floor2.getZoneId())) continue;
|
||||
AcsDeviceRestructureResult result = new AcsDeviceRestructureResult();
|
||||
result.setZoneId(floor2.getZoneId());
|
||||
result.setZoneName(floor2.getZoneName());
|
||||
result.setParentId(this.floorBuildingId);
|
||||
String online = "";
|
||||
String offline = "";
|
||||
for (int i = 0; i < deviceList.size(); ++i) {
|
||||
if (!floor2.getZoneId().equals(((AcsElevatorDeviceResultDTO)deviceList.get(i)).getCurrentFloorId())) continue;
|
||||
DeviceResult deviceResult = (DeviceResult)mapDevice.get(((AcsElevatorDeviceResultDTO)deviceList.get(i)).getDeviceId());
|
||||
result.setParentId(((AcsElevatorDeviceResultDTO)deviceList.get(i)).getCurrentBuildingId());
|
||||
if (ObjectUtils.isEmpty((Object)deviceResult)) continue;
|
||||
if ("2".equals(deviceResult.getOnlineStatus())) {
|
||||
if ("".equals(online)) {
|
||||
online = online + deviceResult.getDeviceName();
|
||||
continue;
|
||||
}
|
||||
online = online + "," + deviceResult.getDeviceName();
|
||||
continue;
|
||||
}
|
||||
offline = "".equals(offline) ? offline + deviceResult.getDeviceName() : offline + ',' + deviceResult.getDeviceName();
|
||||
}
|
||||
result.setOnlineDevices(online);
|
||||
result.setOfflineDevices(offline);
|
||||
results.add(result);
|
||||
}
|
||||
return CloudwalkResult.success(results);
|
||||
}
|
||||
if (!ObjectUtils.isEmpty((Object)param.getZoneId())) {
|
||||
for (AcsPassRuleImageResultDto floor3 : floorList) {
|
||||
if (!floor3.getZoneId().equals(param.getZoneId())) continue;
|
||||
AcsDeviceRestructureResult result = new AcsDeviceRestructureResult();
|
||||
result.setZoneId(floor3.getZoneId());
|
||||
result.setZoneName(floor3.getZoneName());
|
||||
result.setParentId(this.floorBuildingId);
|
||||
results.add(result);
|
||||
return CloudwalkResult.success(results);
|
||||
}
|
||||
return CloudwalkResult.success(results);
|
||||
}
|
||||
for (AcsPassRuleImageResultDto floor4 : floorList) {
|
||||
AcsDeviceRestructureResult result = new AcsDeviceRestructureResult();
|
||||
result.setZoneId(floor4.getZoneId());
|
||||
result.setZoneName(floor4.getZoneName());
|
||||
result.setParentId(this.floorBuildingId);
|
||||
results.add(result);
|
||||
}
|
||||
return CloudwalkResult.success(results);
|
||||
}
|
||||
catch (Exception e) {
|
||||
this.logger.error("\u6839\u636e\u673a\u6784id\u3001\u6807\u7b7eid\u3001\u4eba\u5458id\u67e5\u8be2\u6d3e\u68af\u8bbe\u5907\u5f02\u5e38\uff0c\u539f\u56e0\uff1a", (Throwable)e);
|
||||
throw new ServiceException((Throwable)e);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public CloudwalkResult listConditionByLabelIds(AcsRestructureQueryParam param, CloudwalkCallContext context) throws ServiceException {
|
||||
try {
|
||||
ArrayList<AcsLabelElevatorResult> results = new ArrayList<AcsLabelElevatorResult>();
|
||||
if (CollectionUtils.isEmpty(param.getLabelIds())) {
|
||||
return CloudwalkResult.success(null);
|
||||
}
|
||||
AcsPassRuleImageDto dto = new AcsPassRuleImageDto();
|
||||
dto.setIncludeLabels(param.getLabelIds());
|
||||
List floorList = this.imageRuleRefDao.listFloorsByRestructure(dto);
|
||||
HashMap<String, List> maps = new HashMap<String, List>();
|
||||
if (CollectionUtils.isEmpty((Collection)floorList)) {
|
||||
for (String label : param.getLabelIds()) {
|
||||
AcsLabelElevatorResult result = new AcsLabelElevatorResult();
|
||||
result.setLabelId(label);
|
||||
result.setDetails(null);
|
||||
results.add(result);
|
||||
}
|
||||
} else {
|
||||
for (AcsPassRuleLabelResultDto resultDto : floorList) {
|
||||
List dtos = (List)maps.get(resultDto.getLabelId());
|
||||
if (!CollectionUtils.isEmpty((Collection)dtos)) {
|
||||
dtos.add(resultDto);
|
||||
maps.put(resultDto.getLabelId(), dtos);
|
||||
continue;
|
||||
}
|
||||
ArrayList<AcsPassRuleLabelResultDto> dtoList = new ArrayList<AcsPassRuleLabelResultDto>();
|
||||
dtoList.add(resultDto);
|
||||
maps.put(resultDto.getLabelId(), dtoList);
|
||||
}
|
||||
for (String label : param.getLabelIds()) {
|
||||
List dtoList = (List)maps.get(label);
|
||||
AcsLabelElevatorResult result = new AcsLabelElevatorResult();
|
||||
result.setLabelId(label);
|
||||
if (!CollectionUtils.isEmpty((Collection)dtoList)) {
|
||||
result.setDetails(dtoList);
|
||||
} else {
|
||||
result.setDetails(null);
|
||||
}
|
||||
results.add(result);
|
||||
}
|
||||
}
|
||||
return CloudwalkResult.success(results);
|
||||
}
|
||||
catch (Exception e) {
|
||||
this.logger.error("\u6839\u636e\u6807\u7b7eid\u96c6\u5408\u67e5\u8be2\u6d3e\u68af\u697c\u5c42\u6743\u9650\u5f02\u5e38\uff0c\u539f\u56e0\uff1a", (Throwable)e);
|
||||
throw new ServiceException((Throwable)e);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public CloudwalkResult<String> bindingFloors(AcsRestructureBindingParam param, CloudwalkCallContext context) throws ServiceException {
|
||||
try {
|
||||
AcsPassRuleImageDto dto = new AcsPassRuleImageDto();
|
||||
if (!ObjectUtils.isEmpty((Object)param.getLabelId())) {
|
||||
dto.setIncludeLabels(Collections.singletonList(param.getLabelId()));
|
||||
}
|
||||
if (!ObjectUtils.isEmpty((Object)param.getOrgId())) {
|
||||
dto.setIncludeOrganizations(Collections.singletonList(param.getOrgId()));
|
||||
}
|
||||
List floorList = this.imageRuleRefDao.listByRestructure(dto);
|
||||
ArrayList<String> floorIds = new ArrayList<String>();
|
||||
HashMap<String, AcsPassRuleImageResultDto> zoneMap = new HashMap<String, AcsPassRuleImageResultDto>();
|
||||
for (AcsPassRuleImageResultDto resultDto : floorList) {
|
||||
floorIds.add(resultDto.getZoneId());
|
||||
zoneMap.put(resultDto.getZoneId(), resultDto);
|
||||
}
|
||||
ArrayList<AcsPassRuleImageResultDto> addFloors = new ArrayList<AcsPassRuleImageResultDto>();
|
||||
ArrayList<String> delFloorIds = new ArrayList<String>();
|
||||
ArrayList<String> addFloorIds = new ArrayList<String>();
|
||||
if (!CollectionUtils.isEmpty((Collection)floorList)) {
|
||||
for (AcsPassRuleImageResultDto floor : floorList) {
|
||||
if (param.getZoneIds().contains(floor.getZoneId())) continue;
|
||||
delFloorIds.add(floor.getZoneId());
|
||||
}
|
||||
for (String zoneId : param.getZoneIds()) {
|
||||
if (floorIds.contains(zoneId)) continue;
|
||||
addFloorIds.add(zoneId);
|
||||
}
|
||||
if (!CollectionUtils.isEmpty(addFloorIds)) {
|
||||
addFloors.addAll(this.imageRuleRefDao.listZoneInfoByIds(addFloorIds));
|
||||
}
|
||||
} else {
|
||||
addFloors.addAll(this.imageRuleRefDao.listZoneInfoByIds(param.getZoneIds()));
|
||||
}
|
||||
if (!CollectionUtils.isEmpty(addFloors) || !CollectionUtils.isEmpty(delFloorIds)) {
|
||||
String taskId = this.genUUID();
|
||||
AcsDeviceTaskAddDto addDto = new AcsDeviceTaskAddDto();
|
||||
addDto.setId(taskId);
|
||||
addDto.setAllDevices(Integer.valueOf(addFloors.size() + delFloorIds.size()));
|
||||
addDto.setBindDevices(Integer.valueOf(0));
|
||||
addDto.setIsStop(Integer.valueOf(0));
|
||||
this.acsDeviceTaskDao.insert(addDto);
|
||||
param.setTaskId(taskId);
|
||||
this.acsDeviceTaskService.updateFloors(param, addFloors, delFloorIds, context);
|
||||
return CloudwalkResult.success((Object)taskId);
|
||||
}
|
||||
return CloudwalkResult.success(null);
|
||||
}
|
||||
catch (Exception e) {
|
||||
this.logger.error("\u6839\u636e\u673a\u6784id\u3001\u6807\u7b7eid\u3001\u4eba\u5458id\u67e5\u8be2\u6d3e\u68af\u8bbe\u5907\u5f02\u5e38\uff0c\u539f\u56e0\uff1a", (Throwable)e);
|
||||
throw new ServiceException((Throwable)e);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public CloudwalkResult<String> bindingPerson(AcsRestructureBindingParam param, CloudwalkCallContext context) throws ServiceException {
|
||||
try {
|
||||
AcsPassRuleImageDto dto = new AcsPassRuleImageDto();
|
||||
dto.setPersonId(param.getPersonId());
|
||||
PersonDetailParam detailParam = new PersonDetailParam();
|
||||
detailParam.setId(param.getPersonId());
|
||||
detailParam.setBusinessId(context.getCompany().getCompanyId());
|
||||
CloudwalkResult detail = this.personService.detail(detailParam, context);
|
||||
if (!CollectionUtils.isEmpty((Collection)((PersonResult)detail.getData()).getLabelIds())) {
|
||||
dto.setIncludeLabels(((PersonResult)detail.getData()).getLabelIds());
|
||||
}
|
||||
if (!CollectionUtils.isEmpty((Collection)((PersonResult)detail.getData()).getLabelIds())) {
|
||||
dto.setIncludeOrganizations(((PersonResult)detail.getData()).getOrganizationIds());
|
||||
}
|
||||
List floorList = this.imageRuleRefDao.listByPersonInfo(dto);
|
||||
ArrayList<String> floorIds = new ArrayList<String>();
|
||||
HashMap<String, AcsPassRuleImageResultDto> zoneMap = new HashMap<String, AcsPassRuleImageResultDto>();
|
||||
floorList.forEach(floor -> floorIds.add(floor.getZoneId()));
|
||||
for (AcsPassRuleImageResultDto resultDto : floorList) {
|
||||
floorIds.add(resultDto.getZoneId());
|
||||
zoneMap.put(resultDto.getZoneId(), resultDto);
|
||||
}
|
||||
ArrayList<AcsPassRuleImageResultDto> addFloors = new ArrayList<AcsPassRuleImageResultDto>();
|
||||
ArrayList<String> delFloorIds = new ArrayList<String>();
|
||||
ArrayList<String> addFloorIds = new ArrayList<String>();
|
||||
if (!CollectionUtils.isEmpty((Collection)floorList)) {
|
||||
for (AcsPassRuleImageResultDto floor2 : floorList) {
|
||||
if (param.getZoneIds().contains(floor2.getZoneId())) continue;
|
||||
delFloorIds.add(floor2.getZoneId());
|
||||
}
|
||||
for (String zoneId : param.getZoneIds()) {
|
||||
if (floorIds.contains(zoneId)) continue;
|
||||
addFloorIds.add(zoneId);
|
||||
}
|
||||
if (!CollectionUtils.isEmpty(addFloorIds)) {
|
||||
addFloors.addAll(this.imageRuleRefDao.listZoneInfoByIds(addFloorIds));
|
||||
}
|
||||
} else {
|
||||
addFloors.addAll(this.imageRuleRefDao.listZoneInfoByIds(param.getZoneIds()));
|
||||
}
|
||||
if (!CollectionUtils.isEmpty(addFloors) || !CollectionUtils.isEmpty(delFloorIds)) {
|
||||
String taskId = this.genUUID();
|
||||
AcsDeviceTaskAddDto addDto = new AcsDeviceTaskAddDto();
|
||||
addDto.setId(taskId);
|
||||
addDto.setAllDevices(Integer.valueOf(addFloors.size() + delFloorIds.size()));
|
||||
addDto.setBindDevices(Integer.valueOf(0));
|
||||
addDto.setIsStop(Integer.valueOf(0));
|
||||
this.acsDeviceTaskDao.insert(addDto);
|
||||
param.setTaskId(taskId);
|
||||
this.acsDeviceTaskService.updateFloors(param, addFloors, delFloorIds, context);
|
||||
return CloudwalkResult.success((Object)taskId);
|
||||
}
|
||||
return CloudwalkResult.success(null);
|
||||
}
|
||||
catch (Exception e) {
|
||||
this.logger.error("\u6839\u4eba\u5458\u6279\u91cf\u7ed1\u5b9a\u6d3e\u68af\u697c\u5c42\u5f02\u5e38\uff0c\u539f\u56e0\uff1a", (Throwable)e);
|
||||
throw new ServiceException((Throwable)e);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public CloudwalkResult<AcsDeviceTaskDTO> getTask(AcsDeviceRestructureTaskParam param, CloudwalkCallContext context) throws ServiceException {
|
||||
try {
|
||||
return CloudwalkResult.success((Object)this.acsDeviceTaskDao.getById(param.getTaskId()));
|
||||
}
|
||||
catch (Exception e) {
|
||||
this.logger.error("\u6839\u636e\u4efb\u52a1id\u67e5\u8be2\u4efb\u52a1\u8be6\u60c5\u5f02\u5e38\uff0c\u539f\u56e0\uff1a", (Throwable)e);
|
||||
throw new ServiceException((Throwable)e);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public CloudwalkResult<Boolean> setTaskStop(AcsDeviceRestructureTaskParam param, CloudwalkCallContext context) throws ServiceException {
|
||||
try {
|
||||
AcsDeviceTaskAddDto dto = new AcsDeviceTaskAddDto();
|
||||
dto.setId(param.getTaskId());
|
||||
dto.setIsStop(Integer.valueOf(1));
|
||||
this.acsDeviceTaskDao.updateIsStop(dto);
|
||||
return CloudwalkResult.success((Object)true);
|
||||
}
|
||||
catch (Exception e) {
|
||||
this.logger.error("\u7f16\u8f91\u4efb\u52a1\u8fdb\u7a0b\u5f02\u5e38\uff0c\u539f\u56e0\uff1a", (Throwable)e);
|
||||
throw new ServiceException((Throwable)e);
|
||||
}
|
||||
}
|
||||
|
||||
private String addImageStore(AcsElevatorDeviceAddParam param, CloudwalkCallContext context) throws ServiceException {
|
||||
ImageStoreAddParam imageStoreAddParam = new ImageStoreAddParam();
|
||||
String applicationId = this.acsApplicationService.getApplicationId(context.getCompany().getCompanyId());
|
||||
imageStoreAddParam.setName(param.getCurrentBuilding() + "-\u9ed8\u8ba4\u56fe\u5e93");
|
||||
imageStoreAddParam.setType(Short.valueOf((short)1));
|
||||
imageStoreAddParam.setSourceApplicationId(applicationId);
|
||||
imageStoreAddParam.setBusinessId(context.getCompany().getCompanyId());
|
||||
CloudwalkResult imageStoreId = this.imageStoreService.add(imageStoreAddParam, context);
|
||||
if (!imageStoreId.isSuccess()) {
|
||||
this.logger.info("\u8fdc\u7a0b\u8c03\u7528\u65b0\u589e\u56fe\u5e93\u5931\u8d25,\u539f\u56e0\uff1a" + imageStoreId.getMessage());
|
||||
throw new ServiceException(imageStoreId.getCode(), imageStoreId.getMessage());
|
||||
}
|
||||
this.logger.info("\u8fdc\u7a0b\u8c03\u7528\u65b0\u589e\u56fe\u5e93\u51fa\u53c2\uff1aimageStoreId=[{}]", imageStoreId.getData());
|
||||
DeviceImageStoreAppBindParam appBindParam = new DeviceImageStoreAppBindParam();
|
||||
appBindParam.setImageStoreId((String)imageStoreId.getData());
|
||||
appBindParam.setApplicationId(applicationId);
|
||||
this.acsDeviceImageStoreAppBindService.bindAppImageStoreDevice(appBindParam, context);
|
||||
try {
|
||||
DeviceImageStoreAppBindParam bindParam = new DeviceImageStoreAppBindParam();
|
||||
bindParam.setImageStoreId((String)imageStoreId.getData());
|
||||
bindParam.setDeviceId(param.getDeviceId());
|
||||
bindParam.setApplicationId(applicationId);
|
||||
this.acsDeviceImageStoreAppBindService.bindDeviceAndImageStore(bindParam, context);
|
||||
}
|
||||
catch (ServiceException e) {
|
||||
this.logger.error("\u56fe\u5e93\u5173\u8054\u5931\u8d25,\u56fe\u5e93id={},\u539f\u56e0:{}", imageStoreId.getData(), (Object)e.getMessage());
|
||||
ImageStoreDelParam delParam = new ImageStoreDelParam();
|
||||
delParam.setId((String)imageStoreId.getData());
|
||||
delParam.setBusinessId(context.getCompany().getCompanyId());
|
||||
this.logger.info("\u56de\u6eda\u5220\u9664\u56fe\u5e93\u5f00\u59cb,delParam={},context={}", JSONObject.toJSON((Object)delParam), JSONObject.toJSON((Object)context));
|
||||
CloudwalkResult deleteResult = this.imageStoreService.delete(delParam, context);
|
||||
this.logger.info("\u5220\u9664\u56fe\u5e93\uff1a\u56fe\u5e93id={},\u7ed3\u679c:{}", (Object)imageStoreId, (Object)deleteResult.getMessage());
|
||||
throw new ServiceException(e.getCode(), e.getMessage());
|
||||
}
|
||||
return (String)imageStoreId.getData();
|
||||
}
|
||||
|
||||
private List<DeviceResult> deviceFilter(List<DeviceResult> pageResult, CloudwalkCallContext context) throws ServiceException {
|
||||
List<AcsDeviceNewResult> acsDeviceNewResults = this.getAcsDeviceIds(context);
|
||||
List acsDeviceIds = acsDeviceNewResults.stream().map(AcsDeviceNewResult::getDeviceId).collect(Collectors.toList());
|
||||
List deviceIds = pageResult.stream().map(DeviceResult::getId).collect(Collectors.toList());
|
||||
List newList = CollectionUtils.removeList(deviceIds, acsDeviceIds);
|
||||
ArrayList<DeviceResult> newDeviceResultList = new ArrayList<DeviceResult>();
|
||||
Map<String, DeviceResult> deviceResultMap = pageResult.stream().collect(Collectors.toMap(DeviceResult::getId, d -> d));
|
||||
for (String id : newList) {
|
||||
newDeviceResultList.add(deviceResultMap.get(id));
|
||||
}
|
||||
return newDeviceResultList;
|
||||
}
|
||||
|
||||
private List<AcsDeviceNewResult> getAcsDeviceIds(CloudwalkCallContext context) throws ServiceException {
|
||||
List acsDeviceList;
|
||||
List<AcsDeviceNewResult> acsDeviceNewResultList = new ArrayList<AcsDeviceNewResult>();
|
||||
AcsElevatorDeviceQueryDTO dto = new AcsElevatorDeviceQueryDTO();
|
||||
dto.setBusinessId(context.getCompany().getCompanyId());
|
||||
try {
|
||||
acsDeviceList = this.acsElevatorDeviceDao.get(dto);
|
||||
}
|
||||
catch (ServiceException e) {
|
||||
throw new ServiceException("76260007", this.getMessage("76260007"));
|
||||
}
|
||||
Map<String, String> areaMap = this.getAllAreaMap(context);
|
||||
if (CollectionUtils.isNotEmpty((Collection)acsDeviceList)) {
|
||||
List deviceIds = acsDeviceList.stream().map(AcsElevatorDeviceResultDTO::getDeviceId).collect(Collectors.toList());
|
||||
DeviceQueryParam queryParam = new DeviceQueryParam();
|
||||
queryParam.setIds(deviceIds);
|
||||
queryParam.setBusinessId(context.getCompany().getCompanyId());
|
||||
CloudwalkResult deviceResult = this.deviceService.list(queryParam, context);
|
||||
if (deviceResult.isSuccess()) {
|
||||
if (CollectionUtils.isNotEmpty((Collection)((Collection)deviceResult.getData()))) {
|
||||
acsDeviceNewResultList = this.convertDeviceNewResult((Collection)deviceResult.getData(), areaMap);
|
||||
}
|
||||
} else {
|
||||
this.logger.error("\u67e5\u8be2\u8bbe\u5907\u4fe1\u606f\u5217\u8868\u5931\u8d25,\u539f\u56e0={}", (Object)deviceResult.getMessage());
|
||||
throw new ServiceException("\u67e5\u8be2\u8bbe\u5907\u4fe1\u606f\u5217\u8868\u5931\u8d25");
|
||||
}
|
||||
}
|
||||
return acsDeviceNewResultList;
|
||||
}
|
||||
|
||||
protected Map<String, String> getAllAreaMap(CloudwalkCallContext context) {
|
||||
DeviceAreaTreeParam areaTreeParam = new DeviceAreaTreeParam();
|
||||
areaTreeParam.setBusinessId(context.getCompany().getCompanyId());
|
||||
CloudwalkResult<List<AreaTreeResult>> areaTree = this.acsAreaTreeCacheableService.tree(areaTreeParam, context);
|
||||
HashMap<String, String> areaMap = new HashMap<String, String>();
|
||||
this.getAreaMap((List)areaTree.getData(), areaMap);
|
||||
return areaMap;
|
||||
}
|
||||
|
||||
protected void getAreaMap(List<AreaTreeResult> areaTreeResultList, Map<String, String> areaMap) {
|
||||
for (AreaTreeResult areaTree : areaTreeResultList) {
|
||||
areaMap.put(areaTree.getId(), areaTree.getName());
|
||||
if (areaTree.getChildren() == null) continue;
|
||||
this.getAreaMap(areaTree.getChildren(), areaMap);
|
||||
}
|
||||
}
|
||||
|
||||
protected List<AcsDeviceNewResult> convertDeviceNewResult(Collection<DeviceResult> datas, Map<String, String> areaMap) {
|
||||
ArrayList<AcsDeviceNewResult> result = new ArrayList<AcsDeviceNewResult>();
|
||||
for (DeviceResult data : datas) {
|
||||
AcsDeviceNewResult acsDeviceResult = new AcsDeviceNewResult();
|
||||
BeanCopyUtils.copyProperties((Object)data, (Object)acsDeviceResult);
|
||||
acsDeviceResult.setId(data.getId());
|
||||
acsDeviceResult.setDeviceId(data.getId());
|
||||
acsDeviceResult.setDeviceStatus(Integer.valueOf(data.getStatus()));
|
||||
acsDeviceResult.setDeviceOnlineStatus(Integer.valueOf(data.getOnlineStatus()));
|
||||
acsDeviceResult.setAddress(this.getAddress(data));
|
||||
acsDeviceResult.setAreaName(areaMap.get(data.getAreaId()));
|
||||
result.add(acsDeviceResult);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
protected String getAddress(DeviceResult data) {
|
||||
StringBuffer sb = new StringBuffer();
|
||||
if (StringUtils.isNotBlank((String)data.getDistrictMergeName())) {
|
||||
sb.append(data.getDistrictMergeName());
|
||||
}
|
||||
if (StringUtils.isNotBlank((String)data.getAreaName())) {
|
||||
sb.append(" ");
|
||||
sb.append(data.getAreaName());
|
||||
}
|
||||
return sb.toString().trim();
|
||||
}
|
||||
|
||||
private List<DeviceResult> page(List<AcsDeviceNewResult> dataList, int pageSize, int currentPage) {
|
||||
ArrayList<DeviceResult> currentPageList = new ArrayList<DeviceResult>();
|
||||
if (dataList != null && dataList.size() > 0) {
|
||||
int currIdx = currentPage > 1 ? (currentPage - 1) * pageSize : 0;
|
||||
for (int i = 0; i < pageSize && i < dataList.size() - currIdx; ++i) {
|
||||
AcsDeviceNewResult data = dataList.get(currIdx + i);
|
||||
DeviceResult deviceResult = (DeviceResult)BeanCopyUtils.copyProperties((Object)data, DeviceResult.class);
|
||||
currentPageList.add(deviceResult);
|
||||
}
|
||||
}
|
||||
return currentPageList;
|
||||
}
|
||||
}
|
||||
|
||||
+32
@@ -0,0 +1,32 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.cloud.exception.ServiceException
|
||||
* org.springframework.stereotype.Repository
|
||||
*/
|
||||
package cn.cloudwalk.elevator.device.impl;
|
||||
|
||||
import cn.cloudwalk.cloud.exception.ServiceException;
|
||||
import cn.cloudwalk.elevator.device.dao.DeviceImageStoreDao;
|
||||
import cn.cloudwalk.elevator.device.mapper.DeviceImageStoreMapper;
|
||||
import javax.annotation.Resource;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
@Repository
|
||||
public class DeviceImageStoreDaoImpl
|
||||
implements DeviceImageStoreDao {
|
||||
@Resource
|
||||
private DeviceImageStoreMapper deviceImageStoreMapper;
|
||||
|
||||
@Override
|
||||
public Boolean save(String buildingId, String imageStoreId) throws ServiceException {
|
||||
return this.deviceImageStoreMapper.save(buildingId, imageStoreId);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getByBuildingId(String buildingId) throws ServiceException {
|
||||
return this.deviceImageStoreMapper.getByBuildingId(buildingId);
|
||||
}
|
||||
}
|
||||
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package cn.cloudwalk.elevator.device.mapper;
|
||||
|
||||
import cn.cloudwalk.elevator.device.dto.AcsDeviceTaskAddDto;
|
||||
import cn.cloudwalk.elevator.device.dto.AcsDeviceTaskDTO;
|
||||
|
||||
public interface AcsDeviceTaskMapper {
|
||||
public Integer insert(AcsDeviceTaskAddDto var1);
|
||||
|
||||
public Integer updateBingDevices(AcsDeviceTaskAddDto var1);
|
||||
|
||||
public Integer updateIsStop(AcsDeviceTaskAddDto var1);
|
||||
|
||||
public AcsDeviceTaskDTO getById(String var1);
|
||||
}
|
||||
|
||||
+40
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package cn.cloudwalk.elevator.device.mapper;
|
||||
|
||||
import cn.cloudwalk.elevator.device.dto.AcsElevatorDeviceAddDTO;
|
||||
import cn.cloudwalk.elevator.device.dto.AcsElevatorDeviceEditDTO;
|
||||
import cn.cloudwalk.elevator.device.dto.AcsElevatorDeviceListByBuildingIdDto;
|
||||
import cn.cloudwalk.elevator.device.dto.AcsElevatorDeviceListDto;
|
||||
import cn.cloudwalk.elevator.device.dto.AcsElevatorDeviceQueryByIdDTO;
|
||||
import cn.cloudwalk.elevator.device.dto.AcsElevatorDeviceQueryDTO;
|
||||
import cn.cloudwalk.elevator.device.dto.AcsElevatorDeviceResultDTO;
|
||||
import java.util.List;
|
||||
|
||||
public interface AcsElevatorDeviceMapper {
|
||||
public int add(AcsElevatorDeviceAddDTO var1);
|
||||
|
||||
public int edit(AcsElevatorDeviceEditDTO var1);
|
||||
|
||||
public int delete(List<String> var1);
|
||||
|
||||
public List<AcsElevatorDeviceResultDTO> listByZoneId(AcsElevatorDeviceListDto var1);
|
||||
|
||||
public List<AcsElevatorDeviceResultDTO> listByZoneIds(AcsElevatorDeviceListDto var1);
|
||||
|
||||
public List<AcsElevatorDeviceResultDTO> page(AcsElevatorDeviceQueryDTO var1);
|
||||
|
||||
public List<AcsElevatorDeviceResultDTO> listBuBuildingId(AcsElevatorDeviceListByBuildingIdDto var1);
|
||||
|
||||
public List<AcsElevatorDeviceResultDTO> get(AcsElevatorDeviceQueryDTO var1);
|
||||
|
||||
public AcsElevatorDeviceResultDTO getById(AcsElevatorDeviceQueryByIdDTO var1);
|
||||
|
||||
public AcsElevatorDeviceResultDTO getByDeciveCode(AcsElevatorDeviceQueryDTO var1);
|
||||
|
||||
public String getBuildingId(AcsElevatorDeviceQueryDTO var1);
|
||||
|
||||
public String getBusinessId(AcsElevatorDeviceQueryDTO var1);
|
||||
}
|
||||
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* org.apache.ibatis.annotations.Param
|
||||
*/
|
||||
package cn.cloudwalk.elevator.device.mapper;
|
||||
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
public interface DeviceImageStoreMapper {
|
||||
public Boolean save(@Param(value="buildingId") String var1, @Param(value="imageStoreId") String var2);
|
||||
|
||||
public String getByBuildingId(String var1);
|
||||
}
|
||||
|
||||
+43
@@ -0,0 +1,43 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.cloud.page.CloudwalkBasePageForm
|
||||
*/
|
||||
package cn.cloudwalk.elevator.device.param;
|
||||
|
||||
import cn.cloudwalk.cloud.page.CloudwalkBasePageForm;
|
||||
import java.io.Serializable;
|
||||
|
||||
public class AcsDeviceQueryParam
|
||||
extends CloudwalkBasePageForm
|
||||
implements Serializable {
|
||||
private String deviceName;
|
||||
private String deviceCategoryId;
|
||||
private String areaId;
|
||||
|
||||
public String getDeviceName() {
|
||||
return this.deviceName;
|
||||
}
|
||||
|
||||
public void setDeviceName(String deviceName) {
|
||||
this.deviceName = deviceName;
|
||||
}
|
||||
|
||||
public String getDeviceCategoryId() {
|
||||
return this.deviceCategoryId;
|
||||
}
|
||||
|
||||
public void setDeviceCategoryId(String deviceCategoryId) {
|
||||
this.deviceCategoryId = deviceCategoryId;
|
||||
}
|
||||
|
||||
public String getAreaId() {
|
||||
return this.areaId;
|
||||
}
|
||||
|
||||
public void setAreaId(String areaId) {
|
||||
this.areaId = areaId;
|
||||
}
|
||||
}
|
||||
|
||||
+53
@@ -0,0 +1,53 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package cn.cloudwalk.elevator.device.param;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class AcsDeviceRestructureTaskParam
|
||||
implements Serializable {
|
||||
private static final long serialVersionUID = -7349123760464380004L;
|
||||
private String taskId;
|
||||
|
||||
public String getTaskId() {
|
||||
return this.taskId;
|
||||
}
|
||||
|
||||
public void setTaskId(String taskId) {
|
||||
this.taskId = taskId;
|
||||
}
|
||||
|
||||
public boolean equals(Object o) {
|
||||
if (o == this) {
|
||||
return true;
|
||||
}
|
||||
if (!(o instanceof AcsDeviceRestructureTaskParam)) {
|
||||
return false;
|
||||
}
|
||||
AcsDeviceRestructureTaskParam other = (AcsDeviceRestructureTaskParam)o;
|
||||
if (!other.canEqual(this)) {
|
||||
return false;
|
||||
}
|
||||
String this$taskId = this.getTaskId();
|
||||
String other$taskId = other.getTaskId();
|
||||
return !(this$taskId == null ? other$taskId != null : !this$taskId.equals(other$taskId));
|
||||
}
|
||||
|
||||
protected boolean canEqual(Object other) {
|
||||
return other instanceof AcsDeviceRestructureTaskParam;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
int PRIME = 59;
|
||||
int result = 1;
|
||||
String $taskId = this.getTaskId();
|
||||
result = result * 59 + ($taskId == null ? 43 : $taskId.hashCode());
|
||||
return result;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "AcsDeviceRestructureTaskParam(taskId=" + this.getTaskId() + ")";
|
||||
}
|
||||
}
|
||||
|
||||
+163
@@ -0,0 +1,163 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.cloud.entity.CloudwalkBaseTimes
|
||||
* javax.validation.constraints.NotNull
|
||||
* org.hibernate.validator.constraints.NotEmpty
|
||||
*/
|
||||
package cn.cloudwalk.elevator.device.param;
|
||||
|
||||
import cn.cloudwalk.cloud.entity.CloudwalkBaseTimes;
|
||||
import java.io.Serializable;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import org.hibernate.validator.constraints.NotEmpty;
|
||||
|
||||
public class AcsElevatorDeviceAddParam
|
||||
extends CloudwalkBaseTimes
|
||||
implements Serializable {
|
||||
private String businessId;
|
||||
@NotEmpty
|
||||
private String deviceId;
|
||||
@NotEmpty
|
||||
private String deviceCode;
|
||||
@NotNull
|
||||
private String deviceName;
|
||||
private String deviceTypeName;
|
||||
private String elevatorFloorList;
|
||||
@NotNull
|
||||
private String currentFloorId;
|
||||
private String currentFloor;
|
||||
private String currentBuilding;
|
||||
private String currentBuildingId;
|
||||
private String areaName;
|
||||
private Integer status;
|
||||
private Integer deleteFlag;
|
||||
private String areaId;
|
||||
private String elevatorFloorIdList;
|
||||
|
||||
public String getElevatorFloorIdList() {
|
||||
return this.elevatorFloorIdList;
|
||||
}
|
||||
|
||||
public void setElevatorFloorIdList(String elevatorFloorIdList) {
|
||||
this.elevatorFloorIdList = elevatorFloorIdList;
|
||||
}
|
||||
|
||||
public String getAreaId() {
|
||||
return this.areaId;
|
||||
}
|
||||
|
||||
public void setAreaId(String areaId) {
|
||||
this.areaId = areaId;
|
||||
}
|
||||
|
||||
public String getBusinessId() {
|
||||
return this.businessId;
|
||||
}
|
||||
|
||||
public void setBusinessId(String businessId) {
|
||||
this.businessId = businessId;
|
||||
}
|
||||
|
||||
public String getDeviceId() {
|
||||
return this.deviceId;
|
||||
}
|
||||
|
||||
public void setDeviceId(String deviceId) {
|
||||
this.deviceId = deviceId;
|
||||
}
|
||||
|
||||
public String getDeviceCode() {
|
||||
return this.deviceCode;
|
||||
}
|
||||
|
||||
public void setDeviceCode(String deviceCode) {
|
||||
this.deviceCode = deviceCode;
|
||||
}
|
||||
|
||||
public String getDeviceName() {
|
||||
return this.deviceName;
|
||||
}
|
||||
|
||||
public void setDeviceName(String deviceName) {
|
||||
this.deviceName = deviceName;
|
||||
}
|
||||
|
||||
public String getDeviceTypeName() {
|
||||
return this.deviceTypeName;
|
||||
}
|
||||
|
||||
public void setDeviceTypeName(String deviceTypeName) {
|
||||
this.deviceTypeName = deviceTypeName;
|
||||
}
|
||||
|
||||
public String getElevatorFloorList() {
|
||||
return this.elevatorFloorList;
|
||||
}
|
||||
|
||||
public void setElevatorFloorList(String elevatorFloorList) {
|
||||
this.elevatorFloorList = elevatorFloorList;
|
||||
}
|
||||
|
||||
public String getCurrentFloorId() {
|
||||
return this.currentFloorId;
|
||||
}
|
||||
|
||||
public void setCurrentFloorId(String currentFloorId) {
|
||||
this.currentFloorId = currentFloorId;
|
||||
}
|
||||
|
||||
public String getCurrentFloor() {
|
||||
return this.currentFloor;
|
||||
}
|
||||
|
||||
public void setCurrentFloor(String currentFloor) {
|
||||
this.currentFloor = currentFloor;
|
||||
}
|
||||
|
||||
public String getCurrentBuilding() {
|
||||
return this.currentBuilding;
|
||||
}
|
||||
|
||||
public void setCurrentBuilding(String currentBuilding) {
|
||||
this.currentBuilding = currentBuilding;
|
||||
}
|
||||
|
||||
public String getAreaName() {
|
||||
return this.areaName;
|
||||
}
|
||||
|
||||
public void setAreaName(String areaName) {
|
||||
this.areaName = areaName;
|
||||
}
|
||||
|
||||
public Integer getStatus() {
|
||||
return this.status;
|
||||
}
|
||||
|
||||
public void setStatus(Integer status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public Integer getDeleteFlag() {
|
||||
return this.deleteFlag;
|
||||
}
|
||||
|
||||
public void setDeleteFlag(Integer deleteFlag) {
|
||||
this.deleteFlag = deleteFlag;
|
||||
}
|
||||
|
||||
public String getCurrentBuildingId() {
|
||||
return this.currentBuildingId;
|
||||
}
|
||||
|
||||
public void setCurrentBuildingId(String currentBuildingId) {
|
||||
this.currentBuildingId = currentBuildingId;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "AcsElevatorDeviceAddDTO{businessId='" + this.businessId + '\'' + ", deviceId='" + this.deviceId + '\'' + ", deviceCode='" + this.deviceCode + '\'' + ", deviceName='" + this.deviceName + '\'' + ", deviceTypeName='" + this.deviceTypeName + '\'' + ", elevatorFloorList='" + this.elevatorFloorList + '\'' + ", currentFloorId='" + this.currentFloorId + '\'' + ", currentFloor='" + this.currentFloor + '\'' + ", currentBuilding='" + this.currentBuilding + '\'' + ", areaName='" + this.areaName + '\'' + ", status=" + this.status + ", deleteFlag=" + this.deleteFlag + '}';
|
||||
}
|
||||
}
|
||||
|
||||
+131
@@ -0,0 +1,131 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.cloud.entity.CloudwalkBaseTimes
|
||||
* javax.validation.constraints.NotNull
|
||||
*/
|
||||
package cn.cloudwalk.elevator.device.param;
|
||||
|
||||
import cn.cloudwalk.cloud.entity.CloudwalkBaseTimes;
|
||||
import java.io.Serializable;
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
public class AcsElevatorDeviceEditParam
|
||||
extends CloudwalkBaseTimes
|
||||
implements Serializable {
|
||||
private String elevatorFloorList;
|
||||
@NotNull
|
||||
private String currentFloorId;
|
||||
private String currentFloor;
|
||||
private String currentBuilding;
|
||||
private String currentBuildingId;
|
||||
private String areaId;
|
||||
private String elevatorFloorIdList;
|
||||
private String businessId;
|
||||
private String deviceId;
|
||||
private String deviceCode;
|
||||
private String deviceName;
|
||||
private String deviceTypeName;
|
||||
|
||||
public String getBusinessId() {
|
||||
return this.businessId;
|
||||
}
|
||||
|
||||
public void setBusinessId(String businessId) {
|
||||
this.businessId = businessId;
|
||||
}
|
||||
|
||||
public String getDeviceId() {
|
||||
return this.deviceId;
|
||||
}
|
||||
|
||||
public void setDeviceId(String deviceId) {
|
||||
this.deviceId = deviceId;
|
||||
}
|
||||
|
||||
public String getDeviceCode() {
|
||||
return this.deviceCode;
|
||||
}
|
||||
|
||||
public void setDeviceCode(String deviceCode) {
|
||||
this.deviceCode = deviceCode;
|
||||
}
|
||||
|
||||
public String getDeviceName() {
|
||||
return this.deviceName;
|
||||
}
|
||||
|
||||
public void setDeviceName(String deviceName) {
|
||||
this.deviceName = deviceName;
|
||||
}
|
||||
|
||||
public String getDeviceTypeName() {
|
||||
return this.deviceTypeName;
|
||||
}
|
||||
|
||||
public void setDeviceTypeName(String deviceTypeName) {
|
||||
this.deviceTypeName = deviceTypeName;
|
||||
}
|
||||
|
||||
public String getElevatorFloorIdList() {
|
||||
return this.elevatorFloorIdList;
|
||||
}
|
||||
|
||||
public void setElevatorFloorIdList(String elevatorFloorIdList) {
|
||||
this.elevatorFloorIdList = elevatorFloorIdList;
|
||||
}
|
||||
|
||||
public String getAreaId() {
|
||||
return this.areaId;
|
||||
}
|
||||
|
||||
public void setAreaId(String areaId) {
|
||||
this.areaId = areaId;
|
||||
}
|
||||
|
||||
public String getElevatorFloorList() {
|
||||
return this.elevatorFloorList;
|
||||
}
|
||||
|
||||
public void setElevatorFloorList(String elevatorFloorList) {
|
||||
this.elevatorFloorList = elevatorFloorList;
|
||||
}
|
||||
|
||||
public String getCurrentFloorId() {
|
||||
return this.currentFloorId;
|
||||
}
|
||||
|
||||
public void setCurrentFloorId(String currentFloorId) {
|
||||
this.currentFloorId = currentFloorId;
|
||||
}
|
||||
|
||||
public String getCurrentFloor() {
|
||||
return this.currentFloor;
|
||||
}
|
||||
|
||||
public void setCurrentFloor(String currentFloor) {
|
||||
this.currentFloor = currentFloor;
|
||||
}
|
||||
|
||||
public String getCurrentBuilding() {
|
||||
return this.currentBuilding;
|
||||
}
|
||||
|
||||
public void setCurrentBuilding(String currentBuilding) {
|
||||
this.currentBuilding = currentBuilding;
|
||||
}
|
||||
|
||||
public String getCurrentBuildingId() {
|
||||
return this.currentBuildingId;
|
||||
}
|
||||
|
||||
public void setCurrentBuildingId(String currentBuildingId) {
|
||||
this.currentBuildingId = currentBuildingId;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "AcsElevatorDeviceAddDTO{, elevatorFloorList='" + this.elevatorFloorList + '\'' + ", currentFloorId='" + this.currentFloorId + '\'' + ", currentFloor='" + this.currentFloor + '\'' + ", currentBuilding='" + this.currentBuilding + '\'' + '}';
|
||||
}
|
||||
}
|
||||
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.cloud.entity.CloudwalkBaseTimes
|
||||
* javax.validation.constraints.NotNull
|
||||
*/
|
||||
package cn.cloudwalk.elevator.device.param;
|
||||
|
||||
import cn.cloudwalk.cloud.entity.CloudwalkBaseTimes;
|
||||
import java.io.Serializable;
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
public class AcsElevatorDeviceListParam
|
||||
extends CloudwalkBaseTimes
|
||||
implements Serializable {
|
||||
private String businessId;
|
||||
@NotNull
|
||||
private String currentFloorId;
|
||||
|
||||
public String getBusinessId() {
|
||||
return this.businessId;
|
||||
}
|
||||
|
||||
public void setBusinessId(String businessId) {
|
||||
this.businessId = businessId;
|
||||
}
|
||||
|
||||
public String getCurrentFloorId() {
|
||||
return this.currentFloorId;
|
||||
}
|
||||
|
||||
public void setCurrentFloorId(String currentFloorId) {
|
||||
this.currentFloorId = currentFloorId;
|
||||
}
|
||||
}
|
||||
|
||||
+25
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.cloud.page.CloudwalkBasePageForm
|
||||
*/
|
||||
package cn.cloudwalk.elevator.device.param;
|
||||
|
||||
import cn.cloudwalk.cloud.page.CloudwalkBasePageForm;
|
||||
import java.io.Serializable;
|
||||
|
||||
public class AcsElevatorDeviceQueryByIdParam
|
||||
extends CloudwalkBasePageForm
|
||||
implements Serializable {
|
||||
private String id;
|
||||
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
}
|
||||
|
||||
+101
@@ -0,0 +1,101 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.cloud.page.CloudwalkBasePageForm
|
||||
* javax.validation.constraints.NotNull
|
||||
*/
|
||||
package cn.cloudwalk.elevator.device.param;
|
||||
|
||||
import cn.cloudwalk.cloud.page.CloudwalkBasePageForm;
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
public class AcsElevatorDeviceQueryParam
|
||||
extends CloudwalkBasePageForm
|
||||
implements Serializable {
|
||||
@NotNull
|
||||
private String deviceName;
|
||||
private String deviceTypeName;
|
||||
private String areaName;
|
||||
private String deviceId;
|
||||
private String deviceCode;
|
||||
private List<String> areaIds;
|
||||
private Integer status;
|
||||
private Integer onlineStatus;
|
||||
private String ip;
|
||||
|
||||
public Integer getStatus() {
|
||||
return this.status;
|
||||
}
|
||||
|
||||
public void setStatus(Integer status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public Integer getOnlineStatus() {
|
||||
return this.onlineStatus;
|
||||
}
|
||||
|
||||
public void setOnlineStatus(Integer onlineStatus) {
|
||||
this.onlineStatus = onlineStatus;
|
||||
}
|
||||
|
||||
public String getIp() {
|
||||
return this.ip;
|
||||
}
|
||||
|
||||
public void setIp(String ip) {
|
||||
this.ip = ip;
|
||||
}
|
||||
|
||||
public String getDeviceId() {
|
||||
return this.deviceId;
|
||||
}
|
||||
|
||||
public void setDeviceId(String deviceId) {
|
||||
this.deviceId = deviceId;
|
||||
}
|
||||
|
||||
public List<String> getAreaIds() {
|
||||
return this.areaIds;
|
||||
}
|
||||
|
||||
public void setAreaIds(List<String> areaIds) {
|
||||
this.areaIds = areaIds;
|
||||
}
|
||||
|
||||
public String getDeviceName() {
|
||||
return this.deviceName;
|
||||
}
|
||||
|
||||
public void setDeviceName(String deviceName) {
|
||||
this.deviceName = deviceName;
|
||||
}
|
||||
|
||||
public String getDeviceTypeName() {
|
||||
return this.deviceTypeName;
|
||||
}
|
||||
|
||||
public void setDeviceTypeName(String deviceTypeName) {
|
||||
this.deviceTypeName = deviceTypeName;
|
||||
}
|
||||
|
||||
public String getAreaName() {
|
||||
return this.areaName;
|
||||
}
|
||||
|
||||
public void setAreaName(String areaName) {
|
||||
this.areaName = areaName;
|
||||
}
|
||||
|
||||
public String getDeviceCode() {
|
||||
return this.deviceCode;
|
||||
}
|
||||
|
||||
public void setDeviceCode(String deviceCode) {
|
||||
this.deviceCode = deviceCode;
|
||||
}
|
||||
}
|
||||
|
||||
+165
@@ -0,0 +1,165 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package cn.cloudwalk.elevator.device.param;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
public class AcsRestructureBindingParam
|
||||
implements Serializable {
|
||||
private String parentId;
|
||||
private String orgId;
|
||||
private String orgName;
|
||||
private String labelId;
|
||||
private String labelName;
|
||||
private String personId;
|
||||
private List<String> zoneIds;
|
||||
private String taskId;
|
||||
|
||||
public String getParentId() {
|
||||
return this.parentId;
|
||||
}
|
||||
|
||||
public String getOrgId() {
|
||||
return this.orgId;
|
||||
}
|
||||
|
||||
public String getOrgName() {
|
||||
return this.orgName;
|
||||
}
|
||||
|
||||
public String getLabelId() {
|
||||
return this.labelId;
|
||||
}
|
||||
|
||||
public String getLabelName() {
|
||||
return this.labelName;
|
||||
}
|
||||
|
||||
public String getPersonId() {
|
||||
return this.personId;
|
||||
}
|
||||
|
||||
public List<String> getZoneIds() {
|
||||
return this.zoneIds;
|
||||
}
|
||||
|
||||
public String getTaskId() {
|
||||
return this.taskId;
|
||||
}
|
||||
|
||||
public void setParentId(String parentId) {
|
||||
this.parentId = parentId;
|
||||
}
|
||||
|
||||
public void setOrgId(String orgId) {
|
||||
this.orgId = orgId;
|
||||
}
|
||||
|
||||
public void setOrgName(String orgName) {
|
||||
this.orgName = orgName;
|
||||
}
|
||||
|
||||
public void setLabelId(String labelId) {
|
||||
this.labelId = labelId;
|
||||
}
|
||||
|
||||
public void setLabelName(String labelName) {
|
||||
this.labelName = labelName;
|
||||
}
|
||||
|
||||
public void setPersonId(String personId) {
|
||||
this.personId = personId;
|
||||
}
|
||||
|
||||
public void setZoneIds(List<String> zoneIds) {
|
||||
this.zoneIds = zoneIds;
|
||||
}
|
||||
|
||||
public void setTaskId(String taskId) {
|
||||
this.taskId = taskId;
|
||||
}
|
||||
|
||||
public boolean equals(Object o) {
|
||||
if (o == this) {
|
||||
return true;
|
||||
}
|
||||
if (!(o instanceof AcsRestructureBindingParam)) {
|
||||
return false;
|
||||
}
|
||||
AcsRestructureBindingParam other = (AcsRestructureBindingParam)o;
|
||||
if (!other.canEqual(this)) {
|
||||
return false;
|
||||
}
|
||||
String this$parentId = this.getParentId();
|
||||
String other$parentId = other.getParentId();
|
||||
if (this$parentId == null ? other$parentId != null : !this$parentId.equals(other$parentId)) {
|
||||
return false;
|
||||
}
|
||||
String this$orgId = this.getOrgId();
|
||||
String other$orgId = other.getOrgId();
|
||||
if (this$orgId == null ? other$orgId != null : !this$orgId.equals(other$orgId)) {
|
||||
return false;
|
||||
}
|
||||
String this$orgName = this.getOrgName();
|
||||
String other$orgName = other.getOrgName();
|
||||
if (this$orgName == null ? other$orgName != null : !this$orgName.equals(other$orgName)) {
|
||||
return false;
|
||||
}
|
||||
String this$labelId = this.getLabelId();
|
||||
String other$labelId = other.getLabelId();
|
||||
if (this$labelId == null ? other$labelId != null : !this$labelId.equals(other$labelId)) {
|
||||
return false;
|
||||
}
|
||||
String this$labelName = this.getLabelName();
|
||||
String other$labelName = other.getLabelName();
|
||||
if (this$labelName == null ? other$labelName != null : !this$labelName.equals(other$labelName)) {
|
||||
return false;
|
||||
}
|
||||
String this$personId = this.getPersonId();
|
||||
String other$personId = other.getPersonId();
|
||||
if (this$personId == null ? other$personId != null : !this$personId.equals(other$personId)) {
|
||||
return false;
|
||||
}
|
||||
List<String> this$zoneIds = this.getZoneIds();
|
||||
List<String> other$zoneIds = other.getZoneIds();
|
||||
if (this$zoneIds == null ? other$zoneIds != null : !((Object)this$zoneIds).equals(other$zoneIds)) {
|
||||
return false;
|
||||
}
|
||||
String this$taskId = this.getTaskId();
|
||||
String other$taskId = other.getTaskId();
|
||||
return !(this$taskId == null ? other$taskId != null : !this$taskId.equals(other$taskId));
|
||||
}
|
||||
|
||||
protected boolean canEqual(Object other) {
|
||||
return other instanceof AcsRestructureBindingParam;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
int PRIME = 59;
|
||||
int result = 1;
|
||||
String $parentId = this.getParentId();
|
||||
result = result * 59 + ($parentId == null ? 43 : $parentId.hashCode());
|
||||
String $orgId = this.getOrgId();
|
||||
result = result * 59 + ($orgId == null ? 43 : $orgId.hashCode());
|
||||
String $orgName = this.getOrgName();
|
||||
result = result * 59 + ($orgName == null ? 43 : $orgName.hashCode());
|
||||
String $labelId = this.getLabelId();
|
||||
result = result * 59 + ($labelId == null ? 43 : $labelId.hashCode());
|
||||
String $labelName = this.getLabelName();
|
||||
result = result * 59 + ($labelName == null ? 43 : $labelName.hashCode());
|
||||
String $personId = this.getPersonId();
|
||||
result = result * 59 + ($personId == null ? 43 : $personId.hashCode());
|
||||
List<String> $zoneIds = this.getZoneIds();
|
||||
result = result * 59 + ($zoneIds == null ? 43 : ((Object)$zoneIds).hashCode());
|
||||
String $taskId = this.getTaskId();
|
||||
result = result * 59 + ($taskId == null ? 43 : $taskId.hashCode());
|
||||
return result;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "AcsRestructureBindingParam(parentId=" + this.getParentId() + ", orgId=" + this.getOrgId() + ", orgName=" + this.getOrgName() + ", labelId=" + this.getLabelId() + ", labelName=" + this.getLabelName() + ", personId=" + this.getPersonId() + ", zoneIds=" + this.getZoneIds() + ", taskId=" + this.getTaskId() + ")";
|
||||
}
|
||||
}
|
||||
|
||||
+133
@@ -0,0 +1,133 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package cn.cloudwalk.elevator.device.param;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
public class AcsRestructureQueryParam
|
||||
implements Serializable {
|
||||
private String orgId;
|
||||
private String labelId;
|
||||
private List<String> labelIds;
|
||||
private String personId;
|
||||
private String zoneId;
|
||||
private String businessId;
|
||||
|
||||
public String getOrgId() {
|
||||
return this.orgId;
|
||||
}
|
||||
|
||||
public String getLabelId() {
|
||||
return this.labelId;
|
||||
}
|
||||
|
||||
public List<String> getLabelIds() {
|
||||
return this.labelIds;
|
||||
}
|
||||
|
||||
public String getPersonId() {
|
||||
return this.personId;
|
||||
}
|
||||
|
||||
public String getZoneId() {
|
||||
return this.zoneId;
|
||||
}
|
||||
|
||||
public String getBusinessId() {
|
||||
return this.businessId;
|
||||
}
|
||||
|
||||
public void setOrgId(String orgId) {
|
||||
this.orgId = orgId;
|
||||
}
|
||||
|
||||
public void setLabelId(String labelId) {
|
||||
this.labelId = labelId;
|
||||
}
|
||||
|
||||
public void setLabelIds(List<String> labelIds) {
|
||||
this.labelIds = labelIds;
|
||||
}
|
||||
|
||||
public void setPersonId(String personId) {
|
||||
this.personId = personId;
|
||||
}
|
||||
|
||||
public void setZoneId(String zoneId) {
|
||||
this.zoneId = zoneId;
|
||||
}
|
||||
|
||||
public void setBusinessId(String businessId) {
|
||||
this.businessId = businessId;
|
||||
}
|
||||
|
||||
public boolean equals(Object o) {
|
||||
if (o == this) {
|
||||
return true;
|
||||
}
|
||||
if (!(o instanceof AcsRestructureQueryParam)) {
|
||||
return false;
|
||||
}
|
||||
AcsRestructureQueryParam other = (AcsRestructureQueryParam)o;
|
||||
if (!other.canEqual(this)) {
|
||||
return false;
|
||||
}
|
||||
String this$orgId = this.getOrgId();
|
||||
String other$orgId = other.getOrgId();
|
||||
if (this$orgId == null ? other$orgId != null : !this$orgId.equals(other$orgId)) {
|
||||
return false;
|
||||
}
|
||||
String this$labelId = this.getLabelId();
|
||||
String other$labelId = other.getLabelId();
|
||||
if (this$labelId == null ? other$labelId != null : !this$labelId.equals(other$labelId)) {
|
||||
return false;
|
||||
}
|
||||
List<String> this$labelIds = this.getLabelIds();
|
||||
List<String> other$labelIds = other.getLabelIds();
|
||||
if (this$labelIds == null ? other$labelIds != null : !((Object)this$labelIds).equals(other$labelIds)) {
|
||||
return false;
|
||||
}
|
||||
String this$personId = this.getPersonId();
|
||||
String other$personId = other.getPersonId();
|
||||
if (this$personId == null ? other$personId != null : !this$personId.equals(other$personId)) {
|
||||
return false;
|
||||
}
|
||||
String this$zoneId = this.getZoneId();
|
||||
String other$zoneId = other.getZoneId();
|
||||
if (this$zoneId == null ? other$zoneId != null : !this$zoneId.equals(other$zoneId)) {
|
||||
return false;
|
||||
}
|
||||
String this$businessId = this.getBusinessId();
|
||||
String other$businessId = other.getBusinessId();
|
||||
return !(this$businessId == null ? other$businessId != null : !this$businessId.equals(other$businessId));
|
||||
}
|
||||
|
||||
protected boolean canEqual(Object other) {
|
||||
return other instanceof AcsRestructureQueryParam;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
int PRIME = 59;
|
||||
int result = 1;
|
||||
String $orgId = this.getOrgId();
|
||||
result = result * 59 + ($orgId == null ? 43 : $orgId.hashCode());
|
||||
String $labelId = this.getLabelId();
|
||||
result = result * 59 + ($labelId == null ? 43 : $labelId.hashCode());
|
||||
List<String> $labelIds = this.getLabelIds();
|
||||
result = result * 59 + ($labelIds == null ? 43 : ((Object)$labelIds).hashCode());
|
||||
String $personId = this.getPersonId();
|
||||
result = result * 59 + ($personId == null ? 43 : $personId.hashCode());
|
||||
String $zoneId = this.getZoneId();
|
||||
result = result * 59 + ($zoneId == null ? 43 : $zoneId.hashCode());
|
||||
String $businessId = this.getBusinessId();
|
||||
result = result * 59 + ($businessId == null ? 43 : $businessId.hashCode());
|
||||
return result;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "AcsRestructureQueryParam(orgId=" + this.getOrgId() + ", labelId=" + this.getLabelId() + ", labelIds=" + this.getLabelIds() + ", personId=" + this.getPersonId() + ", zoneId=" + this.getZoneId() + ", businessId=" + this.getBusinessId() + ")";
|
||||
}
|
||||
}
|
||||
|
||||
+183
@@ -0,0 +1,183 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package cn.cloudwalk.elevator.device.result;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class AcsDeviceNewResult
|
||||
implements Serializable {
|
||||
private static final long serialVersionUID = -3535840233209237358L;
|
||||
private String id;
|
||||
private String deviceId;
|
||||
private String deviceName;
|
||||
private String deviceCode;
|
||||
private String deviceTypeId;
|
||||
private String deviceTypeCode;
|
||||
private String deviceTypeName;
|
||||
private Integer deviceStatus;
|
||||
private Integer deviceOnlineStatus;
|
||||
private String address;
|
||||
private String imageStoreId;
|
||||
private int identifyType;
|
||||
private String areaId;
|
||||
private String areaName;
|
||||
private Long lastHeartbeatTime;
|
||||
private Integer deviceOpenStatus;
|
||||
private String deviceTypeCategoryId;
|
||||
private String status;
|
||||
private String onlineStatus;
|
||||
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getAreaId() {
|
||||
return this.areaId;
|
||||
}
|
||||
|
||||
public void setAreaId(String areaId) {
|
||||
this.areaId = areaId;
|
||||
}
|
||||
|
||||
public String getAreaName() {
|
||||
return this.areaName;
|
||||
}
|
||||
|
||||
public void setAreaName(String areaName) {
|
||||
this.areaName = areaName;
|
||||
}
|
||||
|
||||
public String getDeviceId() {
|
||||
return this.deviceId;
|
||||
}
|
||||
|
||||
public void setDeviceId(String deviceId) {
|
||||
this.deviceId = deviceId;
|
||||
}
|
||||
|
||||
public String getDeviceName() {
|
||||
return this.deviceName;
|
||||
}
|
||||
|
||||
public void setDeviceName(String deviceName) {
|
||||
this.deviceName = deviceName;
|
||||
}
|
||||
|
||||
public String getDeviceCode() {
|
||||
return this.deviceCode;
|
||||
}
|
||||
|
||||
public void setDeviceCode(String deviceCode) {
|
||||
this.deviceCode = deviceCode;
|
||||
}
|
||||
|
||||
public String getDeviceTypeId() {
|
||||
return this.deviceTypeId;
|
||||
}
|
||||
|
||||
public void setDeviceTypeId(String deviceTypeId) {
|
||||
this.deviceTypeId = deviceTypeId;
|
||||
}
|
||||
|
||||
public String getDeviceTypeCode() {
|
||||
return this.deviceTypeCode;
|
||||
}
|
||||
|
||||
public void setDeviceTypeCode(String deviceTypeCode) {
|
||||
this.deviceTypeCode = deviceTypeCode;
|
||||
}
|
||||
|
||||
public String getDeviceTypeName() {
|
||||
return this.deviceTypeName;
|
||||
}
|
||||
|
||||
public void setDeviceTypeName(String deviceTypeName) {
|
||||
this.deviceTypeName = deviceTypeName;
|
||||
}
|
||||
|
||||
public Integer getDeviceStatus() {
|
||||
return this.deviceStatus;
|
||||
}
|
||||
|
||||
public void setDeviceStatus(Integer deviceStatus) {
|
||||
this.deviceStatus = deviceStatus;
|
||||
}
|
||||
|
||||
public Integer getDeviceOnlineStatus() {
|
||||
return this.deviceOnlineStatus;
|
||||
}
|
||||
|
||||
public void setDeviceOnlineStatus(Integer deviceOnlineStatus) {
|
||||
this.deviceOnlineStatus = deviceOnlineStatus;
|
||||
}
|
||||
|
||||
public String getAddress() {
|
||||
return this.address;
|
||||
}
|
||||
|
||||
public void setAddress(String address) {
|
||||
this.address = address;
|
||||
}
|
||||
|
||||
public String getImageStoreId() {
|
||||
return this.imageStoreId;
|
||||
}
|
||||
|
||||
public void setImageStoreId(String imageStoreId) {
|
||||
this.imageStoreId = imageStoreId;
|
||||
}
|
||||
|
||||
public int getIdentifyType() {
|
||||
return this.identifyType;
|
||||
}
|
||||
|
||||
public void setIdentifyType(int identifyType) {
|
||||
this.identifyType = identifyType;
|
||||
}
|
||||
|
||||
public Long getLastHeartbeatTime() {
|
||||
return this.lastHeartbeatTime;
|
||||
}
|
||||
|
||||
public void setLastHeartbeatTime(Long lastHeartbeatTime) {
|
||||
this.lastHeartbeatTime = lastHeartbeatTime;
|
||||
}
|
||||
|
||||
public Integer getDeviceOpenStatus() {
|
||||
return this.deviceOpenStatus;
|
||||
}
|
||||
|
||||
public void setDeviceOpenStatus(Integer deviceOpenStatus) {
|
||||
this.deviceOpenStatus = deviceOpenStatus;
|
||||
}
|
||||
|
||||
public String getDeviceTypeCategoryId() {
|
||||
return this.deviceTypeCategoryId;
|
||||
}
|
||||
|
||||
public void setDeviceTypeCategoryId(String deviceTypeCategoryId) {
|
||||
this.deviceTypeCategoryId = deviceTypeCategoryId;
|
||||
}
|
||||
|
||||
public String getStatus() {
|
||||
return this.status;
|
||||
}
|
||||
|
||||
public void setStatus(String status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public String getOnlineStatus() {
|
||||
return this.onlineStatus;
|
||||
}
|
||||
|
||||
public void setOnlineStatus(String onlineStatus) {
|
||||
this.onlineStatus = onlineStatus;
|
||||
}
|
||||
}
|
||||
|
||||
+113
@@ -0,0 +1,113 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package cn.cloudwalk.elevator.device.result;
|
||||
|
||||
public class AcsDeviceRestructureResult {
|
||||
private String parentId;
|
||||
private String zoneId;
|
||||
private String zoneName;
|
||||
private String onlineDevices;
|
||||
private String offlineDevices;
|
||||
|
||||
public String getParentId() {
|
||||
return this.parentId;
|
||||
}
|
||||
|
||||
public String getZoneId() {
|
||||
return this.zoneId;
|
||||
}
|
||||
|
||||
public String getZoneName() {
|
||||
return this.zoneName;
|
||||
}
|
||||
|
||||
public String getOnlineDevices() {
|
||||
return this.onlineDevices;
|
||||
}
|
||||
|
||||
public String getOfflineDevices() {
|
||||
return this.offlineDevices;
|
||||
}
|
||||
|
||||
public void setParentId(String parentId) {
|
||||
this.parentId = parentId;
|
||||
}
|
||||
|
||||
public void setZoneId(String zoneId) {
|
||||
this.zoneId = zoneId;
|
||||
}
|
||||
|
||||
public void setZoneName(String zoneName) {
|
||||
this.zoneName = zoneName;
|
||||
}
|
||||
|
||||
public void setOnlineDevices(String onlineDevices) {
|
||||
this.onlineDevices = onlineDevices;
|
||||
}
|
||||
|
||||
public void setOfflineDevices(String offlineDevices) {
|
||||
this.offlineDevices = offlineDevices;
|
||||
}
|
||||
|
||||
public boolean equals(Object o) {
|
||||
if (o == this) {
|
||||
return true;
|
||||
}
|
||||
if (!(o instanceof AcsDeviceRestructureResult)) {
|
||||
return false;
|
||||
}
|
||||
AcsDeviceRestructureResult other = (AcsDeviceRestructureResult)o;
|
||||
if (!other.canEqual(this)) {
|
||||
return false;
|
||||
}
|
||||
String this$parentId = this.getParentId();
|
||||
String other$parentId = other.getParentId();
|
||||
if (this$parentId == null ? other$parentId != null : !this$parentId.equals(other$parentId)) {
|
||||
return false;
|
||||
}
|
||||
String this$zoneId = this.getZoneId();
|
||||
String other$zoneId = other.getZoneId();
|
||||
if (this$zoneId == null ? other$zoneId != null : !this$zoneId.equals(other$zoneId)) {
|
||||
return false;
|
||||
}
|
||||
String this$zoneName = this.getZoneName();
|
||||
String other$zoneName = other.getZoneName();
|
||||
if (this$zoneName == null ? other$zoneName != null : !this$zoneName.equals(other$zoneName)) {
|
||||
return false;
|
||||
}
|
||||
String this$onlineDevices = this.getOnlineDevices();
|
||||
String other$onlineDevices = other.getOnlineDevices();
|
||||
if (this$onlineDevices == null ? other$onlineDevices != null : !this$onlineDevices.equals(other$onlineDevices)) {
|
||||
return false;
|
||||
}
|
||||
String this$offlineDevices = this.getOfflineDevices();
|
||||
String other$offlineDevices = other.getOfflineDevices();
|
||||
return !(this$offlineDevices == null ? other$offlineDevices != null : !this$offlineDevices.equals(other$offlineDevices));
|
||||
}
|
||||
|
||||
protected boolean canEqual(Object other) {
|
||||
return other instanceof AcsDeviceRestructureResult;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
int PRIME = 59;
|
||||
int result = 1;
|
||||
String $parentId = this.getParentId();
|
||||
result = result * 59 + ($parentId == null ? 43 : $parentId.hashCode());
|
||||
String $zoneId = this.getZoneId();
|
||||
result = result * 59 + ($zoneId == null ? 43 : $zoneId.hashCode());
|
||||
String $zoneName = this.getZoneName();
|
||||
result = result * 59 + ($zoneName == null ? 43 : $zoneName.hashCode());
|
||||
String $onlineDevices = this.getOnlineDevices();
|
||||
result = result * 59 + ($onlineDevices == null ? 43 : $onlineDevices.hashCode());
|
||||
String $offlineDevices = this.getOfflineDevices();
|
||||
result = result * 59 + ($offlineDevices == null ? 43 : $offlineDevices.hashCode());
|
||||
return result;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "AcsDeviceRestructureResult(parentId=" + this.getParentId() + ", zoneId=" + this.getZoneId() + ", zoneName=" + this.getZoneName() + ", onlineDevices=" + this.getOnlineDevices() + ", offlineDevices=" + this.getOfflineDevices() + ")";
|
||||
}
|
||||
}
|
||||
|
||||
+233
@@ -0,0 +1,233 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.cloud.entity.CloudwalkBaseTimes
|
||||
*/
|
||||
package cn.cloudwalk.elevator.device.result;
|
||||
|
||||
import cn.cloudwalk.cloud.entity.CloudwalkBaseTimes;
|
||||
import java.io.Serializable;
|
||||
|
||||
public class AcsElevatorDeviceListResult
|
||||
extends CloudwalkBaseTimes
|
||||
implements Serializable {
|
||||
private String businessId;
|
||||
private String deviceId;
|
||||
private String deviceCode;
|
||||
private String deviceName;
|
||||
private String deviceTypeName;
|
||||
private String elevatorFloorList;
|
||||
private String currentFloorId;
|
||||
private String currentFloor;
|
||||
private String currentBuilding;
|
||||
private String currentBuildingId;
|
||||
private String areaName;
|
||||
private Integer status;
|
||||
|
||||
public String getBusinessId() {
|
||||
return this.businessId;
|
||||
}
|
||||
|
||||
public String getDeviceId() {
|
||||
return this.deviceId;
|
||||
}
|
||||
|
||||
public String getDeviceCode() {
|
||||
return this.deviceCode;
|
||||
}
|
||||
|
||||
public String getDeviceName() {
|
||||
return this.deviceName;
|
||||
}
|
||||
|
||||
public String getDeviceTypeName() {
|
||||
return this.deviceTypeName;
|
||||
}
|
||||
|
||||
public String getElevatorFloorList() {
|
||||
return this.elevatorFloorList;
|
||||
}
|
||||
|
||||
public String getCurrentFloorId() {
|
||||
return this.currentFloorId;
|
||||
}
|
||||
|
||||
public String getCurrentFloor() {
|
||||
return this.currentFloor;
|
||||
}
|
||||
|
||||
public String getCurrentBuilding() {
|
||||
return this.currentBuilding;
|
||||
}
|
||||
|
||||
public String getCurrentBuildingId() {
|
||||
return this.currentBuildingId;
|
||||
}
|
||||
|
||||
public String getAreaName() {
|
||||
return this.areaName;
|
||||
}
|
||||
|
||||
public Integer getStatus() {
|
||||
return this.status;
|
||||
}
|
||||
|
||||
public void setBusinessId(String businessId) {
|
||||
this.businessId = businessId;
|
||||
}
|
||||
|
||||
public void setDeviceId(String deviceId) {
|
||||
this.deviceId = deviceId;
|
||||
}
|
||||
|
||||
public void setDeviceCode(String deviceCode) {
|
||||
this.deviceCode = deviceCode;
|
||||
}
|
||||
|
||||
public void setDeviceName(String deviceName) {
|
||||
this.deviceName = deviceName;
|
||||
}
|
||||
|
||||
public void setDeviceTypeName(String deviceTypeName) {
|
||||
this.deviceTypeName = deviceTypeName;
|
||||
}
|
||||
|
||||
public void setElevatorFloorList(String elevatorFloorList) {
|
||||
this.elevatorFloorList = elevatorFloorList;
|
||||
}
|
||||
|
||||
public void setCurrentFloorId(String currentFloorId) {
|
||||
this.currentFloorId = currentFloorId;
|
||||
}
|
||||
|
||||
public void setCurrentFloor(String currentFloor) {
|
||||
this.currentFloor = currentFloor;
|
||||
}
|
||||
|
||||
public void setCurrentBuilding(String currentBuilding) {
|
||||
this.currentBuilding = currentBuilding;
|
||||
}
|
||||
|
||||
public void setCurrentBuildingId(String currentBuildingId) {
|
||||
this.currentBuildingId = currentBuildingId;
|
||||
}
|
||||
|
||||
public void setAreaName(String areaName) {
|
||||
this.areaName = areaName;
|
||||
}
|
||||
|
||||
public void setStatus(Integer status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public boolean equals(Object o) {
|
||||
if (o == this) {
|
||||
return true;
|
||||
}
|
||||
if (!(o instanceof AcsElevatorDeviceListResult)) {
|
||||
return false;
|
||||
}
|
||||
AcsElevatorDeviceListResult other = (AcsElevatorDeviceListResult)o;
|
||||
if (!other.canEqual(this)) {
|
||||
return false;
|
||||
}
|
||||
String this$businessId = this.getBusinessId();
|
||||
String other$businessId = other.getBusinessId();
|
||||
if (this$businessId == null ? other$businessId != null : !this$businessId.equals(other$businessId)) {
|
||||
return false;
|
||||
}
|
||||
String this$deviceId = this.getDeviceId();
|
||||
String other$deviceId = other.getDeviceId();
|
||||
if (this$deviceId == null ? other$deviceId != null : !this$deviceId.equals(other$deviceId)) {
|
||||
return false;
|
||||
}
|
||||
String this$deviceCode = this.getDeviceCode();
|
||||
String other$deviceCode = other.getDeviceCode();
|
||||
if (this$deviceCode == null ? other$deviceCode != null : !this$deviceCode.equals(other$deviceCode)) {
|
||||
return false;
|
||||
}
|
||||
String this$deviceName = this.getDeviceName();
|
||||
String other$deviceName = other.getDeviceName();
|
||||
if (this$deviceName == null ? other$deviceName != null : !this$deviceName.equals(other$deviceName)) {
|
||||
return false;
|
||||
}
|
||||
String this$deviceTypeName = this.getDeviceTypeName();
|
||||
String other$deviceTypeName = other.getDeviceTypeName();
|
||||
if (this$deviceTypeName == null ? other$deviceTypeName != null : !this$deviceTypeName.equals(other$deviceTypeName)) {
|
||||
return false;
|
||||
}
|
||||
String this$elevatorFloorList = this.getElevatorFloorList();
|
||||
String other$elevatorFloorList = other.getElevatorFloorList();
|
||||
if (this$elevatorFloorList == null ? other$elevatorFloorList != null : !this$elevatorFloorList.equals(other$elevatorFloorList)) {
|
||||
return false;
|
||||
}
|
||||
String this$currentFloorId = this.getCurrentFloorId();
|
||||
String other$currentFloorId = other.getCurrentFloorId();
|
||||
if (this$currentFloorId == null ? other$currentFloorId != null : !this$currentFloorId.equals(other$currentFloorId)) {
|
||||
return false;
|
||||
}
|
||||
String this$currentFloor = this.getCurrentFloor();
|
||||
String other$currentFloor = other.getCurrentFloor();
|
||||
if (this$currentFloor == null ? other$currentFloor != null : !this$currentFloor.equals(other$currentFloor)) {
|
||||
return false;
|
||||
}
|
||||
String this$currentBuilding = this.getCurrentBuilding();
|
||||
String other$currentBuilding = other.getCurrentBuilding();
|
||||
if (this$currentBuilding == null ? other$currentBuilding != null : !this$currentBuilding.equals(other$currentBuilding)) {
|
||||
return false;
|
||||
}
|
||||
String this$currentBuildingId = this.getCurrentBuildingId();
|
||||
String other$currentBuildingId = other.getCurrentBuildingId();
|
||||
if (this$currentBuildingId == null ? other$currentBuildingId != null : !this$currentBuildingId.equals(other$currentBuildingId)) {
|
||||
return false;
|
||||
}
|
||||
String this$areaName = this.getAreaName();
|
||||
String other$areaName = other.getAreaName();
|
||||
if (this$areaName == null ? other$areaName != null : !this$areaName.equals(other$areaName)) {
|
||||
return false;
|
||||
}
|
||||
Integer this$status = this.getStatus();
|
||||
Integer other$status = other.getStatus();
|
||||
return !(this$status == null ? other$status != null : !((Object)this$status).equals(other$status));
|
||||
}
|
||||
|
||||
protected boolean canEqual(Object other) {
|
||||
return other instanceof AcsElevatorDeviceListResult;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
int PRIME = 59;
|
||||
int result = 1;
|
||||
String $businessId = this.getBusinessId();
|
||||
result = result * 59 + ($businessId == null ? 43 : $businessId.hashCode());
|
||||
String $deviceId = this.getDeviceId();
|
||||
result = result * 59 + ($deviceId == null ? 43 : $deviceId.hashCode());
|
||||
String $deviceCode = this.getDeviceCode();
|
||||
result = result * 59 + ($deviceCode == null ? 43 : $deviceCode.hashCode());
|
||||
String $deviceName = this.getDeviceName();
|
||||
result = result * 59 + ($deviceName == null ? 43 : $deviceName.hashCode());
|
||||
String $deviceTypeName = this.getDeviceTypeName();
|
||||
result = result * 59 + ($deviceTypeName == null ? 43 : $deviceTypeName.hashCode());
|
||||
String $elevatorFloorList = this.getElevatorFloorList();
|
||||
result = result * 59 + ($elevatorFloorList == null ? 43 : $elevatorFloorList.hashCode());
|
||||
String $currentFloorId = this.getCurrentFloorId();
|
||||
result = result * 59 + ($currentFloorId == null ? 43 : $currentFloorId.hashCode());
|
||||
String $currentFloor = this.getCurrentFloor();
|
||||
result = result * 59 + ($currentFloor == null ? 43 : $currentFloor.hashCode());
|
||||
String $currentBuilding = this.getCurrentBuilding();
|
||||
result = result * 59 + ($currentBuilding == null ? 43 : $currentBuilding.hashCode());
|
||||
String $currentBuildingId = this.getCurrentBuildingId();
|
||||
result = result * 59 + ($currentBuildingId == null ? 43 : $currentBuildingId.hashCode());
|
||||
String $areaName = this.getAreaName();
|
||||
result = result * 59 + ($areaName == null ? 43 : $areaName.hashCode());
|
||||
Integer $status = this.getStatus();
|
||||
result = result * 59 + ($status == null ? 43 : ((Object)$status).hashCode());
|
||||
return result;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "AcsElevatorDeviceListResult(businessId=" + this.getBusinessId() + ", deviceId=" + this.getDeviceId() + ", deviceCode=" + this.getDeviceCode() + ", deviceName=" + this.getDeviceName() + ", deviceTypeName=" + this.getDeviceTypeName() + ", elevatorFloorList=" + this.getElevatorFloorList() + ", currentFloorId=" + this.getCurrentFloorId() + ", currentFloor=" + this.getCurrentFloor() + ", currentBuilding=" + this.getCurrentBuilding() + ", currentBuildingId=" + this.getCurrentBuildingId() + ", areaName=" + this.getAreaName() + ", status=" + this.getStatus() + ")";
|
||||
}
|
||||
}
|
||||
|
||||
+120
@@ -0,0 +1,120 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package cn.cloudwalk.elevator.device.result;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class AcsElevatorDeviceResult
|
||||
implements Serializable {
|
||||
private static final long serialVersionUID = -90554404684210529L;
|
||||
private String businessId;
|
||||
private String deviceId;
|
||||
private String deviceCode;
|
||||
private String deviceName;
|
||||
private String deviceTypeName;
|
||||
private String elevatorFloorList;
|
||||
private String currentFloorId;
|
||||
private String currentFloor;
|
||||
private String currentBuilding;
|
||||
private String currentBuildingId;
|
||||
private String areaName;
|
||||
private Integer status;
|
||||
|
||||
public String getBusinessId() {
|
||||
return this.businessId;
|
||||
}
|
||||
|
||||
public void setBusinessId(String businessId) {
|
||||
this.businessId = businessId;
|
||||
}
|
||||
|
||||
public String getDeviceId() {
|
||||
return this.deviceId;
|
||||
}
|
||||
|
||||
public void setDeviceId(String deviceId) {
|
||||
this.deviceId = deviceId;
|
||||
}
|
||||
|
||||
public String getDeviceCode() {
|
||||
return this.deviceCode;
|
||||
}
|
||||
|
||||
public void setDeviceCode(String deviceCode) {
|
||||
this.deviceCode = deviceCode;
|
||||
}
|
||||
|
||||
public String getElevatorFloorList() {
|
||||
return this.elevatorFloorList;
|
||||
}
|
||||
|
||||
public void setElevatorFloorList(String elevatorFloorList) {
|
||||
this.elevatorFloorList = elevatorFloorList;
|
||||
}
|
||||
|
||||
public String getCurrentFloorId() {
|
||||
return this.currentFloorId;
|
||||
}
|
||||
|
||||
public void setCurrentFloorId(String currentFloorId) {
|
||||
this.currentFloorId = currentFloorId;
|
||||
}
|
||||
|
||||
public String getCurrentFloor() {
|
||||
return this.currentFloor;
|
||||
}
|
||||
|
||||
public void setCurrentFloor(String currentFloor) {
|
||||
this.currentFloor = currentFloor;
|
||||
}
|
||||
|
||||
public String getCurrentBuilding() {
|
||||
return this.currentBuilding;
|
||||
}
|
||||
|
||||
public void setCurrentBuilding(String currentBuilding) {
|
||||
this.currentBuilding = currentBuilding;
|
||||
}
|
||||
|
||||
public String getCurrentBuildingId() {
|
||||
return this.currentBuildingId;
|
||||
}
|
||||
|
||||
public void setCurrentBuildingId(String currentBuildingId) {
|
||||
this.currentBuildingId = currentBuildingId;
|
||||
}
|
||||
|
||||
public Integer getStatus() {
|
||||
return this.status;
|
||||
}
|
||||
|
||||
public void setStatus(Integer status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public String getDeviceName() {
|
||||
return this.deviceName;
|
||||
}
|
||||
|
||||
public void setDeviceName(String deviceName) {
|
||||
this.deviceName = deviceName;
|
||||
}
|
||||
|
||||
public String getDeviceTypeName() {
|
||||
return this.deviceTypeName;
|
||||
}
|
||||
|
||||
public void setDeviceTypeName(String deviceTypeName) {
|
||||
this.deviceTypeName = deviceTypeName;
|
||||
}
|
||||
|
||||
public String getAreaName() {
|
||||
return this.areaName;
|
||||
}
|
||||
|
||||
public void setAreaName(String areaName) {
|
||||
this.areaName = areaName;
|
||||
}
|
||||
}
|
||||
|
||||
+71
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.elevator.passrule.dto.AcsPassRuleLabelResultDto
|
||||
*/
|
||||
package cn.cloudwalk.elevator.device.result;
|
||||
|
||||
import cn.cloudwalk.elevator.passrule.dto.AcsPassRuleLabelResultDto;
|
||||
import java.util.List;
|
||||
|
||||
public class AcsLabelElevatorResult {
|
||||
private String labelId;
|
||||
private List<AcsPassRuleLabelResultDto> details;
|
||||
|
||||
public String getLabelId() {
|
||||
return this.labelId;
|
||||
}
|
||||
|
||||
public List<AcsPassRuleLabelResultDto> getDetails() {
|
||||
return this.details;
|
||||
}
|
||||
|
||||
public void setLabelId(String labelId) {
|
||||
this.labelId = labelId;
|
||||
}
|
||||
|
||||
public void setDetails(List<AcsPassRuleLabelResultDto> details) {
|
||||
this.details = details;
|
||||
}
|
||||
|
||||
public boolean equals(Object o) {
|
||||
if (o == this) {
|
||||
return true;
|
||||
}
|
||||
if (!(o instanceof AcsLabelElevatorResult)) {
|
||||
return false;
|
||||
}
|
||||
AcsLabelElevatorResult other = (AcsLabelElevatorResult)o;
|
||||
if (!other.canEqual(this)) {
|
||||
return false;
|
||||
}
|
||||
String this$labelId = this.getLabelId();
|
||||
String other$labelId = other.getLabelId();
|
||||
if (this$labelId == null ? other$labelId != null : !this$labelId.equals(other$labelId)) {
|
||||
return false;
|
||||
}
|
||||
List<AcsPassRuleLabelResultDto> this$details = this.getDetails();
|
||||
List<AcsPassRuleLabelResultDto> other$details = other.getDetails();
|
||||
return !(this$details == null ? other$details != null : !((Object)this$details).equals(other$details));
|
||||
}
|
||||
|
||||
protected boolean canEqual(Object other) {
|
||||
return other instanceof AcsLabelElevatorResult;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
int PRIME = 59;
|
||||
int result = 1;
|
||||
String $labelId = this.getLabelId();
|
||||
result = result * 59 + ($labelId == null ? 43 : $labelId.hashCode());
|
||||
List<AcsPassRuleLabelResultDto> $details = this.getDetails();
|
||||
result = result * 59 + ($details == null ? 43 : ((Object)$details).hashCode());
|
||||
return result;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "AcsLabelElevatorResult(labelId=" + this.getLabelId() + ", details=" + this.getDetails() + ")";
|
||||
}
|
||||
}
|
||||
|
||||
+81
@@ -0,0 +1,81 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package cn.cloudwalk.elevator.device.result;
|
||||
|
||||
public class KeyValueResult {
|
||||
private String key;
|
||||
private Long time;
|
||||
private String keyA;
|
||||
|
||||
public String getKey() {
|
||||
return this.key;
|
||||
}
|
||||
|
||||
public Long getTime() {
|
||||
return this.time;
|
||||
}
|
||||
|
||||
public String getKeyA() {
|
||||
return this.keyA;
|
||||
}
|
||||
|
||||
public void setKey(String key) {
|
||||
this.key = key;
|
||||
}
|
||||
|
||||
public void setTime(Long time) {
|
||||
this.time = time;
|
||||
}
|
||||
|
||||
public void setKeyA(String keyA) {
|
||||
this.keyA = keyA;
|
||||
}
|
||||
|
||||
public boolean equals(Object o) {
|
||||
if (o == this) {
|
||||
return true;
|
||||
}
|
||||
if (!(o instanceof KeyValueResult)) {
|
||||
return false;
|
||||
}
|
||||
KeyValueResult other = (KeyValueResult)o;
|
||||
if (!other.canEqual(this)) {
|
||||
return false;
|
||||
}
|
||||
String this$key = this.getKey();
|
||||
String other$key = other.getKey();
|
||||
if (this$key == null ? other$key != null : !this$key.equals(other$key)) {
|
||||
return false;
|
||||
}
|
||||
Long this$time = this.getTime();
|
||||
Long other$time = other.getTime();
|
||||
if (this$time == null ? other$time != null : !((Object)this$time).equals(other$time)) {
|
||||
return false;
|
||||
}
|
||||
String this$keyA = this.getKeyA();
|
||||
String other$keyA = other.getKeyA();
|
||||
return !(this$keyA == null ? other$keyA != null : !this$keyA.equals(other$keyA));
|
||||
}
|
||||
|
||||
protected boolean canEqual(Object other) {
|
||||
return other instanceof KeyValueResult;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
int PRIME = 59;
|
||||
int result = 1;
|
||||
String $key = this.getKey();
|
||||
result = result * 59 + ($key == null ? 43 : $key.hashCode());
|
||||
Long $time = this.getTime();
|
||||
result = result * 59 + ($time == null ? 43 : ((Object)$time).hashCode());
|
||||
String $keyA = this.getKeyA();
|
||||
result = result * 59 + ($keyA == null ? 43 : $keyA.hashCode());
|
||||
return result;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "KeyValueResult(key=" + this.getKey() + ", time=" + this.getTime() + ", keyA=" + this.getKeyA() + ")";
|
||||
}
|
||||
}
|
||||
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.cloud.context.CloudwalkCallContext
|
||||
* cn.cloudwalk.cloud.exception.ServiceException
|
||||
* cn.cloudwalk.elevator.passrule.dto.AcsPassRuleImageResultDto
|
||||
*/
|
||||
package cn.cloudwalk.elevator.device.service;
|
||||
|
||||
import cn.cloudwalk.cloud.context.CloudwalkCallContext;
|
||||
import cn.cloudwalk.cloud.exception.ServiceException;
|
||||
import cn.cloudwalk.elevator.device.param.AcsRestructureBindingParam;
|
||||
import cn.cloudwalk.elevator.passrule.dto.AcsPassRuleImageResultDto;
|
||||
import java.util.List;
|
||||
|
||||
public interface AcsDeviceTaskService {
|
||||
public void updateFloors(AcsRestructureBindingParam var1, List<AcsPassRuleImageResultDto> var2, List<String> var3, CloudwalkCallContext var4) throws ServiceException;
|
||||
}
|
||||
|
||||
+73
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.client.cwoscomponent.intelligent.device.result.DeviceResult
|
||||
* cn.cloudwalk.cloud.context.CloudwalkCallContext
|
||||
* cn.cloudwalk.cloud.exception.ServiceException
|
||||
* cn.cloudwalk.cloud.page.CloudwalkPageAble
|
||||
* cn.cloudwalk.cloud.page.CloudwalkPageInfo
|
||||
* cn.cloudwalk.cloud.result.CloudwalkResult
|
||||
* cn.cloudwalk.elevator.device.dto.AcsDeviceTaskDTO
|
||||
* cn.cloudwalk.elevator.device.dto.AcsElevatorDeviceQueryFoDTO
|
||||
* cn.cloudwalk.elevator.device.dto.AcsElevatorDeviceResultDTO
|
||||
*/
|
||||
package cn.cloudwalk.elevator.device.service;
|
||||
|
||||
import cn.cloudwalk.client.cwoscomponent.intelligent.device.result.DeviceResult;
|
||||
import cn.cloudwalk.cloud.context.CloudwalkCallContext;
|
||||
import cn.cloudwalk.cloud.exception.ServiceException;
|
||||
import cn.cloudwalk.cloud.page.CloudwalkPageAble;
|
||||
import cn.cloudwalk.cloud.page.CloudwalkPageInfo;
|
||||
import cn.cloudwalk.cloud.result.CloudwalkResult;
|
||||
import cn.cloudwalk.elevator.device.dto.AcsDeviceTaskDTO;
|
||||
import cn.cloudwalk.elevator.device.dto.AcsElevatorDeviceQueryFoDTO;
|
||||
import cn.cloudwalk.elevator.device.dto.AcsElevatorDeviceResultDTO;
|
||||
import cn.cloudwalk.elevator.device.param.AcsDeviceQueryParam;
|
||||
import cn.cloudwalk.elevator.device.param.AcsDeviceRestructureTaskParam;
|
||||
import cn.cloudwalk.elevator.device.param.AcsElevatorDeviceAddParam;
|
||||
import cn.cloudwalk.elevator.device.param.AcsElevatorDeviceEditParam;
|
||||
import cn.cloudwalk.elevator.device.param.AcsElevatorDeviceQueryByIdParam;
|
||||
import cn.cloudwalk.elevator.device.param.AcsElevatorDeviceQueryParam;
|
||||
import cn.cloudwalk.elevator.device.param.AcsRestructureBindingParam;
|
||||
import cn.cloudwalk.elevator.device.param.AcsRestructureQueryParam;
|
||||
import java.util.List;
|
||||
|
||||
public interface AcsElevatorDeviceService {
|
||||
public Integer add(AcsElevatorDeviceAddParam var1, CloudwalkCallContext var2) throws ServiceException;
|
||||
|
||||
public Integer edit(AcsElevatorDeviceEditParam var1, CloudwalkCallContext var2) throws ServiceException;
|
||||
|
||||
public Integer delete(List<String> var1, CloudwalkCallContext var2) throws ServiceException;
|
||||
|
||||
public String getBuildingId(AcsElevatorDeviceQueryParam var1) throws ServiceException;
|
||||
|
||||
public String getBusinessId(AcsElevatorDeviceQueryParam var1) throws ServiceException;
|
||||
|
||||
public CloudwalkResult<CloudwalkPageAble<AcsElevatorDeviceResultDTO>> get(AcsElevatorDeviceQueryParam var1, CloudwalkCallContext var2) throws ServiceException;
|
||||
|
||||
public CloudwalkResult<CloudwalkPageAble<DeviceResult>> devicePage(AcsDeviceQueryParam var1, CloudwalkPageInfo var2, CloudwalkCallContext var3) throws ServiceException;
|
||||
|
||||
public List<AcsElevatorDeviceQueryFoDTO> getFo(AcsElevatorDeviceQueryParam var1) throws ServiceException;
|
||||
|
||||
public AcsElevatorDeviceResultDTO getById(AcsElevatorDeviceQueryByIdParam var1, CloudwalkCallContext var2) throws ServiceException;
|
||||
|
||||
public AcsElevatorDeviceResultDTO getByDeciveCode(String var1) throws ServiceException;
|
||||
|
||||
public CloudwalkResult listUnbindFloors(AcsRestructureQueryParam var1, CloudwalkCallContext var2) throws ServiceException;
|
||||
|
||||
public CloudwalkResult listFloors(AcsRestructureQueryParam var1, CloudwalkCallContext var2) throws ServiceException;
|
||||
|
||||
public CloudwalkResult listCondition(AcsRestructureQueryParam var1, CloudwalkCallContext var2) throws ServiceException;
|
||||
|
||||
public CloudwalkResult listConditionByLabelIds(AcsRestructureQueryParam var1, CloudwalkCallContext var2) throws ServiceException;
|
||||
|
||||
public CloudwalkResult<String> bindingFloors(AcsRestructureBindingParam var1, CloudwalkCallContext var2) throws ServiceException;
|
||||
|
||||
public CloudwalkResult<String> bindingPerson(AcsRestructureBindingParam var1, CloudwalkCallContext var2) throws ServiceException;
|
||||
|
||||
public CloudwalkResult<AcsDeviceTaskDTO> getTask(AcsDeviceRestructureTaskParam var1, CloudwalkCallContext var2) throws ServiceException;
|
||||
|
||||
public CloudwalkResult<Boolean> setTaskStop(AcsDeviceRestructureTaskParam var1, CloudwalkCallContext var2) throws ServiceException;
|
||||
}
|
||||
|
||||
+166
@@ -0,0 +1,166 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.client.cwoscomponent.intelligent.application.param.ApplicationImageStoreAddParam
|
||||
* cn.cloudwalk.client.cwoscomponent.intelligent.application.param.ApplicationImageStoreDelParam
|
||||
* cn.cloudwalk.client.cwoscomponent.intelligent.application.service.ApplicationImageStoreService
|
||||
* cn.cloudwalk.client.cwoscomponent.intelligent.device.param.DeviceImageStoreParam
|
||||
* cn.cloudwalk.client.cwoscomponent.intelligent.device.service.DeviceImageStoreService
|
||||
* cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.param.ImageStoreDelParam
|
||||
* cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.param.ImageStoreQueryParam
|
||||
* cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.result.ImageStoreListResult
|
||||
* cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.service.ImageStoreService
|
||||
* cn.cloudwalk.cloud.context.CloudwalkCallContext
|
||||
* cn.cloudwalk.cloud.exception.ServiceException
|
||||
* cn.cloudwalk.cloud.result.CloudwalkResult
|
||||
* cn.cloudwalk.elevator.util.CollectionUtils
|
||||
* org.springframework.stereotype.Service
|
||||
*/
|
||||
package cn.cloudwalk.elevator.device.setting.impl;
|
||||
|
||||
import cn.cloudwalk.client.cwoscomponent.intelligent.application.param.ApplicationImageStoreAddParam;
|
||||
import cn.cloudwalk.client.cwoscomponent.intelligent.application.param.ApplicationImageStoreDelParam;
|
||||
import cn.cloudwalk.client.cwoscomponent.intelligent.application.service.ApplicationImageStoreService;
|
||||
import cn.cloudwalk.client.cwoscomponent.intelligent.device.param.DeviceImageStoreParam;
|
||||
import cn.cloudwalk.client.cwoscomponent.intelligent.device.service.DeviceImageStoreService;
|
||||
import cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.param.ImageStoreDelParam;
|
||||
import cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.param.ImageStoreQueryParam;
|
||||
import cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.result.ImageStoreListResult;
|
||||
import cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.service.ImageStoreService;
|
||||
import cn.cloudwalk.cloud.context.CloudwalkCallContext;
|
||||
import cn.cloudwalk.cloud.exception.ServiceException;
|
||||
import cn.cloudwalk.cloud.result.CloudwalkResult;
|
||||
import cn.cloudwalk.elevator.common.AbstractAcsDeviceService;
|
||||
import cn.cloudwalk.elevator.device.setting.param.DeviceImageStoreAppBindParam;
|
||||
import cn.cloudwalk.elevator.device.setting.param.DeviceImageStoreAppUnbindParam;
|
||||
import cn.cloudwalk.elevator.device.setting.service.AcsDeviceImageStoreAppBindService;
|
||||
import cn.cloudwalk.elevator.util.CollectionUtils;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
import javax.annotation.Resource;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
@Service
|
||||
public class AcsDeviceImageStoreAppBindServiceImpl
|
||||
extends AbstractAcsDeviceService
|
||||
implements AcsDeviceImageStoreAppBindService {
|
||||
@Resource
|
||||
private ApplicationImageStoreService applicationImageStoreService;
|
||||
@Resource
|
||||
private DeviceImageStoreService deviceImageStoreService;
|
||||
@Resource
|
||||
private ImageStoreService imageStoreService;
|
||||
|
||||
@Override
|
||||
public CloudwalkResult<Boolean> bindAppImageStoreDevice(DeviceImageStoreAppBindParam param, CloudwalkCallContext context) throws ServiceException {
|
||||
this.bindApplicationImageStore(param, context);
|
||||
return CloudwalkResult.success((Object)true);
|
||||
}
|
||||
|
||||
@Override
|
||||
public CloudwalkResult<Boolean> bindDeviceAndImageStore(DeviceImageStoreAppBindParam param, CloudwalkCallContext context) throws ServiceException {
|
||||
try {
|
||||
this.bindDeviceImageStore(param, context);
|
||||
}
|
||||
catch (ServiceException e) {
|
||||
this.logger.error("\u8bbe\u5907\u56fe\u5e93\u5173\u8054\u5931\u8d25,\u56fe\u5e93id={},\u539f\u56e0:{}", (Object)param.getImageStoreId(), (Object)e.getMessage());
|
||||
throw new ServiceException("\u8bbe\u5907\u56fe\u5e93\u5173\u8054\u5931\u8d25");
|
||||
}
|
||||
return CloudwalkResult.success((Object)true);
|
||||
}
|
||||
|
||||
private void bindApplicationImageStore(DeviceImageStoreAppBindParam param, CloudwalkCallContext context) throws ServiceException {
|
||||
ApplicationImageStoreAddParam applicationImageStoreAddParam = new ApplicationImageStoreAddParam();
|
||||
applicationImageStoreAddParam.setApplicationId(param.getApplicationId());
|
||||
applicationImageStoreAddParam.setImageStoreId(param.getImageStoreId());
|
||||
CloudwalkResult applicationImageStoreAddResult = this.applicationImageStoreService.add(applicationImageStoreAddParam, context);
|
||||
if (!applicationImageStoreAddResult.isSuccess()) {
|
||||
this.logger.error("\u6dfb\u52a0\u5e94\u7528\u56fe\u5e93\u5173\u8054\u5931\u8d25\uff0c\u539f\u56e0\uff1a{}", (Object)applicationImageStoreAddResult.getMessage());
|
||||
throw new ServiceException(applicationImageStoreAddResult.getCode(), "\u6dfb\u52a0\u5e94\u7528\u56fe\u5e93\u5173\u8054\u5931\u8d25\uff0c\u539f\u56e0\uff1a" + applicationImageStoreAddResult.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
private void bindDeviceImageStore(DeviceImageStoreAppBindParam param, CloudwalkCallContext context) throws ServiceException {
|
||||
DeviceImageStoreParam imageStoreSaveParam = new DeviceImageStoreParam();
|
||||
imageStoreSaveParam.setDeviceId(param.getDeviceId());
|
||||
imageStoreSaveParam.setImageStoreId(param.getImageStoreId());
|
||||
CloudwalkResult saveDeviceResult = this.deviceImageStoreService.add(imageStoreSaveParam, context);
|
||||
if (!saveDeviceResult.isSuccess()) {
|
||||
this.logger.error("\u7ed1\u5b9a\u8bbe\u5907\u4e0e\u56fe\u5e93\u5931\u8d25,\u8bbe\u5907id={},\u56fe\u5e93id={},\u539f\u56e0:{}", new Object[]{param.getDeviceId(), param.getImageStoreId(), saveDeviceResult.getMessage()});
|
||||
throw new ServiceException("\u7ed1\u5b9a\u8bbe\u5907\u4e0e\u56fe\u5e93\u5931\u8d25");
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public CloudwalkResult<Boolean> unbindAppImageStoreDevice(DeviceImageStoreAppUnbindParam param, CloudwalkCallContext context) throws ServiceException {
|
||||
this.deviceUnBindImageStore(context, param.getDeviceId(), param.getImageStoreId(), param.getDeviceCode());
|
||||
this.applicationUnBindImageStore(param.getApplicationId(), param.getImageStoreId(), context);
|
||||
List<ImageStoreListResult> imageStoreList = this.getImageStoreResult(param.getImageStoreId(), param.getDeviceCode(), context);
|
||||
if (!CollectionUtils.isEmpty(imageStoreList)) {
|
||||
this.deleteImageStore(param.getImageStoreId(), context);
|
||||
}
|
||||
return CloudwalkResult.success((Object)true);
|
||||
}
|
||||
|
||||
@Override
|
||||
public CloudwalkResult<Boolean> deleteImageStore(DeviceImageStoreAppUnbindParam param, CloudwalkCallContext context) throws ServiceException {
|
||||
this.applicationUnBindImageStore(param.getApplicationId(), param.getImageStoreId(), context);
|
||||
this.deleteImageStore(param.getImageStoreId(), context);
|
||||
return CloudwalkResult.success((Object)true);
|
||||
}
|
||||
|
||||
@Override
|
||||
public CloudwalkResult<Boolean> unbindAppImageStoreDeviceNotDeleteImage(DeviceImageStoreAppUnbindParam param, CloudwalkCallContext context) throws ServiceException {
|
||||
this.deviceUnBindImageStore(context, param.getDeviceId(), param.getImageStoreId(), param.getDeviceCode());
|
||||
return CloudwalkResult.success((Object)true);
|
||||
}
|
||||
|
||||
private List<ImageStoreListResult> getImageStoreResult(String imageStoreId, String deviceCode, CloudwalkCallContext context) throws ServiceException {
|
||||
ImageStoreQueryParam imageStoreQueryParam = new ImageStoreQueryParam();
|
||||
imageStoreQueryParam.setIds(Collections.singletonList(imageStoreId));
|
||||
imageStoreQueryParam.setBusinessId(context.getCompany().getCompanyId());
|
||||
CloudwalkResult imageStoreList = this.imageStoreService.list(imageStoreQueryParam, context);
|
||||
if (!imageStoreList.isSuccess()) {
|
||||
this.logger.error("\u67e5\u8be2\u8bbe\u5907\u56fe\u5e93\u5931\u8d25,\u8bbe\u5907\u7f16\u53f7:{},\u56fe\u5e93id:{},\u539f\u56e0:{}", new Object[]{deviceCode, imageStoreId, imageStoreList.getMessage()});
|
||||
throw new ServiceException("\u67e5\u8be2\u8bbe\u5907\u56fe\u5e93\u5931\u8d25,\u8bbe\u5907\u7f16\u53f7:{}" + deviceCode);
|
||||
}
|
||||
return (List)imageStoreList.getData();
|
||||
}
|
||||
|
||||
private void deviceUnBindImageStore(CloudwalkCallContext context, String deviceId, String imageStoreId, String deviceCode) throws ServiceException {
|
||||
DeviceImageStoreParam deviceImageStoreParam = new DeviceImageStoreParam();
|
||||
deviceImageStoreParam.setDeviceId(deviceId);
|
||||
deviceImageStoreParam.setImageStoreId(imageStoreId);
|
||||
CloudwalkResult deleteDeviceImageStoreResult = this.deviceImageStoreService.delete(deviceImageStoreParam, context);
|
||||
this.logger.info("\u5220\u9664\u8bbe\u5907\u56fe\u5e93\u5173\u8054\uff1a\u56fe\u5e93id={},\u7ed3\u679c:{}", (Object)imageStoreId, (Object)deleteDeviceImageStoreResult.getMessage());
|
||||
if (!deleteDeviceImageStoreResult.isSuccess()) {
|
||||
this.logger.error("\u5220\u9664\u8bbe\u5907\u56fe\u5e93\u5173\u8054\u5931\u8d25,\u8bbe\u5907\u7f16\u53f7:{},\u56fe\u5e93id:{},\u539f\u56e0:{}", new Object[]{deviceCode, imageStoreId, deleteDeviceImageStoreResult.getMessage()});
|
||||
throw new ServiceException("\u5220\u9664\u8bbe\u5907\u56fe\u5e93\u5173\u8054\u5931\u8d25,\u8bbe\u5907\u7f16\u53f7:" + deviceCode);
|
||||
}
|
||||
}
|
||||
|
||||
private void deleteImageStore(String imageStoreId, CloudwalkCallContext context) throws ServiceException {
|
||||
ImageStoreDelParam imageStoreDelParam = new ImageStoreDelParam();
|
||||
imageStoreDelParam.setId(imageStoreId);
|
||||
imageStoreDelParam.setBusinessId(context.getCompany().getCompanyId());
|
||||
CloudwalkResult deleteImageStoreResult = this.imageStoreService.delete(imageStoreDelParam, context);
|
||||
if (!deleteImageStoreResult.isSuccess()) {
|
||||
this.logger.error("\u5220\u9664\u56fe\u5e93\u5931\u8d25,\u56fe\u5e93id:{},\u539f\u56e0:{}", (Object)imageStoreId, (Object)deleteImageStoreResult.getMessage());
|
||||
throw new ServiceException("\u5220\u9664\u56fe\u5e93\u5931\u8d25");
|
||||
}
|
||||
}
|
||||
|
||||
public void applicationUnBindImageStore(String applicationId, String imageStoreId, CloudwalkCallContext context) throws ServiceException {
|
||||
ApplicationImageStoreDelParam applicationImageStoreDelParam = new ApplicationImageStoreDelParam();
|
||||
applicationImageStoreDelParam.setApplicationId(applicationId);
|
||||
applicationImageStoreDelParam.setImageStoreId(imageStoreId);
|
||||
CloudwalkResult deleteApplicationImageStoreResult = this.applicationImageStoreService.delete(applicationImageStoreDelParam, context);
|
||||
this.logger.info("\u5220\u9664\u5e94\u7528\u56fe\u5e93\u5173\u8054\uff1a\u56fe\u5e93id={},\u5e94\u7528id={},\u7ed3\u679c:{}", new Object[]{imageStoreId, applicationId, deleteApplicationImageStoreResult.getMessage()});
|
||||
if (!deleteApplicationImageStoreResult.isSuccess()) {
|
||||
this.logger.error("\u5e94\u7528\u4e0e\u56fe\u5e93\u89e3\u7ed1\u5931\u8d25,\u5e94\u7528id:{},\u56fe\u5e93id:{},\u539f\u56e0\uff1a{}", new Object[]{applicationId, imageStoreId, deleteApplicationImageStoreResult.getMessage()});
|
||||
throw new ServiceException("\u5e94\u7528\u4e0e\u56fe\u5e93\u89e3\u7ed1\u5931\u8d25");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+86
@@ -0,0 +1,86 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.client.cwoscomponent.intelligent.device.param.DeviceSettingQueryParam
|
||||
* cn.cloudwalk.client.cwoscomponent.intelligent.device.result.DeviceSettingResult
|
||||
* cn.cloudwalk.client.cwoscomponent.intelligent.device.result.DeviceSettingResult$DeviceSettings
|
||||
* cn.cloudwalk.client.cwoscomponent.intelligent.device.service.DeviceSettingService
|
||||
* cn.cloudwalk.cloud.context.CloudwalkCallContext
|
||||
* cn.cloudwalk.cloud.exception.ServiceException
|
||||
* cn.cloudwalk.cloud.result.CloudwalkResult
|
||||
* cn.cloudwalk.elevator.em.AcsDeviceSettingEnum
|
||||
* com.google.common.collect.Lists
|
||||
* org.apache.commons.collections4.CollectionUtils
|
||||
* org.springframework.beans.factory.annotation.Autowired
|
||||
* org.springframework.stereotype.Service
|
||||
*/
|
||||
package cn.cloudwalk.elevator.device.setting.impl;
|
||||
|
||||
import cn.cloudwalk.client.cwoscomponent.intelligent.device.param.DeviceSettingQueryParam;
|
||||
import cn.cloudwalk.client.cwoscomponent.intelligent.device.result.DeviceSettingResult;
|
||||
import cn.cloudwalk.client.cwoscomponent.intelligent.device.service.DeviceSettingService;
|
||||
import cn.cloudwalk.cloud.context.CloudwalkCallContext;
|
||||
import cn.cloudwalk.cloud.exception.ServiceException;
|
||||
import cn.cloudwalk.cloud.result.CloudwalkResult;
|
||||
import cn.cloudwalk.elevator.common.AbstractAcsDeviceService;
|
||||
import cn.cloudwalk.elevator.device.setting.param.AcsDeviceTemperatureSettingParam;
|
||||
import cn.cloudwalk.elevator.device.setting.result.AcsDeviceSettingResult;
|
||||
import cn.cloudwalk.elevator.device.setting.result.AcsSettingAttr;
|
||||
import cn.cloudwalk.elevator.device.setting.service.AcsDeviceSettingService;
|
||||
import cn.cloudwalk.elevator.em.AcsDeviceSettingEnum;
|
||||
import com.google.common.collect.Lists;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
import org.apache.commons.collections4.CollectionUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
@Service
|
||||
public class AcsDeviceSettingServiceImpl
|
||||
extends AbstractAcsDeviceService
|
||||
implements AcsDeviceSettingService {
|
||||
@Autowired
|
||||
private DeviceSettingService deviceSettingService;
|
||||
|
||||
@Override
|
||||
public CloudwalkResult<AcsDeviceSettingResult> getTemperatureSetting(AcsDeviceTemperatureSettingParam param, CloudwalkCallContext context) throws ServiceException {
|
||||
AcsDeviceSettingResult result = new AcsDeviceSettingResult();
|
||||
result.setDeviceId(param.getDeviceId());
|
||||
DeviceSettingQueryParam deviceSettingQueryParam = new DeviceSettingQueryParam();
|
||||
deviceSettingQueryParam.setDeviceIds((List)Lists.newArrayList((Object[])new String[]{param.getDeviceId()}));
|
||||
deviceSettingQueryParam.setHasDefault(Short.valueOf((short)0));
|
||||
CloudwalkResult deviceSettingQueryResult = this.deviceSettingService.query(deviceSettingQueryParam);
|
||||
if (deviceSettingQueryResult.isSuccess()) {
|
||||
DeviceSettingResult deviceSettingResult;
|
||||
List settingResult;
|
||||
if (CollectionUtils.isNotEmpty((Collection)((Collection)deviceSettingQueryResult.getData())) && CollectionUtils.isNotEmpty((Collection)(settingResult = (deviceSettingResult = (DeviceSettingResult)((List)deviceSettingQueryResult.getData()).get(0)).getSettings()))) {
|
||||
ArrayList<AcsSettingAttr> acsSettingAttrs = new ArrayList<AcsSettingAttr>();
|
||||
this.recursionSettingAttr(acsSettingAttrs, settingResult);
|
||||
List<AcsSettingAttr> attrs = acsSettingAttrs.stream().filter(s -> AcsDeviceSettingEnum.TEMP_MIN.getCode().equals(s.getCode()) || AcsDeviceSettingEnum.TEMP_STATE.getCode().equals(s.getCode()) || AcsDeviceSettingEnum.TEMP_THRESHOLD.getCode().equals(s.getCode())).collect(Collectors.toList());
|
||||
result.setAttrs(attrs);
|
||||
}
|
||||
return CloudwalkResult.success((Object)result);
|
||||
}
|
||||
return CloudwalkResult.fail((String)deviceSettingQueryResult.getCode(), (String)deviceSettingQueryResult.getMessage());
|
||||
}
|
||||
|
||||
private void recursionSettingAttr(List<AcsSettingAttr> acsSettingAttrs, List<DeviceSettingResult.DeviceSettings> deviceSettings) {
|
||||
if (CollectionUtils.isNotEmpty(deviceSettings)) {
|
||||
for (DeviceSettingResult.DeviceSettings deviceSetting : deviceSettings) {
|
||||
AcsSettingAttr acsSettingAttr = new AcsSettingAttr();
|
||||
acsSettingAttr.setName(deviceSetting.getSettingAttrName());
|
||||
acsSettingAttr.setValue(deviceSetting.getSettingAttrValue());
|
||||
acsSettingAttr.setRemark(deviceSetting.getSettingAttrRemark());
|
||||
acsSettingAttr.setCode(deviceSetting.getSettingAttrCode());
|
||||
acsSettingAttr.setId(deviceSetting.getId());
|
||||
acsSettingAttr.setParentId(deviceSetting.getSettingParentId());
|
||||
acsSettingAttrs.add(acsSettingAttr);
|
||||
this.recursionSettingAttr(acsSettingAttrs, deviceSetting.getChild());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+25
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* org.hibernate.validator.constraints.NotBlank
|
||||
*/
|
||||
package cn.cloudwalk.elevator.device.setting.param;
|
||||
|
||||
import java.io.Serializable;
|
||||
import org.hibernate.validator.constraints.NotBlank;
|
||||
|
||||
public class AcsDeviceTemperatureSettingParam
|
||||
implements Serializable {
|
||||
@NotBlank(message="76260003")
|
||||
private String deviceId;
|
||||
|
||||
public String getDeviceId() {
|
||||
return this.deviceId;
|
||||
}
|
||||
|
||||
public void setDeviceId(String deviceId) {
|
||||
this.deviceId = deviceId;
|
||||
}
|
||||
}
|
||||
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package cn.cloudwalk.elevator.device.setting.param;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class DeviceImageStoreAppBindParam
|
||||
implements Serializable {
|
||||
private static final long serialVersionUID = -5165610910023828727L;
|
||||
private String applicationId;
|
||||
private String imageStoreId;
|
||||
private String deviceId;
|
||||
|
||||
public String getApplicationId() {
|
||||
return this.applicationId;
|
||||
}
|
||||
|
||||
public void setApplicationId(String applicationId) {
|
||||
this.applicationId = applicationId;
|
||||
}
|
||||
|
||||
public String getImageStoreId() {
|
||||
return this.imageStoreId;
|
||||
}
|
||||
|
||||
public void setImageStoreId(String imageStoreId) {
|
||||
this.imageStoreId = imageStoreId;
|
||||
}
|
||||
|
||||
public String getDeviceId() {
|
||||
return this.deviceId;
|
||||
}
|
||||
|
||||
public void setDeviceId(String deviceId) {
|
||||
this.deviceId = deviceId;
|
||||
}
|
||||
}
|
||||
|
||||
+47
@@ -0,0 +1,47 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package cn.cloudwalk.elevator.device.setting.param;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class DeviceImageStoreAppUnbindParam
|
||||
implements Serializable {
|
||||
private String applicationId;
|
||||
private String imageStoreId;
|
||||
private String deviceId;
|
||||
private String deviceCode;
|
||||
|
||||
public String getApplicationId() {
|
||||
return this.applicationId;
|
||||
}
|
||||
|
||||
public void setApplicationId(String applicationId) {
|
||||
this.applicationId = applicationId;
|
||||
}
|
||||
|
||||
public String getImageStoreId() {
|
||||
return this.imageStoreId;
|
||||
}
|
||||
|
||||
public void setImageStoreId(String imageStoreId) {
|
||||
this.imageStoreId = imageStoreId;
|
||||
}
|
||||
|
||||
public String getDeviceId() {
|
||||
return this.deviceId;
|
||||
}
|
||||
|
||||
public void setDeviceId(String deviceId) {
|
||||
this.deviceId = deviceId;
|
||||
}
|
||||
|
||||
public String getDeviceCode() {
|
||||
return this.deviceCode;
|
||||
}
|
||||
|
||||
public void setDeviceCode(String deviceCode) {
|
||||
this.deviceCode = deviceCode;
|
||||
}
|
||||
}
|
||||
|
||||
+32
@@ -0,0 +1,32 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package cn.cloudwalk.elevator.device.setting.result;
|
||||
|
||||
import cn.cloudwalk.elevator.device.setting.result.AcsSettingAttr;
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
public class AcsDeviceSettingResult
|
||||
implements Serializable {
|
||||
private static final long serialVersionUID = -6934487366934322212L;
|
||||
private String deviceId;
|
||||
private List<AcsSettingAttr> attrs;
|
||||
|
||||
public String getDeviceId() {
|
||||
return this.deviceId;
|
||||
}
|
||||
|
||||
public void setDeviceId(String deviceId) {
|
||||
this.deviceId = deviceId;
|
||||
}
|
||||
|
||||
public List<AcsSettingAttr> getAttrs() {
|
||||
return this.attrs;
|
||||
}
|
||||
|
||||
public void setAttrs(List<AcsSettingAttr> attrs) {
|
||||
this.attrs = attrs;
|
||||
}
|
||||
}
|
||||
|
||||
+66
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package cn.cloudwalk.elevator.device.setting.result;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class AcsSettingAttr
|
||||
implements Serializable {
|
||||
private static final long serialVersionUID = 1670487736253830287L;
|
||||
private String name;
|
||||
private String value;
|
||||
private String remark;
|
||||
private String code;
|
||||
private String id;
|
||||
private String parentId;
|
||||
|
||||
public String getParentId() {
|
||||
return this.parentId;
|
||||
}
|
||||
|
||||
public void setParentId(String parentId) {
|
||||
this.parentId = parentId;
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return this.name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getValue() {
|
||||
return this.value;
|
||||
}
|
||||
|
||||
public void setValue(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public String getRemark() {
|
||||
return this.remark;
|
||||
}
|
||||
|
||||
public void setRemark(String remark) {
|
||||
this.remark = remark;
|
||||
}
|
||||
|
||||
public String getCode() {
|
||||
return this.code;
|
||||
}
|
||||
|
||||
public void setCode(String code) {
|
||||
this.code = code;
|
||||
}
|
||||
}
|
||||
|
||||
+28
@@ -0,0 +1,28 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.cloud.context.CloudwalkCallContext
|
||||
* cn.cloudwalk.cloud.exception.ServiceException
|
||||
* cn.cloudwalk.cloud.result.CloudwalkResult
|
||||
*/
|
||||
package cn.cloudwalk.elevator.device.setting.service;
|
||||
|
||||
import cn.cloudwalk.cloud.context.CloudwalkCallContext;
|
||||
import cn.cloudwalk.cloud.exception.ServiceException;
|
||||
import cn.cloudwalk.cloud.result.CloudwalkResult;
|
||||
import cn.cloudwalk.elevator.device.setting.param.DeviceImageStoreAppBindParam;
|
||||
import cn.cloudwalk.elevator.device.setting.param.DeviceImageStoreAppUnbindParam;
|
||||
|
||||
public interface AcsDeviceImageStoreAppBindService {
|
||||
public CloudwalkResult<Boolean> bindAppImageStoreDevice(DeviceImageStoreAppBindParam var1, CloudwalkCallContext var2) throws ServiceException;
|
||||
|
||||
public CloudwalkResult<Boolean> bindDeviceAndImageStore(DeviceImageStoreAppBindParam var1, CloudwalkCallContext var2) throws ServiceException;
|
||||
|
||||
public CloudwalkResult<Boolean> unbindAppImageStoreDevice(DeviceImageStoreAppUnbindParam var1, CloudwalkCallContext var2) throws ServiceException;
|
||||
|
||||
public CloudwalkResult<Boolean> deleteImageStore(DeviceImageStoreAppUnbindParam var1, CloudwalkCallContext var2) throws ServiceException;
|
||||
|
||||
public CloudwalkResult<Boolean> unbindAppImageStoreDeviceNotDeleteImage(DeviceImageStoreAppUnbindParam var1, CloudwalkCallContext var2) throws ServiceException;
|
||||
}
|
||||
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.cloud.context.CloudwalkCallContext
|
||||
* cn.cloudwalk.cloud.exception.ServiceException
|
||||
* cn.cloudwalk.cloud.result.CloudwalkResult
|
||||
*/
|
||||
package cn.cloudwalk.elevator.device.setting.service;
|
||||
|
||||
import cn.cloudwalk.cloud.context.CloudwalkCallContext;
|
||||
import cn.cloudwalk.cloud.exception.ServiceException;
|
||||
import cn.cloudwalk.cloud.result.CloudwalkResult;
|
||||
import cn.cloudwalk.elevator.device.setting.param.AcsDeviceTemperatureSettingParam;
|
||||
import cn.cloudwalk.elevator.device.setting.result.AcsDeviceSettingResult;
|
||||
|
||||
public interface AcsDeviceSettingService {
|
||||
public CloudwalkResult<AcsDeviceSettingResult> getTemperatureSetting(AcsDeviceTemperatureSettingParam var1, CloudwalkCallContext var2) throws ServiceException;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user