elevator: 反编译编译修复(equals/hash、Feign、POI4、分片 DTO、lambda)

Made-with: Cursor
This commit is contained in:
反编译工作区
2026-04-25 00:55:24 +08:00
parent 039391240f
commit 36297e9473
35 changed files with 321 additions and 490 deletions
@@ -69,6 +69,12 @@
<groupId>cn.cloudwalk.intelligent</groupId> <groupId>cn.cloudwalk.intelligent</groupId>
<artifactId>intelligent-cwoscomponent-rest</artifactId> <artifactId>intelligent-cwoscomponent-rest</artifactId>
</dependency> </dependency>
<!-- 反编译源码曾引用 netflix.feign;与 Spring Boot 2.1 对齐为 openfeign 注解包 -->
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-openfeign-core</artifactId>
<version>2.1.5.RELEASE</version>
</dependency>
</dependencies> </dependencies>
<build> <build>
@@ -0,0 +1,44 @@
package cn.cloudwalk.client.davinci.portal.file.param.part;
import java.io.Serializable;
/** 分片追加参数(与存储层 append 调用约定一致)。 */
public class FilePartAppendParam<T> implements Serializable {
private static final long serialVersionUID = 1L;
private String filePath;
private Integer partNumber;
private String uploadId;
private T content;
public String getFilePath() {
return filePath;
}
public void setFilePath(String filePath) {
this.filePath = filePath;
}
public Integer getPartNumber() {
return partNumber;
}
public void setPartNumber(Integer partNumber) {
this.partNumber = partNumber;
}
public String getUploadId() {
return uploadId;
}
public void setUploadId(String uploadId) {
this.uploadId = uploadId;
}
public T getContent() {
return content;
}
public void setContent(T content) {
this.content = content;
}
}
@@ -0,0 +1,44 @@
package cn.cloudwalk.client.davinci.portal.file.param.part;
import java.io.Serializable;
/** 分片结束参数(与 PartFinishDTO 字段对齐)。 */
public class FilePartFinishParam implements Serializable {
private static final long serialVersionUID = 1L;
private String uploadId;
private Long fileSize;
private String filePath;
private Integer returnType;
public String getUploadId() {
return uploadId;
}
public void setUploadId(String uploadId) {
this.uploadId = uploadId;
}
public Long getFileSize() {
return fileSize;
}
public void setFileSize(Long fileSize) {
this.fileSize = fileSize;
}
public String getFilePath() {
return filePath;
}
public void setFilePath(String filePath) {
this.filePath = filePath;
}
public Integer getReturnType() {
return returnType;
}
public void setReturnType(Integer returnType) {
this.returnType = returnType;
}
}
@@ -0,0 +1,17 @@
package cn.cloudwalk.client.davinci.portal.file.param.part;
import java.io.Serializable;
/** 分片上传初始化参数(与 PartInitDTO 字段对齐,供 BeanCopy 与业务层使用)。 */
public class FilePartInitParam implements Serializable {
private static final long serialVersionUID = 1L;
private String fileName;
public String getFileName() {
return fileName;
}
public void setFileName(String fileName) {
this.fileName = fileName;
}
}
@@ -0,0 +1,26 @@
package cn.cloudwalk.client.davinci.portal.file.result;
import java.io.Serializable;
/** 分片初始化/追加返回(与 PartInitResultDTO 字段对齐)。 */
public class FilePartResult implements Serializable {
private static final long serialVersionUID = 1L;
private String filePath;
private String uploadId;
public String getFilePath() {
return filePath;
}
public void setFilePath(String filePath) {
this.filePath = filePath;
}
public String getUploadId() {
return uploadId;
}
public void setUploadId(String uploadId) {
this.uploadId = uploadId;
}
}
@@ -79,7 +79,7 @@ public class AcsDeviceTaskServiceImpl extends AbstractAcsDeviceService implement
if (!CollectionUtils.isEmpty(delFloorIds)) { if (!CollectionUtils.isEmpty(delFloorIds)) {
List<AcsPassRuleImageResultDto> ruleList = this.imageRuleRefDao.listZoneInfoByIds(delFloorIds); List<AcsPassRuleImageResultDto> ruleList = this.imageRuleRefDao.listZoneInfoByIds(delFloorIds);
Map<String, String> ruleMap = new HashMap<>(); Map<String, String> ruleMap = new HashMap<>();
ruleList.forEach(rule -> (String)ruleMap.put(rule.getZoneId(), rule.getZoneName())); ruleList.forEach(rule -> ruleMap.put(rule.getZoneId(), rule.getZoneName()));
for (String delFloorId : delFloorIds) { for (String delFloorId : delFloorIds) {
AcsDeviceTaskDTO task = this.acsDeviceTaskDao.getById(param.getTaskId()); AcsDeviceTaskDTO task = this.acsDeviceTaskDao.getById(param.getTaskId());
if (task.getIsStop().intValue() == 0) { if (task.getIsStop().intValue() == 0) {
@@ -12,7 +12,7 @@ public class AcsDeviceRestructureTaskParam implements Serializable {
public int hashCode() { public int hashCode() {
int PRIME = 59; int PRIME = 59;
result = 1; int result = 1;
Object $taskId = getTaskId(); Object $taskId = getTaskId();
return result * 59 + (($taskId == null) ? 43 : $taskId.hashCode()); return result * 59 + (($taskId == null) ? 43 : $taskId.hashCode());
} }
@@ -2,6 +2,7 @@ package cn.cloudwalk.elevator.device.param;
import java.io.Serializable; import java.io.Serializable;
import java.util.List; import java.util.List;
import java.util.Objects;
public class AcsRestructureBindingParam implements Serializable { public class AcsRestructureBindingParam implements Serializable {
private String parentId; private String parentId;
@@ -46,36 +47,20 @@ public class AcsRestructureBindingParam implements Serializable {
} }
public boolean equals(Object o) { public boolean equals(Object o) {
if (o == this) if (o == this) {
return true; return true;
if (!(o instanceof AcsRestructureBindingParam)) }
if (!(o instanceof AcsRestructureBindingParam)) {
return false; return false;
}
AcsRestructureBindingParam other = (AcsRestructureBindingParam)o; AcsRestructureBindingParam other = (AcsRestructureBindingParam)o;
if (!other.canEqual(this)) if (!other.canEqual(this)) {
return false; return false;
Object this$parentId = getParentId(), other$parentId = other.getParentId(); }
if ((this$parentId == null) ? (other$parentId != null) : !this$parentId.equals(other$parentId)) return Objects.equals(parentId, other.parentId) && Objects.equals(orgId, other.orgId)
return false; && Objects.equals(orgName, other.orgName) && Objects.equals(labelId, other.labelId)
Object this$orgId = getOrgId(), other$orgId = other.getOrgId(); && Objects.equals(labelName, other.labelName) && Objects.equals(personId, other.personId)
if ((this$orgId == null) ? (other$orgId != null) : !this$orgId.equals(other$orgId)) && Objects.equals(zoneIds, other.zoneIds) && Objects.equals(taskId, other.taskId);
return false;
Object this$orgName = getOrgName(), other$orgName = other.getOrgName();
if ((this$orgName == null) ? (other$orgName != null) : !this$orgName.equals(other$orgName))
return false;
Object this$labelId = getLabelId(), other$labelId = other.getLabelId();
if ((this$labelId == null) ? (other$labelId != null) : !this$labelId.equals(other$labelId))
return false;
Object this$labelName = getLabelName(), other$labelName = other.getLabelName();
if ((this$labelName == null) ? (other$labelName != null) : !this$labelName.equals(other$labelName))
return false;
Object this$personId = getPersonId(), other$personId = other.getPersonId();
if ((this$personId == null) ? (other$personId != null) : !this$personId.equals(other$personId))
return false;
Object<String> this$zoneIds = (Object<String>)getZoneIds(), other$zoneIds = (Object<String>)other.getZoneIds();
if ((this$zoneIds == null) ? (other$zoneIds != null) : !this$zoneIds.equals(other$zoneIds))
return false;
Object this$taskId = getTaskId(), other$taskId = other.getTaskId();
return !((this$taskId == null) ? (other$taskId != null) : !this$taskId.equals(other$taskId));
} }
protected boolean canEqual(Object other) { protected boolean canEqual(Object other) {
@@ -83,24 +68,7 @@ public class AcsRestructureBindingParam implements Serializable {
} }
public int hashCode() { public int hashCode() {
int PRIME = 59; return Objects.hash(parentId, orgId, orgName, labelId, labelName, personId, zoneIds, taskId);
result = 1;
Object $parentId = getParentId();
result = result * 59 + (($parentId == null) ? 43 : $parentId.hashCode());
Object $orgId = getOrgId();
result = result * 59 + (($orgId == null) ? 43 : $orgId.hashCode());
Object $orgName = getOrgName();
result = result * 59 + (($orgName == null) ? 43 : $orgName.hashCode());
Object $labelId = getLabelId();
result = result * 59 + (($labelId == null) ? 43 : $labelId.hashCode());
Object $labelName = getLabelName();
result = result * 59 + (($labelName == null) ? 43 : $labelName.hashCode());
Object $personId = getPersonId();
result = result * 59 + (($personId == null) ? 43 : $personId.hashCode());
Object<String> $zoneIds = (Object<String>)getZoneIds();
result = result * 59 + (($zoneIds == null) ? 43 : $zoneIds.hashCode());
Object $taskId = getTaskId();
return result * 59 + (($taskId == null) ? 43 : $taskId.hashCode());
} }
public String toString() { public String toString() {
@@ -2,6 +2,7 @@ package cn.cloudwalk.elevator.device.param;
import java.io.Serializable; import java.io.Serializable;
import java.util.List; import java.util.List;
import java.util.Objects;
public class AcsRestructureQueryParam implements Serializable { public class AcsRestructureQueryParam implements Serializable {
private String orgId; private String orgId;
@@ -36,31 +37,19 @@ public class AcsRestructureQueryParam implements Serializable {
} }
public boolean equals(Object o) { public boolean equals(Object o) {
if (o == this) if (o == this) {
return true; return true;
if (!(o instanceof AcsRestructureQueryParam)) }
if (!(o instanceof AcsRestructureQueryParam)) {
return false; return false;
}
AcsRestructureQueryParam other = (AcsRestructureQueryParam)o; AcsRestructureQueryParam other = (AcsRestructureQueryParam)o;
if (!other.canEqual(this)) if (!other.canEqual(this)) {
return false; return false;
Object this$orgId = getOrgId(), other$orgId = other.getOrgId(); }
if ((this$orgId == null) ? (other$orgId != null) : !this$orgId.equals(other$orgId)) return Objects.equals(orgId, other.orgId) && Objects.equals(labelId, other.labelId)
return false; && Objects.equals(labelIds, other.labelIds) && Objects.equals(personId, other.personId)
Object this$labelId = getLabelId(), other$labelId = other.getLabelId(); && Objects.equals(zoneId, other.zoneId) && Objects.equals(businessId, other.businessId);
if ((this$labelId == null) ? (other$labelId != null) : !this$labelId.equals(other$labelId))
return false;
Object<String> this$labelIds = (Object<String>)getLabelIds(),
other$labelIds = (Object<String>)other.getLabelIds();
if ((this$labelIds == null) ? (other$labelIds != null) : !this$labelIds.equals(other$labelIds))
return false;
Object this$personId = getPersonId(), other$personId = other.getPersonId();
if ((this$personId == null) ? (other$personId != null) : !this$personId.equals(other$personId))
return false;
Object this$zoneId = getZoneId(), other$zoneId = other.getZoneId();
if ((this$zoneId == null) ? (other$zoneId != null) : !this$zoneId.equals(other$zoneId))
return false;
Object this$businessId = getBusinessId(), other$businessId = other.getBusinessId();
return !((this$businessId == null) ? (other$businessId != null) : !this$businessId.equals(other$businessId));
} }
protected boolean canEqual(Object other) { protected boolean canEqual(Object other) {
@@ -68,20 +57,7 @@ public class AcsRestructureQueryParam implements Serializable {
} }
public int hashCode() { public int hashCode() {
int PRIME = 59; return Objects.hash(orgId, labelId, labelIds, personId, zoneId, businessId);
result = 1;
Object $orgId = getOrgId();
result = result * 59 + (($orgId == null) ? 43 : $orgId.hashCode());
Object $labelId = getLabelId();
result = result * 59 + (($labelId == null) ? 43 : $labelId.hashCode());
Object<String> $labelIds = (Object<String>)getLabelIds();
result = result * 59 + (($labelIds == null) ? 43 : $labelIds.hashCode());
Object $personId = getPersonId();
result = result * 59 + (($personId == null) ? 43 : $personId.hashCode());
Object $zoneId = getZoneId();
result = result * 59 + (($zoneId == null) ? 43 : $zoneId.hashCode());
Object $businessId = getBusinessId();
return result * 59 + (($businessId == null) ? 43 : $businessId.hashCode());
} }
public String toString() { public String toString() {
@@ -59,7 +59,7 @@ public class AcsDeviceRestructureResult {
public int hashCode() { public int hashCode() {
int PRIME = 59; int PRIME = 59;
result = 1; int result = 1;
Object $parentId = getParentId(); Object $parentId = getParentId();
result = result * 59 + (($parentId == null) ? 43 : $parentId.hashCode()); result = result * 59 + (($parentId == null) ? 43 : $parentId.hashCode());
Object $zoneId = getZoneId(); Object $zoneId = getZoneId();
@@ -122,7 +122,7 @@ public class AcsElevatorDeviceListResult extends CloudwalkBaseTimes implements S
public int hashCode() { public int hashCode() {
int PRIME = 59; int PRIME = 59;
result = 1; int result = 1;
Object $businessId = getBusinessId(); Object $businessId = getBusinessId();
result = result * 59 + (($businessId == null) ? 43 : $businessId.hashCode()); result = result * 59 + (($businessId == null) ? 43 : $businessId.hashCode());
Object $deviceId = getDeviceId(); Object $deviceId = getDeviceId();
@@ -2,6 +2,7 @@ package cn.cloudwalk.elevator.device.result;
import cn.cloudwalk.elevator.passrule.dto.AcsPassRuleLabelResultDto; import cn.cloudwalk.elevator.passrule.dto.AcsPassRuleLabelResultDto;
import java.util.List; import java.util.List;
import java.util.Objects;
public class AcsLabelElevatorResult { public class AcsLabelElevatorResult {
private String labelId; private String labelId;
@@ -16,19 +17,17 @@ public class AcsLabelElevatorResult {
} }
public boolean equals(Object o) { public boolean equals(Object o) {
if (o == this) if (o == this) {
return true; return true;
if (!(o instanceof AcsLabelElevatorResult)) }
if (!(o instanceof AcsLabelElevatorResult)) {
return false; return false;
}
AcsLabelElevatorResult other = (AcsLabelElevatorResult)o; AcsLabelElevatorResult other = (AcsLabelElevatorResult)o;
if (!other.canEqual(this)) if (!other.canEqual(this)) {
return false; return false;
Object this$labelId = getLabelId(), other$labelId = other.getLabelId(); }
if ((this$labelId == null) ? (other$labelId != null) : !this$labelId.equals(other$labelId)) return Objects.equals(labelId, other.labelId) && Objects.equals(details, other.details);
return false;
Object<AcsPassRuleLabelResultDto> this$details = (Object<AcsPassRuleLabelResultDto>)getDetails(),
other$details = (Object<AcsPassRuleLabelResultDto>)other.getDetails();
return !((this$details == null) ? (other$details != null) : !this$details.equals(other$details));
} }
protected boolean canEqual(Object other) { protected boolean canEqual(Object other) {
@@ -36,12 +35,7 @@ public class AcsLabelElevatorResult {
} }
public int hashCode() { public int hashCode() {
int PRIME = 59; return Objects.hash(labelId, details);
result = 1;
Object $labelId = getLabelId();
result = result * 59 + (($labelId == null) ? 43 : $labelId.hashCode());
Object<AcsPassRuleLabelResultDto> $details = (Object<AcsPassRuleLabelResultDto>)getDetails();
return result * 59 + (($details == null) ? 43 : $details.hashCode());
} }
public String toString() { public String toString() {
@@ -41,7 +41,7 @@ public class KeyValueResult {
public int hashCode() { public int hashCode() {
int PRIME = 59; int PRIME = 59;
result = 1; int result = 1;
Object $key = getKey(); Object $key = getKey();
result = result * 59 + (($key == null) ? 43 : $key.hashCode()); result = result * 59 + (($key == null) ? 43 : $key.hashCode());
Object $time = getTime(); Object $time = getTime();
@@ -31,7 +31,7 @@ public class AcsDeviceSettingServiceImpl extends AbstractAcsDeviceService implem
AcsDeviceSettingResult result = new AcsDeviceSettingResult(); AcsDeviceSettingResult result = new AcsDeviceSettingResult();
result.setDeviceId(param.getDeviceId()); result.setDeviceId(param.getDeviceId());
DeviceSettingQueryParam deviceSettingQueryParam = new DeviceSettingQueryParam(); DeviceSettingQueryParam deviceSettingQueryParam = new DeviceSettingQueryParam();
deviceSettingQueryParam.setDeviceIds(Lists.newArrayList((Object[])new String[] {param.getDeviceId()})); deviceSettingQueryParam.setDeviceIds(Lists.newArrayList(param.getDeviceId()));
deviceSettingQueryParam.setHasDefault(Short.valueOf((short)0)); deviceSettingQueryParam.setHasDefault(Short.valueOf((short)0));
CloudwalkResult<List<DeviceSettingResult>> deviceSettingQueryResult = CloudwalkResult<List<DeviceSettingResult>> deviceSettingQueryResult =
this.deviceSettingService.query(deviceSettingQueryParam); this.deviceSettingService.query(deviceSettingQueryParam);
@@ -17,7 +17,6 @@ import cn.cloudwalk.elevator.export.utils.ExcelUtil;
import cn.cloudwalk.elevator.storage.AcsFileStorageService; import cn.cloudwalk.elevator.storage.AcsFileStorageService;
import cn.cloudwalk.elevator.util.CollectionUtils; import cn.cloudwalk.elevator.util.CollectionUtils;
import cn.cloudwalk.elevator.util.DateUtils; import cn.cloudwalk.elevator.util.DateUtils;
import cn.cloudwalk.elevator.util.StringUtils;
import cn.cloudwalk.intelligent.davinci.common.exception.DavinciServiceException; import cn.cloudwalk.intelligent.davinci.common.exception.DavinciServiceException;
import cn.cloudwalk.intelligent.davinci.storage.bean.file.dto.FileRemoveDTO; import cn.cloudwalk.intelligent.davinci.storage.bean.file.dto.FileRemoveDTO;
import cn.cloudwalk.intelligent.davinci.storage.manager.FileStorageManager; import cn.cloudwalk.intelligent.davinci.storage.manager.FileStorageManager;
@@ -130,8 +129,7 @@ public abstract class AcsAbstractExportAsyncService<T, R> extends AbstractCloudw
this.acsDownloadCenterService.finishDownload(fileFinishParam, context); this.acsDownloadCenterService.finishDownload(fileFinishParam, context);
} else if (StringUtils.isNotBlank(exportRecordContext.getFilePath())) { } else if (StringUtils.isNotBlank(exportRecordContext.getFilePath())) {
FileRemoveDTO fileRemoveDTO = new FileRemoveDTO(); FileRemoveDTO fileRemoveDTO = new FileRemoveDTO();
fileRemoveDTO fileRemoveDTO.setFileList(Lists.newArrayList(exportRecordContext.getFilePath()));
.setFileList(Lists.newArrayList((Object[])new String[] {exportRecordContext.getFilePath()}));
try { try {
this.fileStorageManager.remove(fileRemoveDTO); this.fileStorageManager.remove(fileRemoveDTO);
} catch (DavinciServiceException e1) { } catch (DavinciServiceException e1) {
@@ -1,5 +1,9 @@
package cn.cloudwalk.elevator.export.result; package cn.cloudwalk.elevator.export.result;
import cn.cloudwalk.elevator.export.ExcelAttribute;
import java.io.Serializable;
import java.util.Objects;
public class ElevatorDeviceRecordExcelResult implements Serializable { public class ElevatorDeviceRecordExcelResult implements Serializable {
@ExcelAttribute(name = "设备名称", column = "A") @ExcelAttribute(name = "设备名称", column = "A")
private String deviceName; private String deviceName;
@@ -68,51 +72,23 @@ public class ElevatorDeviceRecordExcelResult implements Serializable {
} }
public boolean equals(Object o) { public boolean equals(Object o) {
if (o == this) if (o == this) {
return true; return true;
if (!(o instanceof ElevatorDeviceRecordExcelResult)) }
if (!(o instanceof ElevatorDeviceRecordExcelResult)) {
return false; return false;
}
ElevatorDeviceRecordExcelResult other = (ElevatorDeviceRecordExcelResult)o; ElevatorDeviceRecordExcelResult other = (ElevatorDeviceRecordExcelResult)o;
if (!other.canEqual(this)) if (!other.canEqual(this)) {
return false; return false;
Object this$deviceName = getDeviceName(), other$deviceName = other.getDeviceName(); }
if ((this$deviceName == null) ? (other$deviceName != null) : !this$deviceName.equals(other$deviceName)) return Objects.equals(deviceName, other.deviceName) && Objects.equals(deviceCode, other.deviceCode)
return false; && Objects.equals(deviceTypeName, other.deviceTypeName) && Objects.equals(areaName, other.areaName)
Object this$deviceCode = getDeviceCode(), other$deviceCode = other.getDeviceCode(); && Objects.equals(currentFloor, other.currentFloor)
if ((this$deviceCode == null) ? (other$deviceCode != null) : !this$deviceCode.equals(other$deviceCode)) && Objects.equals(elevatorFloorList, other.elevatorFloorList)
return false; && Objects.equals(deviceOnlineStatus, other.deviceOnlineStatus) && Objects.equals(ip, other.ip)
Object this$deviceTypeName = getDeviceTypeName(), other$deviceTypeName = other.getDeviceTypeName(); && Objects.equals(lastHeartbeatTime, other.lastHeartbeatTime) && Objects.equals(status, other.status)
if ((this$deviceTypeName == null) ? (other$deviceTypeName != null) && Objects.equals(onlineStatus, other.onlineStatus);
: !this$deviceTypeName.equals(other$deviceTypeName))
return false;
Object this$areaName = getAreaName(), other$areaName = other.getAreaName();
if ((this$areaName == null) ? (other$areaName != null) : !this$areaName.equals(other$areaName))
return false;
Object this$currentFloor = getCurrentFloor(), other$currentFloor = other.getCurrentFloor();
if ((this$currentFloor == null) ? (other$currentFloor != null) : !this$currentFloor.equals(other$currentFloor))
return false;
Object this$elevatorFloorList = getElevatorFloorList(), other$elevatorFloorList = other.getElevatorFloorList();
if ((this$elevatorFloorList == null) ? (other$elevatorFloorList != null)
: !this$elevatorFloorList.equals(other$elevatorFloorList))
return false;
Object this$deviceOnlineStatus = getDeviceOnlineStatus(),
other$deviceOnlineStatus = other.getDeviceOnlineStatus();
if ((this$deviceOnlineStatus == null) ? (other$deviceOnlineStatus != null)
: !this$deviceOnlineStatus.equals(other$deviceOnlineStatus))
return false;
Object this$ip = getIp(), other$ip = other.getIp();
if ((this$ip == null) ? (other$ip != null) : !this$ip.equals(other$ip))
return false;
Object this$lastHeartbeatTime = getLastHeartbeatTime(), other$lastHeartbeatTime = other.getLastHeartbeatTime();
if ((this$lastHeartbeatTime == null) ? (other$lastHeartbeatTime != null)
: !this$lastHeartbeatTime.equals(other$lastHeartbeatTime))
return false;
Object this$status = getStatus(), other$status = other.getStatus();
if ((this$status == null) ? (other$status != null) : !this$status.equals(other$status))
return false;
Object this$onlineStatus = getOnlineStatus(), other$onlineStatus = other.getOnlineStatus();
return !((this$onlineStatus == null) ? (other$onlineStatus != null)
: !this$onlineStatus.equals(other$onlineStatus));
} }
protected boolean canEqual(Object other) { protected boolean canEqual(Object other) {
@@ -120,30 +96,8 @@ public class ElevatorDeviceRecordExcelResult implements Serializable {
} }
public int hashCode() { public int hashCode() {
int PRIME = 59; return Objects.hash(deviceName, deviceCode, deviceTypeName, areaName, currentFloor, elevatorFloorList,
result = 1; deviceOnlineStatus, ip, lastHeartbeatTime, status, onlineStatus);
Object $deviceName = getDeviceName();
result = result * 59 + (($deviceName == null) ? 43 : $deviceName.hashCode());
Object $deviceCode = getDeviceCode();
result = result * 59 + (($deviceCode == null) ? 43 : $deviceCode.hashCode());
Object $deviceTypeName = getDeviceTypeName();
result = result * 59 + (($deviceTypeName == null) ? 43 : $deviceTypeName.hashCode());
Object $areaName = getAreaName();
result = result * 59 + (($areaName == null) ? 43 : $areaName.hashCode());
Object $currentFloor = getCurrentFloor();
result = result * 59 + (($currentFloor == null) ? 43 : $currentFloor.hashCode());
Object $elevatorFloorList = getElevatorFloorList();
result = result * 59 + (($elevatorFloorList == null) ? 43 : $elevatorFloorList.hashCode());
Object $deviceOnlineStatus = getDeviceOnlineStatus();
result = result * 59 + (($deviceOnlineStatus == null) ? 43 : $deviceOnlineStatus.hashCode());
Object $ip = getIp();
result = result * 59 + (($ip == null) ? 43 : $ip.hashCode());
Object $lastHeartbeatTime = getLastHeartbeatTime();
result = result * 59 + (($lastHeartbeatTime == null) ? 43 : $lastHeartbeatTime.hashCode());
Object $status = getStatus();
result = result * 59 + (($status == null) ? 43 : $status.hashCode());
Object $onlineStatus = getOnlineStatus();
return result * 59 + (($onlineStatus == null) ? 43 : $onlineStatus.hashCode());
} }
public String toString() { public String toString() {
@@ -33,6 +33,8 @@ import org.apache.poi.hssf.usermodel.HSSFRow;
import org.apache.poi.hssf.usermodel.HSSFSheet; import org.apache.poi.hssf.usermodel.HSSFSheet;
import org.apache.poi.hssf.usermodel.HSSFWorkbook; import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.apache.poi.ss.usermodel.Cell; import org.apache.poi.ss.usermodel.Cell;
import org.apache.poi.ss.usermodel.CellType;
import org.apache.poi.ss.usermodel.IndexedColors;
import org.apache.poi.ss.usermodel.DataValidation; import org.apache.poi.ss.usermodel.DataValidation;
import org.apache.poi.ss.usermodel.DataValidationConstraint; import org.apache.poi.ss.usermodel.DataValidationConstraint;
import org.apache.poi.ss.usermodel.Row; import org.apache.poi.ss.usermodel.Row;
@@ -82,7 +84,7 @@ public class ExcelUtil {
if (!fieldsMap.containsKey(fieldName)) { if (!fieldsMap.containsKey(fieldName)) {
continue; continue;
} }
cell.setCellType(1); cell.setCellType(CellType.STRING);
String c = cell.getStringCellValue(); String c = cell.getStringCellValue();
if (StringUtils.isNotEmpty(c)) { if (StringUtils.isNotEmpty(c)) {
isNull = false; isNull = false;
@@ -332,7 +334,7 @@ public class ExcelUtil {
cell.setCellStyle(cellStyle); cell.setCellStyle(cellStyle);
sheet.setColumnWidth(i, sheet.setColumnWidth(i,
(int)((((attr.name().getBytes()).length <= 4) ? 6 : (attr.name().getBytes()).length) * 1.5D * 256.0D)); (int)((((attr.name().getBytes()).length <= 4) ? 6 : (attr.name().getBytes()).length) * 1.5D * 256.0D));
cell.setCellType(1); cell.setCellType(CellType.STRING);
cell.setCellValue(attr.name()); cell.setCellValue(attr.name());
} }
} }
@@ -341,9 +343,9 @@ public class ExcelUtil {
HSSFFont font = workbook.createFont(); HSSFFont font = workbook.createFont();
HSSFCellStyle cellStyle = workbook.createCellStyle(); HSSFCellStyle cellStyle = workbook.createCellStyle();
font.setFontName("Arail narrow"); font.setFontName("Arail narrow");
font.setBoldweight((short)700); font.setBold(true);
if ("1".equals(type)) { if ("1".equals(type)) {
font.setColor('翿'); font.setColor(IndexedColors.RED.getIndex());
cellStyle.setFont(font); cellStyle.setFont(font);
} else { } else {
font.setColor((short)10); font.setColor((short)10);
@@ -4,7 +4,7 @@ import cn.cloudwalk.cloud.exception.ServiceException;
import cn.cloudwalk.cloud.result.CloudwalkResult; import cn.cloudwalk.cloud.result.CloudwalkResult;
import cn.cloudwalk.elevator.mqtt.fallback.MqttFeignClientFallback; import cn.cloudwalk.elevator.mqtt.fallback.MqttFeignClientFallback;
import cn.cloudwalk.elevator.mqtt.param.MqttSendMessageParam; import cn.cloudwalk.elevator.mqtt.param.MqttSendMessageParam;
import org.springframework.cloud.netflix.feign.FeignClient; import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestMethod;
@@ -1,5 +1,7 @@
package cn.cloudwalk.elevator.mqtt.param; package cn.cloudwalk.elevator.mqtt.param;
import java.beans.ConstructorProperties;
public class MqttSendMessageParam { public class MqttSendMessageParam {
private String topic; private String topic;
private String data; private String data;
@@ -355,7 +355,7 @@ public class AcsPassRuleServiceImpl extends AbstractAcsPassService implements Ac
.map(AcsPassRuleResultDto::getImageStoreId).collect(Collectors.toList()); .map(AcsPassRuleResultDto::getImageStoreId).collect(Collectors.toList());
List<ImageStoreListResult> imageStoreListResult = getImageStorePageResult(imageStoreIds, context); List<ImageStoreListResult> imageStoreListResult = getImageStorePageResult(imageStoreIds, context);
imageStoreResultMap = (Map<String, ImageStoreListResult>)imageStoreListResult.stream() imageStoreResultMap = (Map<String, ImageStoreListResult>)imageStoreListResult.stream()
.collect(Collectors.toMap(ImageStoreListResult::getId, imageStoreListResult -> imageStoreListResult)); .collect(Collectors.toMap(ImageStoreListResult::getId, r -> r));
} }
for (AcsPassRuleResultDto dto : passRuleResultDtos) { for (AcsPassRuleResultDto dto : passRuleResultDtos) {
AcsPassRuleResult result = new AcsPassRuleResult(); AcsPassRuleResult result = new AcsPassRuleResult();
@@ -61,7 +61,7 @@ public class AcsPassRuleFloorResult implements Serializable {
public int hashCode() { public int hashCode() {
int PRIME = 59; int PRIME = 59;
result = 1; int result = 1;
Object $id = getId(); Object $id = getId();
result = result * 59 + (($id == null) ? 43 : $id.hashCode()); result = result * 59 + (($id == null) ? 43 : $id.hashCode());
Object $name = getName(); Object $name = getName();
@@ -293,8 +293,8 @@ public class AcsPersonServiceImpl extends AbstractAcsPassService implements AcsP
imageStorePersonQueryParam.setRowsOfPage(1000); imageStorePersonQueryParam.setRowsOfPage(1000);
CloudwalkResult<CloudwalkPageAble<ImageStorePersonResult>> imageStorePersonPageResult = CloudwalkResult<CloudwalkPageAble<ImageStorePersonResult>> imageStorePersonPageResult =
this.imageStorePersonService.page(imageStorePersonQueryParam, context); this.imageStorePersonService.page(imageStorePersonQueryParam, context);
ImageStorePersonResult imageStoreResult = CloudwalkPageAble<ImageStorePersonResult> imageStorePage = imageStorePersonPageResult.getData();
((CloudwalkPageAble)imageStorePersonPageResult.getData()).getDatas().iterator().next(); ImageStorePersonResult imageStoreResult = imageStorePage.getDatas().iterator().next();
result.setComparePicture(imageStoreResult.getComparePicture()); result.setComparePicture(imageStoreResult.getComparePicture());
result.setPersonName(imageStoreResult.getName()); result.setPersonName(imageStoreResult.getName());
result.setPersonId(imageStoreResult.getPersonId()); result.setPersonId(imageStoreResult.getPersonId());
@@ -400,7 +400,7 @@ public class AcsPersonServiceImpl extends AbstractAcsPassService implements AcsP
List<PersonResult> personList = (List<PersonResult>)personResult.getData(); List<PersonResult> personList = (List<PersonResult>)personResult.getData();
if (personResult.isSuccess() && CollectionUtils.isNotEmpty(personList)) { if (personResult.isSuccess() && CollectionUtils.isNotEmpty(personList)) {
personIcCardMap = (Map<String, PersonResult>)personList.stream() personIcCardMap = (Map<String, PersonResult>)personList.stream()
.collect(Collectors.toMap(CloudwalkBaseIdentify::getId, personResult -> personResult)); .collect(Collectors.toMap(CloudwalkBaseIdentify::getId, pr -> pr));
} }
return personIcCardMap; return personIcCardMap;
} }
@@ -116,9 +116,10 @@ public class PersonRuleServiceImpl extends AbstractAcsPassService implements Per
CloudwalkResult<CloudwalkPageAble<ImageStorePersonResult>> personPage = CloudwalkResult<CloudwalkPageAble<ImageStorePersonResult>> personPage =
this.imageStorePersonService.page(queryParam, context); this.imageStorePersonService.page(queryParam, context);
List<String> personPageIds = new ArrayList<>(); List<String> personPageIds = new ArrayList<>();
if (!CollectionUtils.isEmpty(((CloudwalkPageAble)personPage.getData()).getDatas())) { CloudwalkPageAble<ImageStorePersonResult> personPageData = personPage.getData();
for (ImageStorePersonResult personResult : ((CloudwalkPageAble)personPage.getData()).getDatas()) { if (personPageData != null && !CollectionUtils.isEmpty(personPageData.getDatas())) {
personPageIds.add(personResult.getPersonId()); for (ImageStorePersonResult imgPerson : personPageData.getDatas()) {
personPageIds.add(imgPerson.getPersonId());
} }
} }
List<String> bindPersonIds = new ArrayList<>(); List<String> bindPersonIds = new ArrayList<>();
@@ -603,7 +604,7 @@ public class PersonRuleServiceImpl extends AbstractAcsPassService implements Per
List<PersonResult> personList = (List<PersonResult>)personResult.getData(); List<PersonResult> personList = (List<PersonResult>)personResult.getData();
if (personResult.isSuccess() && CollectionUtils.isNotEmpty(personList)) { if (personResult.isSuccess() && CollectionUtils.isNotEmpty(personList)) {
personIcCardMap = (Map<String, PersonResult>)personList.stream() personIcCardMap = (Map<String, PersonResult>)personList.stream()
.collect(Collectors.toMap(CloudwalkBaseIdentify::getId, personResult -> personResult)); .collect(Collectors.toMap(CloudwalkBaseIdentify::getId, pr -> pr));
} }
return personIcCardMap; return personIcCardMap;
} }
@@ -2,6 +2,7 @@ package cn.cloudwalk.elevator.person.param;
import java.io.Serializable; import java.io.Serializable;
import java.util.List; import java.util.List;
import java.util.Objects;
public class AcsPersonAddVisitorParam implements Serializable { public class AcsPersonAddVisitorParam implements Serializable {
private static final long serialVersionUID = 7916140658162290825L; private static final long serialVersionUID = 7916140658162290825L;
@@ -32,30 +33,19 @@ public class AcsPersonAddVisitorParam implements Serializable {
} }
public boolean equals(Object o) { public boolean equals(Object o) {
if (o == this) if (o == this) {
return true; return true;
if (!(o instanceof AcsPersonAddVisitorParam)) }
if (!(o instanceof AcsPersonAddVisitorParam)) {
return false; return false;
}
AcsPersonAddVisitorParam other = (AcsPersonAddVisitorParam)o; AcsPersonAddVisitorParam other = (AcsPersonAddVisitorParam)o;
if (!other.canEqual(this)) if (!other.canEqual(this)) {
return false; return false;
Object this$visitorId = getVisitorId(), other$visitorId = other.getVisitorId(); }
if ((this$visitorId == null) ? (other$visitorId != null) : !this$visitorId.equals(other$visitorId)) return Objects.equals(visitorId, other.visitorId) && Objects.equals(personId, other.personId)
return false; && Objects.equals(begVisitorTime, other.begVisitorTime) && Objects.equals(endVisitorTime, other.endVisitorTime)
Object this$personId = getPersonId(), other$personId = other.getPersonId(); && Objects.equals(floorIds, other.floorIds);
if ((this$personId == null) ? (other$personId != null) : !this$personId.equals(other$personId))
return false;
Object this$begVisitorTime = getBegVisitorTime(), other$begVisitorTime = other.getBegVisitorTime();
if ((this$begVisitorTime == null) ? (other$begVisitorTime != null)
: !this$begVisitorTime.equals(other$begVisitorTime))
return false;
Object this$endVisitorTime = getEndVisitorTime(), other$endVisitorTime = other.getEndVisitorTime();
if ((this$endVisitorTime == null) ? (other$endVisitorTime != null)
: !this$endVisitorTime.equals(other$endVisitorTime))
return false;
Object<String> this$floorIds = (Object<String>)getFloorIds(),
other$floorIds = (Object<String>)other.getFloorIds();
return !((this$floorIds == null) ? (other$floorIds != null) : !this$floorIds.equals(other$floorIds));
} }
protected boolean canEqual(Object other) { protected boolean canEqual(Object other) {
@@ -63,18 +53,7 @@ public class AcsPersonAddVisitorParam implements Serializable {
} }
public int hashCode() { public int hashCode() {
int PRIME = 59; return Objects.hash(visitorId, personId, begVisitorTime, endVisitorTime, floorIds);
result = 1;
Object $visitorId = getVisitorId();
result = result * 59 + (($visitorId == null) ? 43 : $visitorId.hashCode());
Object $personId = getPersonId();
result = result * 59 + (($personId == null) ? 43 : $personId.hashCode());
Object $begVisitorTime = getBegVisitorTime();
result = result * 59 + (($begVisitorTime == null) ? 43 : $begVisitorTime.hashCode());
Object $endVisitorTime = getEndVisitorTime();
result = result * 59 + (($endVisitorTime == null) ? 43 : $endVisitorTime.hashCode());
Object<String> $floorIds = (Object<String>)getFloorIds();
return result * 59 + (($floorIds == null) ? 43 : $floorIds.hashCode());
} }
public String toString() { public String toString() {
@@ -2,6 +2,7 @@ package cn.cloudwalk.elevator.person.param;
import java.io.Serializable; import java.io.Serializable;
import java.util.List; import java.util.List;
import java.util.Objects;
public class AcsPersonQueryParam implements Serializable { public class AcsPersonQueryParam implements Serializable {
private static final long serialVersionUID = -3343979289939890513L; private static final long serialVersionUID = -3343979289939890513L;
@@ -63,54 +64,23 @@ public class AcsPersonQueryParam implements Serializable {
} }
public boolean equals(Object o) { public boolean equals(Object o) {
if (o == this) if (o == this) {
return true; return true;
if (!(o instanceof AcsPersonQueryParam)) }
if (!(o instanceof AcsPersonQueryParam)) {
return false; return false;
}
AcsPersonQueryParam other = (AcsPersonQueryParam)o; AcsPersonQueryParam other = (AcsPersonQueryParam)o;
if (!other.canEqual(this)) if (!other.canEqual(this)) {
return false; return false;
Object this$parentId = getParentId(), other$parentId = other.getParentId(); }
if ((this$parentId == null) ? (other$parentId != null) : !this$parentId.equals(other$parentId)) return Objects.equals(parentId, other.parentId) && Objects.equals(zoneId, other.zoneId)
return false; && Objects.equals(personName, other.personName) && Objects.equals(imageStoreId, other.imageStoreId)
Object this$zoneId = getZoneId(), other$zoneId = other.getZoneId(); && Objects.equals(organizationIds, other.organizationIds) && Objects.equals(labelIds, other.labelIds)
if ((this$zoneId == null) ? (other$zoneId != null) : !this$zoneId.equals(other$zoneId)) && Objects.equals(personIds, other.personIds) && Objects.equals(isElevator, other.isElevator)
return false; && Objects.equals(delPersonIds, other.delPersonIds)
Object this$personName = getPersonName(), other$personName = other.getPersonName(); && Objects.equals(elevatorLabelIds, other.elevatorLabelIds)
if ((this$personName == null) ? (other$personName != null) : !this$personName.equals(other$personName)) && Objects.equals(elevatorOrganizationIds, other.elevatorOrganizationIds);
return false;
Object this$imageStoreId = getImageStoreId(), other$imageStoreId = other.getImageStoreId();
if ((this$imageStoreId == null) ? (other$imageStoreId != null) : !this$imageStoreId.equals(other$imageStoreId))
return false;
Object<String> this$organizationIds = (Object<String>)getOrganizationIds(),
other$organizationIds = (Object<String>)other.getOrganizationIds();
if ((this$organizationIds == null) ? (other$organizationIds != null)
: !this$organizationIds.equals(other$organizationIds))
return false;
Object<String> this$labelIds = (Object<String>)getLabelIds(),
other$labelIds = (Object<String>)other.getLabelIds();
if ((this$labelIds == null) ? (other$labelIds != null) : !this$labelIds.equals(other$labelIds))
return false;
Object<String> this$personIds = (Object<String>)getPersonIds(),
other$personIds = (Object<String>)other.getPersonIds();
if ((this$personIds == null) ? (other$personIds != null) : !this$personIds.equals(other$personIds))
return false;
Object this$isElevator = getIsElevator(), other$isElevator = other.getIsElevator();
if ((this$isElevator == null) ? (other$isElevator != null) : !this$isElevator.equals(other$isElevator))
return false;
Object<String> this$delPersonIds = (Object<String>)getDelPersonIds(),
other$delPersonIds = (Object<String>)other.getDelPersonIds();
if ((this$delPersonIds == null) ? (other$delPersonIds != null) : !this$delPersonIds.equals(other$delPersonIds))
return false;
Object<String> this$elevatorLabelIds = (Object<String>)getElevatorLabelIds(),
other$elevatorLabelIds = (Object<String>)other.getElevatorLabelIds();
if ((this$elevatorLabelIds == null) ? (other$elevatorLabelIds != null)
: !this$elevatorLabelIds.equals(other$elevatorLabelIds))
return false;
Object<String> this$elevatorOrganizationIds = (Object<String>)getElevatorOrganizationIds(),
other$elevatorOrganizationIds = (Object<String>)other.getElevatorOrganizationIds();
return !((this$elevatorOrganizationIds == null) ? (other$elevatorOrganizationIds != null)
: !this$elevatorOrganizationIds.equals(other$elevatorOrganizationIds));
} }
protected boolean canEqual(Object other) { protected boolean canEqual(Object other) {
@@ -118,30 +88,8 @@ public class AcsPersonQueryParam implements Serializable {
} }
public int hashCode() { public int hashCode() {
int PRIME = 59; return Objects.hash(parentId, zoneId, personName, imageStoreId, organizationIds, labelIds, personIds,
result = 1; isElevator, delPersonIds, elevatorLabelIds, elevatorOrganizationIds);
Object $parentId = getParentId();
result = result * 59 + (($parentId == null) ? 43 : $parentId.hashCode());
Object $zoneId = getZoneId();
result = result * 59 + (($zoneId == null) ? 43 : $zoneId.hashCode());
Object $personName = getPersonName();
result = result * 59 + (($personName == null) ? 43 : $personName.hashCode());
Object $imageStoreId = getImageStoreId();
result = result * 59 + (($imageStoreId == null) ? 43 : $imageStoreId.hashCode());
Object<String> $organizationIds = (Object<String>)getOrganizationIds();
result = result * 59 + (($organizationIds == null) ? 43 : $organizationIds.hashCode());
Object<String> $labelIds = (Object<String>)getLabelIds();
result = result * 59 + (($labelIds == null) ? 43 : $labelIds.hashCode());
Object<String> $personIds = (Object<String>)getPersonIds();
result = result * 59 + (($personIds == null) ? 43 : $personIds.hashCode());
Object $isElevator = getIsElevator();
result = result * 59 + (($isElevator == null) ? 43 : $isElevator.hashCode());
Object<String> $delPersonIds = (Object<String>)getDelPersonIds();
result = result * 59 + (($delPersonIds == null) ? 43 : $delPersonIds.hashCode());
Object<String> $elevatorLabelIds = (Object<String>)getElevatorLabelIds();
result = result * 59 + (($elevatorLabelIds == null) ? 43 : $elevatorLabelIds.hashCode());
Object<String> $elevatorOrganizationIds = (Object<String>)getElevatorOrganizationIds();
return result * 59 + (($elevatorOrganizationIds == null) ? 43 : $elevatorOrganizationIds.hashCode());
} }
public String toString() { public String toString() {
@@ -2,6 +2,7 @@ package cn.cloudwalk.elevator.person.param;
import cn.cloudwalk.cloud.page.CloudwalkBasePageForm; import cn.cloudwalk.cloud.page.CloudwalkBasePageForm;
import java.io.Serializable; import java.io.Serializable;
import java.util.Objects;
public class PersonDetailQueryParam extends CloudwalkBasePageForm implements Serializable { public class PersonDetailQueryParam extends CloudwalkBasePageForm implements Serializable {
private static final long serialVersionUID = -8830219133147503297L; private static final long serialVersionUID = -8830219133147503297L;
@@ -27,24 +28,18 @@ public class PersonDetailQueryParam extends CloudwalkBasePageForm implements Ser
} }
public boolean equals(Object o) { public boolean equals(Object o) {
if (o == this) if (o == this) {
return true; return true;
if (!(o instanceof PersonDetailQueryParam)) }
if (!(o instanceof PersonDetailQueryParam)) {
return false; return false;
}
PersonDetailQueryParam other = (PersonDetailQueryParam)o; PersonDetailQueryParam other = (PersonDetailQueryParam)o;
if (!other.canEqual(this)) if (!other.canEqual(this)) {
return false; return false;
Object this$parentId = getParentId(), other$parentId = other.getParentId(); }
if ((this$parentId == null) ? (other$parentId != null) : !this$parentId.equals(other$parentId)) return Objects.equals(parentId, other.parentId) && Objects.equals(zoneId, other.zoneId)
return false; && Objects.equals(ruleId, other.ruleId) && Objects.equals(personName, other.personName);
Object this$zoneId = getZoneId(), other$zoneId = other.getZoneId();
if ((this$zoneId == null) ? (other$zoneId != null) : !this$zoneId.equals(other$zoneId))
return false;
Object this$ruleId = getRuleId(), other$ruleId = other.getRuleId();
if ((this$ruleId == null) ? (other$ruleId != null) : !this$ruleId.equals(other$ruleId))
return false;
Object this$personName = getPersonName(), other$personName = other.getPersonName();
return !((this$personName == null) ? (other$personName != null) : !this$personName.equals(other$personName));
} }
protected boolean canEqual(Object other) { protected boolean canEqual(Object other) {
@@ -52,16 +47,7 @@ public class PersonDetailQueryParam extends CloudwalkBasePageForm implements Ser
} }
public int hashCode() { public int hashCode() {
int PRIME = 59; return Objects.hash(parentId, zoneId, ruleId, personName);
result = 1;
Object $parentId = getParentId();
result = result * 59 + (($parentId == null) ? 43 : $parentId.hashCode());
Object $zoneId = getZoneId();
result = result * 59 + (($zoneId == null) ? 43 : $zoneId.hashCode());
Object $ruleId = getRuleId();
result = result * 59 + (($ruleId == null) ? 43 : $ruleId.hashCode());
Object $personName = getPersonName();
return result * 59 + (($personName == null) ? 43 : $personName.hashCode());
} }
public String toString() { public String toString() {
@@ -192,7 +192,9 @@ public class AcsElevatorRecordServiceImpl extends AbstractAcsDeviceService imple
this.personService.list(personQueryParam, cloudwalkContext); this.personService.list(personQueryParam, cloudwalkContext);
Map<String, PersonResult> maps = new HashMap<>(); Map<String, PersonResult> maps = new HashMap<>();
if (!CollectionUtils.isEmpty((Collection)personList.getData())) { if (!CollectionUtils.isEmpty((Collection)personList.getData())) {
((List)personList.getData()).forEach(person -> (PersonResult)maps.put(person.getId(), person)); for (PersonResult person : (List<PersonResult>)personList.getData()) {
maps.put(person.getId(), person);
}
} }
for (AcsElevatorRecordResult result : acsList) { for (AcsElevatorRecordResult result : acsList) {
PersonResult person = maps.get(result.getPersonId()); PersonResult person = maps.get(result.getPersonId());
@@ -5,7 +5,7 @@ import cn.cloudwalk.cloud.result.CloudwalkResult;
import cn.cloudwalk.elevator.visitor.fallback.VisitorFeignClientFallback; import cn.cloudwalk.elevator.visitor.fallback.VisitorFeignClientFallback;
import cn.cloudwalk.elevator.visitor.param.VisitorRecordQueryParam; import cn.cloudwalk.elevator.visitor.param.VisitorRecordQueryParam;
import cn.cloudwalk.elevator.visitor.result.VisitorQueryResult; import cn.cloudwalk.elevator.visitor.result.VisitorQueryResult;
import org.springframework.cloud.netflix.feign.FeignClient; import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestMethod;
@@ -9,7 +9,7 @@ import cn.cloudwalk.elevator.zone.param.ZoneQueryParam;
import cn.cloudwalk.elevator.zone.result.ZoneResult; import cn.cloudwalk.elevator.zone.result.ZoneResult;
import cn.cloudwalk.elevator.zone.result.ZoneTreeResult; import cn.cloudwalk.elevator.zone.result.ZoneTreeResult;
import java.util.List; import java.util.List;
import org.springframework.cloud.netflix.feign.FeignClient; import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestMethod;
@@ -1,6 +1,7 @@
package cn.cloudwalk.elevator.handler.device.form; package cn.cloudwalk.elevator.handler.device.form;
import java.io.Serializable; import java.io.Serializable;
import java.util.Objects;
public class AcsDeviceRestructureTaskForm implements Serializable { public class AcsDeviceRestructureTaskForm implements Serializable {
private static final long serialVersionUID = -7349123760464380004L; private static final long serialVersionUID = -7349123760464380004L;
@@ -11,10 +12,7 @@ public class AcsDeviceRestructureTaskForm implements Serializable {
} }
public int hashCode() { public int hashCode() {
int PRIME = 59; return Objects.hash(taskId);
result = 1;
Object $taskId = getTaskId();
return result * 59 + (($taskId == null) ? 43 : $taskId.hashCode());
} }
protected boolean canEqual(Object other) { protected boolean canEqual(Object other) {
@@ -22,15 +20,17 @@ public class AcsDeviceRestructureTaskForm implements Serializable {
} }
public boolean equals(Object o) { public boolean equals(Object o) {
if (o == this) if (o == this) {
return true; return true;
if (!(o instanceof AcsDeviceRestructureTaskForm)) }
if (!(o instanceof AcsDeviceRestructureTaskForm)) {
return false; return false;
}
AcsDeviceRestructureTaskForm other = (AcsDeviceRestructureTaskForm)o; AcsDeviceRestructureTaskForm other = (AcsDeviceRestructureTaskForm)o;
if (!other.canEqual(this)) if (!other.canEqual(this)) {
return false; return false;
Object this$taskId = getTaskId(), other$taskId = other.getTaskId(); }
return !((this$taskId == null) ? (other$taskId != null) : !this$taskId.equals(other$taskId)); return Objects.equals(taskId, other.taskId);
} }
public void setTaskId(String taskId) { public void setTaskId(String taskId) {
@@ -2,6 +2,7 @@ package cn.cloudwalk.elevator.handler.device.form;
import java.io.Serializable; import java.io.Serializable;
import java.util.List; import java.util.List;
import java.util.Objects;
public class AcsRestructureBindingForm implements Serializable { public class AcsRestructureBindingForm implements Serializable {
private String parentId; private String parentId;
@@ -41,33 +42,20 @@ public class AcsRestructureBindingForm implements Serializable {
} }
public boolean equals(Object o) { public boolean equals(Object o) {
if (o == this) if (o == this) {
return true; return true;
if (!(o instanceof AcsRestructureBindingForm)) }
if (!(o instanceof AcsRestructureBindingForm)) {
return false; return false;
}
AcsRestructureBindingForm other = (AcsRestructureBindingForm)o; AcsRestructureBindingForm other = (AcsRestructureBindingForm)o;
if (!other.canEqual(this)) if (!other.canEqual(this)) {
return false; return false;
Object this$parentId = getParentId(), other$parentId = other.getParentId(); }
if ((this$parentId == null) ? (other$parentId != null) : !this$parentId.equals(other$parentId)) return Objects.equals(parentId, other.parentId) && Objects.equals(orgId, other.orgId)
return false; && Objects.equals(orgName, other.orgName) && Objects.equals(labelId, other.labelId)
Object this$orgId = getOrgId(), other$orgId = other.getOrgId(); && Objects.equals(labelName, other.labelName) && Objects.equals(personId, other.personId)
if ((this$orgId == null) ? (other$orgId != null) : !this$orgId.equals(other$orgId)) && Objects.equals(zoneIds, other.zoneIds);
return false;
Object this$orgName = getOrgName(), other$orgName = other.getOrgName();
if ((this$orgName == null) ? (other$orgName != null) : !this$orgName.equals(other$orgName))
return false;
Object this$labelId = getLabelId(), other$labelId = other.getLabelId();
if ((this$labelId == null) ? (other$labelId != null) : !this$labelId.equals(other$labelId))
return false;
Object this$labelName = getLabelName(), other$labelName = other.getLabelName();
if ((this$labelName == null) ? (other$labelName != null) : !this$labelName.equals(other$labelName))
return false;
Object this$personId = getPersonId(), other$personId = other.getPersonId();
if ((this$personId == null) ? (other$personId != null) : !this$personId.equals(other$personId))
return false;
Object<String> this$zoneIds = (Object<String>)getZoneIds(), other$zoneIds = (Object<String>)other.getZoneIds();
return !((this$zoneIds == null) ? (other$zoneIds != null) : !this$zoneIds.equals(other$zoneIds));
} }
protected boolean canEqual(Object other) { protected boolean canEqual(Object other) {
@@ -75,22 +63,7 @@ public class AcsRestructureBindingForm implements Serializable {
} }
public int hashCode() { public int hashCode() {
int PRIME = 59; return Objects.hash(parentId, orgId, orgName, labelId, labelName, personId, zoneIds);
result = 1;
Object $parentId = getParentId();
result = result * 59 + (($parentId == null) ? 43 : $parentId.hashCode());
Object $orgId = getOrgId();
result = result * 59 + (($orgId == null) ? 43 : $orgId.hashCode());
Object $orgName = getOrgName();
result = result * 59 + (($orgName == null) ? 43 : $orgName.hashCode());
Object $labelId = getLabelId();
result = result * 59 + (($labelId == null) ? 43 : $labelId.hashCode());
Object $labelName = getLabelName();
result = result * 59 + (($labelName == null) ? 43 : $labelName.hashCode());
Object $personId = getPersonId();
result = result * 59 + (($personId == null) ? 43 : $personId.hashCode());
Object<String> $zoneIds = (Object<String>)getZoneIds();
return result * 59 + (($zoneIds == null) ? 43 : $zoneIds.hashCode());
} }
public String toString() { public String toString() {
@@ -2,6 +2,7 @@ package cn.cloudwalk.elevator.handler.device.form;
import java.io.Serializable; import java.io.Serializable;
import java.util.List; import java.util.List;
import java.util.Objects;
public class AcsRestructureQueryForm implements Serializable { public class AcsRestructureQueryForm implements Serializable {
private String orgId; private String orgId;
@@ -36,31 +37,19 @@ public class AcsRestructureQueryForm implements Serializable {
} }
public boolean equals(Object o) { public boolean equals(Object o) {
if (o == this) if (o == this) {
return true; return true;
if (!(o instanceof AcsRestructureQueryForm)) }
if (!(o instanceof AcsRestructureQueryForm)) {
return false; return false;
}
AcsRestructureQueryForm other = (AcsRestructureQueryForm)o; AcsRestructureQueryForm other = (AcsRestructureQueryForm)o;
if (!other.canEqual(this)) if (!other.canEqual(this)) {
return false; return false;
Object this$orgId = getOrgId(), other$orgId = other.getOrgId(); }
if ((this$orgId == null) ? (other$orgId != null) : !this$orgId.equals(other$orgId)) return Objects.equals(orgId, other.orgId) && Objects.equals(labelId, other.labelId)
return false; && Objects.equals(labelIds, other.labelIds) && Objects.equals(personId, other.personId)
Object this$labelId = getLabelId(), other$labelId = other.getLabelId(); && Objects.equals(zoneId, other.zoneId) && Objects.equals(businessId, other.businessId);
if ((this$labelId == null) ? (other$labelId != null) : !this$labelId.equals(other$labelId))
return false;
Object<String> this$labelIds = (Object<String>)getLabelIds(),
other$labelIds = (Object<String>)other.getLabelIds();
if ((this$labelIds == null) ? (other$labelIds != null) : !this$labelIds.equals(other$labelIds))
return false;
Object this$personId = getPersonId(), other$personId = other.getPersonId();
if ((this$personId == null) ? (other$personId != null) : !this$personId.equals(other$personId))
return false;
Object this$zoneId = getZoneId(), other$zoneId = other.getZoneId();
if ((this$zoneId == null) ? (other$zoneId != null) : !this$zoneId.equals(other$zoneId))
return false;
Object this$businessId = getBusinessId(), other$businessId = other.getBusinessId();
return !((this$businessId == null) ? (other$businessId != null) : !this$businessId.equals(other$businessId));
} }
protected boolean canEqual(Object other) { protected boolean canEqual(Object other) {
@@ -68,20 +57,7 @@ public class AcsRestructureQueryForm implements Serializable {
} }
public int hashCode() { public int hashCode() {
int PRIME = 59; return Objects.hash(orgId, labelId, labelIds, personId, zoneId, businessId);
result = 1;
Object $orgId = getOrgId();
result = result * 59 + (($orgId == null) ? 43 : $orgId.hashCode());
Object $labelId = getLabelId();
result = result * 59 + (($labelId == null) ? 43 : $labelId.hashCode());
Object<String> $labelIds = (Object<String>)getLabelIds();
result = result * 59 + (($labelIds == null) ? 43 : $labelIds.hashCode());
Object $personId = getPersonId();
result = result * 59 + (($personId == null) ? 43 : $personId.hashCode());
Object $zoneId = getZoneId();
result = result * 59 + (($zoneId == null) ? 43 : $zoneId.hashCode());
Object $businessId = getBusinessId();
return result * 59 + (($businessId == null) ? 43 : $businessId.hashCode());
} }
public String toString() { public String toString() {
@@ -2,6 +2,7 @@ package cn.cloudwalk.elevator.person.form;
import java.io.Serializable; import java.io.Serializable;
import java.util.List; import java.util.List;
import java.util.Objects;
public class AcsPersonAddVisitorForm implements Serializable { public class AcsPersonAddVisitorForm implements Serializable {
private static final long serialVersionUID = 7916140658162290825L; private static final long serialVersionUID = 7916140658162290825L;
@@ -32,30 +33,19 @@ public class AcsPersonAddVisitorForm implements Serializable {
} }
public boolean equals(Object o) { public boolean equals(Object o) {
if (o == this) if (o == this) {
return true; return true;
if (!(o instanceof AcsPersonAddVisitorForm)) }
if (!(o instanceof AcsPersonAddVisitorForm)) {
return false; return false;
}
AcsPersonAddVisitorForm other = (AcsPersonAddVisitorForm)o; AcsPersonAddVisitorForm other = (AcsPersonAddVisitorForm)o;
if (!other.canEqual(this)) if (!other.canEqual(this)) {
return false; return false;
Object this$visitorId = getVisitorId(), other$visitorId = other.getVisitorId(); }
if ((this$visitorId == null) ? (other$visitorId != null) : !this$visitorId.equals(other$visitorId)) return Objects.equals(visitorId, other.visitorId) && Objects.equals(personId, other.personId)
return false; && Objects.equals(begVisitorTime, other.begVisitorTime) && Objects.equals(endVisitorTime, other.endVisitorTime)
Object this$personId = getPersonId(), other$personId = other.getPersonId(); && Objects.equals(floorIds, other.floorIds);
if ((this$personId == null) ? (other$personId != null) : !this$personId.equals(other$personId))
return false;
Object this$begVisitorTime = getBegVisitorTime(), other$begVisitorTime = other.getBegVisitorTime();
if ((this$begVisitorTime == null) ? (other$begVisitorTime != null)
: !this$begVisitorTime.equals(other$begVisitorTime))
return false;
Object this$endVisitorTime = getEndVisitorTime(), other$endVisitorTime = other.getEndVisitorTime();
if ((this$endVisitorTime == null) ? (other$endVisitorTime != null)
: !this$endVisitorTime.equals(other$endVisitorTime))
return false;
Object<String> this$floorIds = (Object<String>)getFloorIds(),
other$floorIds = (Object<String>)other.getFloorIds();
return !((this$floorIds == null) ? (other$floorIds != null) : !this$floorIds.equals(other$floorIds));
} }
protected boolean canEqual(Object other) { protected boolean canEqual(Object other) {
@@ -63,18 +53,7 @@ public class AcsPersonAddVisitorForm implements Serializable {
} }
public int hashCode() { public int hashCode() {
int PRIME = 59; return Objects.hash(visitorId, personId, begVisitorTime, endVisitorTime, floorIds);
result = 1;
Object $visitorId = getVisitorId();
result = result * 59 + (($visitorId == null) ? 43 : $visitorId.hashCode());
Object $personId = getPersonId();
result = result * 59 + (($personId == null) ? 43 : $personId.hashCode());
Object $begVisitorTime = getBegVisitorTime();
result = result * 59 + (($begVisitorTime == null) ? 43 : $begVisitorTime.hashCode());
Object $endVisitorTime = getEndVisitorTime();
result = result * 59 + (($endVisitorTime == null) ? 43 : $endVisitorTime.hashCode());
Object<String> $floorIds = (Object<String>)getFloorIds();
return result * 59 + (($floorIds == null) ? 43 : $floorIds.hashCode());
} }
public String toString() { public String toString() {
@@ -2,6 +2,7 @@ package cn.cloudwalk.elevator.person.form;
import java.io.Serializable; import java.io.Serializable;
import java.util.List; import java.util.List;
import java.util.Objects;
public class AcsPersonQueryForm implements Serializable { public class AcsPersonQueryForm implements Serializable {
private static final long serialVersionUID = -8830219133147503297L; private static final long serialVersionUID = -8830219133147503297L;
@@ -40,36 +41,20 @@ public class AcsPersonQueryForm implements Serializable {
} }
public boolean equals(Object o) { public boolean equals(Object o) {
if (o == this) if (o == this) {
return true; return true;
if (!(o instanceof AcsPersonQueryForm)) }
if (!(o instanceof AcsPersonQueryForm)) {
return false; return false;
}
AcsPersonQueryForm other = (AcsPersonQueryForm)o; AcsPersonQueryForm other = (AcsPersonQueryForm)o;
if (!other.canEqual(this)) if (!other.canEqual(this)) {
return false; return false;
Object this$parentId = getParentId(), other$parentId = other.getParentId(); }
if ((this$parentId == null) ? (other$parentId != null) : !this$parentId.equals(other$parentId)) return Objects.equals(parentId, other.parentId) && Objects.equals(zoneId, other.zoneId)
return false; && Objects.equals(personName, other.personName) && Objects.equals(organizationIds, other.organizationIds)
Object this$zoneId = getZoneId(), other$zoneId = other.getZoneId(); && Objects.equals(labelIds, other.labelIds) && Objects.equals(pageSize, other.pageSize)
if ((this$zoneId == null) ? (other$zoneId != null) : !this$zoneId.equals(other$zoneId)) && Objects.equals(pageNo, other.pageNo);
return false;
Object this$personName = getPersonName(), other$personName = other.getPersonName();
if ((this$personName == null) ? (other$personName != null) : !this$personName.equals(other$personName))
return false;
Object<String> this$organizationIds = (Object<String>)getOrganizationIds(),
other$organizationIds = (Object<String>)other.getOrganizationIds();
if ((this$organizationIds == null) ? (other$organizationIds != null)
: !this$organizationIds.equals(other$organizationIds))
return false;
Object<String> this$labelIds = (Object<String>)getLabelIds(),
other$labelIds = (Object<String>)other.getLabelIds();
if ((this$labelIds == null) ? (other$labelIds != null) : !this$labelIds.equals(other$labelIds))
return false;
Object this$pageSize = getPageSize(), other$pageSize = other.getPageSize();
if ((this$pageSize == null) ? (other$pageSize != null) : !this$pageSize.equals(other$pageSize))
return false;
Object this$pageNo = getPageNo(), other$pageNo = other.getPageNo();
return !((this$pageNo == null) ? (other$pageNo != null) : !this$pageNo.equals(other$pageNo));
} }
protected boolean canEqual(Object other) { protected boolean canEqual(Object other) {
@@ -77,22 +62,7 @@ public class AcsPersonQueryForm implements Serializable {
} }
public int hashCode() { public int hashCode() {
int PRIME = 59; return Objects.hash(parentId, zoneId, personName, organizationIds, labelIds, pageSize, pageNo);
result = 1;
Object $parentId = getParentId();
result = result * 59 + (($parentId == null) ? 43 : $parentId.hashCode());
Object $zoneId = getZoneId();
result = result * 59 + (($zoneId == null) ? 43 : $zoneId.hashCode());
Object $personName = getPersonName();
result = result * 59 + (($personName == null) ? 43 : $personName.hashCode());
Object<String> $organizationIds = (Object<String>)getOrganizationIds();
result = result * 59 + (($organizationIds == null) ? 43 : $organizationIds.hashCode());
Object<String> $labelIds = (Object<String>)getLabelIds();
result = result * 59 + (($labelIds == null) ? 43 : $labelIds.hashCode());
Object $pageSize = getPageSize();
result = result * 59 + (($pageSize == null) ? 43 : $pageSize.hashCode());
Object $pageNo = getPageNo();
return result * 59 + (($pageNo == null) ? 43 : $pageNo.hashCode());
} }
public String toString() { public String toString() {
@@ -2,6 +2,7 @@ package cn.cloudwalk.elevator.person.form;
import cn.cloudwalk.cloud.page.CloudwalkBasePageForm; import cn.cloudwalk.cloud.page.CloudwalkBasePageForm;
import java.io.Serializable; import java.io.Serializable;
import java.util.Objects;
public class PersonDetailQueryForm extends CloudwalkBasePageForm implements Serializable { public class PersonDetailQueryForm extends CloudwalkBasePageForm implements Serializable {
private static final long serialVersionUID = -8830219133147503297L; private static final long serialVersionUID = -8830219133147503297L;
@@ -27,24 +28,18 @@ public class PersonDetailQueryForm extends CloudwalkBasePageForm implements Seri
} }
public boolean equals(Object o) { public boolean equals(Object o) {
if (o == this) if (o == this) {
return true; return true;
if (!(o instanceof PersonDetailQueryForm)) }
if (!(o instanceof PersonDetailQueryForm)) {
return false; return false;
}
PersonDetailQueryForm other = (PersonDetailQueryForm)o; PersonDetailQueryForm other = (PersonDetailQueryForm)o;
if (!other.canEqual(this)) if (!other.canEqual(this)) {
return false; return false;
Object this$parentId = getParentId(), other$parentId = other.getParentId(); }
if ((this$parentId == null) ? (other$parentId != null) : !this$parentId.equals(other$parentId)) return Objects.equals(parentId, other.parentId) && Objects.equals(zoneId, other.zoneId)
return false; && Objects.equals(ruleId, other.ruleId) && Objects.equals(personName, other.personName);
Object this$zoneId = getZoneId(), other$zoneId = other.getZoneId();
if ((this$zoneId == null) ? (other$zoneId != null) : !this$zoneId.equals(other$zoneId))
return false;
Object this$ruleId = getRuleId(), other$ruleId = other.getRuleId();
if ((this$ruleId == null) ? (other$ruleId != null) : !this$ruleId.equals(other$ruleId))
return false;
Object this$personName = getPersonName(), other$personName = other.getPersonName();
return !((this$personName == null) ? (other$personName != null) : !this$personName.equals(other$personName));
} }
protected boolean canEqual(Object other) { protected boolean canEqual(Object other) {
@@ -52,16 +47,7 @@ public class PersonDetailQueryForm extends CloudwalkBasePageForm implements Seri
} }
public int hashCode() { public int hashCode() {
int PRIME = 59; return Objects.hash(parentId, zoneId, ruleId, personName);
result = 1;
Object $parentId = getParentId();
result = result * 59 + (($parentId == null) ? 43 : $parentId.hashCode());
Object $zoneId = getZoneId();
result = result * 59 + (($zoneId == null) ? 43 : $zoneId.hashCode());
Object $ruleId = getRuleId();
result = result * 59 + (($ruleId == null) ? 43 : $ruleId.hashCode());
Object $personName = getPersonName();
return result * 59 + (($personName == null) ? 43 : $personName.hashCode());
} }
public String toString() { public String toString() {