mirror of
https://github.com/hpd840321/starRiverProperty.git
synced 2026-06-11 17:30:29 +08:00
feat: add service config templates and extraction script
Former-commit-id: 1de24b7eb79676d1aba9d799a58c5a753290cf52
This commit is contained in:
+15
@@ -0,0 +1,15 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package cn.cloudwalk.common.ninca.visitor.annotation;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
@Target(value={ElementType.FIELD})
|
||||
@Retention(value=RetentionPolicy.RUNTIME)
|
||||
public @interface DavinciPic {
|
||||
}
|
||||
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package cn.cloudwalk.common.ninca.visitor.annotation;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
@Target(value={ElementType.FIELD})
|
||||
@Retention(value=RetentionPolicy.RUNTIME)
|
||||
public @interface DavinciPicObj {
|
||||
}
|
||||
|
||||
+28
@@ -0,0 +1,28 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package cn.cloudwalk.common.ninca.visitor.annotation;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
@Retention(value=RetentionPolicy.RUNTIME)
|
||||
@Target(value={ElementType.FIELD})
|
||||
public @interface ExcelAttribute {
|
||||
public String name();
|
||||
|
||||
public String column() default "";
|
||||
|
||||
public String[] combo() default {};
|
||||
|
||||
public boolean isExport() default true;
|
||||
|
||||
public boolean isMark() default false;
|
||||
|
||||
public boolean isDate() default false;
|
||||
|
||||
public boolean isPic() default false;
|
||||
}
|
||||
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package cn.cloudwalk.common.ninca.visitor.annotation;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
@Retention(value=RetentionPolicy.RUNTIME)
|
||||
@Target(value={ElementType.FIELD})
|
||||
public @interface ExcelBytesAttribute {
|
||||
public String pathField() default "";
|
||||
}
|
||||
|
||||
+44
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.cloud.entity.CloudwalkBaseTimes
|
||||
*/
|
||||
package cn.cloudwalk.common.ninca.visitor.bean.config.dto;
|
||||
|
||||
import cn.cloudwalk.cloud.entity.CloudwalkBaseTimes;
|
||||
import java.io.Serializable;
|
||||
|
||||
public class VisitorConfigAddDto
|
||||
extends CloudwalkBaseTimes
|
||||
implements Serializable {
|
||||
private static final long serialVersionUID = -4423428755486675591L;
|
||||
private String businessId;
|
||||
private String configKey;
|
||||
private String configValue;
|
||||
|
||||
public String getBusinessId() {
|
||||
return this.businessId;
|
||||
}
|
||||
|
||||
public void setBusinessId(String businessId) {
|
||||
this.businessId = businessId;
|
||||
}
|
||||
|
||||
public String getConfigKey() {
|
||||
return this.configKey;
|
||||
}
|
||||
|
||||
public void setConfigKey(String configKey) {
|
||||
this.configKey = configKey;
|
||||
}
|
||||
|
||||
public String getConfigValue() {
|
||||
return this.configValue;
|
||||
}
|
||||
|
||||
public void setConfigValue(String configValue) {
|
||||
this.configValue = configValue;
|
||||
}
|
||||
}
|
||||
|
||||
+44
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.cloud.entity.CloudwalkBaseTimes
|
||||
*/
|
||||
package cn.cloudwalk.common.ninca.visitor.bean.config.dto;
|
||||
|
||||
import cn.cloudwalk.cloud.entity.CloudwalkBaseTimes;
|
||||
import java.io.Serializable;
|
||||
|
||||
public class VisitorConfigEditDto
|
||||
extends CloudwalkBaseTimes
|
||||
implements Serializable {
|
||||
private static final long serialVersionUID = 1045796970407392397L;
|
||||
private String businessId;
|
||||
private String configKey;
|
||||
private String configValue;
|
||||
|
||||
public String getBusinessId() {
|
||||
return this.businessId;
|
||||
}
|
||||
|
||||
public void setBusinessId(String businessId) {
|
||||
this.businessId = businessId;
|
||||
}
|
||||
|
||||
public String getConfigKey() {
|
||||
return this.configKey;
|
||||
}
|
||||
|
||||
public void setConfigKey(String configKey) {
|
||||
this.configKey = configKey;
|
||||
}
|
||||
|
||||
public String getConfigValue() {
|
||||
return this.configValue;
|
||||
}
|
||||
|
||||
public void setConfigValue(String configValue) {
|
||||
this.configValue = configValue;
|
||||
}
|
||||
}
|
||||
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package cn.cloudwalk.common.ninca.visitor.bean.config.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class VisitorConfigQueryDto
|
||||
implements Serializable {
|
||||
private static final long serialVersionUID = -5075530962585140299L;
|
||||
private String id;
|
||||
private String businessId;
|
||||
private String configKey;
|
||||
|
||||
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 getConfigKey() {
|
||||
return this.configKey;
|
||||
}
|
||||
|
||||
public void setConfigKey(String configKey) {
|
||||
this.configKey = configKey;
|
||||
}
|
||||
}
|
||||
|
||||
+44
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.cloud.entity.CloudwalkBaseTimes
|
||||
*/
|
||||
package cn.cloudwalk.common.ninca.visitor.bean.config.dto;
|
||||
|
||||
import cn.cloudwalk.cloud.entity.CloudwalkBaseTimes;
|
||||
import java.io.Serializable;
|
||||
|
||||
public class VisitorConfigResultDto
|
||||
extends CloudwalkBaseTimes
|
||||
implements Serializable {
|
||||
private static final long serialVersionUID = 3354013387165730787L;
|
||||
private String businessId;
|
||||
private String configKey;
|
||||
private String configValue;
|
||||
|
||||
public String getBusinessId() {
|
||||
return this.businessId;
|
||||
}
|
||||
|
||||
public void setBusinessId(String businessId) {
|
||||
this.businessId = businessId;
|
||||
}
|
||||
|
||||
public String getConfigKey() {
|
||||
return this.configKey;
|
||||
}
|
||||
|
||||
public void setConfigKey(String configKey) {
|
||||
this.configKey = configKey;
|
||||
}
|
||||
|
||||
public String getConfigValue() {
|
||||
return this.configValue;
|
||||
}
|
||||
|
||||
public void setConfigValue(String configValue) {
|
||||
this.configValue = configValue;
|
||||
}
|
||||
}
|
||||
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package cn.cloudwalk.common.ninca.visitor.bean.davinci.file;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
public class FileRemoveDTO
|
||||
implements Serializable {
|
||||
private static final long serialVersionUID = -7578616221819968297L;
|
||||
private List<String> fileList;
|
||||
|
||||
public List<String> getFileList() {
|
||||
return this.fileList;
|
||||
}
|
||||
|
||||
public void setFileList(List<String> fileList) {
|
||||
this.fileList = fileList;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "FileRemoveDTO{fileList=" + this.fileList + '}';
|
||||
}
|
||||
}
|
||||
|
||||
+40
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.cloud.entity.CloudwalkBaseTimes
|
||||
*/
|
||||
package cn.cloudwalk.common.ninca.visitor.bean.device.dto;
|
||||
|
||||
import cn.cloudwalk.cloud.entity.CloudwalkBaseTimes;
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
public class DeviceDefaultDeleteDTO
|
||||
extends CloudwalkBaseTimes
|
||||
implements Serializable {
|
||||
private static final long serialVersionUID = 6231865949336237802L;
|
||||
private String businessId;
|
||||
private List<String> deviceIds;
|
||||
|
||||
public String getBusinessId() {
|
||||
return this.businessId;
|
||||
}
|
||||
|
||||
public void setBusinessId(String businessId) {
|
||||
this.businessId = businessId;
|
||||
}
|
||||
|
||||
public List<String> getDeviceIds() {
|
||||
return this.deviceIds;
|
||||
}
|
||||
|
||||
public void setDeviceIds(List<String> deviceIds) {
|
||||
this.deviceIds = deviceIds;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "DeviceDefaultDeleteDTO{businessId='" + this.businessId + '\'' + ", deviceIds=" + this.deviceIds + '}';
|
||||
}
|
||||
}
|
||||
|
||||
+25
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package cn.cloudwalk.common.ninca.visitor.bean.device.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class DeviceDefaultGetsDTO
|
||||
implements Serializable {
|
||||
private static final long serialVersionUID = -758066469035953050L;
|
||||
private String businessId;
|
||||
|
||||
public String getBusinessId() {
|
||||
return this.businessId;
|
||||
}
|
||||
|
||||
public void setBusinessId(String businessId) {
|
||||
this.businessId = businessId;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "DeviceDefaultGetsDTO{businessId='" + this.businessId + '\'' + '}';
|
||||
}
|
||||
}
|
||||
|
||||
+48
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.cloud.entity.CloudwalkBaseTimes
|
||||
*/
|
||||
package cn.cloudwalk.common.ninca.visitor.bean.device.dto;
|
||||
|
||||
import cn.cloudwalk.cloud.entity.CloudwalkBaseTimes;
|
||||
import java.io.Serializable;
|
||||
|
||||
public class DeviceDefaultNewDTO
|
||||
extends CloudwalkBaseTimes
|
||||
implements Serializable {
|
||||
private static final long serialVersionUID = 6231865949336237802L;
|
||||
private String id;
|
||||
private String businessId;
|
||||
private String deviceId;
|
||||
|
||||
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 toString() {
|
||||
return "DeviceDefaultNewDTO{id='" + this.id + '\'' + ", businessId='" + this.businessId + '\'' + ", deviceId='" + this.deviceId + '\'' + '}';
|
||||
}
|
||||
}
|
||||
|
||||
+48
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.cloud.entity.CloudwalkBaseTimes
|
||||
*/
|
||||
package cn.cloudwalk.common.ninca.visitor.bean.device.dto;
|
||||
|
||||
import cn.cloudwalk.cloud.entity.CloudwalkBaseTimes;
|
||||
import java.io.Serializable;
|
||||
|
||||
public class DeviceDefaultResultDTO
|
||||
extends CloudwalkBaseTimes
|
||||
implements Serializable {
|
||||
private static final long serialVersionUID = 6231865949336237802L;
|
||||
private String id;
|
||||
private String businessId;
|
||||
private String deviceId;
|
||||
|
||||
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 toString() {
|
||||
return "DeviceDefaultResultDTO{id='" + this.id + '\'' + ", businessId='" + this.businessId + '\'' + ", deviceId='" + this.deviceId + '\'' + '}';
|
||||
}
|
||||
}
|
||||
|
||||
+30
@@ -0,0 +1,30 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package cn.cloudwalk.common.ninca.visitor.bean.device.dto;
|
||||
|
||||
public class DeviceImageStoreDeleteDTO {
|
||||
private String businessId;
|
||||
private String deviceId;
|
||||
|
||||
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 toString() {
|
||||
return "DeviceImageStoreQueryDTO{businessId='" + this.businessId + '\'' + ", deviceId='" + this.deviceId + '\'' + '}';
|
||||
}
|
||||
}
|
||||
|
||||
+57
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.cloud.entity.CloudwalkBaseTimes
|
||||
*/
|
||||
package cn.cloudwalk.common.ninca.visitor.bean.device.dto;
|
||||
|
||||
import cn.cloudwalk.cloud.entity.CloudwalkBaseTimes;
|
||||
import java.io.Serializable;
|
||||
|
||||
public class DeviceImageStoreNewDTO
|
||||
extends CloudwalkBaseTimes
|
||||
implements Serializable {
|
||||
private static final long serialVersionUID = 6231865949336237822L;
|
||||
private String id;
|
||||
private String businessId;
|
||||
private String deviceId;
|
||||
private String imageStoreId;
|
||||
|
||||
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 getImageStoreId() {
|
||||
return this.imageStoreId;
|
||||
}
|
||||
|
||||
public void setImageStoreId(String imageStoreId) {
|
||||
this.imageStoreId = imageStoreId;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "DeviceImageStoreNewDTO{id='" + this.id + '\'' + ", businessId='" + this.businessId + '\'' + ", deviceId='" + this.deviceId + '\'' + ", imageStoreId='" + this.imageStoreId + '\'' + '}';
|
||||
}
|
||||
}
|
||||
|
||||
+34
@@ -0,0 +1,34 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package cn.cloudwalk.common.ninca.visitor.bean.device.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class DeviceImageStoreQueryDTO
|
||||
implements Serializable {
|
||||
private static final long serialVersionUID = 6231865949336237842L;
|
||||
private String businessId;
|
||||
private String deviceId;
|
||||
|
||||
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 toString() {
|
||||
return "DeviceImageStoreQueryDTO{businessId='" + this.businessId + '\'' + ", deviceId='" + this.deviceId + '\'' + '}';
|
||||
}
|
||||
}
|
||||
|
||||
+66
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.cloud.entity.CloudwalkBaseTimes
|
||||
*/
|
||||
package cn.cloudwalk.common.ninca.visitor.bean.device.dto;
|
||||
|
||||
import cn.cloudwalk.cloud.entity.CloudwalkBaseTimes;
|
||||
import java.io.Serializable;
|
||||
|
||||
public class DeviceImageStoreResultDTO
|
||||
extends CloudwalkBaseTimes
|
||||
implements Serializable {
|
||||
private static final long serialVersionUID = 6231865949336237824L;
|
||||
private String id;
|
||||
private String businessId;
|
||||
private String deviceId;
|
||||
private String imageStoreId;
|
||||
private String createUserName;
|
||||
|
||||
public String getCreateUserName() {
|
||||
return this.createUserName;
|
||||
}
|
||||
|
||||
public void setCreateUserName(String createUserName) {
|
||||
this.createUserName = createUserName;
|
||||
}
|
||||
|
||||
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 getImageStoreId() {
|
||||
return this.imageStoreId;
|
||||
}
|
||||
|
||||
public void setImageStoreId(String imageStoreId) {
|
||||
this.imageStoreId = imageStoreId;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "DeviceImageStoreResultDTO{id='" + this.id + '\'' + ", businessId='" + this.businessId + '\'' + ", deviceId='" + this.deviceId + '\'' + ", imageStoreId='" + this.imageStoreId + '\'' + ", createUserName='" + this.createUserName + '\'' + '}';
|
||||
}
|
||||
}
|
||||
|
||||
+44
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package cn.cloudwalk.common.ninca.visitor.bean.device.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
public class VisitorDeviceDeleteDTO
|
||||
implements Serializable {
|
||||
private static final long serialVersionUID = 6231865949336237842L;
|
||||
private String businessId;
|
||||
private String visitorId;
|
||||
private List<String> deviceIds;
|
||||
|
||||
public String getBusinessId() {
|
||||
return this.businessId;
|
||||
}
|
||||
|
||||
public void setBusinessId(String businessId) {
|
||||
this.businessId = businessId;
|
||||
}
|
||||
|
||||
public String getVisitorId() {
|
||||
return this.visitorId;
|
||||
}
|
||||
|
||||
public void setVisitorId(String visitorId) {
|
||||
this.visitorId = visitorId;
|
||||
}
|
||||
|
||||
public List<String> getDeviceIds() {
|
||||
return this.deviceIds;
|
||||
}
|
||||
|
||||
public void setDeviceIds(List<String> deviceIds) {
|
||||
this.deviceIds = deviceIds;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "VisitorDeviceDeleteDTO{businessId='" + this.businessId + '\'' + ", visitorId='" + this.visitorId + '\'' + ", deviceIds=" + this.deviceIds + '}';
|
||||
}
|
||||
}
|
||||
|
||||
+43
@@ -0,0 +1,43 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package cn.cloudwalk.common.ninca.visitor.bean.device.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class VisitorDeviceGetsDTO
|
||||
implements Serializable {
|
||||
private static final long serialVersionUID = 6231865949336237842L;
|
||||
private String businessId;
|
||||
private String visitorId;
|
||||
private String deviceId;
|
||||
|
||||
public String getBusinessId() {
|
||||
return this.businessId;
|
||||
}
|
||||
|
||||
public void setBusinessId(String businessId) {
|
||||
this.businessId = businessId;
|
||||
}
|
||||
|
||||
public String getVisitorId() {
|
||||
return this.visitorId;
|
||||
}
|
||||
|
||||
public void setVisitorId(String visitorId) {
|
||||
this.visitorId = visitorId;
|
||||
}
|
||||
|
||||
public String getDeviceId() {
|
||||
return this.deviceId;
|
||||
}
|
||||
|
||||
public void setDeviceId(String deviceId) {
|
||||
this.deviceId = deviceId;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "VisitorDeviceGetsDTO{businessId='" + this.businessId + '\'' + ", visitorId='" + this.visitorId + '\'' + '}';
|
||||
}
|
||||
}
|
||||
|
||||
+57
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.cloud.entity.CloudwalkBaseTimes
|
||||
*/
|
||||
package cn.cloudwalk.common.ninca.visitor.bean.device.dto;
|
||||
|
||||
import cn.cloudwalk.cloud.entity.CloudwalkBaseTimes;
|
||||
import java.io.Serializable;
|
||||
|
||||
public class VisitorDeviceNewDTO
|
||||
extends CloudwalkBaseTimes
|
||||
implements Serializable {
|
||||
private static final long serialVersionUID = 6231865949336237822L;
|
||||
private String id;
|
||||
private String businessId;
|
||||
private String deviceId;
|
||||
private String visitorId;
|
||||
|
||||
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 getVisitorId() {
|
||||
return this.visitorId;
|
||||
}
|
||||
|
||||
public void setVisitorId(String visitorId) {
|
||||
this.visitorId = visitorId;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "VisitorDeviceNewDTO{id='" + this.id + '\'' + ", businessId='" + this.businessId + '\'' + ", deviceId='" + this.deviceId + '\'' + ", visitorId='" + this.visitorId + '\'' + '}';
|
||||
}
|
||||
}
|
||||
|
||||
+66
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.cloud.entity.CloudwalkBaseTimes
|
||||
*/
|
||||
package cn.cloudwalk.common.ninca.visitor.bean.device.dto;
|
||||
|
||||
import cn.cloudwalk.cloud.entity.CloudwalkBaseTimes;
|
||||
import java.io.Serializable;
|
||||
|
||||
public class VisitorDeviceResultDTO
|
||||
extends CloudwalkBaseTimes
|
||||
implements Serializable {
|
||||
private static final long serialVersionUID = 6231865949336237824L;
|
||||
private String id;
|
||||
private String businessId;
|
||||
private String deviceId;
|
||||
private String visitorId;
|
||||
private String createUserName;
|
||||
|
||||
public String getCreateUserName() {
|
||||
return this.createUserName;
|
||||
}
|
||||
|
||||
public void setCreateUserName(String createUserName) {
|
||||
this.createUserName = createUserName;
|
||||
}
|
||||
|
||||
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 getVisitorId() {
|
||||
return this.visitorId;
|
||||
}
|
||||
|
||||
public void setVisitorId(String visitorId) {
|
||||
this.visitorId = visitorId;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "VisitorDeviceResultDTO{id='" + this.id + '\'' + ", businessId='" + this.businessId + '\'' + ", deviceId='" + this.deviceId + '\'' + ", visitorId='" + this.visitorId + '\'' + ", createUserName='" + this.createUserName + '\'' + '}';
|
||||
}
|
||||
}
|
||||
|
||||
+95
@@ -0,0 +1,95 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.cloud.entity.CloudwalkBaseTimes
|
||||
*/
|
||||
package cn.cloudwalk.common.ninca.visitor.bean.importrecord.dto;
|
||||
|
||||
import cn.cloudwalk.cloud.entity.CloudwalkBaseTimes;
|
||||
import java.io.Serializable;
|
||||
|
||||
public class ImportDTO
|
||||
extends CloudwalkBaseTimes
|
||||
implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
private String id;
|
||||
private String businessId;
|
||||
private String fileName;
|
||||
private Integer execNum;
|
||||
private Integer execTotal;
|
||||
private String remark;
|
||||
private String createUserName;
|
||||
|
||||
public String getCreateUserName() {
|
||||
return this.createUserName;
|
||||
}
|
||||
|
||||
public void setCreateUserName(String createUserName) {
|
||||
this.createUserName = createUserName;
|
||||
}
|
||||
|
||||
public String getBusinessId() {
|
||||
return this.businessId;
|
||||
}
|
||||
|
||||
public void setBusinessId(String businessId) {
|
||||
this.businessId = businessId;
|
||||
}
|
||||
|
||||
public String getFileName() {
|
||||
return this.fileName;
|
||||
}
|
||||
|
||||
public void setFileName(String fileName) {
|
||||
this.fileName = fileName;
|
||||
}
|
||||
|
||||
public Integer getExecNum() {
|
||||
return this.execNum;
|
||||
}
|
||||
|
||||
public void setExecNum(Integer execNum) {
|
||||
this.execNum = execNum;
|
||||
}
|
||||
|
||||
public Integer getExecTotal() {
|
||||
return this.execTotal;
|
||||
}
|
||||
|
||||
public void setExecTotal(Integer execTotal) {
|
||||
this.execTotal = execTotal;
|
||||
}
|
||||
|
||||
public String getRemark() {
|
||||
return this.remark;
|
||||
}
|
||||
|
||||
public void setRemark(String remark) {
|
||||
this.remark = remark;
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append(this.getClass().getSimpleName());
|
||||
sb.append(" [");
|
||||
sb.append("Hash = ").append(this.hashCode());
|
||||
sb.append(", id=").append(this.id);
|
||||
sb.append(", businessId=").append(this.businessId);
|
||||
sb.append(", fileName=").append(this.fileName);
|
||||
sb.append(", execNum=").append(this.execNum);
|
||||
sb.append(", execTotal=").append(this.execTotal);
|
||||
sb.append(", remark=").append(this.remark);
|
||||
sb.append("]");
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
||||
|
||||
+61
@@ -0,0 +1,61 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package cn.cloudwalk.common.ninca.visitor.bean.importrecord.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class ImportQueryDTO
|
||||
implements Serializable {
|
||||
private static final long serialVersionUID = 1795322695737128894L;
|
||||
private String businessId;
|
||||
private Long startTime;
|
||||
private Long endTime;
|
||||
private String createUserName;
|
||||
private String createUserId;
|
||||
|
||||
public String getCreateUserId() {
|
||||
return this.createUserId;
|
||||
}
|
||||
|
||||
public void setCreateUserId(String createUserId) {
|
||||
this.createUserId = createUserId;
|
||||
}
|
||||
|
||||
public String getCreateUserName() {
|
||||
return this.createUserName;
|
||||
}
|
||||
|
||||
public void setCreateUserName(String createUserName) {
|
||||
this.createUserName = createUserName;
|
||||
}
|
||||
|
||||
public String getBusinessId() {
|
||||
return this.businessId;
|
||||
}
|
||||
|
||||
public void setBusinessId(String businessId) {
|
||||
this.businessId = businessId;
|
||||
}
|
||||
|
||||
public Long getStartTime() {
|
||||
return this.startTime;
|
||||
}
|
||||
|
||||
public void setStartTime(Long startTime) {
|
||||
this.startTime = startTime;
|
||||
}
|
||||
|
||||
public Long getEndTime() {
|
||||
return this.endTime;
|
||||
}
|
||||
|
||||
public void setEndTime(Long endTime) {
|
||||
this.endTime = endTime;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "ImportQueryDTO{businessId='" + this.businessId + '\'' + ", startTime=" + this.startTime + ", endTime=" + this.endTime + ", createUserName='" + this.createUserName + '\'' + '}';
|
||||
}
|
||||
}
|
||||
|
||||
+76
@@ -0,0 +1,76 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.cloud.entity.CloudwalkBaseTimes
|
||||
*/
|
||||
package cn.cloudwalk.common.ninca.visitor.bean.importrecord.dto;
|
||||
|
||||
import cn.cloudwalk.cloud.entity.CloudwalkBaseTimes;
|
||||
import java.io.Serializable;
|
||||
|
||||
public class ImportRecordDTO
|
||||
extends CloudwalkBaseTimes
|
||||
implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
private String id;
|
||||
private String importId;
|
||||
private String info;
|
||||
private String keyWord;
|
||||
private Integer lineNum;
|
||||
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getImportId() {
|
||||
return this.importId;
|
||||
}
|
||||
|
||||
public void setImportId(String importId) {
|
||||
this.importId = importId;
|
||||
}
|
||||
|
||||
public String getInfo() {
|
||||
return this.info;
|
||||
}
|
||||
|
||||
public void setInfo(String info) {
|
||||
this.info = info;
|
||||
}
|
||||
|
||||
public String getKeyWord() {
|
||||
return this.keyWord;
|
||||
}
|
||||
|
||||
public void setKeyWord(String keyWord) {
|
||||
this.keyWord = keyWord;
|
||||
}
|
||||
|
||||
public Integer getLineNum() {
|
||||
return this.lineNum;
|
||||
}
|
||||
|
||||
public void setLineNum(Integer lineNum) {
|
||||
this.lineNum = lineNum;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append(this.getClass().getSimpleName());
|
||||
sb.append(" [");
|
||||
sb.append("Hash = ").append(this.hashCode());
|
||||
sb.append(", id=").append(this.id);
|
||||
sb.append(", importId=").append(this.importId);
|
||||
sb.append(", info=").append(this.info);
|
||||
sb.append(", keyWord=").append(this.keyWord);
|
||||
sb.append(", lineNum=").append(this.lineNum);
|
||||
sb.append("]");
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
||||
|
||||
+34
@@ -0,0 +1,34 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package cn.cloudwalk.common.ninca.visitor.bean.importrecord.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class ImportRecordQueryDTO
|
||||
implements Serializable {
|
||||
private static final long serialVersionUID = 1795322695737128894L;
|
||||
private String importId;
|
||||
private String businessId;
|
||||
|
||||
public String getBusinessId() {
|
||||
return this.businessId;
|
||||
}
|
||||
|
||||
public void setBusinessId(String businessId) {
|
||||
this.businessId = businessId;
|
||||
}
|
||||
|
||||
public String getImportId() {
|
||||
return this.importId;
|
||||
}
|
||||
|
||||
public void setImportId(String importId) {
|
||||
this.importId = importId;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "ImportRecordQueryDTO{importId='" + this.importId + '\'' + ", businessId='" + this.businessId + '\'' + '}';
|
||||
}
|
||||
}
|
||||
|
||||
+58
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.cloud.entity.CloudwalkBaseTimes
|
||||
*/
|
||||
package cn.cloudwalk.common.ninca.visitor.bean.record;
|
||||
|
||||
import cn.cloudwalk.cloud.entity.CloudwalkBaseTimes;
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
public class VisitorRecordGetsDTO
|
||||
extends CloudwalkBaseTimes
|
||||
implements Serializable {
|
||||
private static final long serialVersionUID = 1804131333479059606L;
|
||||
private String businessId;
|
||||
private List<String> ids;
|
||||
private List<String> visitorIds;
|
||||
private Integer firstRecord;
|
||||
|
||||
public Integer getFirstRecord() {
|
||||
return this.firstRecord;
|
||||
}
|
||||
|
||||
public void setFirstRecord(Integer firstRecord) {
|
||||
this.firstRecord = firstRecord;
|
||||
}
|
||||
|
||||
public List<String> getVisitorIds() {
|
||||
return this.visitorIds;
|
||||
}
|
||||
|
||||
public void setVisitorIds(List<String> visitorIds) {
|
||||
this.visitorIds = visitorIds;
|
||||
}
|
||||
|
||||
public String getBusinessId() {
|
||||
return this.businessId;
|
||||
}
|
||||
|
||||
public void setBusinessId(String businessId) {
|
||||
this.businessId = businessId;
|
||||
}
|
||||
|
||||
public List<String> getIds() {
|
||||
return this.ids;
|
||||
}
|
||||
|
||||
public void setIds(List<String> ids) {
|
||||
this.ids = ids;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "VisitorRecordGetsDTO{businessId='" + this.businessId + '\'' + ", ids=" + this.ids + '}';
|
||||
}
|
||||
}
|
||||
|
||||
+309
@@ -0,0 +1,309 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.cloud.entity.CloudwalkBaseTimes
|
||||
*/
|
||||
package cn.cloudwalk.common.ninca.visitor.bean.record;
|
||||
|
||||
import cn.cloudwalk.cloud.entity.CloudwalkBaseTimes;
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
|
||||
public class VisitorRecordNewDTO
|
||||
extends CloudwalkBaseTimes
|
||||
implements Serializable {
|
||||
private String id;
|
||||
private String visitorId;
|
||||
private String visitorName;
|
||||
private String businessId;
|
||||
private String deviceId;
|
||||
private String deviceCode;
|
||||
private String deviceName;
|
||||
private String deviceAreaId;
|
||||
private String deviceAreaName;
|
||||
private String receiverId;
|
||||
private String receiverName;
|
||||
private Long signTime;
|
||||
private String signAddress;
|
||||
private String deviceTypeId;
|
||||
private String deviceTypeName;
|
||||
private String facePath;
|
||||
private String spotImgPath;
|
||||
private String panoramaPath;
|
||||
private BigDecimal score;
|
||||
private Integer status;
|
||||
private BigDecimal threshold;
|
||||
private Integer tumoverType;
|
||||
private String remark;
|
||||
private String deviceDistrictId;
|
||||
private String deviceDistrictName;
|
||||
private String deviceDistrictPath;
|
||||
private String deviceDistrictMergeName;
|
||||
private Integer firstRecord;
|
||||
private String openDoorType;
|
||||
private String srcFloor;
|
||||
private String destFloor;
|
||||
private String dispatchElevatorNo;
|
||||
|
||||
public String getOpenDoorType() {
|
||||
return this.openDoorType;
|
||||
}
|
||||
|
||||
public void setOpenDoorType(String openDoorType) {
|
||||
this.openDoorType = openDoorType;
|
||||
}
|
||||
|
||||
public String getSrcFloor() {
|
||||
return this.srcFloor;
|
||||
}
|
||||
|
||||
public void setSrcFloor(String srcFloor) {
|
||||
this.srcFloor = srcFloor;
|
||||
}
|
||||
|
||||
public String getDestFloor() {
|
||||
return this.destFloor;
|
||||
}
|
||||
|
||||
public void setDestFloor(String destFloor) {
|
||||
this.destFloor = destFloor;
|
||||
}
|
||||
|
||||
public String getDispatchElevatorNo() {
|
||||
return this.dispatchElevatorNo;
|
||||
}
|
||||
|
||||
public void setDispatchElevatorNo(String dispatchElevatorNo) {
|
||||
this.dispatchElevatorNo = dispatchElevatorNo;
|
||||
}
|
||||
|
||||
public Integer getFirstRecord() {
|
||||
return this.firstRecord;
|
||||
}
|
||||
|
||||
public void setFirstRecord(Integer firstRecord) {
|
||||
this.firstRecord = firstRecord;
|
||||
}
|
||||
|
||||
public String getDeviceDistrictId() {
|
||||
return this.deviceDistrictId;
|
||||
}
|
||||
|
||||
public void setDeviceDistrictId(String deviceDistrictId) {
|
||||
this.deviceDistrictId = deviceDistrictId;
|
||||
}
|
||||
|
||||
public String getDeviceDistrictName() {
|
||||
return this.deviceDistrictName;
|
||||
}
|
||||
|
||||
public void setDeviceDistrictName(String deviceDistrictName) {
|
||||
this.deviceDistrictName = deviceDistrictName;
|
||||
}
|
||||
|
||||
public String getDeviceDistrictPath() {
|
||||
return this.deviceDistrictPath;
|
||||
}
|
||||
|
||||
public void setDeviceDistrictPath(String deviceDistrictPath) {
|
||||
this.deviceDistrictPath = deviceDistrictPath;
|
||||
}
|
||||
|
||||
public String getDeviceDistrictMergeName() {
|
||||
return this.deviceDistrictMergeName;
|
||||
}
|
||||
|
||||
public void setDeviceDistrictMergeName(String deviceDistrictMergeName) {
|
||||
this.deviceDistrictMergeName = deviceDistrictMergeName;
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getVisitorId() {
|
||||
return this.visitorId;
|
||||
}
|
||||
|
||||
public void setVisitorId(String visitorId) {
|
||||
this.visitorId = visitorId;
|
||||
}
|
||||
|
||||
public String getVisitorName() {
|
||||
return this.visitorName;
|
||||
}
|
||||
|
||||
public void setVisitorName(String visitorName) {
|
||||
this.visitorName = visitorName;
|
||||
}
|
||||
|
||||
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 getDeviceAreaId() {
|
||||
return this.deviceAreaId;
|
||||
}
|
||||
|
||||
public void setDeviceAreaId(String deviceAreaId) {
|
||||
this.deviceAreaId = deviceAreaId;
|
||||
}
|
||||
|
||||
public String getDeviceAreaName() {
|
||||
return this.deviceAreaName;
|
||||
}
|
||||
|
||||
public void setDeviceAreaName(String deviceAreaName) {
|
||||
this.deviceAreaName = deviceAreaName;
|
||||
}
|
||||
|
||||
public String getReceiverId() {
|
||||
return this.receiverId;
|
||||
}
|
||||
|
||||
public void setReceiverId(String receiverId) {
|
||||
this.receiverId = receiverId;
|
||||
}
|
||||
|
||||
public String getReceiverName() {
|
||||
return this.receiverName;
|
||||
}
|
||||
|
||||
public void setReceiverName(String receiverName) {
|
||||
this.receiverName = receiverName;
|
||||
}
|
||||
|
||||
public Long getSignTime() {
|
||||
return this.signTime;
|
||||
}
|
||||
|
||||
public void setSignTime(Long signTime) {
|
||||
this.signTime = signTime;
|
||||
}
|
||||
|
||||
public String getSignAddress() {
|
||||
return this.signAddress;
|
||||
}
|
||||
|
||||
public void setSignAddress(String signAddress) {
|
||||
this.signAddress = signAddress;
|
||||
}
|
||||
|
||||
public String getDeviceTypeId() {
|
||||
return this.deviceTypeId;
|
||||
}
|
||||
|
||||
public void setDeviceTypeId(String deviceTypeId) {
|
||||
this.deviceTypeId = deviceTypeId;
|
||||
}
|
||||
|
||||
public String getDeviceTypeName() {
|
||||
return this.deviceTypeName;
|
||||
}
|
||||
|
||||
public void setDeviceTypeName(String deviceTypeName) {
|
||||
this.deviceTypeName = deviceTypeName;
|
||||
}
|
||||
|
||||
public String getFacePath() {
|
||||
return this.facePath;
|
||||
}
|
||||
|
||||
public void setFacePath(String facePath) {
|
||||
this.facePath = facePath;
|
||||
}
|
||||
|
||||
public String getSpotImgPath() {
|
||||
return this.spotImgPath;
|
||||
}
|
||||
|
||||
public void setSpotImgPath(String spotImgPath) {
|
||||
this.spotImgPath = spotImgPath;
|
||||
}
|
||||
|
||||
public String getPanoramaPath() {
|
||||
return this.panoramaPath;
|
||||
}
|
||||
|
||||
public void setPanoramaPath(String panoramaPath) {
|
||||
this.panoramaPath = panoramaPath;
|
||||
}
|
||||
|
||||
public BigDecimal getScore() {
|
||||
return this.score;
|
||||
}
|
||||
|
||||
public void setScore(BigDecimal score) {
|
||||
this.score = score;
|
||||
}
|
||||
|
||||
public Integer getStatus() {
|
||||
return this.status;
|
||||
}
|
||||
|
||||
public void setStatus(Integer status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public BigDecimal getThreshold() {
|
||||
return this.threshold;
|
||||
}
|
||||
|
||||
public void setThreshold(BigDecimal threshold) {
|
||||
this.threshold = threshold;
|
||||
}
|
||||
|
||||
public Integer getTumoverType() {
|
||||
return this.tumoverType;
|
||||
}
|
||||
|
||||
public void setTumoverType(Integer tumoverType) {
|
||||
this.tumoverType = tumoverType;
|
||||
}
|
||||
|
||||
public String getRemark() {
|
||||
return this.remark;
|
||||
}
|
||||
|
||||
public void setRemark(String remark) {
|
||||
this.remark = remark;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "VisitorRecordNewDTO{id='" + this.id + '\'' + ", visitorId='" + this.visitorId + '\'' + ", visitorName='" + this.visitorName + '\'' + ", businessId='" + this.businessId + '\'' + ", deviceId='" + this.deviceId + '\'' + ", deviceCode='" + this.deviceCode + '\'' + ", deviceName='" + this.deviceName + '\'' + ", deviceAreaId='" + this.deviceAreaId + '\'' + ", deviceAreaName='" + this.deviceAreaName + '\'' + ", receiverId='" + this.receiverId + '\'' + ", receiverName='" + this.receiverName + '\'' + ", signTime=" + this.signTime + ", signAddress='" + this.signAddress + '\'' + ", deviceTypeId='" + this.deviceTypeId + '\'' + ", deviceTypeName='" + this.deviceTypeName + '\'' + ", facePath='" + this.facePath + '\'' + ", spotImgPath='" + this.spotImgPath + '\'' + ", panoramaPath='" + this.panoramaPath + '\'' + ", score=" + this.score + ", status=" + this.status + ", threshold=" + this.threshold + ", tumoverType=" + this.tumoverType + ", remark='" + this.remark + '\'' + '}';
|
||||
}
|
||||
}
|
||||
|
||||
+112
@@ -0,0 +1,112 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.cloud.page.CloudwalkBasePageForm
|
||||
*/
|
||||
package cn.cloudwalk.common.ninca.visitor.bean.record;
|
||||
|
||||
import cn.cloudwalk.cloud.page.CloudwalkBasePageForm;
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
public class VisitorRecordQueryDTO
|
||||
extends CloudwalkBasePageForm
|
||||
implements Serializable {
|
||||
private static final long serialVersionUID = 2021833395409139444L;
|
||||
private String businessId;
|
||||
private String visitorId;
|
||||
private List<String> visitorIds;
|
||||
private String visitorName;
|
||||
private List<String> deviceIds;
|
||||
private Long startSignTime;
|
||||
private Long endSignTime;
|
||||
private String receiverName;
|
||||
private Integer firstRecord;
|
||||
private String receiverId;
|
||||
|
||||
public List<String> getVisitorIds() {
|
||||
return this.visitorIds;
|
||||
}
|
||||
|
||||
public void setVisitorIds(List<String> visitorIds) {
|
||||
this.visitorIds = visitorIds;
|
||||
}
|
||||
|
||||
public String getReceiverId() {
|
||||
return this.receiverId;
|
||||
}
|
||||
|
||||
public void setReceiverId(String receiverId) {
|
||||
this.receiverId = receiverId;
|
||||
}
|
||||
|
||||
public Integer getFirstRecord() {
|
||||
return this.firstRecord;
|
||||
}
|
||||
|
||||
public void setFirstRecord(Integer firstRecord) {
|
||||
this.firstRecord = firstRecord;
|
||||
}
|
||||
|
||||
public String getBusinessId() {
|
||||
return this.businessId;
|
||||
}
|
||||
|
||||
public void setBusinessId(String businessId) {
|
||||
this.businessId = businessId;
|
||||
}
|
||||
|
||||
public Long getStartSignTime() {
|
||||
return this.startSignTime;
|
||||
}
|
||||
|
||||
public void setStartSignTime(Long startSignTime) {
|
||||
this.startSignTime = startSignTime;
|
||||
}
|
||||
|
||||
public Long getEndSignTime() {
|
||||
return this.endSignTime;
|
||||
}
|
||||
|
||||
public void setEndSignTime(Long endSignTime) {
|
||||
this.endSignTime = endSignTime;
|
||||
}
|
||||
|
||||
public String getReceiverName() {
|
||||
return this.receiverName;
|
||||
}
|
||||
|
||||
public void setReceiverName(String receiverName) {
|
||||
this.receiverName = receiverName;
|
||||
}
|
||||
|
||||
public List<String> getDeviceIds() {
|
||||
return this.deviceIds;
|
||||
}
|
||||
|
||||
public void setDeviceIds(List<String> deviceIds) {
|
||||
this.deviceIds = deviceIds;
|
||||
}
|
||||
|
||||
public String getVisitorId() {
|
||||
return this.visitorId;
|
||||
}
|
||||
|
||||
public void setVisitorId(String visitorId) {
|
||||
this.visitorId = visitorId;
|
||||
}
|
||||
|
||||
public String getVisitorName() {
|
||||
return this.visitorName;
|
||||
}
|
||||
|
||||
public void setVisitorName(String visitorName) {
|
||||
this.visitorName = visitorName;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "VisitorRecordQueryDTO{businessId='" + this.businessId + '\'' + ", visitorId='" + this.visitorId + '\'' + ", visitorName='" + this.visitorName + '\'' + ", deviceIds=" + this.deviceIds + ", startSignTime=" + this.startSignTime + ", endSignTime=" + this.endSignTime + ", receiverName='" + this.receiverName + '\'' + '}';
|
||||
}
|
||||
}
|
||||
|
||||
+309
@@ -0,0 +1,309 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.cloud.entity.CloudwalkBaseTimes
|
||||
*/
|
||||
package cn.cloudwalk.common.ninca.visitor.bean.record;
|
||||
|
||||
import cn.cloudwalk.cloud.entity.CloudwalkBaseTimes;
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
|
||||
public class VisitorRecordResultDTO
|
||||
extends CloudwalkBaseTimes
|
||||
implements Serializable {
|
||||
private String id;
|
||||
private String visitorId;
|
||||
private String visitorName;
|
||||
private String businessId;
|
||||
private String deviceId;
|
||||
private String deviceCode;
|
||||
private String deviceName;
|
||||
private String deviceAreaId;
|
||||
private String deviceAreaName;
|
||||
private String receiverId;
|
||||
private String receiverName;
|
||||
private Long signTime;
|
||||
private String signAddress;
|
||||
private String deviceTypeId;
|
||||
private String deviceTypeName;
|
||||
private String facePath;
|
||||
private String spotImgPath;
|
||||
private String panoramaPath;
|
||||
private BigDecimal score;
|
||||
private Integer status;
|
||||
private BigDecimal threshold;
|
||||
private Integer tumoverType;
|
||||
private String remark;
|
||||
private String deviceDistrictId;
|
||||
private String deviceDistrictName;
|
||||
private String deviceDistrictPath;
|
||||
private String deviceDistrictMergeName;
|
||||
private Integer firstRecord;
|
||||
private String openDoorType;
|
||||
private String srcFloor;
|
||||
private String destFloor;
|
||||
private String dispatchElevatorNo;
|
||||
|
||||
public String getOpenDoorType() {
|
||||
return this.openDoorType;
|
||||
}
|
||||
|
||||
public void setOpenDoorType(String openDoorType) {
|
||||
this.openDoorType = openDoorType;
|
||||
}
|
||||
|
||||
public String getSrcFloor() {
|
||||
return this.srcFloor;
|
||||
}
|
||||
|
||||
public void setSrcFloor(String srcFloor) {
|
||||
this.srcFloor = srcFloor;
|
||||
}
|
||||
|
||||
public String getDestFloor() {
|
||||
return this.destFloor;
|
||||
}
|
||||
|
||||
public void setDestFloor(String destFloor) {
|
||||
this.destFloor = destFloor;
|
||||
}
|
||||
|
||||
public String getDispatchElevatorNo() {
|
||||
return this.dispatchElevatorNo;
|
||||
}
|
||||
|
||||
public void setDispatchElevatorNo(String dispatchElevatorNo) {
|
||||
this.dispatchElevatorNo = dispatchElevatorNo;
|
||||
}
|
||||
|
||||
public Integer getFirstRecord() {
|
||||
return this.firstRecord;
|
||||
}
|
||||
|
||||
public void setFirstRecord(Integer firstRecord) {
|
||||
this.firstRecord = firstRecord;
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getVisitorId() {
|
||||
return this.visitorId;
|
||||
}
|
||||
|
||||
public void setVisitorId(String visitorId) {
|
||||
this.visitorId = visitorId;
|
||||
}
|
||||
|
||||
public String getVisitorName() {
|
||||
return this.visitorName;
|
||||
}
|
||||
|
||||
public void setVisitorName(String visitorName) {
|
||||
this.visitorName = visitorName;
|
||||
}
|
||||
|
||||
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 getDeviceAreaId() {
|
||||
return this.deviceAreaId;
|
||||
}
|
||||
|
||||
public void setDeviceAreaId(String deviceAreaId) {
|
||||
this.deviceAreaId = deviceAreaId;
|
||||
}
|
||||
|
||||
public String getDeviceAreaName() {
|
||||
return this.deviceAreaName;
|
||||
}
|
||||
|
||||
public void setDeviceAreaName(String deviceAreaName) {
|
||||
this.deviceAreaName = deviceAreaName;
|
||||
}
|
||||
|
||||
public String getReceiverId() {
|
||||
return this.receiverId;
|
||||
}
|
||||
|
||||
public void setReceiverId(String receiverId) {
|
||||
this.receiverId = receiverId;
|
||||
}
|
||||
|
||||
public String getReceiverName() {
|
||||
return this.receiverName;
|
||||
}
|
||||
|
||||
public void setReceiverName(String receiverName) {
|
||||
this.receiverName = receiverName;
|
||||
}
|
||||
|
||||
public Long getSignTime() {
|
||||
return this.signTime;
|
||||
}
|
||||
|
||||
public void setSignTime(Long signTime) {
|
||||
this.signTime = signTime;
|
||||
}
|
||||
|
||||
public String getSignAddress() {
|
||||
return this.signAddress;
|
||||
}
|
||||
|
||||
public void setSignAddress(String signAddress) {
|
||||
this.signAddress = signAddress;
|
||||
}
|
||||
|
||||
public String getDeviceTypeId() {
|
||||
return this.deviceTypeId;
|
||||
}
|
||||
|
||||
public void setDeviceTypeId(String deviceTypeId) {
|
||||
this.deviceTypeId = deviceTypeId;
|
||||
}
|
||||
|
||||
public String getDeviceTypeName() {
|
||||
return this.deviceTypeName;
|
||||
}
|
||||
|
||||
public void setDeviceTypeName(String deviceTypeName) {
|
||||
this.deviceTypeName = deviceTypeName;
|
||||
}
|
||||
|
||||
public String getFacePath() {
|
||||
return this.facePath;
|
||||
}
|
||||
|
||||
public void setFacePath(String facePath) {
|
||||
this.facePath = facePath;
|
||||
}
|
||||
|
||||
public String getSpotImgPath() {
|
||||
return this.spotImgPath;
|
||||
}
|
||||
|
||||
public void setSpotImgPath(String spotImgPath) {
|
||||
this.spotImgPath = spotImgPath;
|
||||
}
|
||||
|
||||
public String getPanoramaPath() {
|
||||
return this.panoramaPath;
|
||||
}
|
||||
|
||||
public void setPanoramaPath(String panoramaPath) {
|
||||
this.panoramaPath = panoramaPath;
|
||||
}
|
||||
|
||||
public BigDecimal getScore() {
|
||||
return this.score;
|
||||
}
|
||||
|
||||
public void setScore(BigDecimal score) {
|
||||
this.score = score;
|
||||
}
|
||||
|
||||
public Integer getStatus() {
|
||||
return this.status;
|
||||
}
|
||||
|
||||
public void setStatus(Integer status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public BigDecimal getThreshold() {
|
||||
return this.threshold;
|
||||
}
|
||||
|
||||
public void setThreshold(BigDecimal threshold) {
|
||||
this.threshold = threshold;
|
||||
}
|
||||
|
||||
public Integer getTumoverType() {
|
||||
return this.tumoverType;
|
||||
}
|
||||
|
||||
public void setTumoverType(Integer tumoverType) {
|
||||
this.tumoverType = tumoverType;
|
||||
}
|
||||
|
||||
public String getRemark() {
|
||||
return this.remark;
|
||||
}
|
||||
|
||||
public void setRemark(String remark) {
|
||||
this.remark = remark;
|
||||
}
|
||||
|
||||
public String getDeviceDistrictId() {
|
||||
return this.deviceDistrictId;
|
||||
}
|
||||
|
||||
public void setDeviceDistrictId(String deviceDistrictId) {
|
||||
this.deviceDistrictId = deviceDistrictId;
|
||||
}
|
||||
|
||||
public String getDeviceDistrictName() {
|
||||
return this.deviceDistrictName;
|
||||
}
|
||||
|
||||
public void setDeviceDistrictName(String deviceDistrictName) {
|
||||
this.deviceDistrictName = deviceDistrictName;
|
||||
}
|
||||
|
||||
public String getDeviceDistrictPath() {
|
||||
return this.deviceDistrictPath;
|
||||
}
|
||||
|
||||
public void setDeviceDistrictPath(String deviceDistrictPath) {
|
||||
this.deviceDistrictPath = deviceDistrictPath;
|
||||
}
|
||||
|
||||
public String getDeviceDistrictMergeName() {
|
||||
return this.deviceDistrictMergeName;
|
||||
}
|
||||
|
||||
public void setDeviceDistrictMergeName(String deviceDistrictMergeName) {
|
||||
this.deviceDistrictMergeName = deviceDistrictMergeName;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "VisitorRecordResultDTO{id='" + this.id + '\'' + ", visitorId='" + this.visitorId + '\'' + ", visitorName='" + this.visitorName + '\'' + ", businessId='" + this.businessId + '\'' + ", deviceId='" + this.deviceId + '\'' + ", deviceCode='" + this.deviceCode + '\'' + ", deviceName='" + this.deviceName + '\'' + ", deviceAreaId='" + this.deviceAreaId + '\'' + ", deviceAreaName='" + this.deviceAreaName + '\'' + ", receiverId='" + this.receiverId + '\'' + ", receiverName='" + this.receiverName + '\'' + ", signTime=" + this.signTime + ", signAddress='" + this.signAddress + '\'' + ", deviceTypeId='" + this.deviceTypeId + '\'' + ", deviceTypeName='" + this.deviceTypeName + '\'' + ", facePath='" + this.facePath + '\'' + ", spotImgPath='" + this.spotImgPath + '\'' + ", panoramaPath='" + this.panoramaPath + '\'' + ", score=" + this.score + ", status=" + this.status + ", threshold=" + this.threshold + ", tumoverType=" + this.tumoverType + ", remark='" + this.remark + '\'' + ", deviceDistrictId='" + this.deviceDistrictId + '\'' + ", deviceDistrictName='" + this.deviceDistrictName + '\'' + ", deviceDistrictPath='" + this.deviceDistrictPath + '\'' + ", deviceDistrictMergeName='" + this.deviceDistrictMergeName + '\'' + '}';
|
||||
}
|
||||
}
|
||||
|
||||
+269
@@ -0,0 +1,269 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.cloud.annotation.DataFieldEncrypt
|
||||
* cn.cloudwalk.cloud.annotation.DataObjectEncrypt
|
||||
* cn.cloudwalk.cloud.entity.CloudwalkBaseTimes
|
||||
*/
|
||||
package cn.cloudwalk.common.ninca.visitor.bean.register.dto;
|
||||
|
||||
import cn.cloudwalk.cloud.annotation.DataFieldEncrypt;
|
||||
import cn.cloudwalk.cloud.annotation.DataObjectEncrypt;
|
||||
import cn.cloudwalk.cloud.entity.CloudwalkBaseTimes;
|
||||
import java.io.Serializable;
|
||||
|
||||
@DataObjectEncrypt
|
||||
public class VisitorRegisterAddDTO
|
||||
extends CloudwalkBaseTimes
|
||||
implements Serializable {
|
||||
private Integer addType;
|
||||
private String businessId;
|
||||
private String name;
|
||||
private String telephone;
|
||||
private String personId;
|
||||
private String personTelephone;
|
||||
private Long begVisiterTime;
|
||||
private Long endVisiterTime;
|
||||
private String regFaceUrl;
|
||||
private Integer approveStatus;
|
||||
private String approvePersonId;
|
||||
private Long approveTime;
|
||||
private String approveDesc;
|
||||
private String personName;
|
||||
private String approvePersonName;
|
||||
@DataFieldEncrypt
|
||||
private String cardNo;
|
||||
private Integer regType;
|
||||
private String remark;
|
||||
private String workNo;
|
||||
private String visitorCode;
|
||||
private String greetWord;
|
||||
private Integer sex;
|
||||
private String companyName;
|
||||
private String cause;
|
||||
private String carryOn;
|
||||
private String licensePlate;
|
||||
private String detailedAddress;
|
||||
|
||||
public Integer getAddType() {
|
||||
return this.addType;
|
||||
}
|
||||
|
||||
public void setAddType(Integer addType) {
|
||||
this.addType = addType;
|
||||
}
|
||||
|
||||
public String getDetailedAddress() {
|
||||
return this.detailedAddress;
|
||||
}
|
||||
|
||||
public void setDetailedAddress(String detailedAddress) {
|
||||
this.detailedAddress = detailedAddress;
|
||||
}
|
||||
|
||||
public Integer getSex() {
|
||||
return this.sex;
|
||||
}
|
||||
|
||||
public void setSex(Integer sex) {
|
||||
this.sex = sex;
|
||||
}
|
||||
|
||||
public String getCompanyName() {
|
||||
return this.companyName;
|
||||
}
|
||||
|
||||
public void setCompanyName(String companyName) {
|
||||
this.companyName = companyName;
|
||||
}
|
||||
|
||||
public String getCause() {
|
||||
return this.cause;
|
||||
}
|
||||
|
||||
public void setCause(String cause) {
|
||||
this.cause = cause;
|
||||
}
|
||||
|
||||
public String getCarryOn() {
|
||||
return this.carryOn;
|
||||
}
|
||||
|
||||
public void setCarryOn(String carryOn) {
|
||||
this.carryOn = carryOn;
|
||||
}
|
||||
|
||||
public String getLicensePlate() {
|
||||
return this.licensePlate;
|
||||
}
|
||||
|
||||
public void setLicensePlate(String licensePlate) {
|
||||
this.licensePlate = licensePlate;
|
||||
}
|
||||
|
||||
public Integer getRegType() {
|
||||
return this.regType;
|
||||
}
|
||||
|
||||
public void setRegType(Integer regType) {
|
||||
this.regType = regType;
|
||||
}
|
||||
|
||||
public String getRemark() {
|
||||
return this.remark;
|
||||
}
|
||||
|
||||
public void setRemark(String remark) {
|
||||
this.remark = remark;
|
||||
}
|
||||
|
||||
public String getWorkNo() {
|
||||
return this.workNo;
|
||||
}
|
||||
|
||||
public void setWorkNo(String workNo) {
|
||||
this.workNo = workNo;
|
||||
}
|
||||
|
||||
public String getVisitorCode() {
|
||||
return this.visitorCode;
|
||||
}
|
||||
|
||||
public void setVisitorCode(String visitorCode) {
|
||||
this.visitorCode = visitorCode;
|
||||
}
|
||||
|
||||
public String getGreetWord() {
|
||||
return this.greetWord;
|
||||
}
|
||||
|
||||
public void setGreetWord(String greetWord) {
|
||||
this.greetWord = greetWord;
|
||||
}
|
||||
|
||||
public String getCardNo() {
|
||||
return this.cardNo;
|
||||
}
|
||||
|
||||
public void setCardNo(String cardNo) {
|
||||
this.cardNo = cardNo;
|
||||
}
|
||||
|
||||
public String getPersonName() {
|
||||
return this.personName;
|
||||
}
|
||||
|
||||
public void setPersonName(String personName) {
|
||||
this.personName = personName;
|
||||
}
|
||||
|
||||
public String getApprovePersonName() {
|
||||
return this.approvePersonName;
|
||||
}
|
||||
|
||||
public void setApprovePersonName(String approvePersonName) {
|
||||
this.approvePersonName = approvePersonName;
|
||||
}
|
||||
|
||||
public String getBusinessId() {
|
||||
return this.businessId;
|
||||
}
|
||||
|
||||
public void setBusinessId(String businessId) {
|
||||
this.businessId = businessId;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return this.name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getTelephone() {
|
||||
return this.telephone;
|
||||
}
|
||||
|
||||
public void setTelephone(String telephone) {
|
||||
this.telephone = telephone;
|
||||
}
|
||||
|
||||
public String getPersonId() {
|
||||
return this.personId;
|
||||
}
|
||||
|
||||
public void setPersonId(String personId) {
|
||||
this.personId = personId;
|
||||
}
|
||||
|
||||
public String getPersonTelephone() {
|
||||
return this.personTelephone;
|
||||
}
|
||||
|
||||
public void setPersonTelephone(String personTelephone) {
|
||||
this.personTelephone = personTelephone;
|
||||
}
|
||||
|
||||
public Long getBegVisiterTime() {
|
||||
return this.begVisiterTime;
|
||||
}
|
||||
|
||||
public void setBegVisiterTime(Long begVisiterTime) {
|
||||
this.begVisiterTime = begVisiterTime;
|
||||
}
|
||||
|
||||
public Long getEndVisiterTime() {
|
||||
return this.endVisiterTime;
|
||||
}
|
||||
|
||||
public void setEndVisiterTime(Long endVisiterTime) {
|
||||
this.endVisiterTime = endVisiterTime;
|
||||
}
|
||||
|
||||
public String getRegFaceUrl() {
|
||||
return this.regFaceUrl;
|
||||
}
|
||||
|
||||
public void setRegFaceUrl(String regFaceUrl) {
|
||||
this.regFaceUrl = regFaceUrl;
|
||||
}
|
||||
|
||||
public Integer getApproveStatus() {
|
||||
return this.approveStatus;
|
||||
}
|
||||
|
||||
public void setApproveStatus(Integer approveStatus) {
|
||||
this.approveStatus = approveStatus;
|
||||
}
|
||||
|
||||
public String getApprovePersonId() {
|
||||
return this.approvePersonId;
|
||||
}
|
||||
|
||||
public void setApprovePersonId(String approvePersonId) {
|
||||
this.approvePersonId = approvePersonId;
|
||||
}
|
||||
|
||||
public Long getApproveTime() {
|
||||
return this.approveTime;
|
||||
}
|
||||
|
||||
public void setApproveTime(Long approveTime) {
|
||||
this.approveTime = approveTime;
|
||||
}
|
||||
|
||||
public String getApproveDesc() {
|
||||
return this.approveDesc;
|
||||
}
|
||||
|
||||
public void setApproveDesc(String approveDesc) {
|
||||
this.approveDesc = approveDesc;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "VisitorRegisterAddDTO{businessId='" + this.businessId + '\'' + ", name='" + this.name + '\'' + ", telephone='" + this.telephone + '\'' + ", personId='" + this.personId + '\'' + ", personTelephone='" + this.personTelephone + '\'' + ", begVisiterTime=" + this.begVisiterTime + ", endVisiterTime=" + this.endVisiterTime + ", regFaceUrl='" + this.regFaceUrl + '\'' + ", approveStatus=" + this.approveStatus + ", approvePersonId='" + this.approvePersonId + '\'' + ", approveTime=" + this.approveTime + ", approveDesc='" + this.approveDesc + '\'' + '}';
|
||||
}
|
||||
}
|
||||
|
||||
+29
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package cn.cloudwalk.common.ninca.visitor.bean.register.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class VisitorRegisterCountResultDTO
|
||||
implements Serializable {
|
||||
private Integer approveStatus;
|
||||
private Long num;
|
||||
|
||||
public Integer getApproveStatus() {
|
||||
return this.approveStatus;
|
||||
}
|
||||
|
||||
public void setApproveStatus(Integer approveStatus) {
|
||||
this.approveStatus = approveStatus;
|
||||
}
|
||||
|
||||
public Long getNum() {
|
||||
return this.num;
|
||||
}
|
||||
|
||||
public void setNum(Long num) {
|
||||
this.num = num;
|
||||
}
|
||||
}
|
||||
|
||||
+260
@@ -0,0 +1,260 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.cloud.annotation.DataFieldEncrypt
|
||||
* cn.cloudwalk.cloud.annotation.DataObjectEncrypt
|
||||
* cn.cloudwalk.cloud.entity.CloudwalkBaseTimes
|
||||
*/
|
||||
package cn.cloudwalk.common.ninca.visitor.bean.register.dto;
|
||||
|
||||
import cn.cloudwalk.cloud.annotation.DataFieldEncrypt;
|
||||
import cn.cloudwalk.cloud.annotation.DataObjectEncrypt;
|
||||
import cn.cloudwalk.cloud.entity.CloudwalkBaseTimes;
|
||||
import java.io.Serializable;
|
||||
|
||||
@DataObjectEncrypt
|
||||
public class VisitorRegisterEditDTO
|
||||
extends CloudwalkBaseTimes
|
||||
implements Serializable {
|
||||
private String businessId;
|
||||
private String name;
|
||||
private String telephone;
|
||||
private String personId;
|
||||
private String personTelephone;
|
||||
private Long begVisiterTime;
|
||||
private Long endVisiterTime;
|
||||
private String regFaceUrl;
|
||||
private Integer approveStatus;
|
||||
private String approvePersonId;
|
||||
private Long approveTime;
|
||||
private String approveDesc;
|
||||
private String personName;
|
||||
private String approvePersonName;
|
||||
@DataFieldEncrypt
|
||||
private String cardNo;
|
||||
private Integer regType;
|
||||
private String remark;
|
||||
private String workNo;
|
||||
private String visitorCode;
|
||||
private String greetWord;
|
||||
private Integer sex;
|
||||
private String companyName;
|
||||
private String cause;
|
||||
private String carryOn;
|
||||
private String licensePlate;
|
||||
private String detailedAddress;
|
||||
|
||||
public String getDetailedAddress() {
|
||||
return this.detailedAddress;
|
||||
}
|
||||
|
||||
public void setDetailedAddress(String detailedAddress) {
|
||||
this.detailedAddress = detailedAddress;
|
||||
}
|
||||
|
||||
public Integer getSex() {
|
||||
return this.sex;
|
||||
}
|
||||
|
||||
public void setSex(Integer sex) {
|
||||
this.sex = sex;
|
||||
}
|
||||
|
||||
public String getCompanyName() {
|
||||
return this.companyName;
|
||||
}
|
||||
|
||||
public void setCompanyName(String companyName) {
|
||||
this.companyName = companyName;
|
||||
}
|
||||
|
||||
public String getCause() {
|
||||
return this.cause;
|
||||
}
|
||||
|
||||
public void setCause(String cause) {
|
||||
this.cause = cause;
|
||||
}
|
||||
|
||||
public String getCarryOn() {
|
||||
return this.carryOn;
|
||||
}
|
||||
|
||||
public void setCarryOn(String carryOn) {
|
||||
this.carryOn = carryOn;
|
||||
}
|
||||
|
||||
public String getLicensePlate() {
|
||||
return this.licensePlate;
|
||||
}
|
||||
|
||||
public void setLicensePlate(String licensePlate) {
|
||||
this.licensePlate = licensePlate;
|
||||
}
|
||||
|
||||
public Integer getRegType() {
|
||||
return this.regType;
|
||||
}
|
||||
|
||||
public void setRegType(Integer regType) {
|
||||
this.regType = regType;
|
||||
}
|
||||
|
||||
public String getRemark() {
|
||||
return this.remark;
|
||||
}
|
||||
|
||||
public void setRemark(String remark) {
|
||||
this.remark = remark;
|
||||
}
|
||||
|
||||
public String getWorkNo() {
|
||||
return this.workNo;
|
||||
}
|
||||
|
||||
public void setWorkNo(String workNo) {
|
||||
this.workNo = workNo;
|
||||
}
|
||||
|
||||
public String getVisitorCode() {
|
||||
return this.visitorCode;
|
||||
}
|
||||
|
||||
public void setVisitorCode(String visitorCode) {
|
||||
this.visitorCode = visitorCode;
|
||||
}
|
||||
|
||||
public String getGreetWord() {
|
||||
return this.greetWord;
|
||||
}
|
||||
|
||||
public void setGreetWord(String greetWord) {
|
||||
this.greetWord = greetWord;
|
||||
}
|
||||
|
||||
public String getCardNo() {
|
||||
return this.cardNo;
|
||||
}
|
||||
|
||||
public void setCardNo(String cardNo) {
|
||||
this.cardNo = cardNo;
|
||||
}
|
||||
|
||||
public String getPersonName() {
|
||||
return this.personName;
|
||||
}
|
||||
|
||||
public void setPersonName(String personName) {
|
||||
this.personName = personName;
|
||||
}
|
||||
|
||||
public String getApprovePersonName() {
|
||||
return this.approvePersonName;
|
||||
}
|
||||
|
||||
public void setApprovePersonName(String approvePersonName) {
|
||||
this.approvePersonName = approvePersonName;
|
||||
}
|
||||
|
||||
public String getBusinessId() {
|
||||
return this.businessId;
|
||||
}
|
||||
|
||||
public void setBusinessId(String businessId) {
|
||||
this.businessId = businessId;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return this.name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getTelephone() {
|
||||
return this.telephone;
|
||||
}
|
||||
|
||||
public void setTelephone(String telephone) {
|
||||
this.telephone = telephone;
|
||||
}
|
||||
|
||||
public String getPersonId() {
|
||||
return this.personId;
|
||||
}
|
||||
|
||||
public void setPersonId(String personId) {
|
||||
this.personId = personId;
|
||||
}
|
||||
|
||||
public String getPersonTelephone() {
|
||||
return this.personTelephone;
|
||||
}
|
||||
|
||||
public void setPersonTelephone(String personTelephone) {
|
||||
this.personTelephone = personTelephone;
|
||||
}
|
||||
|
||||
public Long getBegVisiterTime() {
|
||||
return this.begVisiterTime;
|
||||
}
|
||||
|
||||
public void setBegVisiterTime(Long begVisiterTime) {
|
||||
this.begVisiterTime = begVisiterTime;
|
||||
}
|
||||
|
||||
public Long getEndVisiterTime() {
|
||||
return this.endVisiterTime;
|
||||
}
|
||||
|
||||
public void setEndVisiterTime(Long endVisiterTime) {
|
||||
this.endVisiterTime = endVisiterTime;
|
||||
}
|
||||
|
||||
public String getRegFaceUrl() {
|
||||
return this.regFaceUrl;
|
||||
}
|
||||
|
||||
public void setRegFaceUrl(String regFaceUrl) {
|
||||
this.regFaceUrl = regFaceUrl;
|
||||
}
|
||||
|
||||
public Integer getApproveStatus() {
|
||||
return this.approveStatus;
|
||||
}
|
||||
|
||||
public void setApproveStatus(Integer approveStatus) {
|
||||
this.approveStatus = approveStatus;
|
||||
}
|
||||
|
||||
public String getApprovePersonId() {
|
||||
return this.approvePersonId;
|
||||
}
|
||||
|
||||
public void setApprovePersonId(String approvePersonId) {
|
||||
this.approvePersonId = approvePersonId;
|
||||
}
|
||||
|
||||
public Long getApproveTime() {
|
||||
return this.approveTime;
|
||||
}
|
||||
|
||||
public void setApproveTime(Long approveTime) {
|
||||
this.approveTime = approveTime;
|
||||
}
|
||||
|
||||
public String getApproveDesc() {
|
||||
return this.approveDesc;
|
||||
}
|
||||
|
||||
public void setApproveDesc(String approveDesc) {
|
||||
this.approveDesc = approveDesc;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "VisitorRegisterEditDTO{businessId='" + this.businessId + '\'' + ", name='" + this.name + '\'' + ", telephone='" + this.telephone + '\'' + ", personId='" + this.personId + '\'' + ", personTelephone='" + this.personTelephone + '\'' + ", begVisiterTime=" + this.begVisiterTime + ", endVisiterTime=" + this.endVisiterTime + ", regFaceUrl='" + this.regFaceUrl + '\'' + ", approveStatus=" + this.approveStatus + ", approvePersonId='" + this.approvePersonId + '\'' + ", approveTime=" + this.approveTime + ", approveDesc='" + this.approveDesc + '\'' + '}';
|
||||
}
|
||||
}
|
||||
|
||||
+34
@@ -0,0 +1,34 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package cn.cloudwalk.common.ninca.visitor.bean.register.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
public class VisitorRegisterGetsDTO
|
||||
implements Serializable {
|
||||
private List<String> ids;
|
||||
private String businessId;
|
||||
|
||||
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 toString() {
|
||||
return "VisitorRegisterGetsDTO{ids=" + this.ids + ", businessId='" + this.businessId + '\'' + '}';
|
||||
}
|
||||
}
|
||||
|
||||
+177
@@ -0,0 +1,177 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package cn.cloudwalk.common.ninca.visitor.bean.register.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class VisitorRegisterPageDTO
|
||||
implements Serializable {
|
||||
private String businessId;
|
||||
private String personId;
|
||||
private Integer approveStatus;
|
||||
private Integer isValid;
|
||||
private Long nowTime;
|
||||
private String name;
|
||||
private String telephone;
|
||||
private String personName;
|
||||
private Integer regType;
|
||||
private String remark;
|
||||
private String workNo;
|
||||
private String visitorCode;
|
||||
private String greetWord;
|
||||
private Integer sex;
|
||||
private String companyName;
|
||||
private String cause;
|
||||
private String carryOn;
|
||||
private String licensePlate;
|
||||
|
||||
public Integer getSex() {
|
||||
return this.sex;
|
||||
}
|
||||
|
||||
public void setSex(Integer sex) {
|
||||
this.sex = sex;
|
||||
}
|
||||
|
||||
public String getCompanyName() {
|
||||
return this.companyName;
|
||||
}
|
||||
|
||||
public void setCompanyName(String companyName) {
|
||||
this.companyName = companyName;
|
||||
}
|
||||
|
||||
public String getCause() {
|
||||
return this.cause;
|
||||
}
|
||||
|
||||
public void setCause(String cause) {
|
||||
this.cause = cause;
|
||||
}
|
||||
|
||||
public String getCarryOn() {
|
||||
return this.carryOn;
|
||||
}
|
||||
|
||||
public void setCarryOn(String carryOn) {
|
||||
this.carryOn = carryOn;
|
||||
}
|
||||
|
||||
public String getLicensePlate() {
|
||||
return this.licensePlate;
|
||||
}
|
||||
|
||||
public void setLicensePlate(String licensePlate) {
|
||||
this.licensePlate = licensePlate;
|
||||
}
|
||||
|
||||
public Integer getRegType() {
|
||||
return this.regType;
|
||||
}
|
||||
|
||||
public void setRegType(Integer regType) {
|
||||
this.regType = regType;
|
||||
}
|
||||
|
||||
public String getRemark() {
|
||||
return this.remark;
|
||||
}
|
||||
|
||||
public void setRemark(String remark) {
|
||||
this.remark = remark;
|
||||
}
|
||||
|
||||
public String getWorkNo() {
|
||||
return this.workNo;
|
||||
}
|
||||
|
||||
public void setWorkNo(String workNo) {
|
||||
this.workNo = workNo;
|
||||
}
|
||||
|
||||
public String getVisitorCode() {
|
||||
return this.visitorCode;
|
||||
}
|
||||
|
||||
public void setVisitorCode(String visitorCode) {
|
||||
this.visitorCode = visitorCode;
|
||||
}
|
||||
|
||||
public String getGreetWord() {
|
||||
return this.greetWord;
|
||||
}
|
||||
|
||||
public void setGreetWord(String greetWord) {
|
||||
this.greetWord = greetWord;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return this.name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getTelephone() {
|
||||
return this.telephone;
|
||||
}
|
||||
|
||||
public void setTelephone(String telephone) {
|
||||
this.telephone = telephone;
|
||||
}
|
||||
|
||||
public String getPersonName() {
|
||||
return this.personName;
|
||||
}
|
||||
|
||||
public void setPersonName(String personName) {
|
||||
this.personName = personName;
|
||||
}
|
||||
|
||||
public String getBusinessId() {
|
||||
return this.businessId;
|
||||
}
|
||||
|
||||
public void setBusinessId(String businessId) {
|
||||
this.businessId = businessId;
|
||||
}
|
||||
|
||||
public String getPersonId() {
|
||||
return this.personId;
|
||||
}
|
||||
|
||||
public void setPersonId(String personId) {
|
||||
this.personId = personId;
|
||||
}
|
||||
|
||||
public Integer getApproveStatus() {
|
||||
return this.approveStatus;
|
||||
}
|
||||
|
||||
public void setApproveStatus(Integer approveStatus) {
|
||||
this.approveStatus = approveStatus;
|
||||
}
|
||||
|
||||
public Integer getIsValid() {
|
||||
return this.isValid;
|
||||
}
|
||||
|
||||
public void setIsValid(Integer isValid) {
|
||||
this.isValid = isValid;
|
||||
}
|
||||
|
||||
public Long getNowTime() {
|
||||
return this.nowTime;
|
||||
}
|
||||
|
||||
public void setNowTime(Long nowTime) {
|
||||
this.nowTime = nowTime;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "VisitorRegisterPageDTO{businessId='" + this.businessId + '\'' + ", personId='" + this.personId + '\'' + ", approveStatus=" + this.approveStatus + ", isValid=" + this.isValid + ", nowTime=" + this.nowTime + '}';
|
||||
}
|
||||
}
|
||||
|
||||
+260
@@ -0,0 +1,260 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.cloud.annotation.DataFieldEncrypt
|
||||
* cn.cloudwalk.cloud.annotation.DataObjectEncrypt
|
||||
* cn.cloudwalk.cloud.entity.CloudwalkBaseTimes
|
||||
*/
|
||||
package cn.cloudwalk.common.ninca.visitor.bean.register.dto;
|
||||
|
||||
import cn.cloudwalk.cloud.annotation.DataFieldEncrypt;
|
||||
import cn.cloudwalk.cloud.annotation.DataObjectEncrypt;
|
||||
import cn.cloudwalk.cloud.entity.CloudwalkBaseTimes;
|
||||
import java.io.Serializable;
|
||||
|
||||
@DataObjectEncrypt
|
||||
public class VisitorRegisterPageResultDTO
|
||||
extends CloudwalkBaseTimes
|
||||
implements Serializable {
|
||||
private String businessId;
|
||||
private String name;
|
||||
private String telephone;
|
||||
private String personId;
|
||||
private String personTelephone;
|
||||
private Long begVisiterTime;
|
||||
private Long endVisiterTime;
|
||||
private String regFaceUrl;
|
||||
private Integer approveStatus;
|
||||
private String approvePersonId;
|
||||
private Long approveTime;
|
||||
private String approveDesc;
|
||||
private String personName;
|
||||
private String approvePersonName;
|
||||
@DataFieldEncrypt
|
||||
private String cardNo;
|
||||
private Integer regType;
|
||||
private String remark;
|
||||
private String workNo;
|
||||
private String visitorCode;
|
||||
private String greetWord;
|
||||
private Integer sex;
|
||||
private String companyName;
|
||||
private String cause;
|
||||
private String carryOn;
|
||||
private String licensePlate;
|
||||
private String detailedAddress;
|
||||
|
||||
public String getDetailedAddress() {
|
||||
return this.detailedAddress;
|
||||
}
|
||||
|
||||
public void setDetailedAddress(String detailedAddress) {
|
||||
this.detailedAddress = detailedAddress;
|
||||
}
|
||||
|
||||
public Integer getSex() {
|
||||
return this.sex;
|
||||
}
|
||||
|
||||
public void setSex(Integer sex) {
|
||||
this.sex = sex;
|
||||
}
|
||||
|
||||
public String getCompanyName() {
|
||||
return this.companyName;
|
||||
}
|
||||
|
||||
public void setCompanyName(String companyName) {
|
||||
this.companyName = companyName;
|
||||
}
|
||||
|
||||
public String getCause() {
|
||||
return this.cause;
|
||||
}
|
||||
|
||||
public void setCause(String cause) {
|
||||
this.cause = cause;
|
||||
}
|
||||
|
||||
public String getCarryOn() {
|
||||
return this.carryOn;
|
||||
}
|
||||
|
||||
public void setCarryOn(String carryOn) {
|
||||
this.carryOn = carryOn;
|
||||
}
|
||||
|
||||
public String getLicensePlate() {
|
||||
return this.licensePlate;
|
||||
}
|
||||
|
||||
public void setLicensePlate(String licensePlate) {
|
||||
this.licensePlate = licensePlate;
|
||||
}
|
||||
|
||||
public Integer getRegType() {
|
||||
return this.regType;
|
||||
}
|
||||
|
||||
public void setRegType(Integer regType) {
|
||||
this.regType = regType;
|
||||
}
|
||||
|
||||
public String getRemark() {
|
||||
return this.remark;
|
||||
}
|
||||
|
||||
public void setRemark(String remark) {
|
||||
this.remark = remark;
|
||||
}
|
||||
|
||||
public String getWorkNo() {
|
||||
return this.workNo;
|
||||
}
|
||||
|
||||
public void setWorkNo(String workNo) {
|
||||
this.workNo = workNo;
|
||||
}
|
||||
|
||||
public String getVisitorCode() {
|
||||
return this.visitorCode;
|
||||
}
|
||||
|
||||
public void setVisitorCode(String visitorCode) {
|
||||
this.visitorCode = visitorCode;
|
||||
}
|
||||
|
||||
public String getGreetWord() {
|
||||
return this.greetWord;
|
||||
}
|
||||
|
||||
public void setGreetWord(String greetWord) {
|
||||
this.greetWord = greetWord;
|
||||
}
|
||||
|
||||
public String getCardNo() {
|
||||
return this.cardNo;
|
||||
}
|
||||
|
||||
public void setCardNo(String cardNo) {
|
||||
this.cardNo = cardNo;
|
||||
}
|
||||
|
||||
public String getPersonName() {
|
||||
return this.personName;
|
||||
}
|
||||
|
||||
public void setPersonName(String personName) {
|
||||
this.personName = personName;
|
||||
}
|
||||
|
||||
public String getApprovePersonName() {
|
||||
return this.approvePersonName;
|
||||
}
|
||||
|
||||
public void setApprovePersonName(String approvePersonName) {
|
||||
this.approvePersonName = approvePersonName;
|
||||
}
|
||||
|
||||
public String getBusinessId() {
|
||||
return this.businessId;
|
||||
}
|
||||
|
||||
public void setBusinessId(String businessId) {
|
||||
this.businessId = businessId;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return this.name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getTelephone() {
|
||||
return this.telephone;
|
||||
}
|
||||
|
||||
public void setTelephone(String telephone) {
|
||||
this.telephone = telephone;
|
||||
}
|
||||
|
||||
public String getPersonId() {
|
||||
return this.personId;
|
||||
}
|
||||
|
||||
public void setPersonId(String personId) {
|
||||
this.personId = personId;
|
||||
}
|
||||
|
||||
public String getPersonTelephone() {
|
||||
return this.personTelephone;
|
||||
}
|
||||
|
||||
public void setPersonTelephone(String personTelephone) {
|
||||
this.personTelephone = personTelephone;
|
||||
}
|
||||
|
||||
public Long getBegVisiterTime() {
|
||||
return this.begVisiterTime;
|
||||
}
|
||||
|
||||
public void setBegVisiterTime(Long begVisiterTime) {
|
||||
this.begVisiterTime = begVisiterTime;
|
||||
}
|
||||
|
||||
public Long getEndVisiterTime() {
|
||||
return this.endVisiterTime;
|
||||
}
|
||||
|
||||
public void setEndVisiterTime(Long endVisiterTime) {
|
||||
this.endVisiterTime = endVisiterTime;
|
||||
}
|
||||
|
||||
public String getRegFaceUrl() {
|
||||
return this.regFaceUrl;
|
||||
}
|
||||
|
||||
public void setRegFaceUrl(String regFaceUrl) {
|
||||
this.regFaceUrl = regFaceUrl;
|
||||
}
|
||||
|
||||
public Integer getApproveStatus() {
|
||||
return this.approveStatus;
|
||||
}
|
||||
|
||||
public void setApproveStatus(Integer approveStatus) {
|
||||
this.approveStatus = approveStatus;
|
||||
}
|
||||
|
||||
public String getApprovePersonId() {
|
||||
return this.approvePersonId;
|
||||
}
|
||||
|
||||
public void setApprovePersonId(String approvePersonId) {
|
||||
this.approvePersonId = approvePersonId;
|
||||
}
|
||||
|
||||
public Long getApproveTime() {
|
||||
return this.approveTime;
|
||||
}
|
||||
|
||||
public void setApproveTime(Long approveTime) {
|
||||
this.approveTime = approveTime;
|
||||
}
|
||||
|
||||
public String getApproveDesc() {
|
||||
return this.approveDesc;
|
||||
}
|
||||
|
||||
public void setApproveDesc(String approveDesc) {
|
||||
this.approveDesc = approveDesc;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "VisitorRegisterPageResultDTO{businessId='" + this.businessId + '\'' + ", name='" + this.name + '\'' + ", telephone='" + this.telephone + '\'' + ", personId='" + this.personId + '\'' + ", personTelephone='" + this.personTelephone + '\'' + ", begVisiterTime=" + this.begVisiterTime + ", endVisiterTime=" + this.endVisiterTime + ", regFaceUrl='" + this.regFaceUrl + '\'' + ", approveStatus=" + this.approveStatus + ", approvePersonId='" + this.approvePersonId + '\'' + ", approveTime=" + this.approveTime + ", approveDesc='" + this.approveDesc + '\'' + '}';
|
||||
}
|
||||
}
|
||||
|
||||
+43
@@ -0,0 +1,43 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package cn.cloudwalk.common.ninca.visitor.bean.register.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class VisitorRegisterPendingCountDTO
|
||||
implements Serializable {
|
||||
private static final long serialVersionUID = 3585569095358754255L;
|
||||
private String businessId;
|
||||
private String approvePersonId;
|
||||
private Long endVisiterTime;
|
||||
|
||||
public String getBusinessId() {
|
||||
return this.businessId;
|
||||
}
|
||||
|
||||
public void setBusinessId(String businessId) {
|
||||
this.businessId = businessId;
|
||||
}
|
||||
|
||||
public String getApprovePersonId() {
|
||||
return this.approvePersonId;
|
||||
}
|
||||
|
||||
public void setApprovePersonId(String approvePersonId) {
|
||||
this.approvePersonId = approvePersonId;
|
||||
}
|
||||
|
||||
public Long getEndVisiterTime() {
|
||||
return this.endVisiterTime;
|
||||
}
|
||||
|
||||
public void setEndVisiterTime(Long endVisiterTime) {
|
||||
this.endVisiterTime = endVisiterTime;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "VisitorRegisterPendingCountDTO{businessId='" + this.businessId + '\'' + ", approvePersonId='" + this.approvePersonId + '\'' + ", endVisiterTime=" + this.endVisiterTime + '}';
|
||||
}
|
||||
}
|
||||
|
||||
+47
@@ -0,0 +1,47 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package cn.cloudwalk.common.ninca.visitor.bean.register.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class VisitorRegisterPendingSyncDTO
|
||||
implements Serializable {
|
||||
private String businessId;
|
||||
private String id;
|
||||
private Long nowTime;
|
||||
private Long lastSyncTime;
|
||||
|
||||
public Long getNowTime() {
|
||||
return this.nowTime;
|
||||
}
|
||||
|
||||
public void setNowTime(Long nowTime) {
|
||||
this.nowTime = nowTime;
|
||||
}
|
||||
|
||||
public String getBusinessId() {
|
||||
return this.businessId;
|
||||
}
|
||||
|
||||
public void setBusinessId(String businessId) {
|
||||
this.businessId = businessId;
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getLastSyncTime() {
|
||||
return this.lastSyncTime;
|
||||
}
|
||||
|
||||
public void setLastSyncTime(Long lastSyncTime) {
|
||||
this.lastSyncTime = lastSyncTime;
|
||||
}
|
||||
}
|
||||
|
||||
+79
@@ -0,0 +1,79 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package cn.cloudwalk.common.ninca.visitor.bean.register.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
public class VisitorRegisterQueryDTO
|
||||
implements Serializable {
|
||||
private String id;
|
||||
private Integer addType;
|
||||
private String cardNo;
|
||||
private Integer approveStatus;
|
||||
private List<String> ids;
|
||||
private String personId;
|
||||
private String businessId;
|
||||
|
||||
public Integer getApproveStatus() {
|
||||
return this.approveStatus;
|
||||
}
|
||||
|
||||
public void setApproveStatus(Integer approveStatus) {
|
||||
this.approveStatus = approveStatus;
|
||||
}
|
||||
|
||||
public Integer getAddType() {
|
||||
return this.addType;
|
||||
}
|
||||
|
||||
public void setAddType(Integer addType) {
|
||||
this.addType = addType;
|
||||
}
|
||||
|
||||
public String getCardNo() {
|
||||
return this.cardNo;
|
||||
}
|
||||
|
||||
public void setCardNo(String cardNo) {
|
||||
this.cardNo = cardNo;
|
||||
}
|
||||
|
||||
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 getPersonId() {
|
||||
return this.personId;
|
||||
}
|
||||
|
||||
public void setPersonId(String personId) {
|
||||
this.personId = personId;
|
||||
}
|
||||
|
||||
public String getBusinessId() {
|
||||
return this.businessId;
|
||||
}
|
||||
|
||||
public void setBusinessId(String businessId) {
|
||||
this.businessId = businessId;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "VisitorRegisterQueryDTO{id='" + this.id + '\'' + ", ids=" + this.ids + ", personId='" + this.personId + '\'' + ", businessId='" + this.businessId + '\'' + '}';
|
||||
}
|
||||
}
|
||||
|
||||
+269
@@ -0,0 +1,269 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.cloud.annotation.DataFieldEncrypt
|
||||
* cn.cloudwalk.cloud.annotation.DataObjectEncrypt
|
||||
* cn.cloudwalk.cloud.entity.CloudwalkBaseTimes
|
||||
*/
|
||||
package cn.cloudwalk.common.ninca.visitor.bean.register.dto;
|
||||
|
||||
import cn.cloudwalk.cloud.annotation.DataFieldEncrypt;
|
||||
import cn.cloudwalk.cloud.annotation.DataObjectEncrypt;
|
||||
import cn.cloudwalk.cloud.entity.CloudwalkBaseTimes;
|
||||
import java.io.Serializable;
|
||||
|
||||
@DataObjectEncrypt
|
||||
public class VisitorRegisterQueryResultDTO
|
||||
extends CloudwalkBaseTimes
|
||||
implements Serializable {
|
||||
private Integer addType;
|
||||
private String businessId;
|
||||
private String name;
|
||||
private String telephone;
|
||||
private String personId;
|
||||
private String personTelephone;
|
||||
private Long begVisiterTime;
|
||||
private Long endVisiterTime;
|
||||
private String regFaceUrl;
|
||||
private Integer approveStatus;
|
||||
private String approvePersonId;
|
||||
private Long approveTime;
|
||||
private String approveDesc;
|
||||
private String personName;
|
||||
private String approvePersonName;
|
||||
@DataFieldEncrypt
|
||||
private String cardNo;
|
||||
private Integer regType;
|
||||
private String remark;
|
||||
private String workNo;
|
||||
private String visitorCode;
|
||||
private String greetWord;
|
||||
private Integer sex;
|
||||
private String companyName;
|
||||
private String cause;
|
||||
private String carryOn;
|
||||
private String licensePlate;
|
||||
private String detailedAddress;
|
||||
|
||||
public Integer getAddType() {
|
||||
return this.addType;
|
||||
}
|
||||
|
||||
public void setAddType(Integer addType) {
|
||||
this.addType = addType;
|
||||
}
|
||||
|
||||
public String getDetailedAddress() {
|
||||
return this.detailedAddress;
|
||||
}
|
||||
|
||||
public void setDetailedAddress(String detailedAddress) {
|
||||
this.detailedAddress = detailedAddress;
|
||||
}
|
||||
|
||||
public Integer getSex() {
|
||||
return this.sex;
|
||||
}
|
||||
|
||||
public void setSex(Integer sex) {
|
||||
this.sex = sex;
|
||||
}
|
||||
|
||||
public String getCompanyName() {
|
||||
return this.companyName;
|
||||
}
|
||||
|
||||
public void setCompanyName(String companyName) {
|
||||
this.companyName = companyName;
|
||||
}
|
||||
|
||||
public String getCause() {
|
||||
return this.cause;
|
||||
}
|
||||
|
||||
public void setCause(String cause) {
|
||||
this.cause = cause;
|
||||
}
|
||||
|
||||
public String getCarryOn() {
|
||||
return this.carryOn;
|
||||
}
|
||||
|
||||
public void setCarryOn(String carryOn) {
|
||||
this.carryOn = carryOn;
|
||||
}
|
||||
|
||||
public String getLicensePlate() {
|
||||
return this.licensePlate;
|
||||
}
|
||||
|
||||
public void setLicensePlate(String licensePlate) {
|
||||
this.licensePlate = licensePlate;
|
||||
}
|
||||
|
||||
public Integer getRegType() {
|
||||
return this.regType;
|
||||
}
|
||||
|
||||
public void setRegType(Integer regType) {
|
||||
this.regType = regType;
|
||||
}
|
||||
|
||||
public String getRemark() {
|
||||
return this.remark;
|
||||
}
|
||||
|
||||
public void setRemark(String remark) {
|
||||
this.remark = remark;
|
||||
}
|
||||
|
||||
public String getWorkNo() {
|
||||
return this.workNo;
|
||||
}
|
||||
|
||||
public void setWorkNo(String workNo) {
|
||||
this.workNo = workNo;
|
||||
}
|
||||
|
||||
public String getVisitorCode() {
|
||||
return this.visitorCode;
|
||||
}
|
||||
|
||||
public void setVisitorCode(String visitorCode) {
|
||||
this.visitorCode = visitorCode;
|
||||
}
|
||||
|
||||
public String getGreetWord() {
|
||||
return this.greetWord;
|
||||
}
|
||||
|
||||
public void setGreetWord(String greetWord) {
|
||||
this.greetWord = greetWord;
|
||||
}
|
||||
|
||||
public String getCardNo() {
|
||||
return this.cardNo;
|
||||
}
|
||||
|
||||
public void setCardNo(String cardNo) {
|
||||
this.cardNo = cardNo;
|
||||
}
|
||||
|
||||
public String getPersonName() {
|
||||
return this.personName;
|
||||
}
|
||||
|
||||
public void setPersonName(String personName) {
|
||||
this.personName = personName;
|
||||
}
|
||||
|
||||
public String getApprovePersonName() {
|
||||
return this.approvePersonName;
|
||||
}
|
||||
|
||||
public void setApprovePersonName(String approvePersonName) {
|
||||
this.approvePersonName = approvePersonName;
|
||||
}
|
||||
|
||||
public String getBusinessId() {
|
||||
return this.businessId;
|
||||
}
|
||||
|
||||
public void setBusinessId(String businessId) {
|
||||
this.businessId = businessId;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return this.name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getTelephone() {
|
||||
return this.telephone;
|
||||
}
|
||||
|
||||
public void setTelephone(String telephone) {
|
||||
this.telephone = telephone;
|
||||
}
|
||||
|
||||
public String getPersonId() {
|
||||
return this.personId;
|
||||
}
|
||||
|
||||
public void setPersonId(String personId) {
|
||||
this.personId = personId;
|
||||
}
|
||||
|
||||
public String getPersonTelephone() {
|
||||
return this.personTelephone;
|
||||
}
|
||||
|
||||
public void setPersonTelephone(String personTelephone) {
|
||||
this.personTelephone = personTelephone;
|
||||
}
|
||||
|
||||
public Long getBegVisiterTime() {
|
||||
return this.begVisiterTime;
|
||||
}
|
||||
|
||||
public void setBegVisiterTime(Long begVisiterTime) {
|
||||
this.begVisiterTime = begVisiterTime;
|
||||
}
|
||||
|
||||
public Long getEndVisiterTime() {
|
||||
return this.endVisiterTime;
|
||||
}
|
||||
|
||||
public void setEndVisiterTime(Long endVisiterTime) {
|
||||
this.endVisiterTime = endVisiterTime;
|
||||
}
|
||||
|
||||
public String getRegFaceUrl() {
|
||||
return this.regFaceUrl;
|
||||
}
|
||||
|
||||
public void setRegFaceUrl(String regFaceUrl) {
|
||||
this.regFaceUrl = regFaceUrl;
|
||||
}
|
||||
|
||||
public Integer getApproveStatus() {
|
||||
return this.approveStatus;
|
||||
}
|
||||
|
||||
public void setApproveStatus(Integer approveStatus) {
|
||||
this.approveStatus = approveStatus;
|
||||
}
|
||||
|
||||
public String getApprovePersonId() {
|
||||
return this.approvePersonId;
|
||||
}
|
||||
|
||||
public void setApprovePersonId(String approvePersonId) {
|
||||
this.approvePersonId = approvePersonId;
|
||||
}
|
||||
|
||||
public Long getApproveTime() {
|
||||
return this.approveTime;
|
||||
}
|
||||
|
||||
public void setApproveTime(Long approveTime) {
|
||||
this.approveTime = approveTime;
|
||||
}
|
||||
|
||||
public String getApproveDesc() {
|
||||
return this.approveDesc;
|
||||
}
|
||||
|
||||
public void setApproveDesc(String approveDesc) {
|
||||
this.approveDesc = approveDesc;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "VisitorRegisterQueryResultDTO{businessId='" + this.businessId + '\'' + ", name='" + this.name + '\'' + ", telephone='" + this.telephone + '\'' + ", personId='" + this.personId + '\'' + ", personTelephone='" + this.personTelephone + '\'' + ", begVisiterTime=" + this.begVisiterTime + ", endVisiterTime=" + this.endVisiterTime + ", regFaceUrl='" + this.regFaceUrl + '\'' + ", approveStatus=" + this.approveStatus + ", approvePersonId='" + this.approvePersonId + '\'' + ", approveTime=" + this.approveTime + ", approveDesc='" + this.approveDesc + '\'' + '}';
|
||||
}
|
||||
}
|
||||
|
||||
+30
@@ -0,0 +1,30 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package cn.cloudwalk.common.ninca.visitor.bean.visitor.dto;
|
||||
|
||||
public class VisitorAnalyseCycleBusinessResultDTO {
|
||||
private String businessId;
|
||||
private Integer count;
|
||||
|
||||
public String getBusinessId() {
|
||||
return this.businessId;
|
||||
}
|
||||
|
||||
public void setBusinessId(String businessId) {
|
||||
this.businessId = businessId;
|
||||
}
|
||||
|
||||
public Integer getCount() {
|
||||
return this.count;
|
||||
}
|
||||
|
||||
public void setCount(Integer count) {
|
||||
this.count = count;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "VisitorAnalyseCycleBusinessResultDTO{businessId='" + this.businessId + '\'' + ", count=" + this.count + '}';
|
||||
}
|
||||
}
|
||||
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package cn.cloudwalk.common.ninca.visitor.bean.visitor.dto;
|
||||
|
||||
public class VisitorAnalyseDTO {
|
||||
private String businessId;
|
||||
private Long startTime;
|
||||
private Long endTime;
|
||||
|
||||
public String getBusinessId() {
|
||||
return this.businessId;
|
||||
}
|
||||
|
||||
public void setBusinessId(String businessId) {
|
||||
this.businessId = businessId;
|
||||
}
|
||||
|
||||
public Long getStartTime() {
|
||||
return this.startTime;
|
||||
}
|
||||
|
||||
public void setStartTime(Long startTime) {
|
||||
this.startTime = startTime;
|
||||
}
|
||||
|
||||
public Long getEndTime() {
|
||||
return this.endTime;
|
||||
}
|
||||
|
||||
public void setEndTime(Long endTime) {
|
||||
this.endTime = endTime;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "VisitorAnalyseDTO{businessId='" + this.businessId + '\'' + ", startTime='" + this.startTime + '\'' + ", endTime='" + this.endTime + '\'' + '}';
|
||||
}
|
||||
}
|
||||
|
||||
+112
@@ -0,0 +1,112 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.cloud.page.CloudwalkBasePageForm
|
||||
*/
|
||||
package cn.cloudwalk.common.ninca.visitor.bean.visitor.dto;
|
||||
|
||||
import cn.cloudwalk.cloud.page.CloudwalkBasePageForm;
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
public class VisitorComplexQueryDTO
|
||||
extends CloudwalkBasePageForm
|
||||
implements Serializable {
|
||||
private static final long serialVersionUID = 2021833395409139444L;
|
||||
private String name;
|
||||
private String businessId;
|
||||
private String personId;
|
||||
private String personName;
|
||||
private List<String> deviceIds;
|
||||
private Integer status;
|
||||
private String createUserId;
|
||||
private Integer regType;
|
||||
private Long startTime;
|
||||
private Long endTime;
|
||||
|
||||
public Long getStartTime() {
|
||||
return this.startTime;
|
||||
}
|
||||
|
||||
public void setStartTime(Long startTime) {
|
||||
this.startTime = startTime;
|
||||
}
|
||||
|
||||
public Long getEndTime() {
|
||||
return this.endTime;
|
||||
}
|
||||
|
||||
public void setEndTime(Long endTime) {
|
||||
this.endTime = endTime;
|
||||
}
|
||||
|
||||
public Integer getRegType() {
|
||||
return this.regType;
|
||||
}
|
||||
|
||||
public void setRegType(Integer regType) {
|
||||
this.regType = regType;
|
||||
}
|
||||
|
||||
public String getCreateUserId() {
|
||||
return this.createUserId;
|
||||
}
|
||||
|
||||
public void setCreateUserId(String createUserId) {
|
||||
this.createUserId = createUserId;
|
||||
}
|
||||
|
||||
public String getPersonId() {
|
||||
return this.personId;
|
||||
}
|
||||
|
||||
public void setPersonId(String personId) {
|
||||
this.personId = personId;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return this.name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getBusinessId() {
|
||||
return this.businessId;
|
||||
}
|
||||
|
||||
public void setBusinessId(String businessId) {
|
||||
this.businessId = businessId;
|
||||
}
|
||||
|
||||
public String getPersonName() {
|
||||
return this.personName;
|
||||
}
|
||||
|
||||
public void setPersonName(String personName) {
|
||||
this.personName = personName;
|
||||
}
|
||||
|
||||
public List<String> getDeviceIds() {
|
||||
return this.deviceIds;
|
||||
}
|
||||
|
||||
public void setDeviceIds(List<String> deviceIds) {
|
||||
this.deviceIds = deviceIds;
|
||||
}
|
||||
|
||||
public Integer getStatus() {
|
||||
return this.status;
|
||||
}
|
||||
|
||||
public void setStatus(Integer status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "VisitorComplexQueryDTO{name='" + this.name + '\'' + ", businessId='" + this.businessId + '\'' + ", personName='" + this.personName + '\'' + ", deviceIds=" + this.deviceIds + ", status=" + this.status + '}';
|
||||
}
|
||||
}
|
||||
|
||||
+49
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.cloud.entity.CloudwalkBaseTimes
|
||||
*/
|
||||
package cn.cloudwalk.common.ninca.visitor.bean.visitor.dto;
|
||||
|
||||
import cn.cloudwalk.cloud.entity.CloudwalkBaseTimes;
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
public class VisitorDelDTO
|
||||
extends CloudwalkBaseTimes
|
||||
implements Serializable {
|
||||
private static final long serialVersionUID = -2198537333590615706L;
|
||||
private String businessId;
|
||||
private List<String> ids;
|
||||
private Integer imageStoreStatus;
|
||||
|
||||
public Integer getImageStoreStatus() {
|
||||
return this.imageStoreStatus;
|
||||
}
|
||||
|
||||
public void setImageStoreStatus(Integer imageStoreStatus) {
|
||||
this.imageStoreStatus = imageStoreStatus;
|
||||
}
|
||||
|
||||
public String getBusinessId() {
|
||||
return this.businessId;
|
||||
}
|
||||
|
||||
public void setBusinessId(String businessId) {
|
||||
this.businessId = businessId;
|
||||
}
|
||||
|
||||
public List<String> getIds() {
|
||||
return this.ids;
|
||||
}
|
||||
|
||||
public void setIds(List<String> ids) {
|
||||
this.ids = ids;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "VisitorDelDTO{businessId='" + this.businessId + '\'' + ", ids=" + this.ids + ", imageStoreStatus=" + this.imageStoreStatus + '}';
|
||||
}
|
||||
}
|
||||
|
||||
+243
@@ -0,0 +1,243 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.cloud.annotation.DataFieldEncrypt
|
||||
* cn.cloudwalk.cloud.annotation.DataObjectEncrypt
|
||||
* cn.cloudwalk.cloud.entity.CloudwalkBaseTimes
|
||||
*/
|
||||
package cn.cloudwalk.common.ninca.visitor.bean.visitor.dto;
|
||||
|
||||
import cn.cloudwalk.cloud.annotation.DataFieldEncrypt;
|
||||
import cn.cloudwalk.cloud.annotation.DataObjectEncrypt;
|
||||
import cn.cloudwalk.cloud.entity.CloudwalkBaseTimes;
|
||||
import java.io.Serializable;
|
||||
|
||||
@DataObjectEncrypt
|
||||
public class VisitorEditDTO
|
||||
extends CloudwalkBaseTimes
|
||||
implements Serializable {
|
||||
private static final long serialVersionUID = 518518082222548080L;
|
||||
private String id;
|
||||
private String businessId;
|
||||
private String name;
|
||||
private Integer cardType;
|
||||
@DataFieldEncrypt
|
||||
private String cardNo;
|
||||
private String greetWord;
|
||||
private String personId;
|
||||
private String personName;
|
||||
private Long begVisitorTime;
|
||||
private Long endVisitorTime;
|
||||
private String regFaceUrl;
|
||||
private String displayUrl;
|
||||
private String remark;
|
||||
private String workNo;
|
||||
private String visitorCode;
|
||||
private Integer imageStoreStatus;
|
||||
private Integer sex;
|
||||
private String companyName;
|
||||
private String cause;
|
||||
private String carryOn;
|
||||
private String licensePlate;
|
||||
private String telephone;
|
||||
private String personTelephone;
|
||||
private String detailedAddress;
|
||||
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getDetailedAddress() {
|
||||
return this.detailedAddress;
|
||||
}
|
||||
|
||||
public void setDetailedAddress(String detailedAddress) {
|
||||
this.detailedAddress = detailedAddress;
|
||||
}
|
||||
|
||||
public String getTelephone() {
|
||||
return this.telephone;
|
||||
}
|
||||
|
||||
public void setTelephone(String telephone) {
|
||||
this.telephone = telephone;
|
||||
}
|
||||
|
||||
public String getPersonTelephone() {
|
||||
return this.personTelephone;
|
||||
}
|
||||
|
||||
public void setPersonTelephone(String personTelephone) {
|
||||
this.personTelephone = personTelephone;
|
||||
}
|
||||
|
||||
public Integer getSex() {
|
||||
return this.sex;
|
||||
}
|
||||
|
||||
public void setSex(Integer sex) {
|
||||
this.sex = sex;
|
||||
}
|
||||
|
||||
public String getCompanyName() {
|
||||
return this.companyName;
|
||||
}
|
||||
|
||||
public void setCompanyName(String companyName) {
|
||||
this.companyName = companyName;
|
||||
}
|
||||
|
||||
public String getCause() {
|
||||
return this.cause;
|
||||
}
|
||||
|
||||
public void setCause(String cause) {
|
||||
this.cause = cause;
|
||||
}
|
||||
|
||||
public String getCarryOn() {
|
||||
return this.carryOn;
|
||||
}
|
||||
|
||||
public void setCarryOn(String carryOn) {
|
||||
this.carryOn = carryOn;
|
||||
}
|
||||
|
||||
public String getLicensePlate() {
|
||||
return this.licensePlate;
|
||||
}
|
||||
|
||||
public void setLicensePlate(String licensePlate) {
|
||||
this.licensePlate = licensePlate;
|
||||
}
|
||||
|
||||
public String getWorkNo() {
|
||||
return this.workNo;
|
||||
}
|
||||
|
||||
public void setWorkNo(String workNo) {
|
||||
this.workNo = workNo;
|
||||
}
|
||||
|
||||
public String getVisitorCode() {
|
||||
return this.visitorCode;
|
||||
}
|
||||
|
||||
public void setVisitorCode(String visitorCode) {
|
||||
this.visitorCode = visitorCode;
|
||||
}
|
||||
|
||||
public String getPersonName() {
|
||||
return this.personName;
|
||||
}
|
||||
|
||||
public void setPersonName(String personName) {
|
||||
this.personName = personName;
|
||||
}
|
||||
|
||||
public String getBusinessId() {
|
||||
return this.businessId;
|
||||
}
|
||||
|
||||
public void setBusinessId(String businessId) {
|
||||
this.businessId = businessId;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return this.name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public Integer getCardType() {
|
||||
return this.cardType;
|
||||
}
|
||||
|
||||
public void setCardType(Integer cardType) {
|
||||
this.cardType = cardType;
|
||||
}
|
||||
|
||||
public String getCardNo() {
|
||||
return this.cardNo;
|
||||
}
|
||||
|
||||
public void setCardNo(String cardNo) {
|
||||
this.cardNo = cardNo;
|
||||
}
|
||||
|
||||
public String getGreetWord() {
|
||||
return this.greetWord;
|
||||
}
|
||||
|
||||
public void setGreetWord(String greetWord) {
|
||||
this.greetWord = greetWord;
|
||||
}
|
||||
|
||||
public String getPersonId() {
|
||||
return this.personId;
|
||||
}
|
||||
|
||||
public void setPersonId(String personId) {
|
||||
this.personId = personId;
|
||||
}
|
||||
|
||||
public Long getBegVisitorTime() {
|
||||
return this.begVisitorTime;
|
||||
}
|
||||
|
||||
public void setBegVisitorTime(Long begVisitorTime) {
|
||||
this.begVisitorTime = begVisitorTime;
|
||||
}
|
||||
|
||||
public Long getEndVisitorTime() {
|
||||
return this.endVisitorTime;
|
||||
}
|
||||
|
||||
public void setEndVisitorTime(Long endVisitorTime) {
|
||||
this.endVisitorTime = endVisitorTime;
|
||||
}
|
||||
|
||||
public String getRegFaceUrl() {
|
||||
return this.regFaceUrl;
|
||||
}
|
||||
|
||||
public void setRegFaceUrl(String regFaceUrl) {
|
||||
this.regFaceUrl = regFaceUrl;
|
||||
}
|
||||
|
||||
public String getDisplayUrl() {
|
||||
return this.displayUrl;
|
||||
}
|
||||
|
||||
public void setDisplayUrl(String displayUrl) {
|
||||
this.displayUrl = displayUrl;
|
||||
}
|
||||
|
||||
public String getRemark() {
|
||||
return this.remark;
|
||||
}
|
||||
|
||||
public void setRemark(String remark) {
|
||||
this.remark = remark;
|
||||
}
|
||||
|
||||
public Integer getImageStoreStatus() {
|
||||
return this.imageStoreStatus;
|
||||
}
|
||||
|
||||
public void setImageStoreStatus(Integer imageStoreStatus) {
|
||||
this.imageStoreStatus = imageStoreStatus;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "VisitorEditDTO{id='" + this.id + '\'' + ", businessId='" + this.businessId + '\'' + ", name='" + this.name + '\'' + ", cardType=" + this.cardType + ", cardNo='" + this.cardNo + '\'' + ", greetWord='" + this.greetWord + '\'' + ", personId='" + this.personId + '\'' + ", personName='" + this.personName + '\'' + ", begVisitorTime=" + this.begVisitorTime + ", endVisitorTime=" + this.endVisitorTime + ", regFaceUrl='" + this.regFaceUrl + '\'' + ", displayUrl='" + this.displayUrl + '\'' + ", remark='" + this.remark + '\'' + ", workNo='" + this.workNo + '\'' + ", visitorCode='" + this.visitorCode + '\'' + ", imageStoreStatus=" + this.imageStoreStatus + '}';
|
||||
}
|
||||
}
|
||||
|
||||
+44
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package cn.cloudwalk.common.ninca.visitor.bean.visitor.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
public class VisitorGetsDTO
|
||||
implements Serializable {
|
||||
private static final long serialVersionUID = 2902707786658114895L;
|
||||
private String businessId;
|
||||
private List<String> ids;
|
||||
private Integer isDelete;
|
||||
|
||||
public String getBusinessId() {
|
||||
return this.businessId;
|
||||
}
|
||||
|
||||
public void setBusinessId(String businessId) {
|
||||
this.businessId = businessId;
|
||||
}
|
||||
|
||||
public List<String> getIds() {
|
||||
return this.ids;
|
||||
}
|
||||
|
||||
public void setIds(List<String> ids) {
|
||||
this.ids = ids;
|
||||
}
|
||||
|
||||
public Integer getIsDelete() {
|
||||
return this.isDelete;
|
||||
}
|
||||
|
||||
public void setIsDelete(Integer isDelete) {
|
||||
this.isDelete = isDelete;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "VisitorGetsDTO{businessId='" + this.businessId + '\'' + ", ids=" + this.ids + ", isDelete=" + this.isDelete + '}';
|
||||
}
|
||||
}
|
||||
|
||||
+297
@@ -0,0 +1,297 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.cloud.annotation.DataFieldEncrypt
|
||||
* cn.cloudwalk.cloud.annotation.DataObjectEncrypt
|
||||
* cn.cloudwalk.cloud.entity.CloudwalkBaseTimes
|
||||
*/
|
||||
package cn.cloudwalk.common.ninca.visitor.bean.visitor.dto;
|
||||
|
||||
import cn.cloudwalk.cloud.annotation.DataFieldEncrypt;
|
||||
import cn.cloudwalk.cloud.annotation.DataObjectEncrypt;
|
||||
import cn.cloudwalk.cloud.entity.CloudwalkBaseTimes;
|
||||
import java.io.Serializable;
|
||||
|
||||
@DataObjectEncrypt
|
||||
public class VisitorNewDTO
|
||||
extends CloudwalkBaseTimes
|
||||
implements Serializable {
|
||||
private static final long serialVersionUID = -3648383413277285051L;
|
||||
private String id;
|
||||
private String registerId;
|
||||
private String businessId;
|
||||
private String name;
|
||||
private Integer cardType;
|
||||
@DataFieldEncrypt
|
||||
private String cardNo;
|
||||
private String greetWord;
|
||||
private String personId;
|
||||
private String personName;
|
||||
private Long begVisitorTime;
|
||||
private Long endVisitorTime;
|
||||
private String regFaceUrl;
|
||||
private String displayUrl;
|
||||
private String remark;
|
||||
private String workNo;
|
||||
private String visitorCode;
|
||||
private Integer imageStoreStatus;
|
||||
private Integer regType;
|
||||
private Integer sex;
|
||||
private String companyName;
|
||||
private String cause;
|
||||
private String carryOn;
|
||||
private String licensePlate;
|
||||
private String telephone;
|
||||
private String personTelephone;
|
||||
private String detailedAddress;
|
||||
private String operatorUserId;
|
||||
private String operatorUserName;
|
||||
private String deviceCode;
|
||||
private String deviceName;
|
||||
|
||||
public String getOperatorUserName() {
|
||||
return this.operatorUserName;
|
||||
}
|
||||
|
||||
public void setOperatorUserName(String operatorUserName) {
|
||||
this.operatorUserName = operatorUserName;
|
||||
}
|
||||
|
||||
public String getDeviceName() {
|
||||
return this.deviceName;
|
||||
}
|
||||
|
||||
public void setDeviceName(String deviceName) {
|
||||
this.deviceName = deviceName;
|
||||
}
|
||||
|
||||
public String getOperatorUserId() {
|
||||
return this.operatorUserId;
|
||||
}
|
||||
|
||||
public void setOperatorUserId(String operatorUserId) {
|
||||
this.operatorUserId = operatorUserId;
|
||||
}
|
||||
|
||||
public String getDeviceCode() {
|
||||
return this.deviceCode;
|
||||
}
|
||||
|
||||
public void setDeviceCode(String deviceCode) {
|
||||
this.deviceCode = deviceCode;
|
||||
}
|
||||
|
||||
public String getDetailedAddress() {
|
||||
return this.detailedAddress;
|
||||
}
|
||||
|
||||
public void setDetailedAddress(String detailedAddress) {
|
||||
this.detailedAddress = detailedAddress;
|
||||
}
|
||||
|
||||
public String getTelephone() {
|
||||
return this.telephone;
|
||||
}
|
||||
|
||||
public void setTelephone(String telephone) {
|
||||
this.telephone = telephone;
|
||||
}
|
||||
|
||||
public String getPersonTelephone() {
|
||||
return this.personTelephone;
|
||||
}
|
||||
|
||||
public void setPersonTelephone(String personTelephone) {
|
||||
this.personTelephone = personTelephone;
|
||||
}
|
||||
|
||||
public Integer getSex() {
|
||||
return this.sex;
|
||||
}
|
||||
|
||||
public void setSex(Integer sex) {
|
||||
this.sex = sex;
|
||||
}
|
||||
|
||||
public String getCompanyName() {
|
||||
return this.companyName;
|
||||
}
|
||||
|
||||
public void setCompanyName(String companyName) {
|
||||
this.companyName = companyName;
|
||||
}
|
||||
|
||||
public String getCause() {
|
||||
return this.cause;
|
||||
}
|
||||
|
||||
public void setCause(String cause) {
|
||||
this.cause = cause;
|
||||
}
|
||||
|
||||
public String getCarryOn() {
|
||||
return this.carryOn;
|
||||
}
|
||||
|
||||
public void setCarryOn(String carryOn) {
|
||||
this.carryOn = carryOn;
|
||||
}
|
||||
|
||||
public String getLicensePlate() {
|
||||
return this.licensePlate;
|
||||
}
|
||||
|
||||
public void setLicensePlate(String licensePlate) {
|
||||
this.licensePlate = licensePlate;
|
||||
}
|
||||
|
||||
public Integer getRegType() {
|
||||
return this.regType;
|
||||
}
|
||||
|
||||
public void setRegType(Integer regType) {
|
||||
this.regType = regType;
|
||||
}
|
||||
|
||||
public String getWorkNo() {
|
||||
return this.workNo;
|
||||
}
|
||||
|
||||
public void setWorkNo(String workNo) {
|
||||
this.workNo = workNo;
|
||||
}
|
||||
|
||||
public String getVisitorCode() {
|
||||
return this.visitorCode;
|
||||
}
|
||||
|
||||
public void setVisitorCode(String visitorCode) {
|
||||
this.visitorCode = visitorCode;
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getPersonName() {
|
||||
return this.personName;
|
||||
}
|
||||
|
||||
public void setPersonName(String personName) {
|
||||
this.personName = personName;
|
||||
}
|
||||
|
||||
public String getBusinessId() {
|
||||
return this.businessId;
|
||||
}
|
||||
|
||||
public void setBusinessId(String businessId) {
|
||||
this.businessId = businessId;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return this.name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public Integer getCardType() {
|
||||
return this.cardType;
|
||||
}
|
||||
|
||||
public void setCardType(Integer cardType) {
|
||||
this.cardType = cardType;
|
||||
}
|
||||
|
||||
public String getCardNo() {
|
||||
return this.cardNo;
|
||||
}
|
||||
|
||||
public void setCardNo(String cardNo) {
|
||||
this.cardNo = cardNo;
|
||||
}
|
||||
|
||||
public String getGreetWord() {
|
||||
return this.greetWord;
|
||||
}
|
||||
|
||||
public void setGreetWord(String greetWord) {
|
||||
this.greetWord = greetWord;
|
||||
}
|
||||
|
||||
public String getPersonId() {
|
||||
return this.personId;
|
||||
}
|
||||
|
||||
public void setPersonId(String personId) {
|
||||
this.personId = personId;
|
||||
}
|
||||
|
||||
public Long getBegVisitorTime() {
|
||||
return this.begVisitorTime;
|
||||
}
|
||||
|
||||
public void setBegVisitorTime(Long begVisitorTime) {
|
||||
this.begVisitorTime = begVisitorTime;
|
||||
}
|
||||
|
||||
public Long getEndVisitorTime() {
|
||||
return this.endVisitorTime;
|
||||
}
|
||||
|
||||
public void setEndVisitorTime(Long endVisitorTime) {
|
||||
this.endVisitorTime = endVisitorTime;
|
||||
}
|
||||
|
||||
public String getRegFaceUrl() {
|
||||
return this.regFaceUrl;
|
||||
}
|
||||
|
||||
public void setRegFaceUrl(String regFaceUrl) {
|
||||
this.regFaceUrl = regFaceUrl;
|
||||
}
|
||||
|
||||
public String getDisplayUrl() {
|
||||
return this.displayUrl;
|
||||
}
|
||||
|
||||
public void setDisplayUrl(String displayUrl) {
|
||||
this.displayUrl = displayUrl;
|
||||
}
|
||||
|
||||
public String getRemark() {
|
||||
return this.remark;
|
||||
}
|
||||
|
||||
public void setRemark(String remark) {
|
||||
this.remark = remark;
|
||||
}
|
||||
|
||||
public Integer getImageStoreStatus() {
|
||||
return this.imageStoreStatus;
|
||||
}
|
||||
|
||||
public void setImageStoreStatus(Integer imageStoreStatus) {
|
||||
this.imageStoreStatus = imageStoreStatus;
|
||||
}
|
||||
|
||||
public String getRegisterId() {
|
||||
return this.registerId;
|
||||
}
|
||||
|
||||
public void setRegisterId(String registerId) {
|
||||
this.registerId = registerId;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "VisitorNewDTO{id='" + this.id + '\'' + ", registerId='" + this.registerId + '\'' + ", businessId='" + this.businessId + '\'' + ", name='" + this.name + '\'' + ", cardType=" + this.cardType + ", cardNo='" + this.cardNo + '\'' + ", greetWord='" + this.greetWord + '\'' + ", personId='" + this.personId + '\'' + ", personName='" + this.personName + '\'' + ", begVisitorTime=" + this.begVisitorTime + ", endVisitorTime=" + this.endVisitorTime + ", regFaceUrl='" + this.regFaceUrl + '\'' + ", displayUrl='" + this.displayUrl + '\'' + ", remark='" + this.remark + '\'' + ", workNo='" + this.workNo + '\'' + ", visitorCode='" + this.visitorCode + '\'' + ", imageStoreStatus=" + this.imageStoreStatus + '}';
|
||||
}
|
||||
}
|
||||
|
||||
+234
@@ -0,0 +1,234 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.cloud.annotation.DataFieldEncrypt
|
||||
* cn.cloudwalk.cloud.annotation.DataObjectEncrypt
|
||||
* cn.cloudwalk.cloud.entity.CloudwalkBaseTimes
|
||||
*/
|
||||
package cn.cloudwalk.common.ninca.visitor.bean.visitor.dto;
|
||||
|
||||
import cn.cloudwalk.cloud.annotation.DataFieldEncrypt;
|
||||
import cn.cloudwalk.cloud.annotation.DataObjectEncrypt;
|
||||
import cn.cloudwalk.cloud.entity.CloudwalkBaseTimes;
|
||||
import java.io.Serializable;
|
||||
|
||||
@DataObjectEncrypt
|
||||
public class VisitorPageResultDTO
|
||||
extends CloudwalkBaseTimes
|
||||
implements Serializable {
|
||||
private static final long serialVersionUID = -4839702875433273412L;
|
||||
private String businessId;
|
||||
private String name;
|
||||
@DataFieldEncrypt
|
||||
private String cardNo;
|
||||
private String greetWord;
|
||||
private String personId;
|
||||
private String personName;
|
||||
private String regFaceUrl;
|
||||
private String displayUrl;
|
||||
private String remark;
|
||||
private Long begVisitorTime;
|
||||
private Long endVisitorTime;
|
||||
private String visitorCode;
|
||||
private Integer regType;
|
||||
private Integer sex;
|
||||
private String companyName;
|
||||
private String cause;
|
||||
private String carryOn;
|
||||
private String licensePlate;
|
||||
private String telephone;
|
||||
private String personTelephone;
|
||||
private String detailedAddress;
|
||||
private String deviceName;
|
||||
private String operatorUserName;
|
||||
|
||||
public String getOperatorUserName() {
|
||||
return this.operatorUserName;
|
||||
}
|
||||
|
||||
public void setOperatorUserName(String operatorUserName) {
|
||||
this.operatorUserName = operatorUserName;
|
||||
}
|
||||
|
||||
public String getDeviceName() {
|
||||
return this.deviceName;
|
||||
}
|
||||
|
||||
public void setDeviceName(String deviceName) {
|
||||
this.deviceName = deviceName;
|
||||
}
|
||||
|
||||
public String getDetailedAddress() {
|
||||
return this.detailedAddress;
|
||||
}
|
||||
|
||||
public void setDetailedAddress(String detailedAddress) {
|
||||
this.detailedAddress = detailedAddress;
|
||||
}
|
||||
|
||||
public String getTelephone() {
|
||||
return this.telephone;
|
||||
}
|
||||
|
||||
public void setTelephone(String telephone) {
|
||||
this.telephone = telephone;
|
||||
}
|
||||
|
||||
public String getPersonTelephone() {
|
||||
return this.personTelephone;
|
||||
}
|
||||
|
||||
public void setPersonTelephone(String personTelephone) {
|
||||
this.personTelephone = personTelephone;
|
||||
}
|
||||
|
||||
public Integer getSex() {
|
||||
return this.sex;
|
||||
}
|
||||
|
||||
public void setSex(Integer sex) {
|
||||
this.sex = sex;
|
||||
}
|
||||
|
||||
public String getCompanyName() {
|
||||
return this.companyName;
|
||||
}
|
||||
|
||||
public void setCompanyName(String companyName) {
|
||||
this.companyName = companyName;
|
||||
}
|
||||
|
||||
public String getCause() {
|
||||
return this.cause;
|
||||
}
|
||||
|
||||
public void setCause(String cause) {
|
||||
this.cause = cause;
|
||||
}
|
||||
|
||||
public String getCarryOn() {
|
||||
return this.carryOn;
|
||||
}
|
||||
|
||||
public void setCarryOn(String carryOn) {
|
||||
this.carryOn = carryOn;
|
||||
}
|
||||
|
||||
public String getLicensePlate() {
|
||||
return this.licensePlate;
|
||||
}
|
||||
|
||||
public void setLicensePlate(String licensePlate) {
|
||||
this.licensePlate = licensePlate;
|
||||
}
|
||||
|
||||
public Integer getRegType() {
|
||||
return this.regType;
|
||||
}
|
||||
|
||||
public void setRegType(Integer regType) {
|
||||
this.regType = regType;
|
||||
}
|
||||
|
||||
public String getBusinessId() {
|
||||
return this.businessId;
|
||||
}
|
||||
|
||||
public void setBusinessId(String businessId) {
|
||||
this.businessId = businessId;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return this.name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getPersonName() {
|
||||
return this.personName;
|
||||
}
|
||||
|
||||
public void setPersonName(String personName) {
|
||||
this.personName = personName;
|
||||
}
|
||||
|
||||
public String getRegFaceUrl() {
|
||||
return this.regFaceUrl;
|
||||
}
|
||||
|
||||
public void setRegFaceUrl(String regFaceUrl) {
|
||||
this.regFaceUrl = regFaceUrl;
|
||||
}
|
||||
|
||||
public String getDisplayUrl() {
|
||||
return this.displayUrl;
|
||||
}
|
||||
|
||||
public void setDisplayUrl(String displayUrl) {
|
||||
this.displayUrl = displayUrl;
|
||||
}
|
||||
|
||||
public String getRemark() {
|
||||
return this.remark;
|
||||
}
|
||||
|
||||
public void setRemark(String remark) {
|
||||
this.remark = remark;
|
||||
}
|
||||
|
||||
public Long getBegVisitorTime() {
|
||||
return this.begVisitorTime;
|
||||
}
|
||||
|
||||
public void setBegVisitorTime(Long begVisitorTime) {
|
||||
this.begVisitorTime = begVisitorTime;
|
||||
}
|
||||
|
||||
public Long getEndVisitorTime() {
|
||||
return this.endVisitorTime;
|
||||
}
|
||||
|
||||
public void setEndVisitorTime(Long endVisitorTime) {
|
||||
this.endVisitorTime = endVisitorTime;
|
||||
}
|
||||
|
||||
public String getCardNo() {
|
||||
return this.cardNo;
|
||||
}
|
||||
|
||||
public void setCardNo(String cardNo) {
|
||||
this.cardNo = cardNo;
|
||||
}
|
||||
|
||||
public String getGreetWord() {
|
||||
return this.greetWord;
|
||||
}
|
||||
|
||||
public void setGreetWord(String greetWord) {
|
||||
this.greetWord = greetWord;
|
||||
}
|
||||
|
||||
public String getPersonId() {
|
||||
return this.personId;
|
||||
}
|
||||
|
||||
public void setPersonId(String personId) {
|
||||
this.personId = personId;
|
||||
}
|
||||
|
||||
public String getVisitorCode() {
|
||||
return this.visitorCode;
|
||||
}
|
||||
|
||||
public void setVisitorCode(String visitorCode) {
|
||||
this.visitorCode = visitorCode;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "VisitorPageResultDTO{businessId='" + this.businessId + '\'' + ", name='" + this.name + '\'' + ", cardNo='" + this.cardNo + '\'' + ", greetWord='" + this.greetWord + '\'' + ", personId='" + this.personId + '\'' + ", personName='" + this.personName + '\'' + ", regFaceUrl='" + this.regFaceUrl + '\'' + ", displayUrl='" + this.displayUrl + '\'' + ", remark='" + this.remark + '\'' + ", begVisitorTime=" + this.begVisitorTime + ", endVisitorTime=" + this.endVisitorTime + ", visitorCode='" + this.visitorCode + '\'' + ", deviceName='" + this.deviceName + '\'' + ", operatorUserName='" + this.operatorUserName + '\'' + '}';
|
||||
}
|
||||
}
|
||||
|
||||
+57
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.cloud.page.CloudwalkBasePageForm
|
||||
*/
|
||||
package cn.cloudwalk.common.ninca.visitor.bean.visitor.dto;
|
||||
|
||||
import cn.cloudwalk.cloud.page.CloudwalkBasePageForm;
|
||||
import java.io.Serializable;
|
||||
|
||||
public class VisitorQueryDTO
|
||||
extends CloudwalkBasePageForm
|
||||
implements Serializable {
|
||||
private static final long serialVersionUID = 8567515755602646637L;
|
||||
private String businessId;
|
||||
private Long begVisitorTime;
|
||||
private Long endVisitorTime;
|
||||
private Integer imageStoreStatus;
|
||||
|
||||
public String getBusinessId() {
|
||||
return this.businessId;
|
||||
}
|
||||
|
||||
public void setBusinessId(String businessId) {
|
||||
this.businessId = businessId;
|
||||
}
|
||||
|
||||
public Long getBegVisitorTime() {
|
||||
return this.begVisitorTime;
|
||||
}
|
||||
|
||||
public void setBegVisitorTime(Long begVisitorTime) {
|
||||
this.begVisitorTime = begVisitorTime;
|
||||
}
|
||||
|
||||
public Long getEndVisitorTime() {
|
||||
return this.endVisitorTime;
|
||||
}
|
||||
|
||||
public void setEndVisitorTime(Long endVisitorTime) {
|
||||
this.endVisitorTime = endVisitorTime;
|
||||
}
|
||||
|
||||
public Integer getImageStoreStatus() {
|
||||
return this.imageStoreStatus;
|
||||
}
|
||||
|
||||
public void setImageStoreStatus(Integer imageStoreStatus) {
|
||||
this.imageStoreStatus = imageStoreStatus;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "VisitorQueryDTO{businessId='" + this.businessId + '\'' + ", begVisitorTime=" + this.begVisitorTime + ", endVisitorTime=" + this.endVisitorTime + ", imageStoreStatus=" + this.imageStoreStatus + '}';
|
||||
}
|
||||
}
|
||||
|
||||
+297
@@ -0,0 +1,297 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.cloud.annotation.DataFieldEncrypt
|
||||
* cn.cloudwalk.cloud.annotation.DataObjectEncrypt
|
||||
* cn.cloudwalk.cloud.entity.CloudwalkBaseTimes
|
||||
*/
|
||||
package cn.cloudwalk.common.ninca.visitor.bean.visitor.dto;
|
||||
|
||||
import cn.cloudwalk.cloud.annotation.DataFieldEncrypt;
|
||||
import cn.cloudwalk.cloud.annotation.DataObjectEncrypt;
|
||||
import cn.cloudwalk.cloud.entity.CloudwalkBaseTimes;
|
||||
import java.io.Serializable;
|
||||
|
||||
@DataObjectEncrypt
|
||||
public class VisitorResultDTO
|
||||
extends CloudwalkBaseTimes
|
||||
implements Serializable {
|
||||
private static final long serialVersionUID = 4321535475928250752L;
|
||||
private String id;
|
||||
private String registerId;
|
||||
private String businessId;
|
||||
private Long orgId;
|
||||
private String name;
|
||||
private Integer cardType;
|
||||
@DataFieldEncrypt
|
||||
private String cardNo;
|
||||
private String personId;
|
||||
private String personName;
|
||||
private Long begVisitorTime;
|
||||
private Long endVisitorTime;
|
||||
private String regFaceUrl;
|
||||
private String displayUrl;
|
||||
private Integer isDelete;
|
||||
private Integer imageStoreStatus;
|
||||
private Integer regType;
|
||||
private String remark;
|
||||
private String workNo;
|
||||
private String visitorCode;
|
||||
private String greetWord;
|
||||
private Integer sex;
|
||||
private String companyName;
|
||||
private String cause;
|
||||
private String carryOn;
|
||||
private String licensePlate;
|
||||
private String telephone;
|
||||
private String personTelephone;
|
||||
private String detailedAddress;
|
||||
private String deviceName;
|
||||
private String operatorUserName;
|
||||
|
||||
public String getDeviceName() {
|
||||
return this.deviceName;
|
||||
}
|
||||
|
||||
public void setDeviceName(String deviceName) {
|
||||
this.deviceName = deviceName;
|
||||
}
|
||||
|
||||
public String getOperatorUserName() {
|
||||
return this.operatorUserName;
|
||||
}
|
||||
|
||||
public void setOperatorUserName(String operatorUserName) {
|
||||
this.operatorUserName = operatorUserName;
|
||||
}
|
||||
|
||||
public String getDetailedAddress() {
|
||||
return this.detailedAddress;
|
||||
}
|
||||
|
||||
public void setDetailedAddress(String detailedAddress) {
|
||||
this.detailedAddress = detailedAddress;
|
||||
}
|
||||
|
||||
public String getTelephone() {
|
||||
return this.telephone;
|
||||
}
|
||||
|
||||
public void setTelephone(String telephone) {
|
||||
this.telephone = telephone;
|
||||
}
|
||||
|
||||
public String getPersonTelephone() {
|
||||
return this.personTelephone;
|
||||
}
|
||||
|
||||
public void setPersonTelephone(String personTelephone) {
|
||||
this.personTelephone = personTelephone;
|
||||
}
|
||||
|
||||
public Integer getSex() {
|
||||
return this.sex;
|
||||
}
|
||||
|
||||
public void setSex(Integer sex) {
|
||||
this.sex = sex;
|
||||
}
|
||||
|
||||
public String getCompanyName() {
|
||||
return this.companyName;
|
||||
}
|
||||
|
||||
public void setCompanyName(String companyName) {
|
||||
this.companyName = companyName;
|
||||
}
|
||||
|
||||
public String getCause() {
|
||||
return this.cause;
|
||||
}
|
||||
|
||||
public void setCause(String cause) {
|
||||
this.cause = cause;
|
||||
}
|
||||
|
||||
public String getCarryOn() {
|
||||
return this.carryOn;
|
||||
}
|
||||
|
||||
public void setCarryOn(String carryOn) {
|
||||
this.carryOn = carryOn;
|
||||
}
|
||||
|
||||
public String getLicensePlate() {
|
||||
return this.licensePlate;
|
||||
}
|
||||
|
||||
public void setLicensePlate(String licensePlate) {
|
||||
this.licensePlate = licensePlate;
|
||||
}
|
||||
|
||||
public String getWorkNo() {
|
||||
return this.workNo;
|
||||
}
|
||||
|
||||
public void setWorkNo(String workNo) {
|
||||
this.workNo = workNo;
|
||||
}
|
||||
|
||||
public String getVisitorCode() {
|
||||
return this.visitorCode;
|
||||
}
|
||||
|
||||
public void setVisitorCode(String visitorCode) {
|
||||
this.visitorCode = visitorCode;
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getPersonName() {
|
||||
return this.personName;
|
||||
}
|
||||
|
||||
public void setPersonName(String personName) {
|
||||
this.personName = personName;
|
||||
}
|
||||
|
||||
public String getBusinessId() {
|
||||
return this.businessId;
|
||||
}
|
||||
|
||||
public void setBusinessId(String businessId) {
|
||||
this.businessId = businessId;
|
||||
}
|
||||
|
||||
public Long getOrgId() {
|
||||
return this.orgId;
|
||||
}
|
||||
|
||||
public void setOrgId(Long orgId) {
|
||||
this.orgId = orgId;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return this.name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public Integer getCardType() {
|
||||
return this.cardType;
|
||||
}
|
||||
|
||||
public void setCardType(Integer cardType) {
|
||||
this.cardType = cardType;
|
||||
}
|
||||
|
||||
public String getCardNo() {
|
||||
return this.cardNo;
|
||||
}
|
||||
|
||||
public void setCardNo(String cardNo) {
|
||||
this.cardNo = cardNo;
|
||||
}
|
||||
|
||||
public String getGreetWord() {
|
||||
return this.greetWord;
|
||||
}
|
||||
|
||||
public void setGreetWord(String greetWord) {
|
||||
this.greetWord = greetWord;
|
||||
}
|
||||
|
||||
public String getPersonId() {
|
||||
return this.personId;
|
||||
}
|
||||
|
||||
public void setPersonId(String personId) {
|
||||
this.personId = personId;
|
||||
}
|
||||
|
||||
public Long getBegVisitorTime() {
|
||||
return this.begVisitorTime;
|
||||
}
|
||||
|
||||
public void setBegVisitorTime(Long begVisitorTime) {
|
||||
this.begVisitorTime = begVisitorTime;
|
||||
}
|
||||
|
||||
public Long getEndVisitorTime() {
|
||||
return this.endVisitorTime;
|
||||
}
|
||||
|
||||
public void setEndVisitorTime(Long endVisitorTime) {
|
||||
this.endVisitorTime = endVisitorTime;
|
||||
}
|
||||
|
||||
public String getRegFaceUrl() {
|
||||
return this.regFaceUrl;
|
||||
}
|
||||
|
||||
public void setRegFaceUrl(String regFaceUrl) {
|
||||
this.regFaceUrl = regFaceUrl;
|
||||
}
|
||||
|
||||
public String getDisplayUrl() {
|
||||
return this.displayUrl;
|
||||
}
|
||||
|
||||
public void setDisplayUrl(String displayUrl) {
|
||||
this.displayUrl = displayUrl;
|
||||
}
|
||||
|
||||
public String getRemark() {
|
||||
return this.remark;
|
||||
}
|
||||
|
||||
public void setRemark(String remark) {
|
||||
this.remark = remark;
|
||||
}
|
||||
|
||||
public Integer getIsDelete() {
|
||||
return this.isDelete;
|
||||
}
|
||||
|
||||
public void setIsDelete(Integer isDelete) {
|
||||
this.isDelete = isDelete;
|
||||
}
|
||||
|
||||
public Integer getImageStoreStatus() {
|
||||
return this.imageStoreStatus;
|
||||
}
|
||||
|
||||
public void setImageStoreStatus(Integer imageStoreStatus) {
|
||||
this.imageStoreStatus = imageStoreStatus;
|
||||
}
|
||||
|
||||
public String getRegisterId() {
|
||||
return this.registerId;
|
||||
}
|
||||
|
||||
public void setRegisterId(String registerId) {
|
||||
this.registerId = registerId;
|
||||
}
|
||||
|
||||
public Integer getRegType() {
|
||||
return this.regType;
|
||||
}
|
||||
|
||||
public void setRegType(Integer regType) {
|
||||
this.regType = regType;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "VisitorResultDTO{id='" + this.id + '\'' + ", registerId='" + this.registerId + '\'' + ", businessId='" + this.businessId + '\'' + ", orgId=" + this.orgId + ", name='" + this.name + '\'' + ", cardType=" + this.cardType + ", cardNo='" + this.cardNo + '\'' + ", greetWord='" + this.greetWord + '\'' + ", personId='" + this.personId + '\'' + ", personName='" + this.personName + '\'' + ", begVisitorTime=" + this.begVisitorTime + ", endVisitorTime=" + this.endVisitorTime + ", regFaceUrl='" + this.regFaceUrl + '\'' + ", displayUrl='" + this.displayUrl + '\'' + ", remark='" + this.remark + '\'' + ", workNo='" + this.workNo + '\'' + ", visitorCode='" + this.visitorCode + '\'' + ", isDelete=" + this.isDelete + ", imageStoreStatus=" + this.imageStoreStatus + ", regType=" + this.regType + '}';
|
||||
}
|
||||
}
|
||||
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package cn.cloudwalk.common.ninca.visitor.config;
|
||||
|
||||
public class VisitorAnonymousAddSignConstants {
|
||||
public static final String DEFAULT_AES_KEY = "www.cloudwalk.cn";
|
||||
public static final String DEFAULT_AES_IV = "otJe9ywLJ6#LLtgC";
|
||||
public static final String DEFAULT_MD5_KEY = "intelligent_@FASaf@F21";
|
||||
|
||||
private VisitorAnonymousAddSignConstants() {
|
||||
}
|
||||
}
|
||||
|
||||
+29
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package cn.cloudwalk.common.ninca.visitor.config;
|
||||
|
||||
public class VisitorConstants {
|
||||
public static final String SUCCESS_CODE = "00000000";
|
||||
public static final String SERVICE_CODE = "visitor-mgmt";
|
||||
public static final String ELEVATOR_RECORD = "VISITOR_RECORD_TOPICelevator_record";
|
||||
public static final String MODULE_CATEGORY = "aiot";
|
||||
public static final String ACCESS_CONTROL_SERVICE_CODE = "access-control";
|
||||
public static final String PLATFORM_USER_ID = "platformuserid";
|
||||
public static final String LOGIN_ID = "loginid";
|
||||
public static final String PERSON_ID = "personId";
|
||||
public static final String ROLE_IDS = "roleIds";
|
||||
public static final String BUSINESS_ID = "businessid";
|
||||
public static final String USER_NAME = "username";
|
||||
public static final String APPLICATION_ID = "applicationid";
|
||||
public static final String AUTHORIZATION = "authorization";
|
||||
public static final String VISITOR_APPROVED_SMS_TEMPLATE = "SMS_182551480";
|
||||
public static final String VISITOR_WAITING_SMS_URL_TEMPLATE = "SMS_182677013";
|
||||
public static final String VISITOR_REG_SUCCESS_SMS_TEMPLATE = "SMS_193244830";
|
||||
public static final String VISITOR_REG_FAIL_SMS_TEMPLATE = "SMS_193520508";
|
||||
public static final String PID = "pid";
|
||||
|
||||
private VisitorConstants() {
|
||||
}
|
||||
}
|
||||
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package cn.cloudwalk.common.ninca.visitor.config;
|
||||
|
||||
public final class VisitorDeviceConstants {
|
||||
public static final Integer DEFAULT_RECOG_STATUS = 1;
|
||||
public static final String DEFAULT_DEVICE_DATEFORMAT = "yyyyMMdd";
|
||||
public static final Integer RECOGNITION_RESULT_SUCCESS = 1;
|
||||
public static final Integer RECOGNITION_RESULT_FAIL = 2;
|
||||
|
||||
private VisitorDeviceConstants() {
|
||||
}
|
||||
}
|
||||
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package cn.cloudwalk.common.ninca.visitor.config;
|
||||
|
||||
public class VisitorFeignRemoteConfig {
|
||||
public static final String SUCCESS_CODE = "00000000";
|
||||
public static final String SERVICE_CODE = "visitor-mgmt";
|
||||
public static final String PLATFORM_USER_ID = "platformuserid";
|
||||
public static final String LOGIN_ID = "loginid";
|
||||
public static final String BUSINESS_ID = "businessid";
|
||||
public static final String USER_NAME = "username";
|
||||
public static final String APPLICATION_ID = "applicationid";
|
||||
public static final String AUTHORIZATION = "authorization";
|
||||
public static final double FACE_QUALITY = 0.65;
|
||||
|
||||
private VisitorFeignRemoteConfig() {
|
||||
}
|
||||
}
|
||||
|
||||
+85
@@ -0,0 +1,85 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.cloud.context.CloudwalkCallContext
|
||||
* cn.cloudwalk.cloud.session.extend.DefaultExtendContext
|
||||
* javax.servlet.http.HttpServletRequest
|
||||
*/
|
||||
package cn.cloudwalk.common.ninca.visitor.config;
|
||||
|
||||
import cn.cloudwalk.cloud.context.CloudwalkCallContext;
|
||||
import cn.cloudwalk.cloud.session.extend.DefaultExtendContext;
|
||||
import cn.cloudwalk.common.ninca.visitor.util.StringUtils;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
|
||||
public class VisitorFeignThreadLocalUtil {
|
||||
private static ThreadLocal<Map<String, String>> threadLocal = new ThreadLocal();
|
||||
|
||||
public static void set(Map<String, String> t) {
|
||||
threadLocal.remove();
|
||||
threadLocal.set(t);
|
||||
}
|
||||
|
||||
public static Map<String, String> get() {
|
||||
return threadLocal.get();
|
||||
}
|
||||
|
||||
public static Map<String, String> getRequestHeader(HttpServletRequest request) {
|
||||
ConcurrentHashMap<String, String> map = new ConcurrentHashMap<String, String>(10);
|
||||
if (null != request.getHeader("platformuserid")) {
|
||||
map.put("platformuserid", request.getHeader("platformuserid"));
|
||||
}
|
||||
if (null != request.getHeader("loginid")) {
|
||||
map.put("loginid", request.getHeader("loginid"));
|
||||
}
|
||||
if (null != request.getHeader("businessid")) {
|
||||
map.put("businessid", request.getHeader("businessid"));
|
||||
}
|
||||
if (null != request.getHeader("username")) {
|
||||
map.put("username", request.getHeader("username"));
|
||||
}
|
||||
if (null != request.getHeader("applicationid")) {
|
||||
map.put("applicationid", request.getHeader("applicationid"));
|
||||
}
|
||||
if (null != request.getHeader("authorization")) {
|
||||
map.put("authorization", request.getHeader("authorization"));
|
||||
}
|
||||
return map;
|
||||
}
|
||||
|
||||
public static Map<String, String> getDefaultReqesutHeader(String businessId) {
|
||||
ConcurrentHashMap<String, String> map = new ConcurrentHashMap<String, String>(2);
|
||||
map.put("businessid", businessId);
|
||||
map.put("username", "default");
|
||||
return map;
|
||||
}
|
||||
|
||||
public static void setRequestHeader(Map<String, String> headerMap) {
|
||||
VisitorFeignThreadLocalUtil.set(headerMap);
|
||||
}
|
||||
|
||||
public static void remove() {
|
||||
threadLocal.remove();
|
||||
}
|
||||
|
||||
public static Map<String, String> getDefaultRequestHeader(CloudwalkCallContext context) {
|
||||
HashMap<String, String> map = new HashMap<String, String>(10);
|
||||
DefaultExtendContext extendContext = (DefaultExtendContext)context.getExt();
|
||||
map.put("platformuserid", context.getUser().getCaller());
|
||||
map.put("loginid", (String)((Map)extendContext.getValue()).get("loginid"));
|
||||
map.put("businessid", context.getCompany().getCompanyId());
|
||||
map.put("username", StringUtils.isEmpty(context.getUser().getCallerName()) ? "default" : context.getUser().getCallerName());
|
||||
map.put("applicationid", context.getApplicationId());
|
||||
map.put("authorization", (String)((Map)extendContext.getValue()).get("authorization"));
|
||||
return map;
|
||||
}
|
||||
|
||||
public static void setRequestHeader(CloudwalkCallContext context) {
|
||||
VisitorFeignThreadLocalUtil.set(VisitorFeignThreadLocalUtil.getDefaultRequestHeader(context));
|
||||
}
|
||||
}
|
||||
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package cn.cloudwalk.common.ninca.visitor.config;
|
||||
|
||||
public class VisitorLockConstants {
|
||||
public static final String LOCK_EXPORT_BUSINESSID_PREFIX = "VisitorExport:";
|
||||
|
||||
private VisitorLockConstants() {
|
||||
}
|
||||
}
|
||||
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package cn.cloudwalk.common.ninca.visitor.context;
|
||||
|
||||
public class CloudWalkExtendContextValue {
|
||||
private String loginId;
|
||||
private String authorization;
|
||||
|
||||
public String getLoginId() {
|
||||
return this.loginId;
|
||||
}
|
||||
|
||||
public void setLoginId(String loginId) {
|
||||
this.loginId = loginId;
|
||||
}
|
||||
|
||||
public String getAuthorization() {
|
||||
return this.authorization;
|
||||
}
|
||||
|
||||
public void setAuthorization(String authorization) {
|
||||
this.authorization = authorization;
|
||||
}
|
||||
}
|
||||
|
||||
+107
@@ -0,0 +1,107 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package cn.cloudwalk.common.ninca.visitor.device;
|
||||
|
||||
public class DeviceContext {
|
||||
private String deviceId;
|
||||
private String deviceCode;
|
||||
private String deviceTypeId;
|
||||
private String deviceTypeName;
|
||||
private String deviceName;
|
||||
private String deviceAreaId;
|
||||
private String deviceAreaName;
|
||||
private String deviceDistrictId;
|
||||
private String deviceDistrictName;
|
||||
private String deviceDistrictPath;
|
||||
private String deviceDistrictMergeName;
|
||||
|
||||
public String getDeviceDistrictId() {
|
||||
return this.deviceDistrictId;
|
||||
}
|
||||
|
||||
public void setDeviceDistrictId(String deviceDistrictId) {
|
||||
this.deviceDistrictId = deviceDistrictId;
|
||||
}
|
||||
|
||||
public String getDeviceDistrictName() {
|
||||
return this.deviceDistrictName;
|
||||
}
|
||||
|
||||
public void setDeviceDistrictName(String deviceDistrictName) {
|
||||
this.deviceDistrictName = deviceDistrictName;
|
||||
}
|
||||
|
||||
public String getDeviceDistrictPath() {
|
||||
return this.deviceDistrictPath;
|
||||
}
|
||||
|
||||
public void setDeviceDistrictPath(String deviceDistrictPath) {
|
||||
this.deviceDistrictPath = deviceDistrictPath;
|
||||
}
|
||||
|
||||
public String getDeviceDistrictMergeName() {
|
||||
return this.deviceDistrictMergeName;
|
||||
}
|
||||
|
||||
public void setDeviceDistrictMergeName(String deviceDistrictMergeName) {
|
||||
this.deviceDistrictMergeName = deviceDistrictMergeName;
|
||||
}
|
||||
|
||||
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 getDeviceTypeId() {
|
||||
return this.deviceTypeId;
|
||||
}
|
||||
|
||||
public void setDeviceTypeId(String deviceTypeId) {
|
||||
this.deviceTypeId = deviceTypeId;
|
||||
}
|
||||
|
||||
public String getDeviceTypeName() {
|
||||
return this.deviceTypeName;
|
||||
}
|
||||
|
||||
public void setDeviceTypeName(String deviceTypeName) {
|
||||
this.deviceTypeName = deviceTypeName;
|
||||
}
|
||||
|
||||
public String getDeviceName() {
|
||||
return this.deviceName;
|
||||
}
|
||||
|
||||
public void setDeviceName(String deviceName) {
|
||||
this.deviceName = deviceName;
|
||||
}
|
||||
|
||||
public String getDeviceAreaId() {
|
||||
return this.deviceAreaId;
|
||||
}
|
||||
|
||||
public void setDeviceAreaId(String deviceAreaId) {
|
||||
this.deviceAreaId = deviceAreaId;
|
||||
}
|
||||
|
||||
public String getDeviceAreaName() {
|
||||
return this.deviceAreaName;
|
||||
}
|
||||
|
||||
public void setDeviceAreaName(String deviceAreaName) {
|
||||
this.deviceAreaName = deviceAreaName;
|
||||
}
|
||||
}
|
||||
|
||||
+44
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package cn.cloudwalk.common.ninca.visitor.em;
|
||||
|
||||
public enum ApproveStatusEnum {
|
||||
WAITING(1, "\u5f85\u5ba1\u6838"),
|
||||
APPROVED(2, "\u901a\u8fc7"),
|
||||
REFUSED(3, "\u62d2\u7edd"),
|
||||
EXPIRE(4, "\u5931\u6548");
|
||||
|
||||
private final Integer code;
|
||||
private final String message;
|
||||
|
||||
private ApproveStatusEnum(Integer code, String message) {
|
||||
this.code = code;
|
||||
this.message = message;
|
||||
}
|
||||
|
||||
public Integer getCode() {
|
||||
return this.code;
|
||||
}
|
||||
|
||||
public String getMessage() {
|
||||
return this.message;
|
||||
}
|
||||
|
||||
public static ApproveStatusEnum getEnumByCode(Integer code) {
|
||||
for (ApproveStatusEnum item : ApproveStatusEnum.values()) {
|
||||
if (!code.equals(item.getCode())) continue;
|
||||
return item;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public static String getMessageByCode(Integer code) {
|
||||
for (ApproveStatusEnum item : ApproveStatusEnum.values()) {
|
||||
if (!code.equals(item.getCode())) continue;
|
||||
return item.message;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
+34
@@ -0,0 +1,34 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package cn.cloudwalk.common.ninca.visitor.em;
|
||||
|
||||
public enum ImageStoreStatusEnum {
|
||||
NORMAL(0, "\u6b63\u5e38"),
|
||||
DELETED(1, "\u5220\u9664");
|
||||
|
||||
private Integer code;
|
||||
private String desc;
|
||||
|
||||
private ImageStoreStatusEnum(Integer code, String desc) {
|
||||
this.code = code;
|
||||
this.desc = desc;
|
||||
}
|
||||
|
||||
public static ImageStoreStatusEnum getEnumByCode(Integer code) {
|
||||
for (ImageStoreStatusEnum item : ImageStoreStatusEnum.values()) {
|
||||
if (!code.equals(item.getCode())) continue;
|
||||
return item;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public Integer getCode() {
|
||||
return this.code;
|
||||
}
|
||||
|
||||
public String getDesc() {
|
||||
return this.desc;
|
||||
}
|
||||
}
|
||||
|
||||
+44
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package cn.cloudwalk.common.ninca.visitor.em;
|
||||
|
||||
public enum ImportExceptionEnum {
|
||||
NO_IMG(0, "\u672a\u627e\u5230\u76f8\u5e94\u56fe\u7247"),
|
||||
DUPLICATION_NAME(1, "\u91cd\u540d"),
|
||||
REQUIRED(2, "\u5fc5\u586b\u5b57\u6bb5\u672a\u586b\u5199"),
|
||||
UPLOAD_FAIL(3, "\u4e0a\u4f20\u56fe\u7247\u5931\u8d25"),
|
||||
SAVE_FAIL(4, "\u4fdd\u5b58\u5931\u8d25"),
|
||||
ZIP_FAIL(5, "\u89e3\u6790zip\u5305\u5931\u8d25"),
|
||||
EXCEL_FAIL(6, "\u89e3\u6790excel\u6587\u4ef6\u5931\u8d25"),
|
||||
NO_EXCEL(7, "\u672a\u627e\u5230excel\u6587\u4ef6"),
|
||||
ZIP_PATH_EMPTY(8, "\u6587\u4ef6\u8def\u5f84\u4e0d\u80fd\u4e3a\u7a7a"),
|
||||
ZIP_DOWNLOAD_FAIL(9, "\u4e0b\u8f7dzip\u5305\u6587\u4ef6\u6d41\u5931\u8d25"),
|
||||
NOT_ZIP(10, "zip\u6587\u4ef6\u4e0d\u5b58\u5728"),
|
||||
UNKONWN_EXCEPTION(999, "\u672a\u77e5\u5f02\u5e38");
|
||||
|
||||
private Integer code;
|
||||
private String message;
|
||||
|
||||
private ImportExceptionEnum(Integer code, String message) {
|
||||
this.code = code;
|
||||
this.message = message;
|
||||
}
|
||||
|
||||
public static ImportExceptionEnum getEnumByCode(Integer code) {
|
||||
for (ImportExceptionEnum item : ImportExceptionEnum.values()) {
|
||||
if (!code.equals(item.getCode())) continue;
|
||||
return item;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public Integer getCode() {
|
||||
return this.code;
|
||||
}
|
||||
|
||||
public String getMessage() {
|
||||
return this.message;
|
||||
}
|
||||
}
|
||||
|
||||
+52
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package cn.cloudwalk.common.ninca.visitor.em;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public enum PersonRoleEnum {
|
||||
CORP_ADMIN(1, "corpAdmin", "\u4f01\u4e1a\u7ba1\u7406\u5458"),
|
||||
BUSINESS_ADMIN(2, "visitor-mgmtBusinessAdmin", "\u5e94\u7528\u7ba1\u7406\u5458"),
|
||||
COMMON(3, "visitor-mgmtCommon", "\u666e\u901a\u4eba\u5458");
|
||||
|
||||
private Integer code;
|
||||
private String plateRoleCode;
|
||||
private String message;
|
||||
|
||||
private PersonRoleEnum(Integer code, String plateRoleCode, String message) {
|
||||
this.code = code;
|
||||
this.plateRoleCode = plateRoleCode;
|
||||
this.message = message;
|
||||
}
|
||||
|
||||
public static PersonRoleEnum getEnumByCode(Integer code) {
|
||||
for (PersonRoleEnum item : PersonRoleEnum.values()) {
|
||||
if (!code.equals(item.getCode())) continue;
|
||||
return item;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public static List<String> getPlateRoleCodeList() {
|
||||
ArrayList<String> list = new ArrayList<String>();
|
||||
for (PersonRoleEnum item : PersonRoleEnum.values()) {
|
||||
list.add(item.getPlateRoleCode());
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
public Integer getCode() {
|
||||
return this.code;
|
||||
}
|
||||
|
||||
public String getMessage() {
|
||||
return this.message;
|
||||
}
|
||||
|
||||
public String getPlateRoleCode() {
|
||||
return this.plateRoleCode;
|
||||
}
|
||||
}
|
||||
|
||||
+35
@@ -0,0 +1,35 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package cn.cloudwalk.common.ninca.visitor.em;
|
||||
|
||||
public enum ValidStatusEnum {
|
||||
NOT_EFFECTIVE(0, "\u672a\u751f\u6548"),
|
||||
EFFECTIVE(1, "\u751f\u6548"),
|
||||
OVERDUE(2, "\u8fc7\u671f");
|
||||
|
||||
private Integer code;
|
||||
private String message;
|
||||
|
||||
private ValidStatusEnum(Integer code, String message) {
|
||||
this.code = code;
|
||||
this.message = message;
|
||||
}
|
||||
|
||||
public static ValidStatusEnum getEnumByCode(Integer code) {
|
||||
for (ValidStatusEnum item : ValidStatusEnum.values()) {
|
||||
if (!code.equals(item.getCode())) continue;
|
||||
return item;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public Integer getCode() {
|
||||
return this.code;
|
||||
}
|
||||
|
||||
public String getMessage() {
|
||||
return this.message;
|
||||
}
|
||||
}
|
||||
|
||||
+36
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package cn.cloudwalk.common.ninca.visitor.em;
|
||||
|
||||
public enum VisitorConfigKeyEnum {
|
||||
VISITOR_REGISTER_AUDIT("VISITOR_REGISTER_AUDIT", "\u8bbf\u5ba2\u673a\u6ce8\u518c\u5ba1\u6838"),
|
||||
VISITOR_REG_SUCCESS_SMS_NOTIFY("VISITOR_REG_SUCCESS_SMS_NOTIFY", "\u6ce8\u518c\u6210\u529f\u77ed\u4fe1\u901a\u77e5"),
|
||||
VISITOR_REG_FAIL_SMS_NOTIFY("VISITOR_REG_FAIL_SMS_NOTIFY", "\u6ce8\u518c\u5931\u8d25\u77ed\u4fe1\u901a\u77e5"),
|
||||
YZT_WX_MINI_PROGRAM_QRCODE_PATH("YZT_WX_MINI_PROGRAM_QRCODE_PATH", "\u4e91\u667a\u901a\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u4e8c\u7ef4\u7801\u56fe\u7247\u5730\u5740");
|
||||
|
||||
private String code;
|
||||
private String message;
|
||||
|
||||
private VisitorConfigKeyEnum(String code, String message) {
|
||||
this.code = code;
|
||||
this.message = message;
|
||||
}
|
||||
|
||||
public static VisitorConfigKeyEnum getEnumByCode(String code) {
|
||||
for (VisitorConfigKeyEnum item : VisitorConfigKeyEnum.values()) {
|
||||
if (!code.equals(item.getCode())) continue;
|
||||
return item;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public String getCode() {
|
||||
return this.code;
|
||||
}
|
||||
|
||||
public String getMessage() {
|
||||
return this.message;
|
||||
}
|
||||
}
|
||||
|
||||
+38
@@ -0,0 +1,38 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package cn.cloudwalk.common.ninca.visitor.em;
|
||||
|
||||
public enum VisitorFileStatusEnum {
|
||||
FINISH(0, "\u5df2\u5b8c\u6210"),
|
||||
PRODUCING(1, "\u751f\u6210\u4e2d"),
|
||||
DELETED(2, "\u5df2\u5220\u9664"),
|
||||
CANCELED(3, "\u5df2\u53d6\u6d88"),
|
||||
EXPIRED(4, "\u5df2\u8fc7\u671f"),
|
||||
FAIL(5, "\u5931\u8d25");
|
||||
|
||||
private Integer code;
|
||||
private String message;
|
||||
|
||||
private VisitorFileStatusEnum(Integer code, String message) {
|
||||
this.code = code;
|
||||
this.message = message;
|
||||
}
|
||||
|
||||
public static VisitorFileStatusEnum getEnumByCode(Integer code) {
|
||||
for (VisitorFileStatusEnum item : VisitorFileStatusEnum.values()) {
|
||||
if (!code.equals(item.getCode())) continue;
|
||||
return item;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public Integer getCode() {
|
||||
return this.code;
|
||||
}
|
||||
|
||||
public String getMessage() {
|
||||
return this.message;
|
||||
}
|
||||
}
|
||||
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package cn.cloudwalk.common.ninca.visitor.em;
|
||||
|
||||
public enum VisitorRegisterAddTypeEnum {
|
||||
ONLINE(0),
|
||||
OFFLINE(1);
|
||||
|
||||
private Integer code;
|
||||
|
||||
private VisitorRegisterAddTypeEnum(Integer code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public Integer getCode() {
|
||||
return this.code;
|
||||
}
|
||||
}
|
||||
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package cn.cloudwalk.common.ninca.visitor.em;
|
||||
|
||||
public enum VisitorRegisterTypeEnum {
|
||||
BACKSTAGE(0, "\u540e\u53f0\u6dfb\u52a0"),
|
||||
SWEEP_CODE(1, "\u626b\u7801\u6ce8\u518c"),
|
||||
CARD_REG(2, "\u4eba\u8bc1\u6ce8\u518c"),
|
||||
MINI_PROGRAM(3, "\u5c0f\u7a0b\u5e8f\u6ce8\u518c"),
|
||||
OTHER(4, "\u5176\u4ed6\u65b9\u5f0f\u6ce8\u518c");
|
||||
|
||||
private Integer code;
|
||||
private String message;
|
||||
|
||||
private VisitorRegisterTypeEnum(Integer code, String message) {
|
||||
this.code = code;
|
||||
this.message = message;
|
||||
}
|
||||
|
||||
public static VisitorRegisterTypeEnum getEnumByCode(Integer code) {
|
||||
for (VisitorRegisterTypeEnum item : VisitorRegisterTypeEnum.values()) {
|
||||
if (!code.equals(item.getCode())) continue;
|
||||
return item;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public Integer getCode() {
|
||||
return this.code;
|
||||
}
|
||||
|
||||
public String getMessage() {
|
||||
return this.message;
|
||||
}
|
||||
}
|
||||
|
||||
+34
@@ -0,0 +1,34 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package cn.cloudwalk.common.ninca.visitor.em;
|
||||
|
||||
public enum YesNoTypeEnum {
|
||||
N(0, "\u5426"),
|
||||
Y(1, "\u662f");
|
||||
|
||||
private Integer code;
|
||||
private String message;
|
||||
|
||||
private YesNoTypeEnum(Integer code, String message) {
|
||||
this.code = code;
|
||||
this.message = message;
|
||||
}
|
||||
|
||||
public static YesNoTypeEnum getEnumByCode(Integer code) {
|
||||
for (YesNoTypeEnum item : YesNoTypeEnum.values()) {
|
||||
if (!code.equals(item.getCode())) continue;
|
||||
return item;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public Integer getCode() {
|
||||
return this.code;
|
||||
}
|
||||
|
||||
public String getMessage() {
|
||||
return this.message;
|
||||
}
|
||||
}
|
||||
|
||||
+73
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* org.apache.commons.codec.binary.Base64
|
||||
* org.slf4j.Logger
|
||||
* org.slf4j.LoggerFactory
|
||||
*/
|
||||
package cn.cloudwalk.common.ninca.visitor.util;
|
||||
|
||||
import java.nio.charset.StandardCharsets;
|
||||
import java.security.Key;
|
||||
import javax.crypto.Cipher;
|
||||
import javax.crypto.spec.IvParameterSpec;
|
||||
import javax.crypto.spec.SecretKeySpec;
|
||||
import org.apache.commons.codec.binary.Base64;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
public class AesUtil {
|
||||
private static final Logger LOGGER = LoggerFactory.getLogger(AesUtil.class);
|
||||
|
||||
private AesUtil() {
|
||||
}
|
||||
|
||||
public static String encryptUrlSafe(String source, String key, String iv) throws Exception {
|
||||
return Base64.encodeBase64URLSafeString((byte[])AesUtil.encrypt(source, key, iv));
|
||||
}
|
||||
|
||||
public static byte[] encrypt(String source, String key, String iv) throws Exception {
|
||||
AesUtil.isKeyIvValid(key, iv);
|
||||
byte[] raw = key.getBytes(StandardCharsets.UTF_8);
|
||||
SecretKeySpec secretKeySpec = new SecretKeySpec(raw, "AES");
|
||||
Cipher cipher = Cipher.getInstance("AES/CBC/PKCS5Padding");
|
||||
IvParameterSpec ivParameterSpec = new IvParameterSpec(iv.getBytes(StandardCharsets.UTF_8));
|
||||
cipher.init(1, (Key)secretKeySpec, ivParameterSpec);
|
||||
byte[] encrypted = cipher.doFinal(source.getBytes(StandardCharsets.UTF_8));
|
||||
return encrypted;
|
||||
}
|
||||
|
||||
public static String decrypt(String secret, String key, String iv) throws Exception {
|
||||
AesUtil.isKeyIvValid(key, iv);
|
||||
byte[] encrypted = Base64.decodeBase64((String)secret);
|
||||
byte[] raw = key.getBytes(StandardCharsets.UTF_8);
|
||||
SecretKeySpec secretKeySpec = new SecretKeySpec(raw, "AES");
|
||||
Cipher cipher = Cipher.getInstance("AES/CBC/PKCS5Padding");
|
||||
IvParameterSpec ivParameterSpec = new IvParameterSpec(iv.getBytes(StandardCharsets.UTF_8));
|
||||
cipher.init(2, (Key)secretKeySpec, ivParameterSpec);
|
||||
byte[] original = cipher.doFinal(encrypted);
|
||||
String originalStr = new String(original, StandardCharsets.UTF_8);
|
||||
return originalStr;
|
||||
}
|
||||
|
||||
private static void isKeyIvValid(String key, String iv) {
|
||||
if (key == null) {
|
||||
LOGGER.error("key\u4e3a\u7a7a");
|
||||
throw new IllegalArgumentException("\u53c2\u6570key\u4e3a\u7a7a");
|
||||
}
|
||||
if (key.length() != 16 && key.length() != 24 && key.length() != 32) {
|
||||
LOGGER.warn("key\u957f\u5ea6\u4e0d\u662f 128/192/256 bit");
|
||||
throw new IllegalArgumentException(String.format("key\u5fc5\u987b\u4e3a16/24/32\u5b57\u8282\u957f\u5ea6\uff0c\u5f53\u524d\u957f\u5ea6\u4e3a{%d}", key.length()));
|
||||
}
|
||||
if (iv == null) {
|
||||
LOGGER.error("iv\u4e3a\u7a7a");
|
||||
throw new IllegalArgumentException("\u53c2\u6570iv\u4e3a\u7a7a");
|
||||
}
|
||||
if (iv.length() != 16) {
|
||||
LOGGER.warn("iv\u957f\u5ea6\u4e0d\u662f 128 bit");
|
||||
throw new IllegalArgumentException(String.format("iv\u5fc5\u987b\u4e3a16\u5b57\u8282\u957f\u5ea6\uff0c\u5f53\u524d\u957f\u5ea6\u4e3a{%d}", iv.length()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+84
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* org.apache.commons.lang3.time.DateUtils
|
||||
*/
|
||||
package cn.cloudwalk.common.ninca.visitor.util;
|
||||
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Calendar;
|
||||
import java.util.Date;
|
||||
import org.apache.commons.lang3.time.DateUtils;
|
||||
|
||||
public class CalendarUtils
|
||||
extends DateUtils {
|
||||
public static final String YYYYMMDD = "yyyyMMdd";
|
||||
|
||||
public static int getYear(Date date) {
|
||||
if (date == null) {
|
||||
date = new Date();
|
||||
}
|
||||
Calendar cal = Calendar.getInstance();
|
||||
cal.setTime(date);
|
||||
return cal.get(1);
|
||||
}
|
||||
|
||||
public static int getMonth(Date date) {
|
||||
if (date == null) {
|
||||
date = new Date();
|
||||
}
|
||||
Calendar cal = Calendar.getInstance();
|
||||
cal.setTime(date);
|
||||
return cal.get(2) + 1;
|
||||
}
|
||||
|
||||
public static int getWeek(Date date) {
|
||||
if (date == null) {
|
||||
date = new Date();
|
||||
}
|
||||
Calendar cal = Calendar.getInstance();
|
||||
cal.setFirstDayOfWeek(2);
|
||||
cal.setTime(date);
|
||||
return cal.get(3);
|
||||
}
|
||||
|
||||
public static int getDay(Date date) {
|
||||
if (date == null) {
|
||||
date = new Date();
|
||||
}
|
||||
Calendar cal = Calendar.getInstance();
|
||||
cal.setTime(date);
|
||||
return cal.get(5);
|
||||
}
|
||||
|
||||
public static int getHour(Date date) {
|
||||
if (date == null) {
|
||||
date = new Date();
|
||||
}
|
||||
Calendar cal = Calendar.getInstance();
|
||||
cal.setTime(date);
|
||||
return cal.get(11);
|
||||
}
|
||||
|
||||
public static int getDayDate(Date date) {
|
||||
if (date == null) {
|
||||
date = new Date();
|
||||
}
|
||||
return CalendarUtils.defaultFormat(date);
|
||||
}
|
||||
|
||||
public static String formatDate(Date date, String pattern) {
|
||||
SimpleDateFormat sdf = new SimpleDateFormat(pattern);
|
||||
return sdf.format(date);
|
||||
}
|
||||
|
||||
public static int defaultFormat(Date date) {
|
||||
return Integer.valueOf(CalendarUtils.formatDate(date, YYYYMMDD));
|
||||
}
|
||||
|
||||
public static long getTimeMillis() {
|
||||
return System.currentTimeMillis();
|
||||
}
|
||||
}
|
||||
|
||||
+1044
File diff suppressed because it is too large
Load Diff
+118
@@ -0,0 +1,118 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package cn.cloudwalk.common.ninca.visitor.util;
|
||||
|
||||
public class CommunityConstants {
|
||||
|
||||
public static interface Icc {
|
||||
public static final String ICC_RTSP_URL = "rtsp://%s:9090/dss/monitor/param?cameraid=%s%%24%s&substream=1";
|
||||
public static final String ICC_PLAYBACK_RTSP_URL = "rtsp://%s:9090/dss/playback/param?cameraid=%s%%24%s&substream=1&type=3";
|
||||
public static final String ICC_OUTSIDE_HLS_URL = "/live/cameraid/%s%%24%s/substream/1.m3u8";
|
||||
public static final String ICC_PLAYBACK_OUTSIDE_HLS_URL = "/vod/center/cameraid/%s%%24%s/substream/1";
|
||||
public static final int DEVICE_TYPE_NVR = 6;
|
||||
public static final int DEVICE_TYPE_IPC = 2;
|
||||
}
|
||||
|
||||
public static interface Dcr {
|
||||
public static final String HTTPS_PREFIX = "https://";
|
||||
public static final String MID_PART_DOWNLOAD_URL = "/object/download?pool=";
|
||||
public static final String MID_PART_UPLOAD_URL = "/object/upload/do?token=";
|
||||
public static final String MID_DOWNLOAD_FILE_URL = "/simple-file/download?pool=";
|
||||
public static final String MID_UPLOAD_FILE_URL = "/simple-file/upload/full?pool=";
|
||||
public static final String PARA_PATH = "&path=";
|
||||
public static final String PARA_SIZE = "&offset=0&size=";
|
||||
public static final String PARA_ID = "&id=";
|
||||
public static final String ID = "ID";
|
||||
public static final String AUTH_TYPE = "Basic ";
|
||||
public static final String AUTH = "authorization";
|
||||
public static final String POOL = "pool";
|
||||
public static final String TOKEN = "Token";
|
||||
public static final String ADDRESS = "Address";
|
||||
public static final String AUTH_SUFFIX = "/object/upload";
|
||||
public static final Integer MAX_DOWNLOAD_SIZE = 16000000;
|
||||
public static final String OFFSET = "&offset=";
|
||||
public static final String SIZE = "&size=";
|
||||
}
|
||||
|
||||
public static interface Dcs {
|
||||
public static final String DCS_URL_ID_FORMAT = "%s:%s@%s:2015?dcsID=";
|
||||
public static final String DCS_URL_FORMAT = "%s:%s@%s:2015";
|
||||
}
|
||||
|
||||
public static interface Data {
|
||||
public static final String MALE = "\u7537";
|
||||
public static final String FEMALE = "\u5973";
|
||||
public static final String ID = "id";
|
||||
public static final String CREATE_TIME = "createTime";
|
||||
public static final String LAST_UPDATE_TIME = "lastUpdateTime";
|
||||
public static final String REGISTER_PERSON_ID = "register_person_id";
|
||||
public static final String GRID_ID = "grid_id";
|
||||
public static final Integer TOP_VALUE = 1;
|
||||
public static final Integer NO_TOP_VALUE = 0;
|
||||
public static final Integer PUBLISH_STATUS_1 = 1;
|
||||
public static final Integer PUBLISH_STATUS_2 = 2;
|
||||
public static final Integer PUBLISH_STATUS_3 = 3;
|
||||
public static final String AGE = "age";
|
||||
public static final String SEX = "sex";
|
||||
public static final String COMMUNITY_ID = "community_id";
|
||||
public static final String VILLAGE_ID = "village_id";
|
||||
}
|
||||
|
||||
public static interface Redis {
|
||||
public static final String EVENT_CODE_INC_KEY = "EVENT_CODE:INC_KEY";
|
||||
public static final Integer EVENT_CODE_INC_MAX_VALUE = 9999;
|
||||
public static final String TF_BRAIN_ACCESS_TOKEN = "tfbrain_access_token";
|
||||
public static final String USER_TOKEN_KEY = "USER_TOKEN:%s";
|
||||
public static final String OUT_IN_IMAGE_STORE = "upOutInStore";
|
||||
public static final String AGREEMENT = "redis://";
|
||||
public static final String LOCK = "redisLock";
|
||||
public static final String OLD_AUTO_CREATE_SETTING = "OLD:AUTO_CREATE";
|
||||
public static final String CHILD_AUTO_CREATE_SETTING = "CHILD:AUTO_CREATE:%s";
|
||||
public static final String IMPORT_FAILURE_MSG = "IMPORT:FAILURE:%s";
|
||||
public static final String VILLAGE_RECORD_LIST = "village:list";
|
||||
public static final String COMMUNITY_LIST = "community:list";
|
||||
public static final Long VALUE_CHANGE_EXPIRE_TIME = 1L;
|
||||
public static final String PROVINCE_TREE = "tree:province:level:%s";
|
||||
}
|
||||
|
||||
public static interface Alarm {
|
||||
public static final Integer IN = 1;
|
||||
public static final Integer OUT = 0;
|
||||
public static final String STRANGER = "STRANGER";
|
||||
public static final String BLACK_LIST = "BLACK_LIST";
|
||||
}
|
||||
|
||||
public static interface Symbol {
|
||||
public static final String COMMA = ",";
|
||||
public static final String HYPHEN = "-";
|
||||
public static final String COLON = ":";
|
||||
}
|
||||
|
||||
public static interface Snap {
|
||||
public static final String IMG_DOWNLOAD_PARSE_ERROR = "img_download_parse_error";
|
||||
public static final String DATA_IMAGE_BASE64_HEAD = "data:image/";
|
||||
}
|
||||
|
||||
public static interface Common {
|
||||
public static final String NOTE_TYPE_ORG = "1";
|
||||
public static final String NOTE_TYPE_TAG = "2";
|
||||
public static final String NOTE_TYPE_PERSON = "3";
|
||||
public static final String NOTE_TYPE_EDG = "4";
|
||||
public static final String ACCESS_NAME_SUFFIX = "\u95e8\u7981";
|
||||
public static final Integer ACCESS_AUTO = 0;
|
||||
public static final Integer ONE_HUNDRED = 100;
|
||||
public static final Integer BATCH_SIZE = 500;
|
||||
public static final Integer MAX_SHOW_CAPTURE = 7;
|
||||
public static final String TEMP_PATH = "java.io.tmpdir";
|
||||
public static final String FONT_PATH = "font/simsun.ttc";
|
||||
public static final String TEMPLATE_NAME = "appraiseReportTemplate";
|
||||
public static final String FONT_SUFFIX = ".ttc";
|
||||
public static final String DASH = "-";
|
||||
public static final String HTTP_PREFIX = "http://";
|
||||
public static final String BR = "<br/>";
|
||||
public static final String FORMAT = "yyyy/MM/dd/HH";
|
||||
public static final String CLIENT_IP = "ClientIP";
|
||||
}
|
||||
}
|
||||
|
||||
+356
@@ -0,0 +1,356 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package cn.cloudwalk.common.ninca.visitor.util;
|
||||
|
||||
import cn.cloudwalk.common.ninca.visitor.util.CalendarUtils;
|
||||
import cn.cloudwalk.common.ninca.visitor.util.ReflectUtil;
|
||||
import java.text.ParseException;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Calendar;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
public class DateUtil
|
||||
extends CalendarUtils {
|
||||
public static final long ONE_HOUR_LONG = 3600000L;
|
||||
public static final long ONE_DAY_LONG = 86400000L;
|
||||
public static final long ONE_MINUTE_LONG = 60000L;
|
||||
public static final String YYYYMMDD = "yyyyMMdd";
|
||||
public static final String STANDARD_FORMAT = "yyyy-MM-dd HH:mm";
|
||||
public static final String YYYY_MM_DD = "yyyy-MM-dd";
|
||||
|
||||
public static List<Integer> getDays(Integer startTime, Integer endTime) {
|
||||
ArrayList<Integer> days = new ArrayList<Integer>();
|
||||
SimpleDateFormat dateFormat = new SimpleDateFormat(YYYYMMDD);
|
||||
try {
|
||||
Date start = dateFormat.parse(String.valueOf(startTime));
|
||||
Date end = dateFormat.parse(String.valueOf(endTime));
|
||||
Calendar tempStart = Calendar.getInstance();
|
||||
tempStart.setTime(start);
|
||||
Calendar tempEnd = Calendar.getInstance();
|
||||
tempEnd.setTime(end);
|
||||
tempEnd.add(5, 1);
|
||||
while (tempStart.before(tempEnd)) {
|
||||
days.add(Integer.parseInt(dateFormat.format(tempStart.getTime())));
|
||||
tempStart.add(6, 1);
|
||||
}
|
||||
}
|
||||
catch (ParseException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
return days;
|
||||
}
|
||||
|
||||
public static int getPreHour() {
|
||||
Calendar cal = Calendar.getInstance();
|
||||
cal.setTime(new Date());
|
||||
return cal.get(10) - 1;
|
||||
}
|
||||
|
||||
public static int getYear() {
|
||||
return DateUtil.getYear(new Date());
|
||||
}
|
||||
|
||||
public static int getHour(Date date) {
|
||||
if (date == null) {
|
||||
date = new Date();
|
||||
}
|
||||
Calendar cal = Calendar.getInstance();
|
||||
cal.setTime(date);
|
||||
return cal.get(11);
|
||||
}
|
||||
|
||||
public static int getDifferThisYear(int year) {
|
||||
return DateUtil.getYear() - year;
|
||||
}
|
||||
|
||||
public static int getSimpleToday() {
|
||||
return DateUtil.getDayDate(new Date());
|
||||
}
|
||||
|
||||
public static int stampToYear(long s) {
|
||||
Date date = new Date(s);
|
||||
return DateUtil.getYear(date);
|
||||
}
|
||||
|
||||
public static int stampToMonth(long s) {
|
||||
Date date = new Date(s);
|
||||
Calendar cal = Calendar.getInstance();
|
||||
cal.setTime(date);
|
||||
return cal.get(2) + 1;
|
||||
}
|
||||
|
||||
public static int stampToDay(long s) {
|
||||
Date date = new Date(s);
|
||||
return DateUtil.getDayDate(date);
|
||||
}
|
||||
|
||||
public static int stampToWeek(long s) {
|
||||
Date date = new Date(s);
|
||||
return DateUtil.getWeek(date);
|
||||
}
|
||||
|
||||
public static int stampToHour(long s) {
|
||||
Date date = new Date(s);
|
||||
return DateUtil.getHour(date);
|
||||
}
|
||||
|
||||
public static void setGtLtTimeCondition(Object sObj, Object tObj) {
|
||||
Long endTime;
|
||||
Long startTime = (Long)ReflectUtil.dynamicGetValue(sObj, "startTime");
|
||||
if (null != startTime) {
|
||||
ReflectUtil.dynamicSetValue(tObj, "yearGT", DateUtil.stampToYear(startTime));
|
||||
ReflectUtil.dynamicSetValue(tObj, "monthGT", DateUtil.stampToMonth(startTime));
|
||||
ReflectUtil.dynamicSetValue(tObj, "weekGT", DateUtil.stampToWeek(startTime));
|
||||
ReflectUtil.dynamicSetValue(tObj, "dayGT", DateUtil.stampToDay(startTime));
|
||||
ReflectUtil.dynamicSetValue(tObj, "hourGT", DateUtil.stampToHour(startTime));
|
||||
}
|
||||
if (null != (endTime = (Long)ReflectUtil.dynamicGetValue(sObj, "endTime"))) {
|
||||
ReflectUtil.dynamicSetValue(tObj, "yearLT", DateUtil.stampToYear(endTime));
|
||||
ReflectUtil.dynamicSetValue(tObj, "monthLT", DateUtil.stampToMonth(endTime));
|
||||
ReflectUtil.dynamicSetValue(tObj, "weekLT", DateUtil.stampToWeek(endTime));
|
||||
ReflectUtil.dynamicSetValue(tObj, "dayLT", DateUtil.stampToDay(endTime));
|
||||
ReflectUtil.dynamicSetValue(tObj, "hourLT", DateUtil.stampToHour(endTime));
|
||||
}
|
||||
}
|
||||
|
||||
public static <S, T> void setTime(S s, T t) {
|
||||
Date start;
|
||||
Object analyDayGT = ReflectUtil.dynamicGetValue(s, "analyDayGT");
|
||||
Object analyDayLT = ReflectUtil.dynamicGetValue(s, "analyDayLT");
|
||||
Object analyHourGT = ReflectUtil.dynamicGetValue(s, "analyHourGT");
|
||||
Object analyHourLT = ReflectUtil.dynamicGetValue(s, "analyHourLT");
|
||||
SimpleDateFormat dateFormat = new SimpleDateFormat(YYYYMMDD);
|
||||
if (null != analyDayGT) {
|
||||
Calendar tempStart = Calendar.getInstance();
|
||||
try {
|
||||
start = dateFormat.parse(String.valueOf(analyDayGT));
|
||||
tempStart.setTime(start);
|
||||
if (null != analyHourGT) {
|
||||
tempStart.set(11, (Integer)analyHourGT);
|
||||
}
|
||||
ReflectUtil.dynamicSetValue(t, "startTime", tempStart.getTimeInMillis());
|
||||
}
|
||||
catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
if (null != analyDayLT) {
|
||||
Calendar tempEnd = Calendar.getInstance();
|
||||
try {
|
||||
start = dateFormat.parse(String.valueOf(analyDayLT));
|
||||
tempEnd.setTime(start);
|
||||
if (null != analyHourLT) {
|
||||
tempEnd.set(11, (Integer)analyHourLT);
|
||||
} else {
|
||||
tempEnd.set(11, 23);
|
||||
}
|
||||
tempEnd.set(12, 59);
|
||||
tempEnd.set(13, 59);
|
||||
ReflectUtil.dynamicSetValue(t, "endTime", tempEnd.getTimeInMillis());
|
||||
}
|
||||
catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static int getAgeByBirthday(Integer birthday) {
|
||||
if (birthday == null) {
|
||||
return 0;
|
||||
}
|
||||
int curYear = DateUtil.getYear();
|
||||
return curYear - birthday / 10000;
|
||||
}
|
||||
|
||||
public static int getBirthyearByAge(Integer age) {
|
||||
if (age == null) {
|
||||
return 0;
|
||||
}
|
||||
int curYear = DateUtil.getYear();
|
||||
return curYear - age;
|
||||
}
|
||||
|
||||
public static int getBirthdayByAge(Integer age) {
|
||||
if (age == null) {
|
||||
return 0;
|
||||
}
|
||||
int curYear = DateUtil.getYear();
|
||||
return (curYear - age) * 10000 + 101;
|
||||
}
|
||||
|
||||
public static Integer getSimpleYesterday() {
|
||||
Calendar cal = Calendar.getInstance();
|
||||
cal.add(5, -1);
|
||||
return Integer.parseInt(new SimpleDateFormat(YYYYMMDD).format(cal.getTime()));
|
||||
}
|
||||
|
||||
public static Integer differentDays(Integer day1, Integer day2) {
|
||||
long days = 0L;
|
||||
try {
|
||||
SimpleDateFormat sdf = new SimpleDateFormat(YYYYMMDD);
|
||||
Date fDate = sdf.parse(String.valueOf(day1));
|
||||
Date oDate = sdf.parse(String.valueOf(day2));
|
||||
days = (oDate.getTime() - fDate.getTime()) / 86400000L;
|
||||
}
|
||||
catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
return (int)days;
|
||||
}
|
||||
|
||||
public static Integer transferLongToDate(Long millSec) {
|
||||
return Integer.valueOf(DateUtil.transferLongToDate(YYYYMMDD, millSec));
|
||||
}
|
||||
|
||||
public static List<Calendar> getDaysCalendar(Integer startTime, Integer endTime) {
|
||||
ArrayList<Calendar> days = new ArrayList<Calendar>();
|
||||
Calendar day = null;
|
||||
SimpleDateFormat dateFormat = new SimpleDateFormat(YYYYMMDD);
|
||||
try {
|
||||
Date start = dateFormat.parse(String.valueOf(startTime));
|
||||
Date end = dateFormat.parse(String.valueOf(endTime));
|
||||
Calendar tempStart = Calendar.getInstance();
|
||||
tempStart.setTime(start);
|
||||
Calendar tempEnd = Calendar.getInstance();
|
||||
tempEnd.setTime(end);
|
||||
tempEnd.add(5, 1);
|
||||
if (new Date().before(end)) {
|
||||
tempEnd.setTime(new Date());
|
||||
}
|
||||
while (tempStart.before(tempEnd)) {
|
||||
day = Calendar.getInstance();
|
||||
day.setTime(tempStart.getTime());
|
||||
days.add(day);
|
||||
tempStart.add(6, 1);
|
||||
}
|
||||
}
|
||||
catch (ParseException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
return days;
|
||||
}
|
||||
|
||||
public static List<Calendar> getHoursCalendar(Integer startTime, Integer endTime) {
|
||||
ArrayList<Calendar> hours = new ArrayList<Calendar>();
|
||||
Calendar hour = null;
|
||||
SimpleDateFormat dateFormat = new SimpleDateFormat(YYYYMMDD);
|
||||
try {
|
||||
Date start = dateFormat.parse(String.valueOf(startTime));
|
||||
Date end = dateFormat.parse(String.valueOf(endTime));
|
||||
Calendar tempStart = Calendar.getInstance();
|
||||
tempStart.setTime(start);
|
||||
Calendar tempEnd = Calendar.getInstance();
|
||||
tempEnd.setTime(end);
|
||||
tempEnd.add(5, 1);
|
||||
if (new Date().before(tempEnd.getTime())) {
|
||||
tempEnd.setTime(new Date());
|
||||
}
|
||||
while (tempStart.before(tempEnd)) {
|
||||
hour = Calendar.getInstance();
|
||||
hour.setTime(tempStart.getTime());
|
||||
hours.add(hour);
|
||||
tempStart.add(11, 1);
|
||||
}
|
||||
}
|
||||
catch (ParseException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
return hours;
|
||||
}
|
||||
|
||||
public static Integer toYmdDate(Integer yyyy, Integer mm, Integer dd) {
|
||||
Calendar time = Calendar.getInstance();
|
||||
SimpleDateFormat dateFormat = new SimpleDateFormat(YYYYMMDD);
|
||||
try {
|
||||
time.set(yyyy, mm - 1, dd);
|
||||
String date = dateFormat.format(time.getTime());
|
||||
return Integer.valueOf(date);
|
||||
}
|
||||
catch (Exception e) {
|
||||
return 19700101;
|
||||
}
|
||||
}
|
||||
|
||||
public static Long getFirstDayOfMonth() {
|
||||
Calendar c = Calendar.getInstance();
|
||||
c.add(2, 0);
|
||||
c.set(5, 1);
|
||||
return c.getTimeInMillis();
|
||||
}
|
||||
|
||||
public static Long getFirstDayOfLastMonth() {
|
||||
Calendar c = Calendar.getInstance();
|
||||
c.add(2, -1);
|
||||
c.set(5, 1);
|
||||
c.set(10, 0);
|
||||
c.set(12, 0);
|
||||
c.set(13, 0);
|
||||
c.set(14, 0);
|
||||
return c.getTimeInMillis();
|
||||
}
|
||||
|
||||
public static String transferLongToDate(String dateFormat, Long millSec) {
|
||||
SimpleDateFormat sdf = new SimpleDateFormat(dateFormat);
|
||||
Date date = new Date(millSec);
|
||||
return sdf.format(date);
|
||||
}
|
||||
|
||||
public static String formatStrDate(Date date, String format) {
|
||||
return new SimpleDateFormat(format).format(date);
|
||||
}
|
||||
|
||||
public static Date strToDateByFormat(String dateStr, String formatStr) {
|
||||
try {
|
||||
return new SimpleDateFormat(formatStr).parse(dateStr);
|
||||
}
|
||||
catch (ParseException e) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
public static Integer[] toYDMIntergerArray(Integer ydm) {
|
||||
String ymds = String.valueOf(ydm);
|
||||
String yyyy = ymds.substring(0, 4);
|
||||
String mm = ymds.substring(4, 6);
|
||||
String dd = ymds.substring(6, 8);
|
||||
Integer[] result = new Integer[]{Integer.valueOf(yyyy), Integer.valueOf(mm), Integer.valueOf(dd)};
|
||||
return result;
|
||||
}
|
||||
|
||||
public static Date getCurrYearFirst() {
|
||||
Calendar currCal = Calendar.getInstance();
|
||||
int currentYear = currCal.get(1);
|
||||
return DateUtil.getYearFirst(currentYear);
|
||||
}
|
||||
|
||||
public static Date getNextYearFirst() {
|
||||
Calendar currCal = Calendar.getInstance();
|
||||
int currentYear = currCal.get(1);
|
||||
return DateUtil.getYearFirst(currentYear + 1);
|
||||
}
|
||||
|
||||
public static Date getCurrYearLast() {
|
||||
Calendar currCal = Calendar.getInstance();
|
||||
int currentYear = currCal.get(1);
|
||||
return DateUtil.getYearLast(currentYear);
|
||||
}
|
||||
|
||||
public static Date getYearFirst(int year) {
|
||||
Calendar calendar = Calendar.getInstance();
|
||||
calendar.clear();
|
||||
calendar.set(1, year);
|
||||
return calendar.getTime();
|
||||
}
|
||||
|
||||
public static Date getYearLast(int year) {
|
||||
Calendar calendar = Calendar.getInstance();
|
||||
calendar.clear();
|
||||
calendar.set(1, year);
|
||||
calendar.roll(6, -1);
|
||||
return calendar.getTime();
|
||||
}
|
||||
}
|
||||
|
||||
+296
@@ -0,0 +1,296 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* org.slf4j.Logger
|
||||
* org.slf4j.LoggerFactory
|
||||
*/
|
||||
package cn.cloudwalk.common.ninca.visitor.util;
|
||||
|
||||
import cn.cloudwalk.common.ninca.visitor.util.StartTimeAndEndTime;
|
||||
import java.security.Timestamp;
|
||||
import java.text.ParseException;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.time.DayOfWeek;
|
||||
import java.time.LocalDate;
|
||||
import java.time.LocalDateTime;
|
||||
import java.time.LocalTime;
|
||||
import java.time.ZoneOffset;
|
||||
import java.time.temporal.ChronoField;
|
||||
import java.time.temporal.TemporalAdjusters;
|
||||
import java.time.temporal.WeekFields;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Calendar;
|
||||
import java.util.Collections;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
public class DateUtils {
|
||||
public static final long ONE_DAY_LONG = 86400000L;
|
||||
public static final String YYYYMMDD = "yyyyMMdd";
|
||||
public static final String STANDARD_FORMAT = "yyyy-MM-dd HH:mm";
|
||||
public static final String YYYYMMDDHHMMSS = "yyyyMMddHHmmss";
|
||||
public static final String YYYY_MM_DD = "yyyy-MM-dd";
|
||||
private static final Logger logger = LoggerFactory.getLogger(DateUtils.class);
|
||||
|
||||
public static long getCurrentTime() {
|
||||
return System.currentTimeMillis();
|
||||
}
|
||||
|
||||
public static String timestamp2String(Timestamp time, String pattern) {
|
||||
SimpleDateFormat sdf = new SimpleDateFormat(pattern);
|
||||
return sdf.format(time.getTimestamp());
|
||||
}
|
||||
|
||||
public static String formatDate(Date date, String pattern) {
|
||||
SimpleDateFormat sdf = new SimpleDateFormat(pattern);
|
||||
return sdf.format(date);
|
||||
}
|
||||
|
||||
public static int defaultFormat(Date date) {
|
||||
return Integer.valueOf(DateUtils.formatDate(date, YYYYMMDD));
|
||||
}
|
||||
|
||||
public static Date defaultFormat(String str) {
|
||||
SimpleDateFormat sdf = new SimpleDateFormat(YYYYMMDD);
|
||||
try {
|
||||
return sdf.parse(str);
|
||||
}
|
||||
catch (ParseException e) {
|
||||
logger.error("\u65e5\u671f\u683c\u5f0f\u8f6c\u6362\u5931\u8d25", (Throwable)e);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
public static Date customFormat(String str, String pattern) {
|
||||
SimpleDateFormat sdf = new SimpleDateFormat(pattern);
|
||||
try {
|
||||
return sdf.parse(str);
|
||||
}
|
||||
catch (ParseException e) {
|
||||
logger.error("\u65e5\u671f\u683c\u5f0f\u8f6c\u6362\u5931\u8d25", (Throwable)e);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
public static int defaultFormat(long millis) {
|
||||
Calendar cal = Calendar.getInstance();
|
||||
cal.setTimeInMillis(millis);
|
||||
return DateUtils.defaultFormat(cal.getTime());
|
||||
}
|
||||
|
||||
public static String parseTimestamp(Timestamp time) {
|
||||
return DateUtils.parseDate(time.getTimestamp());
|
||||
}
|
||||
|
||||
public static String parseDate(Date date) {
|
||||
try {
|
||||
SimpleDateFormat sdf = new SimpleDateFormat(YYYYMMDD);
|
||||
return sdf.format(date);
|
||||
}
|
||||
catch (Exception e) {
|
||||
logger.error("\u65e5\u671f\u683c\u5f0f\u8f6c\u6362\u5931\u8d25", (Throwable)e);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
public static int getYear() {
|
||||
Calendar cal = Calendar.getInstance();
|
||||
cal.setTime(new Date());
|
||||
return cal.get(1);
|
||||
}
|
||||
|
||||
public static Integer getBeforeFirstMonthdate() {
|
||||
SimpleDateFormat format = new SimpleDateFormat(YYYYMMDD);
|
||||
Calendar calendar = Calendar.getInstance();
|
||||
calendar.add(2, -1);
|
||||
calendar.set(5, 1);
|
||||
return Integer.valueOf(format.format(calendar.getTime()));
|
||||
}
|
||||
|
||||
public static Integer getBeforeLastMonthdate() {
|
||||
SimpleDateFormat sf = new SimpleDateFormat(YYYYMMDD);
|
||||
Calendar calendar = Calendar.getInstance();
|
||||
int month = calendar.get(2);
|
||||
calendar.set(2, month - 1);
|
||||
calendar.set(5, calendar.getActualMaximum(5));
|
||||
return Integer.valueOf(sf.format(calendar.getTime()));
|
||||
}
|
||||
|
||||
public static Long dateToStamp(String s) {
|
||||
SimpleDateFormat simpleDateFormat = new SimpleDateFormat(YYYYMMDD);
|
||||
try {
|
||||
Date date = simpleDateFormat.parse(s);
|
||||
long ts = date.getTime();
|
||||
return ts;
|
||||
}
|
||||
catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
return 0L;
|
||||
}
|
||||
}
|
||||
|
||||
public static String stampToDate(String s) {
|
||||
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
||||
long lt = new Long(s);
|
||||
Date date = new Date(lt);
|
||||
String res = simpleDateFormat.format(date);
|
||||
return res;
|
||||
}
|
||||
|
||||
public static String getTwoDaysDesc(Integer startTime, Integer endTime) {
|
||||
ArrayList<Integer> days = new ArrayList<Integer>();
|
||||
if (null == startTime || null == endTime) {
|
||||
return "\u65e5";
|
||||
}
|
||||
SimpleDateFormat dateFormat = new SimpleDateFormat(YYYYMMDD);
|
||||
try {
|
||||
Date start = dateFormat.parse(String.valueOf(startTime));
|
||||
Date end = dateFormat.parse(String.valueOf(endTime));
|
||||
Calendar tempStart = Calendar.getInstance();
|
||||
tempStart.setTime(start);
|
||||
Calendar tempEnd = Calendar.getInstance();
|
||||
tempEnd.setTime(end);
|
||||
tempEnd.add(5, 1);
|
||||
while (tempStart.before(tempEnd)) {
|
||||
days.add(Integer.parseInt(dateFormat.format(tempStart.getTime())));
|
||||
tempStart.add(6, 1);
|
||||
}
|
||||
}
|
||||
catch (ParseException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
int dayOfWeek = 7;
|
||||
String twoDayDesc = days.size() > dayOfWeek ? "\u6708" : (days.size() > 1 ? "\u5468" : "\u65e5");
|
||||
return twoDayDesc;
|
||||
}
|
||||
|
||||
public static Long todayStart() {
|
||||
Calendar calendar = Calendar.getInstance();
|
||||
calendar.set(11, 0);
|
||||
calendar.set(12, 0);
|
||||
calendar.set(13, 0);
|
||||
calendar.set(14, 0);
|
||||
return calendar.getTimeInMillis();
|
||||
}
|
||||
|
||||
public static Long dateToStampTomorrow(String s) {
|
||||
SimpleDateFormat simpleDateFormat = new SimpleDateFormat(YYYYMMDD);
|
||||
try {
|
||||
Date date = simpleDateFormat.parse(s);
|
||||
Calendar cal = Calendar.getInstance();
|
||||
cal.setTime(date);
|
||||
cal.add(5, 1);
|
||||
long ts = cal.getTimeInMillis();
|
||||
return ts;
|
||||
}
|
||||
catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
return 0L;
|
||||
}
|
||||
}
|
||||
|
||||
public static Date getDateSubDay(int day) {
|
||||
Calendar cal = Calendar.getInstance();
|
||||
cal.setTime(new Date());
|
||||
cal.add(5, day);
|
||||
return cal.getTime();
|
||||
}
|
||||
|
||||
public static Long todayStart(Date date) {
|
||||
Calendar calendar = Calendar.getInstance();
|
||||
calendar.setTime(date);
|
||||
calendar.set(11, 0);
|
||||
calendar.set(12, 0);
|
||||
calendar.set(13, 0);
|
||||
calendar.set(14, 0);
|
||||
return calendar.getTimeInMillis();
|
||||
}
|
||||
|
||||
public static Long todayEnd(Date date) {
|
||||
Calendar calendar = Calendar.getInstance();
|
||||
calendar.setTime(date);
|
||||
calendar.set(11, 23);
|
||||
calendar.set(12, 59);
|
||||
calendar.set(13, 59);
|
||||
calendar.set(14, 999);
|
||||
return calendar.getTimeInMillis();
|
||||
}
|
||||
|
||||
public static String formatTimeDuration(long duration, int format) {
|
||||
boolean fu = false;
|
||||
long fduration = duration;
|
||||
if (duration < 0L) {
|
||||
fu = true;
|
||||
fduration = Math.abs(duration);
|
||||
}
|
||||
StringBuilder builder = new StringBuilder();
|
||||
long sec = fduration / 1000L % 60L;
|
||||
long min = fduration / 1000L / 60L % 60L;
|
||||
long hour = fduration / 1000L / 60L / 60L % 24L;
|
||||
long day = fduration / 1000L / 60L / 60L / 24L;
|
||||
if (day > 0L && format > 0) {
|
||||
--format;
|
||||
builder.append(day).append("\u5929");
|
||||
}
|
||||
if (hour > 0L && --format > 0) {
|
||||
builder.append(hour).append("\u5c0f\u65f6");
|
||||
}
|
||||
if (min > 0L && --format > 0) {
|
||||
builder.append(min).append("\u5206\u949f");
|
||||
}
|
||||
if (sec > 0L && --format > 0) {
|
||||
builder.append(sec).append("\u79d2");
|
||||
}
|
||||
if (fu) {
|
||||
builder.insert(0, "-");
|
||||
}
|
||||
return builder.toString();
|
||||
}
|
||||
|
||||
public static List<StartTimeAndEndTime> getCycle(Integer timeType, int cycleNum) {
|
||||
if (timeType == null) {
|
||||
return Collections.emptyList();
|
||||
}
|
||||
ArrayList<StartTimeAndEndTime> timeList = new ArrayList<StartTimeAndEndTime>(cycleNum);
|
||||
switch (timeType) {
|
||||
case 0: {
|
||||
LocalDateTime nowStartTime = LocalDateTime.of(LocalDate.now(), LocalTime.MIN);
|
||||
LocalDateTime nowEndTime = LocalDateTime.of(LocalDate.now(), LocalTime.MAX);
|
||||
timeList.add(new StartTimeAndEndTime(nowStartTime.toInstant(ZoneOffset.of("+8")).toEpochMilli(), nowEndTime.toInstant(ZoneOffset.of("+8")).toEpochMilli(), nowStartTime.getDayOfMonth() + "\u53f7"));
|
||||
for (int i = 1; i < cycleNum; ++i) {
|
||||
LocalDateTime firstDay = nowStartTime.minusDays(i);
|
||||
LocalDateTime lastDay = nowEndTime.minusDays(i);
|
||||
timeList.add(new StartTimeAndEndTime(firstDay.toInstant(ZoneOffset.of("+8")).toEpochMilli(), lastDay.toInstant(ZoneOffset.of("+8")).toEpochMilli(), firstDay.getDayOfMonth() + "\u53f7"));
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 1: {
|
||||
LocalDateTime nowMonday = LocalDateTime.of(LocalDate.now(), LocalTime.MIN).with(DayOfWeek.MONDAY);
|
||||
LocalDateTime nowSunday = LocalDateTime.of(LocalDate.now(), LocalTime.MAX).with(DayOfWeek.SUNDAY);
|
||||
timeList.add(new StartTimeAndEndTime(nowMonday.toInstant(ZoneOffset.of("+8")).toEpochMilli(), nowSunday.toInstant(ZoneOffset.of("+8")).toEpochMilli(), nowMonday.get(WeekFields.ISO.weekOfWeekBasedYear()) + "\u5468"));
|
||||
for (int i = 1; i < cycleNum; ++i) {
|
||||
LocalDateTime lastMonday = nowMonday.minusWeeks(i);
|
||||
LocalDateTime lastSunday = nowSunday.minusWeeks(i);
|
||||
timeList.add(new StartTimeAndEndTime(lastMonday.toInstant(ZoneOffset.of("+8")).toEpochMilli(), lastSunday.toInstant(ZoneOffset.of("+8")).toEpochMilli(), lastMonday.get(WeekFields.ISO.weekOfWeekBasedYear()) + "\u5468"));
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 2: {
|
||||
LocalDateTime nowFirstDay = LocalDateTime.of(LocalDate.now(), LocalTime.MIN).with(TemporalAdjusters.firstDayOfMonth());
|
||||
LocalDateTime nowLastDay = LocalDateTime.of(LocalDate.now(), LocalTime.MAX).with(TemporalAdjusters.lastDayOfMonth());
|
||||
timeList.add(new StartTimeAndEndTime(nowFirstDay.toInstant(ZoneOffset.of("+8")).toEpochMilli(), nowLastDay.toInstant(ZoneOffset.of("+8")).toEpochMilli(), nowFirstDay.get(ChronoField.MONTH_OF_YEAR) + "\u6708"));
|
||||
for (int i = 1; i < cycleNum; ++i) {
|
||||
LocalDateTime firstDay = LocalDateTime.now().minusMonths(i).with(TemporalAdjusters.firstDayOfMonth()).with(LocalTime.MIN);
|
||||
LocalDateTime lastDay = LocalDateTime.now().minusMonths(i).with(TemporalAdjusters.lastDayOfMonth()).with(LocalTime.MAX);
|
||||
timeList.add(new StartTimeAndEndTime(firstDay.toInstant(ZoneOffset.of("+8")).toEpochMilli(), lastDay.toInstant(ZoneOffset.of("+8")).toEpochMilli(), firstDay.get(ChronoField.MONTH_OF_YEAR) + "\u6708"));
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
return timeList;
|
||||
}
|
||||
}
|
||||
|
||||
+511
@@ -0,0 +1,511 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* org.apache.commons.lang3.StringUtils
|
||||
* org.apache.poi.hssf.usermodel.DVConstraint
|
||||
* org.apache.poi.hssf.usermodel.HSSFCell
|
||||
* org.apache.poi.hssf.usermodel.HSSFCellStyle
|
||||
* org.apache.poi.hssf.usermodel.HSSFClientAnchor
|
||||
* org.apache.poi.hssf.usermodel.HSSFDataValidation
|
||||
* org.apache.poi.hssf.usermodel.HSSFFont
|
||||
* org.apache.poi.hssf.usermodel.HSSFPatriarch
|
||||
* org.apache.poi.hssf.usermodel.HSSFRow
|
||||
* org.apache.poi.hssf.usermodel.HSSFSheet
|
||||
* org.apache.poi.hssf.usermodel.HSSFWorkbook
|
||||
* org.apache.poi.ss.usermodel.Cell
|
||||
* org.apache.poi.ss.usermodel.DataValidation
|
||||
* org.apache.poi.ss.usermodel.DataValidationConstraint
|
||||
* org.apache.poi.ss.usermodel.Row
|
||||
* org.apache.poi.ss.usermodel.Sheet
|
||||
* org.apache.poi.ss.usermodel.Workbook
|
||||
* org.apache.poi.ss.usermodel.WorkbookFactory
|
||||
* org.apache.poi.ss.util.CellRangeAddressList
|
||||
* org.slf4j.Logger
|
||||
* org.slf4j.LoggerFactory
|
||||
*/
|
||||
package cn.cloudwalk.common.ninca.visitor.util;
|
||||
|
||||
import cn.cloudwalk.common.ninca.visitor.annotation.ExcelAttribute;
|
||||
import cn.cloudwalk.common.ninca.visitor.util.DateUtils;
|
||||
import java.io.BufferedInputStream;
|
||||
import java.io.ByteArrayOutputStream;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.io.OutputStream;
|
||||
import java.lang.reflect.Field;
|
||||
import java.lang.reflect.InvocationHandler;
|
||||
import java.lang.reflect.Proxy;
|
||||
import java.math.BigDecimal;
|
||||
import java.net.HttpURLConnection;
|
||||
import java.net.URL;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.HashMap;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.apache.poi.hssf.usermodel.DVConstraint;
|
||||
import org.apache.poi.hssf.usermodel.HSSFCell;
|
||||
import org.apache.poi.hssf.usermodel.HSSFCellStyle;
|
||||
import org.apache.poi.hssf.usermodel.HSSFClientAnchor;
|
||||
import org.apache.poi.hssf.usermodel.HSSFDataValidation;
|
||||
import org.apache.poi.hssf.usermodel.HSSFFont;
|
||||
import org.apache.poi.hssf.usermodel.HSSFPatriarch;
|
||||
import org.apache.poi.hssf.usermodel.HSSFRow;
|
||||
import org.apache.poi.hssf.usermodel.HSSFSheet;
|
||||
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
|
||||
import org.apache.poi.ss.usermodel.Cell;
|
||||
import org.apache.poi.ss.usermodel.DataValidation;
|
||||
import org.apache.poi.ss.usermodel.DataValidationConstraint;
|
||||
import org.apache.poi.ss.usermodel.Row;
|
||||
import org.apache.poi.ss.usermodel.Sheet;
|
||||
import org.apache.poi.ss.usermodel.Workbook;
|
||||
import org.apache.poi.ss.usermodel.WorkbookFactory;
|
||||
import org.apache.poi.ss.util.CellRangeAddressList;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
public class ExcelUtil {
|
||||
public static final String FONT_CODE = "1";
|
||||
private static final int BUF_SIZE = 8096;
|
||||
private static Logger logger = LoggerFactory.getLogger(ExcelUtil.class);
|
||||
private static String EXPORT_KEY = "isExport";
|
||||
private static String ANNOTATION_FIELD = "memberValues";
|
||||
|
||||
public static <T> List<T> getExcelToList(String sheetName, Integer startNo, InputStream input, Class<T> clazz) throws Exception {
|
||||
ArrayList<T> list = new ArrayList<T>();
|
||||
try (Workbook book = WorkbookFactory.create((InputStream)input);){
|
||||
Sheet sheet = null;
|
||||
if (StringUtils.isNotBlank((CharSequence)sheetName)) {
|
||||
sheet = book.getSheet(sheetName);
|
||||
}
|
||||
if (sheet == null) {
|
||||
sheet = book.getSheetAt(0);
|
||||
}
|
||||
int rows = sheet.getLastRowNum();
|
||||
int startLine = 1;
|
||||
if (null != startNo && startNo >= 0) {
|
||||
startLine = startNo;
|
||||
}
|
||||
if (rows > 0) {
|
||||
Field[] allFields = clazz.getDeclaredFields();
|
||||
Map<String, Field> fieldsMap = ExcelUtil.getStringFieldMap(allFields);
|
||||
Row firstRow = sheet.getRow(sheet.getFirstRowNum() + startLine - 1);
|
||||
for (int i = sheet.getFirstRowNum() + startLine; i <= rows; ++i) {
|
||||
Row row = sheet.getRow(i);
|
||||
if (row == null) continue;
|
||||
Iterator cells = row.cellIterator();
|
||||
T entity = null;
|
||||
boolean isNull = true;
|
||||
while (cells.hasNext()) {
|
||||
Cell cell = (Cell)cells.next();
|
||||
String fieldName = firstRow.getCell(cell.getColumnIndex()).getStringCellValue();
|
||||
if (!fieldsMap.containsKey(fieldName)) continue;
|
||||
cell.setCellType(1);
|
||||
String c = cell.getStringCellValue();
|
||||
if (StringUtils.isNotEmpty((CharSequence)c)) {
|
||||
isNull = false;
|
||||
}
|
||||
entity = entity == null ? (T)clazz.newInstance() : entity;
|
||||
Field field = fieldsMap.get(fieldName);
|
||||
Class<?> fieldType = field.getType();
|
||||
if (fieldType == null) continue;
|
||||
ExcelUtil.setValue(entity, c, field, fieldType);
|
||||
}
|
||||
if (entity == null || isNull) continue;
|
||||
list.add(entity);
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw new Exception("\u5c06excel\u8868\u5355\u6570\u636e\u6e90\u7684\u6570\u636e\u5bfc\u5165\u5230list\u5f02\u5e38!", e);
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
private static <T> void setValue(T entity, String c, Field field, Class<?> fieldType) throws IllegalAccessException {
|
||||
if (String.class == fieldType) {
|
||||
field.set(entity, String.valueOf(c));
|
||||
} else if (BigDecimal.class == fieldType) {
|
||||
field.set(entity, BigDecimal.valueOf(Double.valueOf(c)));
|
||||
} else if (Integer.TYPE == fieldType || Integer.class == fieldType) {
|
||||
field.set(entity, Integer.parseInt(c));
|
||||
} else if (Long.TYPE == fieldType || Long.class == fieldType) {
|
||||
field.set(entity, Long.valueOf(c));
|
||||
} else if (Float.TYPE == fieldType || Float.class == fieldType) {
|
||||
field.set(entity, Float.valueOf(c));
|
||||
} else if (Short.TYPE == fieldType || Short.class == fieldType) {
|
||||
field.set(entity, Short.valueOf(c));
|
||||
} else if (Double.TYPE == fieldType || Double.class == fieldType) {
|
||||
field.set(entity, Double.valueOf(c));
|
||||
}
|
||||
}
|
||||
|
||||
private static Map<String, Field> getStringFieldMap(Field[] allFields) {
|
||||
HashMap<String, Field> fieldsMap = new HashMap<String, Field>(allFields.length);
|
||||
for (Field field : allFields) {
|
||||
ExcelAttribute attribute;
|
||||
if (!field.isAnnotationPresent(ExcelAttribute.class) || StringUtils.isBlank((CharSequence)(attribute = field.getAnnotation(ExcelAttribute.class)).name())) continue;
|
||||
field.setAccessible(true);
|
||||
fieldsMap.put(attribute.name(), field);
|
||||
}
|
||||
return fieldsMap;
|
||||
}
|
||||
|
||||
public static <T> boolean matchExcel(String sheetName, InputStream input, Class<T> clazz) throws Exception {
|
||||
block6: {
|
||||
try {
|
||||
int rows;
|
||||
HSSFWorkbook book = new HSSFWorkbook(input);
|
||||
HSSFSheet sheet = null;
|
||||
if (StringUtils.isNotBlank((CharSequence)sheetName)) {
|
||||
sheet = book.getSheet(sheetName);
|
||||
}
|
||||
if (sheet == null) {
|
||||
sheet = book.getSheetAt(0);
|
||||
}
|
||||
if ((rows = sheet.getLastRowNum()) > 0) {
|
||||
Field[] allFields = clazz.getDeclaredFields();
|
||||
Map<String, Field> fieldsMap = ExcelUtil.getStringFieldMap(allFields);
|
||||
HSSFRow firstRow = sheet.getRow(sheet.getFirstRowNum());
|
||||
Iterator cells = firstRow.cellIterator();
|
||||
while (cells.hasNext()) {
|
||||
Cell cell = (Cell)cells.next();
|
||||
String fieldName = firstRow.getCell(cell.getColumnIndex()).getStringCellValue();
|
||||
if (fieldsMap.containsKey(fieldName)) continue;
|
||||
return false;
|
||||
}
|
||||
break block6;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw new Exception("\u5c06excel\u8868\u5355\u6570\u636e\u6e90\u7684\u6570\u636e\u5bfc\u5165\u5230list\u5f02\u5e38!", e);
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
/*
|
||||
* Enabled aggressive block sorting
|
||||
* Enabled unnecessary exception pruning
|
||||
* Enabled aggressive exception aggregation
|
||||
*/
|
||||
public static <T> boolean getListToExcel(List<T> list, List<T> listHead, String sheetName, OutputStream output, Class<T> clazz) throws Exception {
|
||||
try (HSSFWorkbook workbook = new HSSFWorkbook();){
|
||||
Field[] allFields = clazz.getDeclaredFields();
|
||||
ArrayList<Field> fields = new ArrayList<Field>();
|
||||
for (Field field : allFields) {
|
||||
if (!field.isAnnotationPresent(ExcelAttribute.class)) continue;
|
||||
fields.add(field);
|
||||
}
|
||||
HSSFSheet sheet = workbook.createSheet();
|
||||
workbook.setSheetName(0, sheetName);
|
||||
ExcelUtil.createRowContent(sheet, fields, workbook, listHead, 0, listHead.size(), 0);
|
||||
ExcelUtil.createRowHeard(sheet, fields, workbook, 1);
|
||||
ExcelUtil.createRowContent(sheet, fields, workbook, list, 0, list.size(), 2);
|
||||
output.flush();
|
||||
workbook.write(output);
|
||||
output.close();
|
||||
int n = Boolean.TRUE.booleanValue() ? 1 : 0;
|
||||
return n != 0;
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw new Exception("\u5c06list\u6570\u636e\u6e90\u7684\u6570\u636e\u5bfc\u5165\u5230excel\u8868\u5355\u5f02\u5e38!", e);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Enabled aggressive block sorting
|
||||
* Enabled unnecessary exception pruning
|
||||
* Enabled aggressive exception aggregation
|
||||
*/
|
||||
public static <T> boolean getListToExcel(List<T> list, String sheetName, OutputStream output, Class<T> clazz) throws Exception {
|
||||
try (HSSFWorkbook workbook = new HSSFWorkbook();){
|
||||
int sheetSize = 65536;
|
||||
Field[] allFields = clazz.getDeclaredFields();
|
||||
ArrayList<Field> fields = new ArrayList<Field>();
|
||||
for (Field field : allFields) {
|
||||
ExcelAttribute attr = field.getAnnotation(ExcelAttribute.class);
|
||||
if (attr == null || !attr.isExport()) continue;
|
||||
fields.add(field);
|
||||
}
|
||||
int listSize = 0;
|
||||
if (list != null && list.size() > 0) {
|
||||
listSize = list.size();
|
||||
}
|
||||
int sheetNo = listSize / sheetSize;
|
||||
for (int index = 0; index <= sheetNo; ++index) {
|
||||
HSSFSheet sheet = workbook.createSheet();
|
||||
workbook.setSheetName(index, sheetName + index);
|
||||
ExcelUtil.createRowHeard(sheet, fields, workbook, 0);
|
||||
int startNo = index * sheetSize;
|
||||
int endNo = Math.min(startNo + sheetSize, listSize);
|
||||
ExcelUtil.createRowContent(sheet, fields, workbook, list, startNo, endNo, 1);
|
||||
}
|
||||
output.flush();
|
||||
workbook.write(output);
|
||||
output.close();
|
||||
int n = Boolean.TRUE.booleanValue() ? 1 : 0;
|
||||
return n != 0;
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw new Exception("\u5c06list\u6570\u636e\u6e90\u7684\u6570\u636e\u5bfc\u5165\u5230excel\u8868\u5355\u5f02\u5e38!", e);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Enabled aggressive block sorting
|
||||
* Enabled unnecessary exception pruning
|
||||
* Enabled aggressive exception aggregation
|
||||
*/
|
||||
public static <T> boolean getListToExcel(List<T> list, String sheetName, OutputStream output, Class<T> clazz, Integer startRow) throws Exception {
|
||||
try (HSSFWorkbook workbook = new HSSFWorkbook();){
|
||||
int sheetSize = 65536;
|
||||
Field[] allFields = clazz.getDeclaredFields();
|
||||
ArrayList<Field> fields = new ArrayList<Field>();
|
||||
for (Field field : allFields) {
|
||||
ExcelAttribute attr = field.getAnnotation(ExcelAttribute.class);
|
||||
if (attr == null || !attr.isExport()) continue;
|
||||
fields.add(field);
|
||||
}
|
||||
int listSize = 0;
|
||||
if (list != null && list.size() > 0) {
|
||||
listSize = list.size();
|
||||
}
|
||||
int sheetNo = listSize / sheetSize;
|
||||
for (int index = 0; index <= sheetNo; ++index) {
|
||||
HSSFSheet sheet = workbook.createSheet();
|
||||
workbook.setSheetName(index, sheetName + index);
|
||||
ExcelUtil.createRowHeard(sheet, fields, workbook, startRow);
|
||||
int startNo = index * sheetSize;
|
||||
int endNo = Math.min(startNo + sheetSize, listSize);
|
||||
ExcelUtil.createRowContent(sheet, fields, workbook, list, startNo, endNo, startRow + 1);
|
||||
}
|
||||
output.flush();
|
||||
workbook.write(output);
|
||||
output.close();
|
||||
int n = Boolean.TRUE.booleanValue() ? 1 : 0;
|
||||
return n != 0;
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw new Exception("\u5c06list\u6570\u636e\u6e90\u7684\u6570\u636e\u5bfc\u5165\u5230excel\u8868\u5355\u5f02\u5e38!", e);
|
||||
}
|
||||
}
|
||||
|
||||
private static <T> void createRowContent(HSSFSheet sheet, List<Field> fields, HSSFWorkbook workbook, List<T> list, int startNo, int endNo, int rowIndex) throws Exception {
|
||||
String value = null;
|
||||
int hwPicType = 0;
|
||||
byte[] picByte = null;
|
||||
for (int i = startNo; i < endNo; ++i) {
|
||||
HSSFRow row = sheet.createRow(i - startNo + rowIndex);
|
||||
T vo = list.get(i);
|
||||
for (int j = 0; j < fields.size(); ++j) {
|
||||
Field field = fields.get(j);
|
||||
field.setAccessible(true);
|
||||
ExcelAttribute attr = field.getAnnotation(ExcelAttribute.class);
|
||||
int col = j;
|
||||
if (StringUtils.isNotBlank((CharSequence)attr.column())) {
|
||||
col = ExcelUtil.getExcelCol(attr.column());
|
||||
}
|
||||
if (!attr.isExport()) continue;
|
||||
HSSFCell cell = row.createCell(col);
|
||||
Class<?> classType = field.getType();
|
||||
if (field.get(vo) == null) continue;
|
||||
value = null;
|
||||
if (classType.isAssignableFrom(Date.class)) {
|
||||
value = DateUtils.formatDate((Date)field.get(vo), "yyyy-MM-dd HH:mm:ss");
|
||||
}
|
||||
if (classType.isAssignableFrom(Long.class) && attr.isDate()) {
|
||||
value = DateUtils.formatDate(new Date((Long)field.get(vo)), "yyyy-MM-dd HH:mm:ss");
|
||||
}
|
||||
if (attr.isPic()) {
|
||||
try {
|
||||
if (field.getType().equals(String.class)) {
|
||||
picByte = ExcelUtil.getBytesByUrl((String)field.get(vo));
|
||||
}
|
||||
picByte = (byte[])field.get(vo);
|
||||
}
|
||||
catch (Exception exception) {
|
||||
// empty catch block
|
||||
}
|
||||
hwPicType = 5;
|
||||
HSSFPatriarch patriarch = sheet.createDrawingPatriarch();
|
||||
HSSFClientAnchor anchor = new HSSFClientAnchor(0, 0, 1020, 250, (short)col, row.getRowNum(), (short)col, row.getRowNum());
|
||||
patriarch.createPicture(anchor, workbook.addPicture(picByte, hwPicType));
|
||||
row.setHeight((short)1000);
|
||||
continue;
|
||||
}
|
||||
cell.setCellValue(field.get(vo) == null ? "" : (value == null ? String.valueOf(field.get(vo)) : value));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static void createRowHeard(HSSFSheet sheet, List<Field> fields, HSSFWorkbook workbook, int index) {
|
||||
HSSFRow row = sheet.createRow(index);
|
||||
for (int i = 0; i < fields.size(); ++i) {
|
||||
int col = i;
|
||||
Field field = fields.get(i);
|
||||
ExcelAttribute attr = field.getAnnotation(ExcelAttribute.class);
|
||||
if (StringUtils.isNotBlank((CharSequence)attr.column())) {
|
||||
col = ExcelUtil.getExcelCol(attr.column());
|
||||
}
|
||||
HSSFCell cell = row.createCell(col);
|
||||
HSSFCellStyle cellStyle = ExcelUtil.createCellStyle(workbook, attr.isMark() ? "2" : FONT_CODE);
|
||||
cell.setCellStyle(cellStyle);
|
||||
sheet.setColumnWidth(i, (int)((double)(attr.name().getBytes().length <= 4 ? 6 : attr.name().getBytes().length) * 1.5 * 256.0));
|
||||
cell.setCellType(1);
|
||||
cell.setCellValue(attr.name());
|
||||
}
|
||||
}
|
||||
|
||||
private static HSSFCellStyle createCellStyle(HSSFWorkbook workbook, String type) {
|
||||
HSSFFont font = workbook.createFont();
|
||||
HSSFCellStyle cellStyle = workbook.createCellStyle();
|
||||
font.setFontName("Arail narrow");
|
||||
font.setBoldweight((short)700);
|
||||
if (FONT_CODE.equals(type)) {
|
||||
font.setColor((short)Short.MAX_VALUE);
|
||||
cellStyle.setFont(font);
|
||||
} else {
|
||||
font.setColor((short)10);
|
||||
cellStyle.setFont(font);
|
||||
}
|
||||
return cellStyle;
|
||||
}
|
||||
|
||||
public static int getExcelCol(String col) {
|
||||
col = col.toUpperCase();
|
||||
int count = -1;
|
||||
char[] cs = col.toCharArray();
|
||||
for (int i = 0; i < cs.length; ++i) {
|
||||
count = (int)((double)count + (double)(cs[i] - 64) * Math.pow(26.0, (double)cs.length - 1.0 - (double)i));
|
||||
}
|
||||
return count;
|
||||
}
|
||||
|
||||
public static HSSFSheet setHSSFPrompt(HSSFSheet sheet, String promptTitle, String promptContent, int firstRow, int endRow, int firstCol, int endCol) {
|
||||
DVConstraint constraint = DVConstraint.createCustomFormulaConstraint((String)"DD1");
|
||||
CellRangeAddressList regions = new CellRangeAddressList(firstRow, endRow, firstCol, endCol);
|
||||
HSSFDataValidation dataValidationView = new HSSFDataValidation(regions, (DataValidationConstraint)constraint);
|
||||
dataValidationView.createPromptBox(promptTitle, promptContent);
|
||||
sheet.addValidationData((DataValidation)dataValidationView);
|
||||
return sheet;
|
||||
}
|
||||
|
||||
public static HSSFSheet setHSSFValidation(HSSFSheet sheet, String[] textlist, int firstRow, int endRow, int firstCol, int endCol) {
|
||||
DVConstraint constraint = DVConstraint.createExplicitListConstraint((String[])textlist);
|
||||
CellRangeAddressList regions = new CellRangeAddressList(firstRow, endRow, firstCol, endCol);
|
||||
HSSFDataValidation dataValidationList = new HSSFDataValidation(regions, (DataValidationConstraint)constraint);
|
||||
sheet.addValidationData((DataValidation)dataValidationList);
|
||||
return sheet;
|
||||
}
|
||||
|
||||
/*
|
||||
* WARNING - Removed try catching itself - possible behaviour change.
|
||||
*/
|
||||
public static byte[] getBytesByUrl(String imgUrl) throws Exception {
|
||||
if (StringUtils.isEmpty((CharSequence)imgUrl)) {
|
||||
return null;
|
||||
}
|
||||
BufferedInputStream bis = null;
|
||||
ByteArrayOutputStream bos = null;
|
||||
try {
|
||||
int size;
|
||||
URL url = new URL(imgUrl);
|
||||
HttpURLConnection http = (HttpURLConnection)url.openConnection();
|
||||
http.setConnectTimeout(3000);
|
||||
http.connect();
|
||||
bis = new BufferedInputStream(http.getInputStream());
|
||||
bos = new ByteArrayOutputStream();
|
||||
byte[] buf = new byte[8096];
|
||||
while ((size = bis.read(buf)) != -1) {
|
||||
bos.write(buf, 0, size);
|
||||
}
|
||||
http.disconnect();
|
||||
byte[] byArray = bos.toByteArray();
|
||||
return byArray;
|
||||
}
|
||||
finally {
|
||||
if (bis != null) {
|
||||
try {
|
||||
bis.close();
|
||||
}
|
||||
catch (IOException e) {
|
||||
logger.error("\u6d41\u5173\u95ed\u5931\u8d25\uff0c\u539f\u56e0\uff1a" + e.getMessage(), (Throwable)e);
|
||||
}
|
||||
}
|
||||
if (bos != null) {
|
||||
try {
|
||||
bos.close();
|
||||
}
|
||||
catch (IOException e) {
|
||||
logger.error("\u6d41\u5173\u95ed\u5931\u8d25\uff0c\u539f\u56e0\uff1a" + e.getMessage(), (Throwable)e);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static void setExcelAttribute(ExcelAttribute excelAttribute, String key, Object obj, boolean isExport) {
|
||||
if (excelAttribute == null) {
|
||||
return;
|
||||
}
|
||||
InvocationHandler invocationHandler = Proxy.getInvocationHandler(excelAttribute);
|
||||
Field value = null;
|
||||
try {
|
||||
value = invocationHandler.getClass().getDeclaredField(ANNOTATION_FIELD);
|
||||
}
|
||||
catch (Exception e) {
|
||||
logger.warn("\u53cd\u5c04\u83b7\u53d6ExcelAttribute\u6ce8\u89e3\u7684\u6210\u5458\u5b57\u6bb5\u5f02\u5e38", (Throwable)e);
|
||||
}
|
||||
if (value == null) {
|
||||
return;
|
||||
}
|
||||
value.setAccessible(true);
|
||||
Map memberValues = null;
|
||||
try {
|
||||
memberValues = (Map)value.get(invocationHandler);
|
||||
}
|
||||
catch (Exception e) {
|
||||
logger.warn("\u53cd\u5c04\u83b7\u53d6ExcelAttribute\u6ce8\u89e3\u7684\u6210\u5458\u503c\u5f02\u5e38", (Throwable)e);
|
||||
}
|
||||
if (memberValues == null) {
|
||||
return;
|
||||
}
|
||||
if (obj != null) {
|
||||
memberValues.put(key, obj);
|
||||
}
|
||||
if (!isExport) {
|
||||
memberValues.put(EXPORT_KEY, isExport);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Exception decompiling
|
||||
*/
|
||||
public static <T> boolean appendListToExcel(InputStream inputStream, List<T> list, int sheetIndex, OutputStream output, Class<T> clazz, Integer startRow) throws Exception {
|
||||
/*
|
||||
* This method has failed to decompile. When submitting a bug report, please provide this stack trace, and (if you hold appropriate legal rights) the relevant class file.
|
||||
*
|
||||
* org.benf.cfr.reader.util.ConfusedCFRException: Started 2 blocks at once
|
||||
* at org.benf.cfr.reader.bytecode.analysis.opgraph.Op04StructuredStatement.getStartingBlocks(Op04StructuredStatement.java:412)
|
||||
* at org.benf.cfr.reader.bytecode.analysis.opgraph.Op04StructuredStatement.buildNestedBlocks(Op04StructuredStatement.java:487)
|
||||
* at org.benf.cfr.reader.bytecode.analysis.opgraph.Op03SimpleStatement.createInitialStructuredBlock(Op03SimpleStatement.java:736)
|
||||
* at org.benf.cfr.reader.bytecode.CodeAnalyser.getAnalysisInner(CodeAnalyser.java:850)
|
||||
* at org.benf.cfr.reader.bytecode.CodeAnalyser.getAnalysisOrWrapFail(CodeAnalyser.java:278)
|
||||
* at org.benf.cfr.reader.bytecode.CodeAnalyser.getAnalysis(CodeAnalyser.java:201)
|
||||
* at org.benf.cfr.reader.entities.attributes.AttributeCode.analyse(AttributeCode.java:94)
|
||||
* at org.benf.cfr.reader.entities.Method.analyse(Method.java:531)
|
||||
* at org.benf.cfr.reader.entities.ClassFile.analyseMid(ClassFile.java:1055)
|
||||
* at org.benf.cfr.reader.entities.ClassFile.analyseTop(ClassFile.java:942)
|
||||
* at org.benf.cfr.reader.Driver.doJarVersionTypes(Driver.java:257)
|
||||
* at org.benf.cfr.reader.Driver.doJar(Driver.java:139)
|
||||
* at org.benf.cfr.reader.CfrDriverImpl.analyse(CfrDriverImpl.java:76)
|
||||
* at org.benf.cfr.reader.Main.main(Main.java:54)
|
||||
*/
|
||||
throw new IllegalStateException("Decompilation failed");
|
||||
}
|
||||
}
|
||||
|
||||
+95
@@ -0,0 +1,95 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* com.fasterxml.jackson.annotation.JsonInclude$Include
|
||||
* com.fasterxml.jackson.core.JsonProcessingException
|
||||
* com.fasterxml.jackson.core.type.TypeReference
|
||||
* com.fasterxml.jackson.databind.DeserializationFeature
|
||||
* com.fasterxml.jackson.databind.JavaType
|
||||
* com.fasterxml.jackson.databind.Module
|
||||
* com.fasterxml.jackson.databind.ObjectMapper
|
||||
* com.fasterxml.jackson.databind.SerializationFeature
|
||||
* com.fasterxml.jackson.datatype.jsr310.JavaTimeModule
|
||||
* org.slf4j.Logger
|
||||
* org.slf4j.LoggerFactory
|
||||
*/
|
||||
package cn.cloudwalk.common.ninca.visitor.util;
|
||||
|
||||
import cn.cloudwalk.common.ninca.visitor.util.DateUtils;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.core.JsonProcessingException;
|
||||
import com.fasterxml.jackson.core.type.TypeReference;
|
||||
import com.fasterxml.jackson.databind.DeserializationFeature;
|
||||
import com.fasterxml.jackson.databind.JavaType;
|
||||
import com.fasterxml.jackson.databind.Module;
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import com.fasterxml.jackson.databind.SerializationFeature;
|
||||
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
public class JsonUtils {
|
||||
private static final Logger logger = LoggerFactory.getLogger(DateUtils.class);
|
||||
|
||||
public static String toJson(Object obj) {
|
||||
ObjectMapper mapper = JsonUtils.objectMapper();
|
||||
try {
|
||||
return mapper.writeValueAsString(obj);
|
||||
}
|
||||
catch (JsonProcessingException e) {
|
||||
logger.warn("json parase exception :{}", (Object)e.getMessage());
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
public static <T> T toObj(String json, Class<T> clazz) {
|
||||
ObjectMapper mapper = JsonUtils.objectMapper();
|
||||
Object value = null;
|
||||
try {
|
||||
value = mapper.readValue(json, clazz);
|
||||
}
|
||||
catch (IOException e) {
|
||||
logger.warn("json parase exception :{}", (Object)e.getMessage());
|
||||
}
|
||||
return (T)value;
|
||||
}
|
||||
|
||||
public static <T> T toObj(String json, TypeReference<T> tTypeReference) {
|
||||
ObjectMapper mapper = JsonUtils.objectMapper();
|
||||
Object value = null;
|
||||
try {
|
||||
value = mapper.readValue(json, tTypeReference);
|
||||
}
|
||||
catch (IOException e) {
|
||||
logger.warn("json parase exception :{}", (Object)e.getMessage());
|
||||
}
|
||||
return (T)value;
|
||||
}
|
||||
|
||||
public static <T> List<T> toObjList(String json, Class<T> clazz) {
|
||||
ObjectMapper mapper = JsonUtils.objectMapper();
|
||||
List value = null;
|
||||
try {
|
||||
JavaType jt = mapper.getTypeFactory().constructParametricType(ArrayList.class, new Class[]{clazz});
|
||||
value = (List)mapper.readValue(json, jt);
|
||||
}
|
||||
catch (IOException e) {
|
||||
logger.warn("json parase exception :{}", (Object)e.getMessage());
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public static ObjectMapper objectMapper() {
|
||||
ObjectMapper mapper = new ObjectMapper();
|
||||
mapper.registerModule((Module)new JavaTimeModule());
|
||||
mapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS);
|
||||
mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
|
||||
mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL);
|
||||
return mapper;
|
||||
}
|
||||
}
|
||||
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* org.apache.commons.lang3.StringUtils
|
||||
*/
|
||||
package cn.cloudwalk.common.ninca.visitor.util;
|
||||
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
|
||||
public class MaskUtil {
|
||||
public static String maskUserName(String userName) {
|
||||
if (userName == null || userName.length() == 0) {
|
||||
return "";
|
||||
}
|
||||
String v = userName.substring(0, 1);
|
||||
return StringUtils.rightPad((String)v, (int)userName.length(), (String)"*");
|
||||
}
|
||||
|
||||
public static String maskPhone(String phone) {
|
||||
return phone.replaceAll("(\\d{3})\\d{4}(\\d{4})", "$1****$2");
|
||||
}
|
||||
}
|
||||
|
||||
+63
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package cn.cloudwalk.common.ninca.visitor.util;
|
||||
|
||||
import java.lang.reflect.Field;
|
||||
import java.lang.reflect.Method;
|
||||
|
||||
public class ReflectUtil {
|
||||
public static Object dynamicSetValue(Object obj, String fieldName, Object value) {
|
||||
try {
|
||||
Field[] fields;
|
||||
Class<?> clazz = obj.getClass();
|
||||
for (Field f : fields = clazz.getDeclaredFields()) {
|
||||
if (!fieldName.equals(f.getName())) continue;
|
||||
String firstLetter = fieldName.substring(0, 1).toUpperCase();
|
||||
String setMethodName = "set" + firstLetter + fieldName.substring(1);
|
||||
Field field = obj.getClass().getDeclaredField(fieldName);
|
||||
Method setMethod = obj.getClass().getDeclaredMethod(setMethodName, field.getType());
|
||||
setMethod.invoke(obj, value);
|
||||
}
|
||||
}
|
||||
catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
|
||||
public static Object dynamicGetValue(Object obj, String fieldName) {
|
||||
Object value = null;
|
||||
try {
|
||||
Field[] fields;
|
||||
Class<?> clazz = obj.getClass();
|
||||
for (Field f : fields = clazz.getDeclaredFields()) {
|
||||
if (!fieldName.equals(f.getName())) continue;
|
||||
String firstLetter = fieldName.substring(0, 1).toUpperCase();
|
||||
String getMethodName = "get" + firstLetter + fieldName.substring(1);
|
||||
Method getMethod = obj.getClass().getDeclaredMethod(getMethodName, new Class[0]);
|
||||
value = getMethod.invoke(obj, new Object[0]);
|
||||
}
|
||||
}
|
||||
catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public static String[] getAllFieldName(String className) {
|
||||
String[] fieldName = null;
|
||||
try {
|
||||
Field[] fields = Class.forName(className).getDeclaredFields();
|
||||
fieldName = new String[fields.length];
|
||||
for (int i = 0; i < fields.length; ++i) {
|
||||
fieldName[i] = fields[i].getName();
|
||||
}
|
||||
}
|
||||
catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
return fieldName;
|
||||
}
|
||||
}
|
||||
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* com.alibaba.fastjson.JSON
|
||||
* javax.servlet.http.HttpServletResponse
|
||||
* org.slf4j.Logger
|
||||
* org.slf4j.LoggerFactory
|
||||
*/
|
||||
package cn.cloudwalk.common.ninca.visitor.util;
|
||||
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import java.io.IOException;
|
||||
import java.io.PrintWriter;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
public class ResponseUtil {
|
||||
private static final Logger logger = LoggerFactory.getLogger(ResponseUtil.class);
|
||||
|
||||
private ResponseUtil() {
|
||||
}
|
||||
|
||||
public static void writeJsonResponse(HttpServletResponse response, Object target, int status) {
|
||||
try (PrintWriter writer = response.getWriter();){
|
||||
response.setContentType("application/json;charset=utf-8");
|
||||
response.setCharacterEncoding("UTF-8");
|
||||
response.setStatus(status);
|
||||
writer.write(JSON.toJSONString((Object)target));
|
||||
}
|
||||
catch (IOException e) {
|
||||
logger.error("writeJsonResponse error", (Throwable)e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+197
@@ -0,0 +1,197 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* com.fasterxml.jackson.annotation.JsonInclude$Include
|
||||
* com.fasterxml.jackson.core.type.TypeReference
|
||||
* com.fasterxml.jackson.databind.DeserializationFeature
|
||||
* com.fasterxml.jackson.databind.ObjectMapper
|
||||
* javax.annotation.PostConstruct
|
||||
* org.slf4j.Logger
|
||||
* org.slf4j.LoggerFactory
|
||||
* org.springframework.http.HttpEntity
|
||||
* org.springframework.http.HttpHeaders
|
||||
* org.springframework.http.HttpMethod
|
||||
* org.springframework.http.HttpStatus
|
||||
* org.springframework.http.ResponseEntity
|
||||
* org.springframework.http.client.ClientHttpRequestFactory
|
||||
* org.springframework.http.client.SimpleClientHttpRequestFactory
|
||||
* org.springframework.http.converter.HttpMessageConverter
|
||||
* org.springframework.http.converter.json.MappingJackson2HttpMessageConverter
|
||||
* org.springframework.stereotype.Component
|
||||
* org.springframework.util.MultiValueMap
|
||||
* org.springframework.web.client.RestTemplate
|
||||
*/
|
||||
package cn.cloudwalk.common.ninca.visitor.util;
|
||||
|
||||
import cn.cloudwalk.common.ninca.visitor.util.DateUtils;
|
||||
import cn.cloudwalk.common.ninca.visitor.util.JsonUtils;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.core.type.TypeReference;
|
||||
import com.fasterxml.jackson.databind.DeserializationFeature;
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import java.net.URI;
|
||||
import java.util.List;
|
||||
import javax.annotation.PostConstruct;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.http.HttpEntity;
|
||||
import org.springframework.http.HttpHeaders;
|
||||
import org.springframework.http.HttpMethod;
|
||||
import org.springframework.http.HttpStatus;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
import org.springframework.http.client.ClientHttpRequestFactory;
|
||||
import org.springframework.http.client.SimpleClientHttpRequestFactory;
|
||||
import org.springframework.http.converter.HttpMessageConverter;
|
||||
import org.springframework.http.converter.json.MappingJackson2HttpMessageConverter;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.util.MultiValueMap;
|
||||
import org.springframework.web.client.RestTemplate;
|
||||
|
||||
@Component
|
||||
public class RestTemplateUtil {
|
||||
private static final Logger logger = LoggerFactory.getLogger(DateUtils.class);
|
||||
private static RestTemplate restTemplate;
|
||||
|
||||
@PostConstruct
|
||||
public void getInstance() {
|
||||
RestTemplate restTemplate = SingletonRestTemplate.INSTANCE;
|
||||
List converterList = restTemplate.getMessageConverters();
|
||||
HttpMessageConverter converterTarget = null;
|
||||
for (HttpMessageConverter item : converterList) {
|
||||
if (MappingJackson2HttpMessageConverter.class != item.getClass()) continue;
|
||||
converterTarget = item;
|
||||
break;
|
||||
}
|
||||
if (null != converterTarget) {
|
||||
converterList.remove(converterTarget);
|
||||
}
|
||||
ObjectMapper objectMapper = new ObjectMapper();
|
||||
objectMapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
|
||||
objectMapper.setSerializationInclusion(JsonInclude.Include.NON_NULL);
|
||||
converterList.add(new MappingJackson2HttpMessageConverter(objectMapper));
|
||||
RestTemplateUtil.restTemplate = restTemplate;
|
||||
}
|
||||
|
||||
public static String get(String url) {
|
||||
HttpHeaders headers = new HttpHeaders();
|
||||
headers.add("Accept", "application/json");
|
||||
headers.add("Content-Encoding", "UTF-8");
|
||||
headers.add("Content-Type", "application/json; charset=UTF-8");
|
||||
HttpEntity requestEntity = new HttpEntity(null, (MultiValueMap)headers);
|
||||
ResponseEntity response = restTemplate.exchange(url, HttpMethod.GET, requestEntity, String.class, new Object[0]);
|
||||
return (String)response.getBody();
|
||||
}
|
||||
|
||||
public static String get(URI url, HttpHeaders headers) {
|
||||
HttpEntity requestEntity = new HttpEntity(null, (MultiValueMap)headers);
|
||||
ResponseEntity response = restTemplate.exchange(url, HttpMethod.GET, requestEntity, String.class);
|
||||
return (String)response.getBody();
|
||||
}
|
||||
|
||||
public static <T> T get(URI url, HttpHeaders headers, Class<T> responseType) {
|
||||
HttpEntity requestEntity = new HttpEntity(null, (MultiValueMap)headers);
|
||||
T resultEntity = null;
|
||||
try {
|
||||
ResponseEntity result = restTemplate.exchange(url, HttpMethod.GET, requestEntity, responseType);
|
||||
resultEntity = RestTemplateUtil.getResultEntity(result, url);
|
||||
}
|
||||
catch (Exception e) {
|
||||
logger.warn(">>>>>>>>>>>>>>>>>\u3010{}\u3011\u63a5\u53e3\u8c03\u7528\u5931\u8d25\uff0c\u9519\u8bef\u4fe1\u606f", (Object)url, (Object)e);
|
||||
}
|
||||
return resultEntity;
|
||||
}
|
||||
|
||||
public static <T> T post(URI url, Object data, HttpHeaders headers, Class<T> responseType) {
|
||||
HttpEntity requestEntity = new HttpEntity(data, (MultiValueMap)headers);
|
||||
T resultEntity = null;
|
||||
try {
|
||||
logger.info(">>>>>>>>>>>>>>>>>\u5f00\u59cb\u8bf7\u6c42\u63a5\u53e3:{}\uff0cpayload:{},", (Object)url.toString(), data);
|
||||
ResponseEntity result = restTemplate.postForEntity(url, (Object)requestEntity, responseType);
|
||||
resultEntity = RestTemplateUtil.getResultEntity(result, url);
|
||||
}
|
||||
catch (Exception e) {
|
||||
logger.warn(">>>>>>>>>>>>>>>>>\u63a5\u53e3\u8c03\u7528\u5931\u8d25\uff0c\u9519\u8bef\u4fe1\u606f\uff1a{}", (Object)e.getMessage());
|
||||
}
|
||||
return resultEntity;
|
||||
}
|
||||
|
||||
public static <T> T postTf(URI url, Object data, HttpHeaders headers, Class<T> responseType) throws Exception {
|
||||
HttpEntity requestEntity = new HttpEntity(data, (MultiValueMap)headers);
|
||||
T resultEntity = null;
|
||||
try {
|
||||
logger.info(">>>>>>>>>>>>>>>>>\u5f00\u59cb\u8bf7\u6c42\u63a5\u53e3:{},payload:{},", (Object)url.toString(), data);
|
||||
ResponseEntity result = restTemplate.postForEntity(url, (Object)requestEntity, responseType);
|
||||
resultEntity = RestTemplateUtil.getTfResultEntity(result, url);
|
||||
}
|
||||
catch (Exception e) {
|
||||
logger.warn(">>>>>>>>>>>>>>>>>\u63a5\u53e3\u8c03\u7528\u5931\u8d25\uff0c\u9519\u8bef\u4fe1\u606f\uff1a{}", (Object)e.getMessage());
|
||||
throw e;
|
||||
}
|
||||
return resultEntity;
|
||||
}
|
||||
|
||||
public static <T> T post(URI url, Object data, HttpHeaders headers, TypeReference<T> tTypeReference) {
|
||||
HttpEntity requestEntity = new HttpEntity(data, (MultiValueMap)headers);
|
||||
T resultEntity = null;
|
||||
try {
|
||||
logger.info(">>>>>>>>>>>>>>>>>\u5f00\u59cb\u8bf7\u6c42\u63a5\u53e3:{}\uff0cpayload:{},", (Object)url.toString(), data);
|
||||
ResponseEntity result = restTemplate.postForEntity(url, (Object)requestEntity, String.class);
|
||||
if (HttpStatus.OK == result.getStatusCode()) {
|
||||
logger.info(">>>>>>>>>>>>>>>>>\u63a5\u53e3:{} \u8c03\u7528\u6210\u529f", (Object)url);
|
||||
if (logger.isDebugEnabled()) {
|
||||
logger.debug("\u63a5\u53e3\u8fd4\u56de\u503c\uff1a{}", (Object)JsonUtils.toJson(result.getBody()));
|
||||
}
|
||||
return JsonUtils.toObj((String)result.getBody(), tTypeReference);
|
||||
}
|
||||
logger.info(">>>>>>>>>>>>>>>>>\u63a5\u53e3\u8c03\u7528\u5931\u8d25\uff0c\u72b6\u6001\u7801\uff1a{},\u9519\u8bef\u539f\u56e0\uff1a{}", (Object)result.getStatusCode(), (Object)JsonUtils.toJson(result.getBody()));
|
||||
}
|
||||
catch (Exception e) {
|
||||
logger.warn(">>>>>>>>>>>>>>>>>\u63a5\u53e3\u8c03\u7528\u5931\u8d25\uff0c\u9519\u8bef\u4fe1\u606f\uff1a{}", (Object)e.getMessage());
|
||||
}
|
||||
return resultEntity;
|
||||
}
|
||||
|
||||
private static <T> T getTfResultEntity(ResponseEntity<T> result, URI url) throws Exception {
|
||||
HttpStatus statusCode = result.getStatusCode();
|
||||
if (HttpStatus.OK == statusCode) {
|
||||
logger.info(">>>>>>>>>>>>>>>>>\u63a5\u53e3:{} \u8c03\u7528\u6210\u529f", (Object)url);
|
||||
if (logger.isDebugEnabled()) {
|
||||
logger.debug("\u63a5\u53e3\u8fd4\u56de\u503c\uff1a{}", (Object)JsonUtils.toJson(result.getBody()));
|
||||
}
|
||||
return (T)result.getBody();
|
||||
}
|
||||
logger.info(">>>>>>>>>>>>>>>>>\u63a5\u53e3\u8c03\u7528\u5931\u8d25\uff0c\u72b6\u6001\u7801\uff1a{},\u9519\u8bef\u539f\u56e0\uff1a{}", (Object)statusCode, (Object)JsonUtils.toJson(result.getBody()));
|
||||
if (HttpStatus.UNAUTHORIZED == statusCode) {
|
||||
throw new Exception(statusCode.toString());
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
private static <T> T getResultEntity(ResponseEntity<T> result, URI url) {
|
||||
if (HttpStatus.OK == result.getStatusCode()) {
|
||||
logger.info(">>>>>>>>>>>>>>>>>\u63a5\u53e3:{} \u8c03\u7528\u6210\u529f", (Object)url);
|
||||
if (logger.isDebugEnabled()) {
|
||||
logger.debug("\u63a5\u53e3\u8fd4\u56de\u503c\uff1a{}", (Object)JsonUtils.toJson(result.getBody()));
|
||||
}
|
||||
return (T)result.getBody();
|
||||
}
|
||||
logger.info(">>>>>>>>>>>>>>>>>\u63a5\u53e3\u8c03\u7528\u5931\u8d25\uff0c\u72b6\u6001\u7801\uff1a{},\u9519\u8bef\u539f\u56e0\uff1a{}", (Object)result.getStatusCode(), (Object)JsonUtils.toJson(result.getBody()));
|
||||
return null;
|
||||
}
|
||||
|
||||
private static class SingletonRestTemplate {
|
||||
static SimpleClientHttpRequestFactory requestFactory = new SimpleClientHttpRequestFactory();
|
||||
static final RestTemplate INSTANCE;
|
||||
|
||||
private SingletonRestTemplate() {
|
||||
}
|
||||
|
||||
static {
|
||||
requestFactory.setConnectTimeout(10000);
|
||||
requestFactory.setReadTimeout(10000);
|
||||
INSTANCE = new RestTemplate((ClientHttpRequestFactory)requestFactory);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+41
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package cn.cloudwalk.common.ninca.visitor.util;
|
||||
|
||||
public class StartTimeAndEndTime {
|
||||
private Long startTime;
|
||||
private Long endTime;
|
||||
private String currentTime;
|
||||
|
||||
public StartTimeAndEndTime(Long startTime, Long endTime, String currentTime) {
|
||||
this.startTime = startTime;
|
||||
this.endTime = endTime;
|
||||
this.currentTime = currentTime;
|
||||
}
|
||||
|
||||
public Long getStartTime() {
|
||||
return this.startTime;
|
||||
}
|
||||
|
||||
public void setStartTime(Long startTime) {
|
||||
this.startTime = startTime;
|
||||
}
|
||||
|
||||
public Long getEndTime() {
|
||||
return this.endTime;
|
||||
}
|
||||
|
||||
public void setEndTime(Long endTime) {
|
||||
this.endTime = endTime;
|
||||
}
|
||||
|
||||
public String getCurrentTime() {
|
||||
return this.currentTime;
|
||||
}
|
||||
|
||||
public void setCurrentTime(String currentTime) {
|
||||
this.currentTime = currentTime;
|
||||
}
|
||||
}
|
||||
|
||||
+2066
File diff suppressed because it is too large
Load Diff
+43
@@ -0,0 +1,43 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* net.coobird.thumbnailator.Thumbnails
|
||||
* net.coobird.thumbnailator.tasks.UnsupportedFormatException
|
||||
* org.apache.commons.io.IOUtils
|
||||
*/
|
||||
package cn.cloudwalk.common.ninca.visitor.util;
|
||||
|
||||
import java.io.ByteArrayInputStream;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.io.OutputStream;
|
||||
import javax.swing.ImageIcon;
|
||||
import net.coobird.thumbnailator.Thumbnails;
|
||||
import net.coobird.thumbnailator.tasks.UnsupportedFormatException;
|
||||
import org.apache.commons.io.IOUtils;
|
||||
|
||||
public class ThumbnailUtils {
|
||||
private ThumbnailUtils() {
|
||||
}
|
||||
|
||||
public static void resize(byte[] bytes, int width, int height, boolean isForce, OutputStream outputStream) throws IOException {
|
||||
ByteArrayInputStream inputStream = new ByteArrayInputStream(bytes);
|
||||
if (isForce) {
|
||||
Thumbnails.of((InputStream[])new InputStream[]{inputStream}).forceSize(width, height).toOutputStream(outputStream);
|
||||
} else {
|
||||
ImageIcon imageIcon = new ImageIcon(bytes);
|
||||
int srcWidth = imageIcon.getIconWidth();
|
||||
int srcHeight = imageIcon.getIconHeight();
|
||||
if (srcHeight == -1 || srcWidth == -1) {
|
||||
throw new UnsupportedFormatException("\u6587\u4ef6\u683c\u5f0f\u4e0d\u6b63\u786e");
|
||||
}
|
||||
if (srcWidth > width || srcHeight > height) {
|
||||
Thumbnails.of((InputStream[])new InputStream[]{inputStream}).size(width, height).toOutputStream(outputStream);
|
||||
} else {
|
||||
IOUtils.write((byte[])bytes, (OutputStream)outputStream);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+92
@@ -0,0 +1,92 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package cn.cloudwalk.common.ninca.visitor.util;
|
||||
|
||||
import cn.cloudwalk.common.ninca.visitor.util.CollectionUtils;
|
||||
import cn.cloudwalk.common.ninca.visitor.util.StringUtils;
|
||||
import java.net.MalformedURLException;
|
||||
import java.net.URL;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
import java.util.regex.Matcher;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
public class UrlUtil {
|
||||
public static UrlEntity parse(String url) {
|
||||
UrlEntity entity = new UrlEntity();
|
||||
if (StringUtils.isBlank(url)) {
|
||||
return entity;
|
||||
}
|
||||
url = url.trim();
|
||||
String[] urlParts = url.split("\\?");
|
||||
entity.baseUrl = urlParts[0];
|
||||
if (urlParts.length == 1) {
|
||||
return entity;
|
||||
}
|
||||
String[] params = urlParts[1].split("&");
|
||||
entity.params = new HashMap<String, String>(8);
|
||||
for (String param : params) {
|
||||
String[] keyValue = param.split("=");
|
||||
entity.params.put(keyValue[0], keyValue[1]);
|
||||
}
|
||||
return entity;
|
||||
}
|
||||
|
||||
public static String appendParams(String url, Map<String, String> params) {
|
||||
if (StringUtils.isBlank(url)) {
|
||||
return "";
|
||||
}
|
||||
if (CollectionUtils.isEmpty(params)) {
|
||||
return url.trim();
|
||||
}
|
||||
StringBuffer sb = new StringBuffer();
|
||||
Set<String> keys = params.keySet();
|
||||
for (String key : keys) {
|
||||
sb.append(key).append("=").append(params.get(key)).append("&");
|
||||
}
|
||||
sb.deleteCharAt(sb.length() - 1);
|
||||
url = url.trim();
|
||||
int length = url.length();
|
||||
int index = url.indexOf("?");
|
||||
url = index > -1 ? (length - 1 == index ? url + sb.toString() : url + "&" + sb.toString()) : url + "?" + sb.toString();
|
||||
return url;
|
||||
}
|
||||
|
||||
public static String appendParam(String url, String name, String value) {
|
||||
if (StringUtils.isBlank(url)) {
|
||||
return "";
|
||||
}
|
||||
if (StringUtils.isBlank(name)) {
|
||||
return url.trim();
|
||||
}
|
||||
HashMap<String, String> params = new HashMap<String, String>(8);
|
||||
params.put(name, value);
|
||||
return UrlUtil.appendParams(url, params);
|
||||
}
|
||||
|
||||
public static boolean verifyUrl(String url) {
|
||||
String regEx = "[a-zA-z]+://[^\\s]*";
|
||||
Pattern pat = Pattern.compile(regEx, 2);
|
||||
Matcher matcher = pat.matcher(url);
|
||||
return matcher.matches();
|
||||
}
|
||||
|
||||
public static String getFullHost(String var1) {
|
||||
URL url = null;
|
||||
try {
|
||||
url = new URL(var1);
|
||||
}
|
||||
catch (MalformedURLException e) {
|
||||
return null;
|
||||
}
|
||||
return url.getProtocol() + "://" + url.getHost();
|
||||
}
|
||||
|
||||
public static class UrlEntity {
|
||||
public String baseUrl;
|
||||
public Map<String, String> params;
|
||||
}
|
||||
}
|
||||
|
||||
+321
@@ -0,0 +1,321 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.cloud.exception.ServiceException
|
||||
* com.google.common.collect.Maps
|
||||
* org.apache.poi.util.IOUtils
|
||||
* org.apache.tools.zip.ZipEntry
|
||||
* org.apache.tools.zip.ZipFile
|
||||
* org.slf4j.Logger
|
||||
* org.slf4j.LoggerFactory
|
||||
*/
|
||||
package cn.cloudwalk.common.ninca.visitor.util;
|
||||
|
||||
import cn.cloudwalk.cloud.exception.ServiceException;
|
||||
import com.google.common.collect.Maps;
|
||||
import java.io.BufferedInputStream;
|
||||
import java.io.BufferedOutputStream;
|
||||
import java.io.ByteArrayOutputStream;
|
||||
import java.io.Closeable;
|
||||
import java.io.File;
|
||||
import java.io.FileNotFoundException;
|
||||
import java.io.FileOutputStream;
|
||||
import java.io.FilterOutputStream;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.io.OutputStream;
|
||||
import java.io.Serializable;
|
||||
import java.nio.charset.StandardCharsets;
|
||||
import java.util.Enumeration;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
import java.util.zip.ZipInputStream;
|
||||
import org.apache.poi.util.IOUtils;
|
||||
import org.apache.tools.zip.ZipEntry;
|
||||
import org.apache.tools.zip.ZipFile;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
public class ZipUtil {
|
||||
private static final Logger logger = LoggerFactory.getLogger(ZipUtil.class);
|
||||
private static final String CHINESE_CHARSET = "GBK";
|
||||
private static final int CACHE_SIZE = 1024;
|
||||
private static final int CHCHE_SIZE2 = 8192;
|
||||
private static final int CHCHE_SIZE3 = 100;
|
||||
|
||||
private ZipUtil() {
|
||||
}
|
||||
|
||||
public static Map<String, Object> unZip(InputStream in, String outputDirectory) throws ServiceException {
|
||||
if (in == null) {
|
||||
return null;
|
||||
}
|
||||
java.util.zip.ZipEntry zipEntry = null;
|
||||
FileOutputStream out = null;
|
||||
String uniqueName = null;
|
||||
String iconUrl = null;
|
||||
String zipFileName = null;
|
||||
HashMap map = Maps.newHashMap();
|
||||
ZipInputStream zipIn = new ZipInputStream(in, StandardCharsets.ISO_8859_1);
|
||||
try {
|
||||
Serializable path;
|
||||
while ((zipEntry = zipIn.getNextEntry()) != null) {
|
||||
if (zipEntry.isDirectory()) continue;
|
||||
zipFileName = zipEntry.getName();
|
||||
uniqueName = zipFileName.indexOf("/") != -1 ? zipFileName.substring(zipFileName.indexOf("/")) : zipFileName;
|
||||
path = new File(outputDirectory + File.separator);
|
||||
if (!((File)path).exists()) {
|
||||
((File)path).mkdirs();
|
||||
}
|
||||
iconUrl = outputDirectory + File.separator + uniqueName;
|
||||
File file = new File(iconUrl);
|
||||
file.createNewFile();
|
||||
out = new FileOutputStream(file);
|
||||
int b = 0;
|
||||
while ((b = zipIn.read()) != -1) {
|
||||
out.write(b);
|
||||
}
|
||||
out.close();
|
||||
map.put(zipEntry.getName(), iconUrl);
|
||||
}
|
||||
path = map;
|
||||
return path;
|
||||
}
|
||||
catch (Exception ex) {
|
||||
throw new ServiceException("\u89e3\u538b\u6587\u4ef6\u5f02\u5e38", (Throwable)ex);
|
||||
}
|
||||
finally {
|
||||
IOUtils.closeQuietly((Closeable)zipIn);
|
||||
IOUtils.closeQuietly((Closeable)in);
|
||||
IOUtils.closeQuietly(out);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* WARNING - Removed try catching itself - possible behaviour change.
|
||||
*/
|
||||
public static void unZip(String zipFilePath, String destDir) {
|
||||
ZipFile zipFile = null;
|
||||
try {
|
||||
zipFile = new ZipFile(zipFilePath, CHINESE_CHARSET);
|
||||
Enumeration zipEntries = zipFile.getEntries();
|
||||
byte[] cache = new byte[1024];
|
||||
while (zipEntries.hasMoreElements()) {
|
||||
ZipEntry entry = (ZipEntry)zipEntries.nextElement();
|
||||
if (entry.isDirectory()) {
|
||||
new File(destDir + entry.getName()).mkdirs();
|
||||
continue;
|
||||
}
|
||||
File file = new File(destDir + entry.getName());
|
||||
File parentFile = file.getParentFile();
|
||||
if (parentFile != null && !parentFile.exists()) {
|
||||
parentFile.mkdirs();
|
||||
}
|
||||
FileOutputStream fos = new FileOutputStream(file);
|
||||
Throwable throwable = null;
|
||||
try {
|
||||
BufferedOutputStream bos = new BufferedOutputStream(fos, 1024);
|
||||
Throwable throwable2 = null;
|
||||
try {
|
||||
BufferedInputStream bis = new BufferedInputStream(zipFile.getInputStream(entry));
|
||||
Throwable throwable3 = null;
|
||||
try {
|
||||
int readIndex = 0;
|
||||
while ((readIndex = bis.read(cache, 0, 1024)) != -1) {
|
||||
fos.write(cache, 0, readIndex);
|
||||
}
|
||||
bos.flush();
|
||||
}
|
||||
catch (Throwable throwable4) {
|
||||
throwable3 = throwable4;
|
||||
throw throwable4;
|
||||
}
|
||||
finally {
|
||||
if (bis == null) continue;
|
||||
if (throwable3 != null) {
|
||||
try {
|
||||
bis.close();
|
||||
}
|
||||
catch (Throwable throwable5) {
|
||||
throwable3.addSuppressed(throwable5);
|
||||
}
|
||||
continue;
|
||||
}
|
||||
bis.close();
|
||||
}
|
||||
}
|
||||
catch (Throwable throwable6) {
|
||||
throwable2 = throwable6;
|
||||
throw throwable6;
|
||||
}
|
||||
finally {
|
||||
if (bos == null) continue;
|
||||
if (throwable2 != null) {
|
||||
try {
|
||||
bos.close();
|
||||
}
|
||||
catch (Throwable throwable7) {
|
||||
throwable2.addSuppressed(throwable7);
|
||||
}
|
||||
continue;
|
||||
}
|
||||
bos.close();
|
||||
}
|
||||
}
|
||||
catch (Throwable throwable8) {
|
||||
throwable = throwable8;
|
||||
throw throwable8;
|
||||
}
|
||||
finally {
|
||||
if (fos == null) continue;
|
||||
if (throwable != null) {
|
||||
try {
|
||||
fos.close();
|
||||
}
|
||||
catch (Throwable throwable9) {
|
||||
throwable.addSuppressed(throwable9);
|
||||
}
|
||||
continue;
|
||||
}
|
||||
fos.close();
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (IOException e) {
|
||||
logger.error("", (Throwable)e);
|
||||
}
|
||||
finally {
|
||||
if (null != zipFile) {
|
||||
try {
|
||||
zipFile.close();
|
||||
}
|
||||
catch (IOException e) {
|
||||
logger.error("", (Throwable)e);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* WARNING - Removed try catching itself - possible behaviour change.
|
||||
*/
|
||||
public static Map<String, Object> unZip(File file) {
|
||||
ZipFile zipFile = null;
|
||||
HashMap<String, Object> map = new HashMap<String, Object>(16);
|
||||
try {
|
||||
zipFile = new ZipFile(file, CHINESE_CHARSET);
|
||||
Enumeration zipEntries = zipFile.getEntries();
|
||||
while (zipEntries.hasMoreElements()) {
|
||||
ZipEntry entry = (ZipEntry)zipEntries.nextElement();
|
||||
if (entry.isDirectory()) continue;
|
||||
byte[] buff = ZipUtil.input2byte(zipFile.getInputStream(entry));
|
||||
map.put(entry.getName(), buff);
|
||||
}
|
||||
zipFile.close();
|
||||
file.delete();
|
||||
}
|
||||
catch (IOException e) {
|
||||
logger.error("", (Throwable)e);
|
||||
}
|
||||
return map;
|
||||
}
|
||||
|
||||
public static final byte[] input2byte(InputStream inStream) throws IOException {
|
||||
ByteArrayOutputStream swapStream = new ByteArrayOutputStream();
|
||||
byte[] buff = new byte[100];
|
||||
int rc = 0;
|
||||
while ((rc = inStream.read(buff, 0, 100)) > 0) {
|
||||
swapStream.write(buff, 0, rc);
|
||||
}
|
||||
byte[] in2b = swapStream.toByteArray();
|
||||
swapStream.close();
|
||||
inStream.close();
|
||||
return in2b;
|
||||
}
|
||||
|
||||
/*
|
||||
* WARNING - Removed try catching itself - possible behaviour change.
|
||||
*/
|
||||
public static void byte2File(byte[] buf, String filePath, String fileName) {
|
||||
FilterOutputStream bos = null;
|
||||
FileOutputStream fos = null;
|
||||
File file = null;
|
||||
try {
|
||||
File dir = new File(filePath);
|
||||
if (!dir.exists() && dir.isDirectory()) {
|
||||
dir.mkdirs();
|
||||
}
|
||||
file = new File(filePath + File.separator + fileName);
|
||||
fos = new FileOutputStream(file);
|
||||
bos = new BufferedOutputStream(fos);
|
||||
bos.write(buf);
|
||||
}
|
||||
catch (Exception e) {
|
||||
logger.error("", (Throwable)e);
|
||||
}
|
||||
finally {
|
||||
if (bos != null) {
|
||||
try {
|
||||
bos.close();
|
||||
}
|
||||
catch (IOException e) {
|
||||
logger.error("", (Throwable)e);
|
||||
}
|
||||
}
|
||||
if (fos != null) {
|
||||
try {
|
||||
fos.close();
|
||||
}
|
||||
catch (IOException e) {
|
||||
logger.error("", (Throwable)e);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* WARNING - Removed try catching itself - possible behaviour change.
|
||||
*/
|
||||
public static File inputstreamtofile(InputStream ins) throws IOException {
|
||||
File file = null;
|
||||
OutputStream os = null;
|
||||
try {
|
||||
file = File.createTempFile("temp", ".zip");
|
||||
os = new FileOutputStream(file);
|
||||
int bytesRead = 0;
|
||||
byte[] buffer = new byte[8192];
|
||||
while ((bytesRead = ins.read(buffer, 0, 8192)) != -1) {
|
||||
os.write(buffer, 0, bytesRead);
|
||||
}
|
||||
}
|
||||
finally {
|
||||
if (null != os) {
|
||||
try {
|
||||
os.close();
|
||||
}
|
||||
catch (IOException e) {
|
||||
logger.error("", (Throwable)e);
|
||||
}
|
||||
}
|
||||
if (null != ins) {
|
||||
try {
|
||||
ins.close();
|
||||
}
|
||||
catch (IOException e) {
|
||||
logger.error("", (Throwable)e);
|
||||
}
|
||||
}
|
||||
}
|
||||
return file;
|
||||
}
|
||||
|
||||
public static Map<String, Object> unZip(InputStream ins) throws IOException {
|
||||
File file = ZipUtil.inputstreamtofile(ins);
|
||||
if (null == file || !file.exists()) {
|
||||
throw new FileNotFoundException("\u6587\u4ef6\u4e0d\u5b58\u5728");
|
||||
}
|
||||
return ZipUtil.unZip(file);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
Summary for /tmp/crk_lib_extract_6o_f40r3/ninca-crk-visitor-management-common-2.9.1_210630-SNAPSHOT.jar
|
||||
Decompiled with CFR 0.152
|
||||
|
||||
|
||||
cn.cloudwalk.common.ninca.visitor.util.ExcelUtil
|
||||
----------------------------
|
||||
|
||||
appendListToExcel(java.io.InputStream java.util.List<T> int java.io.OutputStream java.lang.Class<T> java.lang.Integer )
|
||||
Exception : org.benf.cfr.reader.util.ConfusedCFRException: Started 2 blocks at once
|
||||
Reference in New Issue
Block a user