feat: add service config templates and extraction script

Former-commit-id: 1de24b7eb79676d1aba9d799a58c5a753290cf52
This commit is contained in:
反编译工作区
2026-05-01 19:38:01 +08:00
parent 3175b7074b
commit 8b15445328
2433 changed files with 8322164 additions and 1604 deletions
@@ -0,0 +1,38 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>cn.cloudwalk.ninca</groupId>
<artifactId>ninca-crk-from-lib-reactor</artifactId>
<version>2.9.1_210630-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>ninca-crk-conference-attendance-common</artifactId>
<name>ninca-crk-conference-attendance-common</name>
<description>CFR from ninca-crk-conference-attendance-common-2.9.1_210630-SNAPSHOT.jar (embedded pom: none)</description>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>cn.cloudwalk.cloud</groupId>
<artifactId>cloudwalk-common-result</artifactId>
</dependency>
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi</artifactId>
</dependency>
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml</artifactId>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>
</project>
@@ -0,0 +1,15 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.common.ninca.conference.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 {
}
@@ -0,0 +1,28 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.common.ninca.conference.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;
}
@@ -0,0 +1,16 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.common.ninca.conference.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 "";
}
@@ -0,0 +1,96 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.cloud.entity.CloudwalkBaseTimes
*/
package cn.cloudwalk.common.ninca.conference.bean.conference.dto;
import cn.cloudwalk.cloud.entity.CloudwalkBaseTimes;
public class ConferenceEditDTO
extends CloudwalkBaseTimes {
private static final long serialVersionUID = -3651279000552979292L;
private String businessId;
private String name;
private String address;
private Long beginTime;
private Long endTime;
private Integer isSignoff;
private Long signoffDeadline;
private Long signBeginTime;
private Byte cancelStatus;
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 getAddress() {
return this.address;
}
public void setAddress(String address) {
this.address = address;
}
public Long getBeginTime() {
return this.beginTime;
}
public void setBeginTime(Long beginTime) {
this.beginTime = beginTime;
}
public Long getEndTime() {
return this.endTime;
}
public void setEndTime(Long endTime) {
this.endTime = endTime;
}
public Integer getIsSignoff() {
return this.isSignoff;
}
public void setIsSignoff(Integer isSignoff) {
this.isSignoff = isSignoff;
}
public Long getSignoffDeadline() {
return this.signoffDeadline;
}
public void setSignoffDeadline(Long signoffDeadline) {
this.signoffDeadline = signoffDeadline;
}
public Long getSignBeginTime() {
return this.signBeginTime;
}
public void setSignBeginTime(Long signBeginTime) {
this.signBeginTime = signBeginTime;
}
public Byte getCancelStatus() {
return this.cancelStatus;
}
public void setCancelStatus(Byte cancelStatus) {
this.cancelStatus = cancelStatus;
}
}
@@ -0,0 +1,31 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.common.ninca.conference.bean.conference.dto;
import java.io.Serializable;
import java.util.List;
public class ConferenceGetsDTO
implements Serializable {
private static final long serialVersionUID = 697030016368844377L;
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;
}
}
@@ -0,0 +1,21 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.common.ninca.conference.bean.conference.dto;
import java.io.Serializable;
public class ConferenceImageStoreExpiredDTO
implements Serializable {
private static final long serialVersionUID = -8715008454404251518L;
private Long cleanTime;
public Long getCleanTime() {
return this.cleanTime;
}
public void setCleanTime(Long cleanTime) {
this.cleanTime = cleanTime;
}
}
@@ -0,0 +1,49 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.common.ninca.conference.bean.conference.dto;
import java.io.Serializable;
import java.util.List;
public class ConferenceImageStoreExpiredResultDTO
implements Serializable {
private static final long serialVersionUID = 2616221222011539389L;
private String conferenceId;
private String businessId;
private String imageStoreId;
private List<String> deviceIds;
public String getConferenceId() {
return this.conferenceId;
}
public void setConferenceId(String conferenceId) {
this.conferenceId = conferenceId;
}
public String getBusinessId() {
return this.businessId;
}
public void setBusinessId(String businessId) {
this.businessId = businessId;
}
public String getImageStoreId() {
return this.imageStoreId;
}
public void setImageStoreId(String imageStoreId) {
this.imageStoreId = imageStoreId;
}
public List<String> getDeviceIds() {
return this.deviceIds;
}
public void setDeviceIds(List<String> deviceIds) {
this.deviceIds = deviceIds;
}
}
@@ -0,0 +1,84 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.common.ninca.conference.bean.conference.dto;
import java.io.Serializable;
public class ConferenceQueryDTO
implements Serializable {
private static final long serialVersionUID = -959385061712031647L;
private String businessId;
private String name;
private String address;
private Byte cancelStatus;
private Long beginTimeGreaterThan;
private Long beginTimeLessEqual;
private Long endTimeGreaterEqual;
private Long endTimeLessThan;
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 getAddress() {
return this.address;
}
public void setAddress(String address) {
this.address = address;
}
public Byte getCancelStatus() {
return this.cancelStatus;
}
public void setCancelStatus(Byte cancelStatus) {
this.cancelStatus = cancelStatus;
}
public Long getBeginTimeGreaterThan() {
return this.beginTimeGreaterThan;
}
public void setBeginTimeGreaterThan(Long beginTimeGreaterThan) {
this.beginTimeGreaterThan = beginTimeGreaterThan;
}
public Long getBeginTimeLessEqual() {
return this.beginTimeLessEqual;
}
public void setBeginTimeLessEqual(Long beginTimeLessEqual) {
this.beginTimeLessEqual = beginTimeLessEqual;
}
public Long getEndTimeGreaterEqual() {
return this.endTimeGreaterEqual;
}
public void setEndTimeGreaterEqual(Long endTimeGreaterEqual) {
this.endTimeGreaterEqual = endTimeGreaterEqual;
}
public Long getEndTimeLessThan() {
return this.endTimeLessThan;
}
public void setEndTimeLessThan(Long endTimeLessThan) {
this.endTimeLessThan = endTimeLessThan;
}
}
@@ -0,0 +1,96 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.cloud.entity.CloudwalkBaseTimes
*/
package cn.cloudwalk.common.ninca.conference.bean.conference.dto;
import cn.cloudwalk.cloud.entity.CloudwalkBaseTimes;
public class ConferenceResultDTO
extends CloudwalkBaseTimes {
private static final long serialVersionUID = 5922086648903961106L;
private String businessId;
private String name;
private String address;
private Long beginTime;
private Long endTime;
private Integer isSignoff;
private Long signoffDeadline;
private Long signBeginTime;
private Byte cancelStatus;
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 getAddress() {
return this.address;
}
public void setAddress(String address) {
this.address = address;
}
public Long getBeginTime() {
return this.beginTime;
}
public void setBeginTime(Long beginTime) {
this.beginTime = beginTime;
}
public Long getEndTime() {
return this.endTime;
}
public void setEndTime(Long endTime) {
this.endTime = endTime;
}
public Integer getIsSignoff() {
return this.isSignoff;
}
public void setIsSignoff(Integer isSignoff) {
this.isSignoff = isSignoff;
}
public Long getSignoffDeadline() {
return this.signoffDeadline;
}
public void setSignoffDeadline(Long signoffDeadline) {
this.signoffDeadline = signoffDeadline;
}
public Long getSignBeginTime() {
return this.signBeginTime;
}
public void setSignBeginTime(Long signBeginTime) {
this.signBeginTime = signBeginTime;
}
public Byte getCancelStatus() {
return this.cancelStatus;
}
public void setCancelStatus(Byte cancelStatus) {
this.cancelStatus = cancelStatus;
}
}
@@ -0,0 +1,21 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.common.ninca.conference.bean.device.dto;
import java.io.Serializable;
public class ConferenceDeviceDelDTO
implements Serializable {
private static final long serialVersionUID = 4396203946851441583L;
private String conferenceId;
public String getConferenceId() {
return this.conferenceId;
}
public void setConferenceId(String conferenceId) {
this.conferenceId = conferenceId;
}
}
@@ -0,0 +1,66 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.common.ninca.conference.bean.device.dto;
import java.io.Serializable;
public class ConferenceDeviceEditDTO
implements Serializable {
private static final long serialVersionUID = -2596125538736285286L;
private String conferenceId;
private String deviceId;
private Long createTime;
private String createUserId;
private Long lastUpdateTime;
private String lastUpdateUserId;
public String getConferenceId() {
return this.conferenceId;
}
public void setConferenceId(String conferenceId) {
this.conferenceId = conferenceId;
}
public String getDeviceId() {
return this.deviceId;
}
public void setDeviceId(String deviceId) {
this.deviceId = deviceId;
}
public Long getCreateTime() {
return this.createTime;
}
public void setCreateTime(Long createTime) {
this.createTime = createTime;
}
public String getCreateUserId() {
return this.createUserId;
}
public void setCreateUserId(String createUserId) {
this.createUserId = createUserId;
}
public Long getLastUpdateTime() {
return this.lastUpdateTime;
}
public void setLastUpdateTime(Long lastUpdateTime) {
this.lastUpdateTime = lastUpdateTime;
}
public String getLastUpdateUserId() {
return this.lastUpdateUserId;
}
public void setLastUpdateUserId(String lastUpdateUserId) {
this.lastUpdateUserId = lastUpdateUserId;
}
}
@@ -0,0 +1,21 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.common.ninca.conference.bean.device.dto;
import java.io.Serializable;
public class ConferenceDeviceQueryDTO
implements Serializable {
private static final long serialVersionUID = 5326022440166033715L;
private String conferenceId;
public String getConferenceId() {
return this.conferenceId;
}
public void setConferenceId(String conferenceId) {
this.conferenceId = conferenceId;
}
}
@@ -0,0 +1,33 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.cloud.entity.CloudwalkBaseTimes
*/
package cn.cloudwalk.common.ninca.conference.bean.device.dto;
import cn.cloudwalk.cloud.entity.CloudwalkBaseTimes;
public class ConferenceDeviceResultDTO
extends CloudwalkBaseTimes {
private static final long serialVersionUID = -724480184773868447L;
private String conferenceId;
private String deviceId;
public String getConferenceId() {
return this.conferenceId;
}
public void setConferenceId(String conferenceId) {
this.conferenceId = conferenceId;
}
public String getDeviceId() {
return this.deviceId;
}
public void setDeviceId(String deviceId) {
this.deviceId = deviceId;
}
}
@@ -0,0 +1,40 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.common.ninca.conference.bean.device.dto;
import java.io.Serializable;
import java.util.List;
public class ConferenceDeviceUnbindQueryDTO
implements Serializable {
private static final long serialVersionUID = -5715093742207253579L;
private String conferenceId;
private List<String> deviceList;
private Long nowTime;
public String getConferenceId() {
return this.conferenceId;
}
public void setConferenceId(String conferenceId) {
this.conferenceId = conferenceId;
}
public List<String> getDeviceList() {
return this.deviceList;
}
public void setDeviceList(List<String> deviceList) {
this.deviceList = deviceList;
}
public Long getNowTime() {
return this.nowTime;
}
public void setNowTime(Long nowTime) {
this.nowTime = nowTime;
}
}
@@ -0,0 +1,42 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.cloud.entity.CloudwalkBaseTimes
*/
package cn.cloudwalk.common.ninca.conference.bean.imagestore.dto;
import cn.cloudwalk.cloud.entity.CloudwalkBaseTimes;
public class ConferenceImageStoreEditDTO
extends CloudwalkBaseTimes {
private static final long serialVersionUID = -3064918032311146487L;
private String conferenceId;
private String imageStoreId;
private Integer cleanStatus;
public String getConferenceId() {
return this.conferenceId;
}
public void setConferenceId(String conferenceId) {
this.conferenceId = conferenceId;
}
public String getImageStoreId() {
return this.imageStoreId;
}
public void setImageStoreId(String imageStoreId) {
this.imageStoreId = imageStoreId;
}
public Integer getCleanStatus() {
return this.cleanStatus;
}
public void setCleanStatus(Integer cleanStatus) {
this.cleanStatus = cleanStatus;
}
}
@@ -0,0 +1,21 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.common.ninca.conference.bean.imagestore.dto;
import java.io.Serializable;
public class ConferenceImageStoreGetDTO
implements Serializable {
private static final long serialVersionUID = -8791026646555247419L;
private String conferenceId;
public String getConferenceId() {
return this.conferenceId;
}
public void setConferenceId(String conferenceId) {
this.conferenceId = conferenceId;
}
}
@@ -0,0 +1,33 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.cloud.entity.CloudwalkBaseTimes
*/
package cn.cloudwalk.common.ninca.conference.bean.imagestore.dto;
import cn.cloudwalk.cloud.entity.CloudwalkBaseTimes;
public class ConferenceImageStoreResultDTO
extends CloudwalkBaseTimes {
private static final long serialVersionUID = 1402119858528094541L;
private String conferenceId;
private String imagestoreId;
public String getConferenceId() {
return this.conferenceId;
}
public void setConferenceId(String conferenceId) {
this.conferenceId = conferenceId;
}
public String getImagestoreId() {
return this.imagestoreId;
}
public void setImagestoreId(String imagestoreId) {
this.imagestoreId = imagestoreId;
}
}
@@ -0,0 +1,31 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.common.ninca.conference.bean.person.dto;
import java.io.Serializable;
import java.util.List;
public class ConferencePersonCountQueryDTO
implements Serializable {
private static final long serialVersionUID = -891432702115551971L;
private List<String> conferenceIds;
private Integer signResult;
public List<String> getConferenceIds() {
return this.conferenceIds;
}
public void setConferenceIds(List<String> conferenceIds) {
this.conferenceIds = conferenceIds;
}
public Integer getSignResult() {
return this.signResult;
}
public void setSignResult(Integer signResult) {
this.signResult = signResult;
}
}
@@ -0,0 +1,30 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.common.ninca.conference.bean.person.dto;
import java.io.Serializable;
public class ConferencePersonCountResultDTO
implements Serializable {
private static final long serialVersionUID = -891432702115551971L;
private String conferenceId;
private Integer participantsCount;
public String getConferenceId() {
return this.conferenceId;
}
public void setConferenceId(String conferenceId) {
this.conferenceId = conferenceId;
}
public Integer getParticipantsCount() {
return this.participantsCount;
}
public void setParticipantsCount(Integer participantsCount) {
this.participantsCount = participantsCount;
}
}
@@ -0,0 +1,21 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.common.ninca.conference.bean.person.dto;
import java.io.Serializable;
public class ConferencePersonDelDTO
implements Serializable {
private static final long serialVersionUID = 4396203946851441583L;
private String conferenceId;
public String getConferenceId() {
return this.conferenceId;
}
public void setConferenceId(String conferenceId) {
this.conferenceId = conferenceId;
}
}
@@ -0,0 +1,78 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.cloud.entity.CloudwalkBaseTimes
*/
package cn.cloudwalk.common.ninca.conference.bean.person.dto;
import cn.cloudwalk.cloud.entity.CloudwalkBaseTimes;
public class ConferencePersonEditDTO
extends CloudwalkBaseTimes {
private static final long serialVersionUID = 1484431938446102108L;
private String conferenceId;
private String personId;
private Long signin;
private Long signoff;
private Integer signResult;
private String signinRecordId;
private String signoffRecordId;
public String getConferenceId() {
return this.conferenceId;
}
public void setConferenceId(String conferenceId) {
this.conferenceId = conferenceId;
}
public String getPersonId() {
return this.personId;
}
public void setPersonId(String personId) {
this.personId = personId;
}
public Long getSignin() {
return this.signin;
}
public void setSignin(Long signin) {
this.signin = signin;
}
public Long getSignoff() {
return this.signoff;
}
public void setSignoff(Long signoff) {
this.signoff = signoff;
}
public Integer getSignResult() {
return this.signResult;
}
public void setSignResult(Integer signResult) {
this.signResult = signResult;
}
public String getSigninRecordId() {
return this.signinRecordId;
}
public void setSigninRecordId(String signinRecordId) {
this.signinRecordId = signinRecordId;
}
public String getSignoffRecordId() {
return this.signoffRecordId;
}
public void setSignoffRecordId(String signoffRecordId) {
this.signoffRecordId = signoffRecordId;
}
}
@@ -0,0 +1,30 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.common.ninca.conference.bean.person.dto;
import java.io.Serializable;
public class ConferencePersonQueryDTO
implements Serializable {
private static final long serialVersionUID = 1220660999922129300L;
private String conferenceId;
private String personId;
public String getConferenceId() {
return this.conferenceId;
}
public void setConferenceId(String conferenceId) {
this.conferenceId = conferenceId;
}
public String getPersonId() {
return this.personId;
}
public void setPersonId(String personId) {
this.personId = personId;
}
}
@@ -0,0 +1,75 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.common.ninca.conference.bean.person.dto;
import java.io.Serializable;
public class ConferencePersonResultDTO
implements Serializable {
private static final long serialVersionUID = 9136972654708293569L;
private String conferenceId;
private String personId;
private Long signin;
private Long signoff;
private Integer signResult;
private String signinRecordId;
private String signoffRecordId;
public String getConferenceId() {
return this.conferenceId;
}
public void setConferenceId(String conferenceId) {
this.conferenceId = conferenceId;
}
public String getPersonId() {
return this.personId;
}
public void setPersonId(String personId) {
this.personId = personId;
}
public Long getSignin() {
return this.signin;
}
public void setSignin(Long signin) {
this.signin = signin;
}
public Long getSignoff() {
return this.signoff;
}
public void setSignoff(Long signoff) {
this.signoff = signoff;
}
public Integer getSignResult() {
return this.signResult;
}
public void setSignResult(Integer signResult) {
this.signResult = signResult;
}
public String getSigninRecordId() {
return this.signinRecordId;
}
public void setSigninRecordId(String signinRecordId) {
this.signinRecordId = signinRecordId;
}
public String getSignoffRecordId() {
return this.signoffRecordId;
}
public void setSignoffRecordId(String signoffRecordId) {
this.signoffRecordId = signoffRecordId;
}
}
@@ -0,0 +1,332 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.common.ninca.conference.bean.result.dto;
import java.io.Serializable;
import java.math.BigDecimal;
public class ConferenceRecordAddDTO
implements Serializable {
private String id;
private String personId;
private String personName;
private String businessId;
private String deviceId;
private String deviceCode;
private String deviceName;
private BigDecimal threshold;
private String districtId;
private String areaId;
private String deviceTypeId;
private String deviceTypeName;
private String registerImagePath;
private String faceImagePath;
private String panoramaImagePath;
private BigDecimal score;
private Integer recognitionResult;
private Long recognitionTime;
private String groupId;
private String faceId;
private BigDecimal qualityScore;
private String logId;
private BigDecimal tempScore;
private BigDecimal maskScore;
private BigDecimal tempThreshold;
private String cardType;
private Integer source;
private String tempImagePath;
private String remark;
private Long createTime;
private String createUserId;
private Long lastUpdateTime;
private String lastUpdateUserId;
private String districtMergeName;
private String deviceAreaName;
private static final long serialVersionUID = 1L;
public String getId() {
return this.id;
}
public void setId(String id) {
this.id = id;
}
public String getPersonId() {
return this.personId;
}
public void setPersonId(String personId) {
this.personId = personId;
}
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 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 BigDecimal getThreshold() {
return this.threshold;
}
public void setThreshold(BigDecimal threshold) {
this.threshold = threshold;
}
public String getDistrictId() {
return this.districtId;
}
public void setDistrictId(String districtId) {
this.districtId = districtId;
}
public String getAreaId() {
return this.areaId;
}
public void setAreaId(String areaId) {
this.areaId = areaId;
}
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 getRegisterImagePath() {
return this.registerImagePath;
}
public void setRegisterImagePath(String registerImagePath) {
this.registerImagePath = registerImagePath;
}
public String getFaceImagePath() {
return this.faceImagePath;
}
public void setFaceImagePath(String faceImagePath) {
this.faceImagePath = faceImagePath;
}
public String getPanoramaImagePath() {
return this.panoramaImagePath;
}
public void setPanoramaImagePath(String panoramaImagePath) {
this.panoramaImagePath = panoramaImagePath;
}
public BigDecimal getScore() {
return this.score;
}
public void setScore(BigDecimal score) {
this.score = score;
}
public Integer getRecognitionResult() {
return this.recognitionResult;
}
public void setRecognitionResult(Integer recognitionResult) {
this.recognitionResult = recognitionResult;
}
public Long getRecognitionTime() {
return this.recognitionTime;
}
public void setRecognitionTime(Long recognitionTime) {
this.recognitionTime = recognitionTime;
}
public String getGroupId() {
return this.groupId;
}
public void setGroupId(String groupId) {
this.groupId = groupId;
}
public String getFaceId() {
return this.faceId;
}
public void setFaceId(String faceId) {
this.faceId = faceId;
}
public BigDecimal getQualityScore() {
return this.qualityScore;
}
public void setQualityScore(BigDecimal qualityScore) {
this.qualityScore = qualityScore;
}
public String getLogId() {
return this.logId;
}
public void setLogId(String logId) {
this.logId = logId;
}
public BigDecimal getTempScore() {
return this.tempScore;
}
public void setTempScore(BigDecimal tempScore) {
this.tempScore = tempScore;
}
public BigDecimal getMaskScore() {
return this.maskScore;
}
public void setMaskScore(BigDecimal maskScore) {
this.maskScore = maskScore;
}
public BigDecimal getTempThreshold() {
return this.tempThreshold;
}
public void setTempThreshold(BigDecimal tempThreshold) {
this.tempThreshold = tempThreshold;
}
public String getCardType() {
return this.cardType;
}
public void setCardType(String cardType) {
this.cardType = cardType;
}
public Integer getSource() {
return this.source;
}
public void setSource(Integer source) {
this.source = source;
}
public String getTempImagePath() {
return this.tempImagePath;
}
public void setTempImagePath(String tempImagePath) {
this.tempImagePath = tempImagePath;
}
public String getRemark() {
return this.remark;
}
public void setRemark(String remark) {
this.remark = remark;
}
public Long getCreateTime() {
return this.createTime;
}
public void setCreateTime(Long createTime) {
this.createTime = createTime;
}
public String getCreateUserId() {
return this.createUserId;
}
public void setCreateUserId(String createUserId) {
this.createUserId = createUserId;
}
public Long getLastUpdateTime() {
return this.lastUpdateTime;
}
public void setLastUpdateTime(Long lastUpdateTime) {
this.lastUpdateTime = lastUpdateTime;
}
public String getLastUpdateUserId() {
return this.lastUpdateUserId;
}
public void setLastUpdateUserId(String lastUpdateUserId) {
this.lastUpdateUserId = lastUpdateUserId;
}
public String getDistrictMergeName() {
return this.districtMergeName;
}
public void setDistrictMergeName(String districtMergeName) {
this.districtMergeName = districtMergeName;
}
public String getDeviceAreaName() {
return this.deviceAreaName;
}
public void setDeviceAreaName(String deviceAreaName) {
this.deviceAreaName = deviceAreaName;
}
public String toString() {
return "ConferenceRecordAddDTO{id='" + this.id + '\'' + ", personId='" + this.personId + '\'' + ", personName='" + this.personName + '\'' + ", businessId='" + this.businessId + '\'' + ", deviceId='" + this.deviceId + '\'' + ", deviceCode='" + this.deviceCode + '\'' + ", deviceName='" + this.deviceName + '\'' + ", threshold=" + this.threshold + ", districtId='" + this.districtId + '\'' + ", areaId='" + this.areaId + '\'' + ", deviceTypeId='" + this.deviceTypeId + '\'' + ", deviceTypeName='" + this.deviceTypeName + '\'' + ", registerImagePath='" + this.registerImagePath + '\'' + ", faceImagePath='" + this.faceImagePath + '\'' + ", panoramaImagePath='" + this.panoramaImagePath + '\'' + ", score=" + this.score + ", recognitionResult=" + this.recognitionResult + ", recognitionTime=" + this.recognitionTime + ", groupId='" + this.groupId + '\'' + ", faceId='" + this.faceId + '\'' + ", qualityScore=" + this.qualityScore + ", logId='" + this.logId + '\'' + ", tempScore=" + this.tempScore + ", maskScore=" + this.maskScore + ", tempThreshold=" + this.tempThreshold + ", cardType='" + this.cardType + '\'' + ", source=" + this.source + ", tempImagePath='" + this.tempImagePath + '\'' + ", remark='" + this.remark + '\'' + ", createTime=" + this.createTime + ", createUserId='" + this.createUserId + '\'' + ", lastUpdateTime=" + this.lastUpdateTime + ", lastUpdateUserId='" + this.lastUpdateUserId + '\'' + ", districtMergeName='" + this.districtMergeName + '\'' + ", deviceAreaName='" + this.deviceAreaName + '\'' + '}';
}
}
@@ -0,0 +1,34 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.common.ninca.conference.bean.result.dto;
import java.io.Serializable;
import java.util.List;
public class ConferenceRecordQueryDTO
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 "ConferenceRecordQueryDTO{ids=" + this.ids + ", businessId='" + this.businessId + '\'' + '}';
}
}
@@ -0,0 +1,352 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.common.ninca.conference.bean.result.dto;
import java.io.Serializable;
import java.math.BigDecimal;
public class ConferenceRecordQueryResultDTO
implements Serializable {
private String id;
private String personId;
private String personName;
private String businessId;
private String deviceId;
private String deviceCode;
private String deviceName;
private BigDecimal threshold;
private String districtId;
private String areaId;
private String deviceTypeId;
private String deviceTypeName;
private String registerImagePath;
private String faceImagePath;
private String panoramaImagePath;
private BigDecimal score;
private Integer recognitionResult;
private Long recognitionTime;
private String groupId;
private String faceId;
private BigDecimal qualityScore;
private String logId;
private BigDecimal tempScore;
private BigDecimal maskScore;
private BigDecimal tempThreshold;
private String cardType;
private Integer source;
private String tempImagePath;
private String remark;
private Long createTime;
private String createUserId;
private Long lastUpdateTime;
private String lastUpdateUserId;
private static final long serialVersionUID = 1L;
public String getId() {
return this.id;
}
public void setId(String id) {
this.id = id;
}
public String getPersonId() {
return this.personId;
}
public void setPersonId(String personId) {
this.personId = personId;
}
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 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 BigDecimal getThreshold() {
return this.threshold;
}
public void setThreshold(BigDecimal threshold) {
this.threshold = threshold;
}
public String getDistrictId() {
return this.districtId;
}
public void setDistrictId(String districtId) {
this.districtId = districtId;
}
public String getAreaId() {
return this.areaId;
}
public void setAreaId(String areaId) {
this.areaId = areaId;
}
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 getRegisterImagePath() {
return this.registerImagePath;
}
public void setRegisterImagePath(String registerImagePath) {
this.registerImagePath = registerImagePath;
}
public String getFaceImagePath() {
return this.faceImagePath;
}
public void setFaceImagePath(String faceImagePath) {
this.faceImagePath = faceImagePath;
}
public String getPanoramaImagePath() {
return this.panoramaImagePath;
}
public void setPanoramaImagePath(String panoramaImagePath) {
this.panoramaImagePath = panoramaImagePath;
}
public BigDecimal getScore() {
return this.score;
}
public void setScore(BigDecimal score) {
this.score = score;
}
public Integer getRecognitionResult() {
return this.recognitionResult;
}
public void setRecognitionResult(Integer recognitionResult) {
this.recognitionResult = recognitionResult;
}
public Long getRecognitionTime() {
return this.recognitionTime;
}
public void setRecognitionTime(Long recognitionTime) {
this.recognitionTime = recognitionTime;
}
public String getGroupId() {
return this.groupId;
}
public void setGroupId(String groupId) {
this.groupId = groupId;
}
public String getFaceId() {
return this.faceId;
}
public void setFaceId(String faceId) {
this.faceId = faceId;
}
public BigDecimal getQualityScore() {
return this.qualityScore;
}
public void setQualityScore(BigDecimal qualityScore) {
this.qualityScore = qualityScore;
}
public String getLogId() {
return this.logId;
}
public void setLogId(String logId) {
this.logId = logId;
}
public BigDecimal getTempScore() {
return this.tempScore;
}
public void setTempScore(BigDecimal tempScore) {
this.tempScore = tempScore;
}
public BigDecimal getMaskScore() {
return this.maskScore;
}
public void setMaskScore(BigDecimal maskScore) {
this.maskScore = maskScore;
}
public BigDecimal getTempThreshold() {
return this.tempThreshold;
}
public void setTempThreshold(BigDecimal tempThreshold) {
this.tempThreshold = tempThreshold;
}
public String getCardType() {
return this.cardType;
}
public void setCardType(String cardType) {
this.cardType = cardType;
}
public Integer getSource() {
return this.source;
}
public void setSource(Integer source) {
this.source = source;
}
public String getTempImagePath() {
return this.tempImagePath;
}
public void setTempImagePath(String tempImagePath) {
this.tempImagePath = tempImagePath;
}
public String getRemark() {
return this.remark;
}
public void setRemark(String remark) {
this.remark = remark;
}
public Long getCreateTime() {
return this.createTime;
}
public void setCreateTime(Long createTime) {
this.createTime = createTime;
}
public String getCreateUserId() {
return this.createUserId;
}
public void setCreateUserId(String createUserId) {
this.createUserId = createUserId;
}
public Long getLastUpdateTime() {
return this.lastUpdateTime;
}
public void setLastUpdateTime(Long lastUpdateTime) {
this.lastUpdateTime = lastUpdateTime;
}
public String getLastUpdateUserId() {
return this.lastUpdateUserId;
}
public void setLastUpdateUserId(String lastUpdateUserId) {
this.lastUpdateUserId = lastUpdateUserId;
}
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(", personId=").append(this.personId);
sb.append(", personName=").append(this.personName);
sb.append(", businessId=").append(this.businessId);
sb.append(", deviceId=").append(this.deviceId);
sb.append(", deviceCode=").append(this.deviceCode);
sb.append(", deviceName=").append(this.deviceName);
sb.append(", threshold=").append(this.threshold);
sb.append(", districtId=").append(this.districtId);
sb.append(", areaId=").append(this.areaId);
sb.append(", deviceTypeId=").append(this.deviceTypeId);
sb.append(", deviceTypeName=").append(this.deviceTypeName);
sb.append(", registerImagePath=").append(this.registerImagePath);
sb.append(", faceImagePath=").append(this.faceImagePath);
sb.append(", panoramaImagePath=").append(this.panoramaImagePath);
sb.append(", score=").append(this.score);
sb.append(", recognitionResult=").append(this.recognitionResult);
sb.append(", recognitionTime=").append(this.recognitionTime);
sb.append(", groupId=").append(this.groupId);
sb.append(", faceId=").append(this.faceId);
sb.append(", qualityScore=").append(this.qualityScore);
sb.append(", logId=").append(this.logId);
sb.append(", tempScore=").append(this.tempScore);
sb.append(", maskScore=").append(this.maskScore);
sb.append(", tempThreshold=").append(this.tempThreshold);
sb.append(", cardType=").append(this.cardType);
sb.append(", source=").append(this.source);
sb.append(", tempImagePath=").append(this.tempImagePath);
sb.append(", remark=").append(this.remark);
sb.append(", createTime=").append(this.createTime);
sb.append(", createUserId=").append(this.createUserId);
sb.append(", lastUpdateTime=").append(this.lastUpdateTime);
sb.append(", lastUpdateUserId=").append(this.lastUpdateUserId);
sb.append("]");
return sb.toString();
}
}
@@ -0,0 +1,20 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.common.ninca.conference.bean.result.dto;
import java.io.Serializable;
public class ConferenceResultDetailQueryDTO
implements Serializable {
private String id;
public String getId() {
return this.id;
}
public void setId(String id) {
this.id = id;
}
}
@@ -0,0 +1,11 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.common.ninca.conference.bean.result.dto;
import java.io.Serializable;
public class ConferenceResultDetailQueryResultDTO
implements Serializable {
}
@@ -0,0 +1,47 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.common.ninca.conference.bean.result.dto;
import java.io.Serializable;
public class ConferenceResultPageQueryDTO
implements Serializable {
private String name;
private Integer status;
private String businessId;
private Long nowTime;
public String getName() {
return this.name;
}
public void setName(String name) {
this.name = name;
}
public Integer getStatus() {
return this.status;
}
public void setStatus(Integer status) {
this.status = status;
}
public String getBusinessId() {
return this.businessId;
}
public void setBusinessId(String businessId) {
this.businessId = businessId;
}
public Long getNowTime() {
return this.nowTime;
}
public void setNowTime(Long nowTime) {
this.nowTime = nowTime;
}
}
@@ -0,0 +1,119 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.common.ninca.conference.bean.result.dto;
import java.io.Serializable;
public class ConferenceResultPageQueryResultDTO
implements Serializable {
private String id;
private String name;
private Integer isSignoff;
private Long beginTime;
private Long endTime;
private Long signBeginTime;
private Long signoffDeadline;
private Integer cancelStatus;
private Integer normalCount;
private Integer noSigCount;
private Integer latenessCount;
private Integer tardyCount;
public String getId() {
return this.id;
}
public void setId(String id) {
this.id = id;
}
public String getName() {
return this.name;
}
public void setName(String name) {
this.name = name;
}
public Integer getIsSignoff() {
return this.isSignoff;
}
public void setIsSignoff(Integer isSignoff) {
this.isSignoff = isSignoff;
}
public Long getBeginTime() {
return this.beginTime;
}
public void setBeginTime(Long beginTime) {
this.beginTime = beginTime;
}
public Long getEndTime() {
return this.endTime;
}
public void setEndTime(Long endTime) {
this.endTime = endTime;
}
public Long getSignBeginTime() {
return this.signBeginTime;
}
public void setSignBeginTime(Long signBeginTime) {
this.signBeginTime = signBeginTime;
}
public Long getSignoffDeadline() {
return this.signoffDeadline;
}
public void setSignoffDeadline(Long signoffDeadline) {
this.signoffDeadline = signoffDeadline;
}
public Integer getCancelStatus() {
return this.cancelStatus;
}
public void setCancelStatus(Integer cancelStatus) {
this.cancelStatus = cancelStatus;
}
public Integer getNormalCount() {
return this.normalCount;
}
public void setNormalCount(Integer normalCount) {
this.normalCount = normalCount;
}
public Integer getNoSigCount() {
return this.noSigCount;
}
public void setNoSigCount(Integer noSigCount) {
this.noSigCount = noSigCount;
}
public Integer getLatenessCount() {
return this.latenessCount;
}
public void setLatenessCount(Integer latenessCount) {
this.latenessCount = latenessCount;
}
public Integer getTardyCount() {
return this.tardyCount;
}
public void setTardyCount(Integer tardyCount) {
this.tardyCount = tardyCount;
}
}
@@ -0,0 +1,105 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.common.ninca.conference.bean.result.gen.dto;
import java.io.Serializable;
public class ConferenceResultConferenceDTO
implements Serializable {
private String id;
private String businessId;
private String name;
private String address;
private Long beginTime;
private Long endTime;
private Integer isSignoff;
private Long signoffDeadline;
private Long signBeginTime;
private Byte cancelStatus;
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 getName() {
return this.name;
}
public void setName(String name) {
this.name = name;
}
public String getAddress() {
return this.address;
}
public void setAddress(String address) {
this.address = address;
}
public Long getBeginTime() {
return this.beginTime;
}
public void setBeginTime(Long beginTime) {
this.beginTime = beginTime;
}
public Long getEndTime() {
return this.endTime;
}
public void setEndTime(Long endTime) {
this.endTime = endTime;
}
public Integer getIsSignoff() {
return this.isSignoff;
}
public void setIsSignoff(Integer isSignoff) {
this.isSignoff = isSignoff;
}
public Long getSignoffDeadline() {
return this.signoffDeadline;
}
public void setSignoffDeadline(Long signoffDeadline) {
this.signoffDeadline = signoffDeadline;
}
public Long getSignBeginTime() {
return this.signBeginTime;
}
public void setSignBeginTime(Long signBeginTime) {
this.signBeginTime = signBeginTime;
}
public Byte getCancelStatus() {
return this.cancelStatus;
}
public void setCancelStatus(Byte cancelStatus) {
this.cancelStatus = cancelStatus;
}
public String toString() {
return "ConferenceResultConferenceDTO{businessId='" + this.businessId + '\'' + ", name='" + this.name + '\'' + ", address='" + this.address + '\'' + ", beginTime=" + this.beginTime + ", endTime=" + this.endTime + ", isSignoff=" + this.isSignoff + ", signoffDeadline=" + this.signoffDeadline + ", signBeginTime=" + this.signBeginTime + ", cancelStatus=" + this.cancelStatus + '}';
}
}
@@ -0,0 +1,38 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.common.ninca.conference.bean.result.gen.dto;
import java.io.Serializable;
public class ConferenceResultConferenceQueryDTO
implements Serializable {
private String personId;
private Long signTime;
private String deviceId;
public String getPersonId() {
return this.personId;
}
public void setPersonId(String personId) {
this.personId = personId;
}
public Long getSignTime() {
return this.signTime;
}
public void setSignTime(Long signTime) {
this.signTime = signTime;
}
public String getDeviceId() {
return this.deviceId;
}
public void setDeviceId(String deviceId) {
this.deviceId = deviceId;
}
}
@@ -0,0 +1,78 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.common.ninca.conference.bean.result.gen.dto;
import java.io.Serializable;
public class ConferenceResultGenDTO
implements Serializable {
private String conferenceId;
private String personId;
private Long signin;
private Long signoff;
private Integer signResult;
private String signinRecordId;
private String signoffRecordId;
public String getConferenceId() {
return this.conferenceId;
}
public void setConferenceId(String conferenceId) {
this.conferenceId = conferenceId;
}
public String getPersonId() {
return this.personId;
}
public void setPersonId(String personId) {
this.personId = personId;
}
public Long getSignin() {
return this.signin;
}
public void setSignin(Long signin) {
this.signin = signin;
}
public Long getSignoff() {
return this.signoff;
}
public void setSignoff(Long signoff) {
this.signoff = signoff;
}
public Integer getSignResult() {
return this.signResult;
}
public void setSignResult(Integer signResult) {
this.signResult = signResult;
}
public String getSigninRecordId() {
return this.signinRecordId;
}
public void setSigninRecordId(String signinRecordId) {
this.signinRecordId = signinRecordId;
}
public String getSignoffRecordId() {
return this.signoffRecordId;
}
public void setSignoffRecordId(String signoffRecordId) {
this.signoffRecordId = signoffRecordId;
}
public String toString() {
return "ConferenceResultGenDTO{signin=" + this.signin + ", signoff=" + this.signoff + ", signResult=" + this.signResult + ", signinRecordId='" + this.signinRecordId + '\'' + ", signoffRecordId='" + this.signoffRecordId + '\'' + '}';
}
}
@@ -0,0 +1,116 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.common.ninca.conference.bean.result.gen.dto;
import java.io.Serializable;
import java.util.List;
public class ConferenceResultPersonInfoDTO
implements Serializable {
private static final long serialVersionUID = -5856260952855530828L;
private String id;
private String businessId;
private String orgId;
private String name;
private String regFaceUrl;
private String workNo;
private String telephone;
private String email;
private Integer gender;
private String orgName;
private List<String> orgIds;
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 getOrgId() {
return this.orgId;
}
public void setOrgId(String orgId) {
this.orgId = orgId;
}
public String getName() {
return this.name;
}
public void setName(String name) {
this.name = name;
}
public String getRegFaceUrl() {
return this.regFaceUrl;
}
public void setRegFaceUrl(String regFaceUrl) {
this.regFaceUrl = regFaceUrl;
}
public String getWorkNo() {
return this.workNo;
}
public void setWorkNo(String workNo) {
this.workNo = workNo;
}
public String getTelephone() {
return this.telephone;
}
public void setTelephone(String telephone) {
this.telephone = telephone;
}
public String getEmail() {
return this.email;
}
public void setEmail(String email) {
this.email = email;
}
public Integer getGender() {
return this.gender;
}
public void setGender(Integer gender) {
this.gender = gender;
}
public String getOrgName() {
return this.orgName;
}
public void setOrgName(String orgName) {
this.orgName = orgName;
}
public List<String> getOrgIds() {
return this.orgIds;
}
public void setOrgIds(List<String> orgIds) {
this.orgIds = orgIds;
}
public String toString() {
return "AttendResultPersonInfoDTO{id='" + this.id + '\'' + ", businessId='" + this.businessId + '\'' + ", orgId=" + this.orgId + ", name='" + this.name + '\'' + ", regFaceUrl='" + this.regFaceUrl + '\'' + ", workNo='" + this.workNo + '\'' + ", telephone='" + this.telephone + '\'' + ", email='" + this.email + '\'' + ", gender=" + this.gender + ", orgName=" + this.orgName + ", orgIds=" + this.orgIds + '}';
}
}
@@ -0,0 +1,18 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.cloud.exception.ServiceException
* org.apache.poi.hssf.usermodel.HSSFSheet
* org.apache.poi.hssf.usermodel.HSSFWorkbook
*/
package cn.cloudwalk.common.ninca.conference.common;
import cn.cloudwalk.cloud.exception.ServiceException;
import org.apache.poi.hssf.usermodel.HSSFSheet;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
public interface ExcelCallback {
public void call(HSSFWorkbook var1, HSSFSheet var2) throws ServiceException;
}
@@ -0,0 +1,12 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.common.ninca.conference.cons;
public final class ConferenceConstants {
public static final String SERVICE_CODE = "conference-attn";
public static final String ACS_SERVICE_CODE = "access-control";
public static final String SUCCESS_CODE = "00000000";
public static final String LOCK_EXPORT_BUSINESSID_PREFIX = "ConferenceExport:";
}
@@ -0,0 +1,17 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.common.ninca.conference.cons;
public class FeignRemoteConfig {
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";
private FeignRemoteConfig() {
}
}
@@ -0,0 +1,26 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.common.ninca.conference.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;
}
}
@@ -0,0 +1,34 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.common.ninca.conference.em;
public enum ConferenceCancelStatusEnum {
NOT_CANCELLED((byte)0, "\u672a\u53d6\u6d88"),
CANCELLED((byte)1, "\u5df2\u53d6\u6d88");
private Byte code;
private String desc;
private ConferenceCancelStatusEnum(Byte code, String desc) {
this.code = code;
this.desc = desc;
}
public Byte getCode() {
return this.code;
}
public String getDesc() {
return this.desc;
}
public static ConferenceCancelStatusEnum getEnumByCode(Byte code) {
for (ConferenceCancelStatusEnum item : ConferenceCancelStatusEnum.values()) {
if (!code.equals(item.getCode())) continue;
return item;
}
return null;
}
}
@@ -0,0 +1,37 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.common.ninca.conference.em;
public enum ConferenceStatusEnum {
ALL(0, "\u5168\u90e8"),
NOT_STARTED(1, "\u672a\u5f00\u59cb"),
IN_PROGRESS(2, "\u8fdb\u884c\u4e2d"),
OVER(3, "\u5df2\u7ed3\u675f"),
CANCELLED(4, "\u5df2\u53d6\u6d88");
private Integer code;
private String desc;
private ConferenceStatusEnum(Integer code, String desc) {
this.code = code;
this.desc = desc;
}
public Integer getCode() {
return this.code;
}
public String getDesc() {
return this.desc;
}
public static ConferenceStatusEnum getEnumByCode(Integer code) {
for (ConferenceStatusEnum item : ConferenceStatusEnum.values()) {
if (!code.equals(item.getCode())) continue;
return item;
}
return null;
}
}
@@ -0,0 +1,38 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.common.ninca.conference.em;
public enum FileStatusEnum {
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 FileStatusEnum(Integer code, String message) {
this.code = code;
this.message = message;
}
public static FileStatusEnum getEnumByCode(Integer code) {
for (FileStatusEnum item : FileStatusEnum.values()) {
if (!code.equals(item.getCode())) continue;
return item;
}
return null;
}
public Integer getCode() {
return this.code;
}
public String getMessage() {
return this.message;
}
}
@@ -0,0 +1,28 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.common.ninca.conference.em;
public enum SignResultEnum {
NORMAL(0, "\u6b63\u5e38"),
ABSENCE(1, "\u672a\u5230"),
LATENESS(2, "\u8fdf\u5230"),
TARDY(3, "\u65e9\u9000");
private Integer code;
private String desc;
private SignResultEnum(Integer code, String desc) {
this.code = code;
this.desc = desc;
}
public Integer getCode() {
return this.code;
}
public String getDesc() {
return this.desc;
}
}
@@ -0,0 +1,26 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.common.ninca.conference.em;
public enum SignoffSettingEnum {
NO(0, "\u4e0d\u9700\u8981\u7b7e\u9000"),
YES(1, "\u9700\u8981\u7b7e\u9000");
private Integer code;
private String desc;
private SignoffSettingEnum(Integer code, String desc) {
this.code = code;
this.desc = desc;
}
public Integer getCode() {
return this.code;
}
public String getDesc() {
return this.desc;
}
}
@@ -0,0 +1,42 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.common.ninca.conference.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 Integer getCode() {
return this.code;
}
public String getMessage() {
return this.message;
}
public static YesNoTypeEnum getEnumByCode(Integer code) {
for (YesNoTypeEnum item : YesNoTypeEnum.values()) {
if (!code.equals(item.getCode())) continue;
return item;
}
return null;
}
public static String getMessageByCode(Integer code) {
for (YesNoTypeEnum item : YesNoTypeEnum.values()) {
if (!code.equals(item.getCode())) continue;
return item.message;
}
return null;
}
}
@@ -0,0 +1,17 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.cloud.exception.ServiceException
*/
package cn.cloudwalk.common.ninca.conference.exception;
import cn.cloudwalk.cloud.exception.ServiceException;
public class BeginTimeLaterThanEndTimeException
extends ServiceException {
public BeginTimeLaterThanEndTimeException(String message) {
super(message);
}
}
@@ -0,0 +1,17 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.cloud.exception.ServiceException
*/
package cn.cloudwalk.common.ninca.conference.exception;
import cn.cloudwalk.cloud.exception.ServiceException;
public class ConferenceEditAfterBeginningException
extends ServiceException {
public ConferenceEditAfterBeginningException(String message) {
super(message);
}
}
@@ -0,0 +1,17 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.cloud.exception.ServiceException
*/
package cn.cloudwalk.common.ninca.conference.exception;
import cn.cloudwalk.cloud.exception.ServiceException;
public class ConferenceNotExistsException
extends ServiceException {
public ConferenceNotExistsException(String message) {
super(message);
}
}
@@ -0,0 +1,17 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.cloud.exception.ServiceException
*/
package cn.cloudwalk.common.ninca.conference.exception;
import cn.cloudwalk.cloud.exception.ServiceException;
public class SignTimeLaterThanBeginTimeException
extends ServiceException {
public SignTimeLaterThanBeginTimeException(String message) {
super(message);
}
}
@@ -0,0 +1,17 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.cloud.exception.ServiceException
*/
package cn.cloudwalk.common.ninca.conference.exception;
import cn.cloudwalk.cloud.exception.ServiceException;
public class SignoffDeadlineRequiredException
extends ServiceException {
public SignoffDeadlineRequiredException(String message) {
super(message);
}
}
@@ -0,0 +1,17 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.cloud.exception.ServiceException
*/
package cn.cloudwalk.common.ninca.conference.exception;
import cn.cloudwalk.cloud.exception.ServiceException;
public class SignoffTimeEarlierThanEndTimeException
extends ServiceException {
public SignoffTimeEarlierThanEndTimeException(String message) {
super(message);
}
}
@@ -0,0 +1,994 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* org.springframework.util.Assert
* org.springframework.util.MultiValueMap
*/
package cn.cloudwalk.common.ninca.conference.util;
import cn.cloudwalk.common.ninca.conference.util.StringUtils;
import java.io.IOException;
import java.io.ObjectOutputStream;
import java.io.Serializable;
import java.lang.reflect.Array;
import java.util.AbstractList;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.Enumeration;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.NoSuchElementException;
import java.util.Queue;
import java.util.Set;
import java.util.Stack;
import org.springframework.util.Assert;
import org.springframework.util.MultiValueMap;
public class CollectionUtils {
private static final int HASH_MAP_DEFAULT_INITIAL_CAPACITY = 16;
private static final float HASH_MAP_DEFAULT_LOAD_FACTOR = 0.75f;
public static <E> E getFirst(Collection<E> c) {
if (c == null) {
return null;
}
if (c instanceof List) {
List list = (List)c;
return list.isEmpty() ? null : (E)list.get(0);
}
if (c instanceof Set) {
return c.isEmpty() ? null : (E)c.iterator().next();
}
if (c instanceof Queue) {
return c.isEmpty() ? null : (E)((Queue)c).peek();
}
return c.isEmpty() ? null : (E)c.iterator().next();
}
public static <E> List<List<E>> split(List<E> list, E element) {
if (list == null) {
return new ArrayList<List<E>>(0);
}
ArrayList<List<E>> result = new ArrayList<List<E>>();
int start = 0;
int end = 0;
for (E e : list) {
if (element == null ? e == null : element.equals(e)) {
result.add(new ArrayList<E>(list.subList(start, end)));
start = end + 1;
}
++end;
}
if (start == list.size()) {
result.add(new ArrayList(0));
} else if (start < list.size()) {
result.add(new ArrayList<E>(list.subList(start, list.size())));
}
return result;
}
public static <E> List<List<E>> split(List<E> list, int ... index) {
if (list == null) {
return new ArrayList<List<E>>(0);
}
if (index == null || index.length == 0) {
ArrayList<List<E>> arrayList = new ArrayList<List<E>>();
arrayList.add(new ArrayList<E>(list));
return arrayList;
}
if (index.length > list.size()) {
throw new IllegalArgumentException("{index}\u6570\u91cf\u4e0d\u80fd\u5927\u4e8e{list}\u957f\u5ea6\u3002");
}
ArrayList<List<E>> result = new ArrayList<List<E>>();
int temp = 0;
for (int i : index) {
if (i < temp) {
throw new IllegalArgumentException("{index}\u7684\u6bcf\u4e2a\u503c\u5fc5\u987b\u6bd4\u524d\u4e00\u4e2a\u5927\u3002");
}
if (i > list.size()) {
throw new IllegalArgumentException("{index}\u503c\u4e0d\u80fd\u5927\u4e8e{list}\u957f\u5ea6\u3002");
}
result.add(new ArrayList<E>(list.subList(temp, i)));
temp = i;
}
if (temp == list.size()) {
result.add(new ArrayList(0));
} else if (temp < list.size()) {
result.add(new ArrayList<E>(list.subList(temp, list.size())));
}
return result;
}
public static <T> List<T> wrap(final T[] array) {
if (array == null) {
return null;
}
return new AbstractList<T>(){
@Override
public T get(int index) {
return array[index];
}
@Override
public int size() {
return array.length;
}
@SuppressWarnings("unchecked")
@Override
public T set(int index, T element) {
T old = (T)array[index];
array[index] = element;
return old;
}
@Override
public void clear() {
throw new UnsupportedOperationException();
}
@Override
public int indexOf(Object o) {
if (o == null) {
for (int i = 0; i < array.length; ++i) {
if (null != array[i]) continue;
return i;
}
} else {
for (int i = 0; i < array.length; ++i) {
if (!o.equals(array[i])) continue;
return i;
}
}
return -1;
}
@Override
public int lastIndexOf(Object o) {
if (o == null) {
for (int i = array.length - 1; i > -1; --i) {
if (null != array[i]) continue;
return i;
}
} else {
for (int i = array.length - 1; i > -1; --i) {
if (!o.equals(array[i])) continue;
return i;
}
}
return -1;
}
@Override
public boolean removeAll(Collection<?> c) {
throw new UnsupportedOperationException();
}
@Override
public boolean retainAll(Collection<?> c) {
throw new UnsupportedOperationException();
}
};
}
public static <T> List<T> values(Map<?, T> map) {
if (map == null) {
return null;
}
ArrayList<T> list = new ArrayList<T>(map.size());
for (T t : map.values()) {
list.add(t);
}
return list;
}
public static <T> List<T> keys(Map<T, ?> map) {
if (map == null) {
return null;
}
ArrayList<T> list = new ArrayList<T>(map.size());
for (T t : map.keySet()) {
list.add(t);
}
return list;
}
public static <E> int countOccurrence(E element, Iterable<E> elements) {
if (elements == null) {
return 0;
}
int i = 0;
if (element == null) {
for (E e : elements) {
if (null != e) continue;
++i;
}
} else {
for (E e : elements) {
if (!element.equals(e)) continue;
++i;
}
}
return i;
}
@SuppressWarnings("unchecked")
public static <E> E[] toArray(Collection<E> collection, Class<E> typeClass) {
Object[] t = (Object[])Array.newInstance(typeClass, collection.size());
int i = 0;
Iterator<E> iterator = collection.iterator();
while (iterator.hasNext()) {
t[i] = iterator.next();
++i;
}
return (E[])t;
}
public static <E> Iterator<E> iterator(final Enumeration<E> enumeration) {
return new Iterator<E>(){
@Override
public boolean hasNext() {
return enumeration.hasMoreElements();
}
@Override
public E next() {
if (!this.hasNext()) {
throw new NoSuchElementException();
}
return enumeration.nextElement();
}
@Override
public void remove() {
throw new UnsupportedOperationException("\u8be5\u8fed\u4ee3\u5668\u6ca1\u6709\u6307\u5411\u7684\u96c6\u5408\uff0c\u6240\u4ee5\u79fb\u9664\u5143\u7d20\u4e3a\u4e0d\u652f\u6301\u7684\u64cd\u4f5c\u3002");
}
};
}
public static <E> Enumeration<E> enumeration(final Iterator<E> iterator) {
return new Enumeration<E>(){
@Override
public boolean hasMoreElements() {
return iterator.hasNext();
}
@Override
public E nextElement() {
return iterator.next();
}
};
}
@SuppressWarnings({"unchecked", "rawtypes"})
public static <T> void add(Collection<T> collection, Object value) {
if (value == null) {
collection.add(null);
} else if (value.getClass().isArray()) {
if (value instanceof Object[]) {
for (Object o : (Object[])value) {
collection.add((T)o);
}
} else {
int length = Array.getLength(value);
for (int i = 0; i < length; ++i) {
collection.add((T)Array.get(value, i));
}
}
} else if (value instanceof Collection || value instanceof Stack) {
for (Object object : (Iterable)value) {
collection.add((T)object);
}
} else if (value instanceof Iterator) {
Iterator iterator = (Iterator)value;
while (iterator.hasNext()) {
collection.add((T)iterator.next());
}
} else {
collection.add((T)value);
}
}
@SuppressWarnings({"unchecked", "rawtypes"})
public static <T> void push(Stack<T> stack, Object value) {
if (value == null) {
stack.push(null);
} else if (value.getClass().isArray()) {
if (value instanceof Object[]) {
for (Object o : (Object[])value) {
stack.push((T)o);
}
} else {
int length = Array.getLength(value);
for (int i = 0; i < length; ++i) {
stack.push((T)Array.get(value, i));
}
}
} else if (value instanceof Collection || value instanceof Stack) {
for (Object object : (Iterable)value) {
stack.push((T)object);
}
} else {
stack.push((T)value);
}
}
public static <K, V> MultiValueMap<K, V> synchronizedMultiValueMap(MultiValueMap<K, V> multiValueMap) {
if (multiValueMap == null) {
throw new IllegalArgumentException("The input argument is null!");
}
return new SynchronizedMultiValueMap<K, V>(multiValueMap);
}
public static <K, V> MultiValueMap<K, V> unmodifiableMultiValueMap(MultiValueMap<? extends K, ? extends V> multiValueMap) {
if (multiValueMap == null) {
throw new IllegalArgumentException("The input argument is null!");
}
return new UnmodifiableMultiValueMap<K, V>(multiValueMap);
}
public static boolean isEmpty(Collection<?> collection) {
return collection == null || collection.isEmpty();
}
public static boolean isEmpty(Stack<?> stack) {
return stack == null || stack.isEmpty();
}
public static boolean isEmpty(Map<?, ?> map) {
return map == null || map.isEmpty();
}
public static boolean isNotEmpty(Collection<?> collection) {
return collection != null && !collection.isEmpty();
}
public static boolean isNotEmpty(Stack<?> stack) {
return stack != null && !stack.isEmpty();
}
public static boolean isNotEmpty(Map<?, ?> map) {
return map != null && !map.isEmpty();
}
private static boolean isComparable(List<?> list, List<?> compareList, int index) {
if (CollectionUtils.isEmpty(list) || CollectionUtils.isEmpty(compareList)) {
return false;
}
Assert.isTrue((index >= 0 && index < list.size() ? 1 : 0) != 0, (String)"{index} \u7684\u503c\u5fc5\u987b\u4ece0 \u81f3 list.size() - 1 \u4e4b\u95f4\u3002");
return list.size() >= compareList.size();
}
public static String[] toStringArray(Collection<?> collection) {
if (collection == null) {
return null;
}
String[] stringArray = new String[collection.size()];
int i = 0;
for (Object o : collection) {
stringArray[i] = StringUtils.toString(o);
++i;
}
return stringArray;
}
public static <K, V> void putAllIfAbsent(Map<K, V> map, Map<? extends K, ? extends V> paramMap) {
if (map == null || paramMap == null) {
return;
}
for (Map.Entry<? extends K, ? extends V> entry : paramMap.entrySet()) {
if (map.containsKey(entry.getKey())) continue;
map.put(entry.getKey(), entry.getValue());
}
}
public static int calculateHashMapMinInitialCapacity(int size) {
return CollectionUtils.calculateHashMapMinInitialCapacity(size, 0.75f, 16);
}
public static int calculateHashMapMinInitialCapacity(int size, float loadFactor, int initlalCapcity) {
return Math.max((int)((float)size / loadFactor) + 1, initlalCapcity);
}
public static List<Integer> strArrayToList(String var) {
ArrayList<Integer> list = new ArrayList<Integer>();
for (String v : var.split(",")) {
list.add(Integer.parseInt(v));
}
return list;
}
static class UnmodifiableMultiValueMap<K, V>
implements MultiValueMap<K, V>,
Serializable {
private static final long serialVersionUID = 7629840602579792180L;
final MultiValueMap<K, V> multiValueMap;
Set<Map.Entry<K, List<V>>> entrySet;
Collection<List<V>> values;
Set<K> keySet;
Map<K, V> singleValueMap;
@SuppressWarnings("unchecked")
UnmodifiableMultiValueMap(MultiValueMap<? extends K, ? extends V> multiValueMap) {
this.multiValueMap = (MultiValueMap<K, V>)multiValueMap;
}
public void add(K key, V value) {
throw new UnsupportedOperationException();
}
public void addAll(K k, List<? extends V> list) {
}
public void addAll(MultiValueMap<K, V> multiValueMap) {
}
public void clear() {
throw new UnsupportedOperationException();
}
public boolean containsKey(Object key) {
return this.multiValueMap.containsKey(key);
}
public boolean containsValue(Object value) {
return this.multiValueMap.containsValue(value);
}
public Set<Map.Entry<K, List<V>>> entrySet() {
if (this.entrySet == null) {
this.entrySet = Collections.unmodifiableSet(this.multiValueMap.entrySet());
}
return this.entrySet;
}
public boolean equals(Object o) {
return this.multiValueMap.equals(o);
}
public List<V> get(Object key) {
return (List)this.multiValueMap.get(key);
}
public V getFirst(K key) {
return (V)this.multiValueMap.getFirst(key);
}
public int hashCode() {
return this.multiValueMap.hashCode();
}
public boolean isEmpty() {
return this.multiValueMap.isEmpty();
}
public Set<K> keySet() {
if (this.keySet == null) {
this.keySet = Collections.unmodifiableSet(this.multiValueMap.keySet());
}
return this.keySet;
}
public List<V> put(K key, List<V> value) {
throw new UnsupportedOperationException();
}
public void putAll(Map<? extends K, ? extends List<V>> t) {
throw new UnsupportedOperationException();
}
public List<V> remove(Object key) {
throw new UnsupportedOperationException();
}
public void set(K key, V value) {
throw new UnsupportedOperationException();
}
public void setAll(Map<K, V> values) {
throw new UnsupportedOperationException();
}
public Set<Map.Entry<K, V>> singleValueEntrySet() {
return this.toSingleValueMap().entrySet();
}
public Collection<V> singleValues() {
return this.toSingleValueMap().values();
}
public int size() {
return this.multiValueMap.size();
}
public Map<K, V> toSingleValueMap() {
if (this.singleValueMap == null) {
this.singleValueMap = Collections.unmodifiableMap(this.multiValueMap.toSingleValueMap());
}
return this.singleValueMap;
}
public Collection<List<V>> values() {
if (this.values == null) {
this.values = Collections.unmodifiableCollection(this.multiValueMap.values());
}
return this.values;
}
}
static class SynchronizedSet<E>
extends SynchronizedCollection<E>
implements Set<E> {
private static final long serialVersionUID = 6982504952424781802L;
SynchronizedSet(Set<E> set) {
super(set);
}
SynchronizedSet(Set<E> set, Object mutex) {
super(set, mutex);
}
/*
* WARNING - Removed try catching itself - possible behaviour change.
*/
@Override
public boolean equals(Object o) {
Object object = this.mutex;
synchronized (object) {
return this.collection.equals(o);
}
}
/*
* WARNING - Removed try catching itself - possible behaviour change.
*/
@Override
public int hashCode() {
Object object = this.mutex;
synchronized (object) {
return this.collection.hashCode();
}
}
}
static class SynchronizedCollection<E>
implements Collection<E>,
Serializable {
private static final long serialVersionUID = -7540724106974451779L;
final Collection<E> collection;
final Object mutex;
SynchronizedCollection(Collection<E> collection) {
if (collection == null) {
throw new IllegalArgumentException("The input argument is null!");
}
this.collection = collection;
this.mutex = this;
}
SynchronizedCollection(Collection<E> collection, Object mutex) {
if (collection == null) {
throw new IllegalArgumentException("The input argument is null!");
}
this.collection = collection;
this.mutex = mutex;
}
/*
* WARNING - Removed try catching itself - possible behaviour change.
*/
@Override
public int size() {
Object object = this.mutex;
synchronized (object) {
return this.collection.size();
}
}
/*
* WARNING - Removed try catching itself - possible behaviour change.
*/
@Override
public boolean isEmpty() {
Object object = this.mutex;
synchronized (object) {
return this.collection.isEmpty();
}
}
/*
* WARNING - Removed try catching itself - possible behaviour change.
*/
@Override
public boolean contains(Object o) {
Object object = this.mutex;
synchronized (object) {
return this.collection.contains(o);
}
}
/*
* WARNING - Removed try catching itself - possible behaviour change.
*/
@Override
public Object[] toArray() {
Object object = this.mutex;
synchronized (object) {
return this.collection.toArray();
}
}
/*
* WARNING - Removed try catching itself - possible behaviour change.
*/
@Override
public <T> T[] toArray(T[] a) {
Object object = this.mutex;
synchronized (object) {
return this.collection.toArray(a);
}
}
@Override
public Iterator<E> iterator() {
return this.collection.iterator();
}
/*
* WARNING - Removed try catching itself - possible behaviour change.
*/
@Override
public boolean add(E o) {
Object object = this.mutex;
synchronized (object) {
return this.collection.add(o);
}
}
/*
* WARNING - Removed try catching itself - possible behaviour change.
*/
@Override
public boolean remove(Object o) {
Object object = this.mutex;
synchronized (object) {
return this.collection.remove(o);
}
}
/*
* WARNING - Removed try catching itself - possible behaviour change.
*/
@Override
public boolean containsAll(Collection<?> coll) {
Object object = this.mutex;
synchronized (object) {
return this.collection.containsAll(coll);
}
}
/*
* WARNING - Removed try catching itself - possible behaviour change.
*/
@Override
public boolean addAll(Collection<? extends E> coll) {
Object object = this.mutex;
synchronized (object) {
return this.collection.addAll(coll);
}
}
/*
* WARNING - Removed try catching itself - possible behaviour change.
*/
@Override
public boolean removeAll(Collection<?> coll) {
Object object = this.mutex;
synchronized (object) {
return this.collection.removeAll(coll);
}
}
/*
* WARNING - Removed try catching itself - possible behaviour change.
*/
@Override
public boolean retainAll(Collection<?> coll) {
Object object = this.mutex;
synchronized (object) {
return this.collection.retainAll(coll);
}
}
/*
* WARNING - Removed try catching itself - possible behaviour change.
*/
@Override
public void clear() {
Object object = this.mutex;
synchronized (object) {
this.collection.clear();
}
}
/*
* WARNING - Removed try catching itself - possible behaviour change.
*/
public String toString() {
Object object = this.mutex;
synchronized (object) {
return this.collection.toString();
}
}
/*
* WARNING - Removed try catching itself - possible behaviour change.
*/
private void writeObject(ObjectOutputStream s) throws IOException {
Object object = this.mutex;
synchronized (object) {
s.defaultWriteObject();
}
}
}
static class SynchronizedMultiValueMap<K, V>
implements MultiValueMap<K, V> {
final MultiValueMap<K, V> multiValueMap;
final Object mutex;
private transient Set<K> keySet = null;
private transient Set<Map.Entry<K, List<V>>> entrySet;
private transient Collection<List<V>> values;
private transient Set<Map.Entry<K, V>> singleValueEntrySet;
private transient Collection<V> singleValues;
SynchronizedMultiValueMap(MultiValueMap<K, V> multiValueMap) {
if (multiValueMap == null) {
throw new IllegalArgumentException("The input argument is null!");
}
this.multiValueMap = multiValueMap;
this.mutex = this;
}
SynchronizedMultiValueMap(MultiValueMap<K, V> multiValueMap, Object mutex) {
if (multiValueMap == null) {
throw new IllegalArgumentException("The input argument is null!");
}
this.multiValueMap = multiValueMap;
this.mutex = mutex;
}
/*
* WARNING - Removed try catching itself - possible behaviour change.
*/
public void add(K key, V value) {
Object object = this.mutex;
synchronized (object) {
this.multiValueMap.add(key, value);
}
}
public void addAll(K k, List<? extends V> list) {
}
public void addAll(MultiValueMap<K, V> multiValueMap) {
}
/*
* WARNING - Removed try catching itself - possible behaviour change.
*/
public void clear() {
Object object = this.mutex;
synchronized (object) {
this.multiValueMap.clear();
}
}
/*
* WARNING - Removed try catching itself - possible behaviour change.
*/
public boolean containsKey(Object key) {
Object object = this.mutex;
synchronized (object) {
return this.multiValueMap.containsKey(key);
}
}
/*
* WARNING - Removed try catching itself - possible behaviour change.
*/
public boolean containsValue(Object value) {
Object object = this.mutex;
synchronized (object) {
return this.multiValueMap.containsValue(value);
}
}
/*
* WARNING - Removed try catching itself - possible behaviour change.
*/
public Set<Map.Entry<K, List<V>>> entrySet() {
Object object = this.mutex;
synchronized (object) {
if (this.entrySet == null) {
this.entrySet = new SynchronizedSet<Map.Entry<K, List<V>>>(this.multiValueMap.entrySet(), this.mutex);
}
return this.entrySet;
}
}
/*
* WARNING - Removed try catching itself - possible behaviour change.
*/
public boolean equals(Object o) {
Object object = this.mutex;
synchronized (object) {
return this.multiValueMap.equals(o);
}
}
/*
* WARNING - Removed try catching itself - possible behaviour change.
*/
public List<V> get(Object key) {
Object object = this.mutex;
synchronized (object) {
return (List)this.multiValueMap.get(key);
}
}
/*
* WARNING - Removed try catching itself - possible behaviour change.
*/
public V getFirst(K key) {
Object object = this.mutex;
synchronized (object) {
return (V)this.multiValueMap.getFirst(key);
}
}
/*
* WARNING - Removed try catching itself - possible behaviour change.
*/
public int hashCode() {
Object object = this.mutex;
synchronized (object) {
return this.multiValueMap.hashCode();
}
}
/*
* WARNING - Removed try catching itself - possible behaviour change.
*/
public boolean isEmpty() {
Object object = this.mutex;
synchronized (object) {
return this.multiValueMap.isEmpty();
}
}
/*
* WARNING - Removed try catching itself - possible behaviour change.
*/
public Set<K> keySet() {
Object object = this.mutex;
synchronized (object) {
if (this.keySet == null) {
this.keySet = new SynchronizedSet<K>(this.multiValueMap.keySet(), this.mutex);
}
return this.keySet;
}
}
/*
* WARNING - Removed try catching itself - possible behaviour change.
*/
public List<V> put(K key, List<V> value) {
Object object = this.mutex;
synchronized (object) {
return (List)this.multiValueMap.put(key, value);
}
}
/*
* WARNING - Removed try catching itself - possible behaviour change.
*/
public void putAll(Map<? extends K, ? extends List<V>> t) {
Object object = this.mutex;
synchronized (object) {
this.multiValueMap.putAll(t);
}
}
/*
* WARNING - Removed try catching itself - possible behaviour change.
*/
public List<V> remove(Object key) {
Object object = this.mutex;
synchronized (object) {
return (List)this.multiValueMap.remove(key);
}
}
/*
* WARNING - Removed try catching itself - possible behaviour change.
*/
public void set(K key, V value) {
Object object = this.mutex;
synchronized (object) {
this.multiValueMap.set(key, value);
}
}
/*
* WARNING - Removed try catching itself - possible behaviour change.
*/
public void setAll(Map<K, V> values) {
Object object = this.mutex;
synchronized (object) {
this.multiValueMap.setAll(values);
}
}
/*
* WARNING - Removed try catching itself - possible behaviour change.
*/
public int size() {
Object object = this.mutex;
synchronized (object) {
return this.multiValueMap.size();
}
}
/*
* WARNING - Removed try catching itself - possible behaviour change.
*/
public Map<K, V> toSingleValueMap() {
Object object = this.mutex;
synchronized (object) {
return this.multiValueMap.toSingleValueMap();
}
}
/*
* WARNING - Removed try catching itself - possible behaviour change.
*/
public Collection<List<V>> values() {
Object object = this.mutex;
synchronized (object) {
if (this.values == null) {
this.values = new SynchronizedCollection<List<V>>(this.multiValueMap.values(), this.mutex);
}
return this.values;
}
}
/*
* WARNING - Removed try catching itself - possible behaviour change.
*/
public String toString() {
Object object = this.mutex;
synchronized (object) {
return this.multiValueMap.toString();
}
}
/*
* WARNING - Removed try catching itself - possible behaviour change.
*/
private void writeObject(ObjectOutputStream s) throws IOException {
Object object = this.mutex;
synchronized (object) {
s.defaultWriteObject();
}
}
}
}
@@ -0,0 +1,330 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* org.slf4j.Logger
* org.slf4j.LoggerFactory
*/
package cn.cloudwalk.common.ninca.conference.util;
import java.security.Timestamp;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class DateUtils {
private static final Logger logger = LoggerFactory.getLogger(DateUtils.class);
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 final String YYYY_MM_DD_HMS = "yyyy-MM-dd HH:mm:ss";
public static final String YYYYMM = "yyyyMM";
public static final String HHMM = "HH:mm";
public static final String HHMMSS = "HH:mm:SS";
public static final String YYYYMMDDHHMMSS = "yyyyMMddHHmmss";
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 String dateToWeek(String datetime) {
SimpleDateFormat sf = new SimpleDateFormat(YYYY_MM_DD);
String[] weekDays = new String[]{"Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"};
Calendar cal = Calendar.getInstance();
Date datet = null;
try {
datet = sf.parse(datetime);
cal.setTime(datet);
}
catch (ParseException e) {
logger.error("", (Throwable)e);
}
int w = cal.get(7) - 1;
if (w < 0) {
w = 0;
}
return weekDays[w];
}
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 long getMonthFirstDate(Date date) {
Calendar calendar = Calendar.getInstance();
calendar.setTime(date);
calendar.set(5, 1);
calendar.set(11, 0);
calendar.set(12, 0);
calendar.set(13, 0);
calendar.set(14, 0);
return calendar.getTime().getTime();
}
public static long getMonthLastDate(Date date) {
Calendar calendar = Calendar.getInstance();
calendar.setTime(date);
calendar.set(5, calendar.getActualMaximum(5));
calendar.set(11, 23);
calendar.set(12, 59);
calendar.set(13, 59);
calendar.set(14, 999);
return calendar.getTime().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) {
logger.error("", (Throwable)e);
return 0L;
}
}
public static String stampToDate(String s) {
SimpleDateFormat simpleDateFormat = new SimpleDateFormat(YYYY_MM_DD_HMS);
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) {
logger.error("", (Throwable)e);
}
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) {
logger.error("", (Throwable)e);
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 formatTimeDurationHour(long duration, int format) {
if (duration == 0L) {
return "-";
}
long 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;
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");
}
return builder.toString();
}
public static Date getMonth(Date date, int count) {
Calendar calendar = Calendar.getInstance();
calendar.setTime(date);
int month = calendar.get(2);
calendar.set(2, month - count);
return calendar.getTime();
}
public static Long dateToStampFormat(String s, String format) {
SimpleDateFormat simpleDateFormat = new SimpleDateFormat(format);
try {
Date date = simpleDateFormat.parse(s);
return date.getTime();
}
catch (Exception e) {
logger.error("", (Throwable)e);
return 0L;
}
}
public static int compareTo(String time, String compareTime) {
SimpleDateFormat df = new SimpleDateFormat(HHMMSS);
Calendar time1 = Calendar.getInstance();
Calendar time2 = Calendar.getInstance();
try {
time1.setTime(df.parse(time));
time2.setTime(df.parse(compareTime));
}
catch (ParseException e) {
logger.error("", (Throwable)e);
}
return time1.compareTo(time2);
}
public static String stampFormatToDate(long s) {
SimpleDateFormat format = new SimpleDateFormat(YYYYMMDD);
return format.format(s);
}
public static List<String> getDays(long startDate, long endDate) {
String startTime = DateUtils.stampFormatToDate(startDate);
String endTime = DateUtils.stampFormatToDate(endDate);
ArrayList<String> days = new ArrayList<String>();
SimpleDateFormat dateFormat = new SimpleDateFormat(YYYYMMDD);
try {
Date start = dateFormat.parse(startTime);
Date end = dateFormat.parse(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(dateFormat.format(tempStart.getTime()));
tempStart.add(6, 1);
}
}
catch (ParseException e) {
logger.error("", (Throwable)e);
}
return days;
}
public static void main(String[] args) {
System.out.println(">>>>>>>>>>>>>>" + DateUtils.formatTimeDurationHour(91740000L, 3));
System.out.println(">>>>>>>>>>>>>>" + DateUtils.formatTimeDurationHour(12000000L, 4));
}
}
@@ -0,0 +1,514 @@
/*
* 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.conference.util;
import cn.cloudwalk.common.ninca.conference.annotation.ExcelAttribute;
import cn.cloudwalk.common.ninca.conference.common.ExcelCallback;
import cn.cloudwalk.common.ninca.conference.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, 2);
int startNo = index * sheetSize;
int endNo = Math.min(startNo + sheetSize, listSize);
ExcelUtil.createRowContent(sheet, fields, workbook, list, startNo, endNo, 3);
}
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, ExcelCallback callback) 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);
if (null == callback) continue;
callback.call(workbook, sheet);
}
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));
}
}
}
private 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");
}
}
@@ -0,0 +1,79 @@
/*
* 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.conference.util;
import cn.cloudwalk.cloud.context.CloudwalkCallContext;
import cn.cloudwalk.cloud.session.extend.DefaultExtendContext;
import cn.cloudwalk.common.ninca.conference.context.CloudWalkExtendContextValue;
import cn.cloudwalk.common.ninca.conference.util.StringUtils;
import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import javax.servlet.http.HttpServletRequest;
public class FeignThreadLocalUtil {
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 void setRequestHeader(Map<String, String> headerMap) {
FeignThreadLocalUtil.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", ((CloudWalkExtendContextValue)extendContext.getValue()).getLoginId());
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", ((CloudWalkExtendContextValue)extendContext.getValue()).getAuthorization());
return map;
}
public static void setRequestHeader(CloudwalkCallContext context) {
FeignThreadLocalUtil.set(FeignThreadLocalUtil.getDefaultRequestHeader(context));
}
}
@@ -0,0 +1,9 @@
Summary for /tmp/crk_lib_extract_6o_f40r3/ninca-crk-conference-attendance-common-2.9.1_210630-SNAPSHOT.jar
Decompiled with CFR 0.152
cn.cloudwalk.common.ninca.conference.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