mirror of
https://github.com/hpd840321/starRiverProperty.git
synced 2026-06-10 00:40:30 +08:00
chore(v0.11): 全路径纳入版本库与走查整改
- .gitignore:显式放行全部 maven-*、scripts、dev-support、frontend、反1、artifacts、历史导出目录 - 新增跟踪:device-manager/device-sdk/legacy-public、davinci-manager、cwos-*、cwos-resource 等源码与附属资源 - davinci FileStorageManagerImpl:Feign Response 关闭、绝对 URL 拉流 SSRF 校验(协议/主机/解析地址) - davinci OuterCallFeignClient:补充契约说明 - cwos-common-aks AksConstant:final 类 + 私有构造防误实例化 - device-manager DeviceConstant:沿用 DEFAULT_APPLICATIONID 拼写修正 Made-with: Cursor
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
Manifest-Version: 1.0
|
||||
Implementation-Title: cw-elevator-application-common
|
||||
Implementation-Version: 1.0-SNAPSHOT
|
||||
Archiver-Version: Plexus Archiver
|
||||
Built-By: YCWB0304
|
||||
Implementation-Vendor-Id: cn.cloudwalk.elevator
|
||||
Created-By: Apache Maven 3.6.1
|
||||
Build-Jdk: 1.8.0_144
|
||||
Implementation-URL: http://projects.spring.io/spring-boot/cw-elevator-
|
||||
application/cw-elevator-application-common/
|
||||
Implementation-Vendor: Pivotal Software, Inc.
|
||||
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
#Generated by Apache Maven
|
||||
#Mon Mar 25 18:20:48 CST 2024
|
||||
version=1.0-SNAPSHOT
|
||||
groupId=cn.cloudwalk.elevator
|
||||
artifactId=cw-elevator-application-common
|
||||
+79
@@ -0,0 +1,79 @@
|
||||
<?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">
|
||||
<parent>
|
||||
<artifactId>cw-elevator-application</artifactId>
|
||||
<groupId>cn.cloudwalk.elevator</groupId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>cw-elevator-application-common</artifactId>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>cn.cloudwalk.cloud</groupId>
|
||||
<artifactId>cloudwalk-common-result</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.google.guava</groupId>
|
||||
<artifactId>guava</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>org.apache.ant</groupId>
|
||||
<artifactId>ant</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>net.coobird</groupId>
|
||||
<artifactId>thumbnailator</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>commons-io</groupId>
|
||||
<artifactId>commons-io</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.alibaba</groupId>
|
||||
<artifactId>fastjson</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.tomcat.embed</groupId>
|
||||
<artifactId>tomcat-embed-core</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>cn.cloudwalk.cloud</groupId>
|
||||
<artifactId>cloudwalk-common-web</artifactId>
|
||||
</dependency>
|
||||
<!-- 二维码 -->
|
||||
<dependency>
|
||||
<groupId>com.google.zxing</groupId>
|
||||
<artifactId>core</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>net.lingala.zip4j</groupId>
|
||||
<artifactId>zip4j</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.data</groupId>
|
||||
<artifactId>spring-data-redis</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.projectlombok</groupId>
|
||||
<artifactId>lombok</artifactId>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.fasterxml.jackson.datatype</groupId>
|
||||
<artifactId>jackson-datatype-jsr310</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
</project>
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
package cn.cloudwalk.elevator.annontation;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
@Target({ElementType.FIELD})
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
public @interface DavinciPic {}
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-common-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\annontation\DavinciPic.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+79
@@ -0,0 +1,79 @@
|
||||
/* */ package cn.cloudwalk.elevator.cache;
|
||||
/* */
|
||||
/* */ import com.fasterxml.jackson.annotation.JsonAutoDetect;
|
||||
/* */ import com.fasterxml.jackson.annotation.PropertyAccessor;
|
||||
/* */ import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
/* */ import org.springframework.context.annotation.Bean;
|
||||
/* */ import org.springframework.context.annotation.Configuration;
|
||||
/* */ import org.springframework.context.annotation.Primary;
|
||||
/* */ import org.springframework.data.redis.connection.RedisConnectionFactory;
|
||||
/* */ import org.springframework.data.redis.core.RedisTemplate;
|
||||
/* */ import org.springframework.data.redis.serializer.Jackson2JsonRedisSerializer;
|
||||
/* */ import org.springframework.data.redis.serializer.RedisSerializer;
|
||||
/* */ import org.springframework.data.redis.serializer.StringRedisSerializer;
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ @Configuration
|
||||
/* */ public class CacheOverrideConfig
|
||||
/* */ {
|
||||
/* */ public static final String CACHE_NAME_APPLICATIONIDS = "ACS_Applicationids";
|
||||
/* */ public static final String CACHE_NAME_ACS_DEVICE_TYPES = "ACS_DeviceTypesCache";
|
||||
/* */ public static final String CACHE_NAME_ACS_DEVICE_TYPE_FEATURES = "ACS_DeviceTypeFeaturesCache";
|
||||
/* */ public static final String CACHE_NAME_ACS_DEVICE_ATTRS = "ACS_DeviceAttrsCache";
|
||||
/* */ public static final String CACHE_NAME_ACS_RECORD_STATISTICS = "ACS_RecordStatisticsCache";
|
||||
/* */ public static final String CACHE_NAME_ACS_DEVICE_TREE = "ACS_DeviceTreeCache";
|
||||
/* */ public static final String CACHE_NAME_ACS_AREA_TREE = "ACS_AreaTreeCache";
|
||||
/* */ public static final String CACHE_KEY_APPLICATION_IDS_PREFIX = "acs_applicationIds:";
|
||||
/* */ public static final String CACHE_KEY_ACS_DEVICE_TYPES_PREFIX = "acs_deviceTypes:";
|
||||
/* */ public static final String CACHE_KEY_ACS_DEVICE_TYPE_FEATURES_PREFIX = "acs_deviceTypeFeatures:";
|
||||
/* */ public static final String CACHE_KEY_ACS_EXPORT_PREFIX = "acs_export_prefix:";
|
||||
/* */ public static final String CACHE_KEY_ACS_DEVICE_ATTRS_PREFIX = "acs_deviceAttrs:";
|
||||
/* */ public static final String CACHE_KEY_ACS_RECORD_STATISTICS_PREFIX = "acs_recordStatistics:";
|
||||
/* */ public static final String CACHE_KEY_ACS_DEVICE_TREE_PREFIX = "acs_deviceTreeCache";
|
||||
/* */ public static final String CACHE_KEY_ACS_AREA_TREE_PREFIX = "acs_areaTreeCache:";
|
||||
/* */
|
||||
/* */ @Primary
|
||||
/* */ @Bean({"redisTemplate"})
|
||||
/* */ public RedisTemplate<Object, Object> redisTemplate(RedisConnectionFactory redisConnectionFactory) {
|
||||
/* 53 */ RedisTemplate<Object, Object> redisTemplate = new RedisTemplate();
|
||||
/* 54 */ redisTemplate.setConnectionFactory(redisConnectionFactory);
|
||||
/* */
|
||||
/* 56 */ StringRedisSerializer stringRedisSerializer = new StringRedisSerializer();
|
||||
/* */
|
||||
/* 58 */ Jackson2JsonRedisSerializer jackson2JsonRedisSerializer = new Jackson2JsonRedisSerializer(Object.class);
|
||||
/* */
|
||||
/* 60 */ ObjectMapper objectMapper = new ObjectMapper();
|
||||
/* 61 */ objectMapper.setVisibility(PropertyAccessor.ALL, JsonAutoDetect.Visibility.ANY);
|
||||
/* 62 */ objectMapper.enableDefaultTyping(ObjectMapper.DefaultTyping.NON_FINAL);
|
||||
/* */
|
||||
/* 64 */ jackson2JsonRedisSerializer.setObjectMapper(objectMapper);
|
||||
/* */
|
||||
/* */
|
||||
/* 67 */ redisTemplate.setValueSerializer((RedisSerializer)jackson2JsonRedisSerializer);
|
||||
/* 68 */ redisTemplate.setKeySerializer((RedisSerializer)stringRedisSerializer);
|
||||
/* 69 */ redisTemplate.afterPropertiesSet();
|
||||
/* */
|
||||
/* 71 */ return redisTemplate;
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-common-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\cache\CacheOverrideConfig.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+44
@@ -0,0 +1,44 @@
|
||||
/* */ package cn.cloudwalk.elevator.config;
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public class AcsConstants
|
||||
/* */ {
|
||||
/* */ public static final String SUCCESS_CODE = "00000000";
|
||||
/* */ public static final String SERVICE_CODE = "elevator-app";
|
||||
/* 27 */ public static final Long ONE_DAY_MILLISECONDS = Long.valueOf(86400000L);
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* 32 */ public static final Long ONE_YEAR_MILLISECONDS = Long.valueOf(31536000000L);
|
||||
/* */ public static final String DEFAULT_CALLER = "defaultUserId";
|
||||
/* */ public static final String DEFAULT_CALLER_NAME = "defaultUserName";
|
||||
/* */ public static final String ACS_OPEN_DOOR_RECORD_EVENT_TOPIC = "ACS_OPEN_DOOR_RECORD_EVENT_TOPIC";
|
||||
/* */ public static final String ACS_BACKEND_REG_LOG_ID_KEY_PREFIX = "acs:backendRegLogId:";
|
||||
/* */ public static final String ACS_BACKEND_REG_EXPIRE_PREFIX = "acs:backendRegExpire:";
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-common-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\config\AcsConstants.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
package cn.cloudwalk.elevator.config;
|
||||
|
||||
public class AcsLockConstants {
|
||||
public static final String LOCK_EXPORT_BUSINESSID_PREFIX = "AcsExport:";
|
||||
|
||||
public static final String LOCK_RECORD_STATISTICS_BUSINESSID_PREFIX = "AcsRecordStatistics:";
|
||||
|
||||
public static final String LOCK_BACKEND_REG_LOG_ID_PREFIX = "AcsBackendRegLogId:";
|
||||
|
||||
public static final String LOCK_URGENT_GROUP_DEVICE_ID_PREFIX = "AcsUrgentGroupDeviceIds:";
|
||||
}
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-common-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\config\AcsLockConstants.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+28
@@ -0,0 +1,28 @@
|
||||
/* */ package cn.cloudwalk.elevator.config;
|
||||
/* */
|
||||
/* */ import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
/* */ import org.springframework.stereotype.Component;
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ @Component
|
||||
/* */ @ConfigurationProperties(prefix = "cloudwalk.elevator.common")
|
||||
/* */ public class ElevatorCwosConfig
|
||||
/* */ {
|
||||
/* */ private String relativePrefix;
|
||||
/* */
|
||||
/* */ public String getRelativePrefix() {
|
||||
/* 16 */ return this.relativePrefix;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setRelativePrefix(String relativePrefix) {
|
||||
/* 20 */ this.relativePrefix = relativePrefix;
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-common-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\config\ElevatorCwosConfig.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+463
@@ -0,0 +1,463 @@
|
||||
package cn.cloudwalk.elevator.config;
|
||||
|
||||
public class ErrorCode {
|
||||
public static final String OTHER_ERROR = "00000001";
|
||||
|
||||
public static final String ID_IS_NULL = "53060410";
|
||||
|
||||
public static final String ID_ARRAY_IS_NULL = "53060411";
|
||||
|
||||
public static final String ADD_IMAGE_STORE_ERROR = "53060413";
|
||||
|
||||
public static final String ID_IS_ERROR = "53060414";
|
||||
|
||||
public static final String EDIT_IMAGE_STORE_IS_ERROR = "53060415";
|
||||
|
||||
public static final String IMAGE_STORE_REF_IS_ALL_NULL = "53060416";
|
||||
|
||||
public static final String IMAGFE_STORE_ORG_ID_ARRAY_IS_ERROR = "53060417";
|
||||
|
||||
public static final String IMAGFE_STORE_LABEL_ID_ARRAY_IS_ERROR = "53060418";
|
||||
|
||||
public static final String IMAGFE_STORE_PERSON_ID_ARRAY_IS_ERROR = "53060419";
|
||||
|
||||
public static final String IMAGFE_STORE_LABEL_ID_EXCLUDE_ARRAY_IS_ERROR = "53060420";
|
||||
|
||||
public static final String IMAGFE_STORE_PERSON_ID_EXCLUDE_ARRAY_IS_ERROR = "53060421";
|
||||
|
||||
public static final String IMAGE_STORE_DELETE_ERROR = "53060422";
|
||||
|
||||
public static final String IMAGE_STORE_NAME_IS_ERROR = "53060423";
|
||||
|
||||
public static final String ID_LENGTH_IS_ERROR = "53060424";
|
||||
|
||||
public static final String ORG_PARENT_NODE_IS_ERROR = "53060425";
|
||||
|
||||
public static final String GET_BUSINESS_NAME_IS_ERROR = "53060426";
|
||||
|
||||
public static final String PARENT_ID_LENGTH_IS_ERROR = "53060427";
|
||||
|
||||
public static final String FILE_UPLOAD_ERROR = "80014001";
|
||||
|
||||
public static final String FILE_UPLOAD_CONTROLLER_ERROR = "80014013";
|
||||
|
||||
public static final String FILE_TYPE_IS_INVALID = "53060429";
|
||||
|
||||
public static final String FILE_MAX_IS_ERROR = "53060428";
|
||||
|
||||
public static final String ROTATE_IMAGE_ERROR = "53060430";
|
||||
|
||||
public static final String EXTRACT_FEATURE_FAIL = "53060431";
|
||||
|
||||
public static final String FACE_DETECT_IS_EMPTY = "53060432";
|
||||
|
||||
public static final String FACE_DETECT_OVER_SIZE = "53060433";
|
||||
|
||||
public static final String IMAGE_IS_EMPTY = "53060434";
|
||||
|
||||
public static final String EXTRACT_FEATURE_EXCEPTION = "53060435";
|
||||
|
||||
public static final String EXTRACT_FEATURE_RESULT_IS_EMPTY = "53060436";
|
||||
|
||||
public static final String UPLOAD_SINGLE_FACE = "53060437";
|
||||
|
||||
public static final String GROUP_ID_IS_EMPTY = "53060438";
|
||||
|
||||
public static final String FACE_DETECT_EXCEPTION = "53060439";
|
||||
|
||||
public static final String FACE_DETECT_RESULT_IS_EMPTY = "53060440";
|
||||
|
||||
public static final String QUERY_ALL_GROUP_TOPN_FAIL = "53060441";
|
||||
|
||||
public static final String QUERY_EVERY_GROUP_TOPN_FAIL = "53060442";
|
||||
|
||||
public static final String QUERY_FEATURE_RESULT_IS_EMPTY = "53060443";
|
||||
|
||||
public static final String QUERY_FEATURE_RESULT_FAIL = "53060444";
|
||||
|
||||
public static final String IMAGE_UNDER_SIZE = "53060445";
|
||||
|
||||
public static final String IMAGE_PIXEL_UNDER_SIZE = "53060446";
|
||||
|
||||
public static final String ADD_FACE_FAIL = "53060447";
|
||||
|
||||
public static final String REMOVE_FACE_FAIL = "53060448";
|
||||
|
||||
public static final String FILE_MANAGER_READ_FILE_ERROR = "80014016";
|
||||
|
||||
public static final String FILE_MANAGER_DEL_ERROR = "80014017";
|
||||
|
||||
public static final String ADD_ORG_TYPE_ERROR = "53003800";
|
||||
|
||||
public static final String EDIT_ORG_TYPE_ERROR = "53003801";
|
||||
|
||||
public static final String DEL_ORG_TYPE_ERROR = "53003802";
|
||||
|
||||
public static final String ADD_ORG_TYPE_DUPLICATE_NAME = "53003803";
|
||||
|
||||
public static final String QUERY_ORG_TYPE_ERROR = "53003804";
|
||||
|
||||
public static final String PROPERTIES_DUPLICATE_NAME_ERROR = "53003805";
|
||||
|
||||
public static final String ADD_AREA_TYPE_ERROR = "53004800";
|
||||
|
||||
public static final String EDIT_AREA_TYPE_ERROR = "53004801";
|
||||
|
||||
public static final String DEL_AREA_TYPE_ERROR = "53004802";
|
||||
|
||||
public static final String ADD_AREA_TYPE_DUPLICATE_NAME = "53004803";
|
||||
|
||||
public static final String QUERY_AREA_TYPE_ERROR = "53004804";
|
||||
|
||||
public static final String AREA_TYPE_NAME_NOT_NULL = "53004806";
|
||||
|
||||
public static final String AREA_TYPE_NAME_LENGTH_INVAILD = "53004807";
|
||||
|
||||
public static final String AREA_TYPE_PRO_NAME_NOT_NULL = "53004810";
|
||||
|
||||
public static final String AREA_TYPE_PRO_REQUIRED_NOT_NULL = "53004811";
|
||||
|
||||
public static final String AREA_TYPE_PRO_REQUIRED_RANGE_INVAILD = "53004812";
|
||||
|
||||
public static final String AREA_TYPE_HAS_LOWER_DATA = "53004813";
|
||||
|
||||
public static final String AREA_TYPE_NOT_EDIT_DEFAULT = "53004815";
|
||||
|
||||
public static final String EXIST_AREA_WITH_TYPE = "53004854";
|
||||
|
||||
public static final String AREA_TYPE_PRO_ORDER_NOT_NULL = "53004816";
|
||||
|
||||
public static final String AREA_TYPE_PRO_ORDER_RANGE_INVAILD = "53004817";
|
||||
|
||||
public static final String QUERY_ORG_ERROR = "53003300";
|
||||
|
||||
public static final String TYPE_ID_IS_NULL = "53003301";
|
||||
|
||||
public static final String TYPE_ID_LENGTH_IS_ERROR = "53003302";
|
||||
|
||||
public static final String PARAM_LENGTH_IS_ERROR = "53003303";
|
||||
|
||||
public static final String EXIST_ORG_WITH_TYPE = "53003304";
|
||||
|
||||
public static final String ORG_ID_IS_NULL = "53003305";
|
||||
|
||||
public static final String ORG_PARENT_HSH_LOWER_LEVEL_ERROR = "53003306";
|
||||
|
||||
public static final String ORG_PARENT_ID_IS_NULL = "53003307";
|
||||
|
||||
public static final String ORG_LEVEL_IS_ERROR = "53003308";
|
||||
|
||||
public static final String ORG_NAME_IS_EXIST = "53003309";
|
||||
|
||||
public static final String ORG_ID_IS_ERROR = "53003310";
|
||||
|
||||
public static final String PERSON_ID_ARRAY_IS_ERROR = "53003311";
|
||||
|
||||
public static final String ORG_NAME_IS_NULL = "53003312";
|
||||
|
||||
public static final String ORG_YI_IS_NOT_DELETE = "53003313";
|
||||
|
||||
public static final String ORG_PARENT_IS_HAVING = "53003314";
|
||||
|
||||
public static final String ORG_CANNOT_DELETE = "53003315";
|
||||
|
||||
public static final String QZ_BUSINESS_ID_INVALID = "53014000";
|
||||
|
||||
public static final String QZ_PERSON_CODE_INVALID = "53014001";
|
||||
|
||||
public static final String QZ_PERSON_NAME_INVALID = "53014002";
|
||||
|
||||
public static final String QZ_PERSON_USER_NAME_INVALID = "53014003";
|
||||
|
||||
public static final String QZ_PERSON_PHONE_INVALID = "53014004";
|
||||
|
||||
public static final String QZ_PERSON_EMAIL_INVALID = "53014005";
|
||||
|
||||
public static final String QZ_PERSON_SYNC_ACCOUNT_INVALID = "53014006";
|
||||
|
||||
public static final String QZ_PERSON_CUSTOM_FIELD_INVALID = "53014007";
|
||||
|
||||
public static final String QZ_PERSON_ADD_ERROR = "53014008";
|
||||
|
||||
public static final String QZ_PERSON_EDIT_ERROR = "53014009";
|
||||
|
||||
public static final String QZ_PERSON_DEL_ERROR = "53014010";
|
||||
|
||||
public static final String QZ_PERSON_QUERY_ERROR = "53014011";
|
||||
|
||||
public static final String QZ_PERSON_CODE_DUPLICATE = "53014012";
|
||||
|
||||
public static final String QZ_PERSON_USER_NAME_DUPLICATE = "53014013";
|
||||
|
||||
public static final String QZ_PERSON_PHONE_DUPLICATE = "53014014";
|
||||
|
||||
public static final String QZ_PERSON_EMAIL_DUPLICATE = "53014015";
|
||||
|
||||
public static final String QZ_PERSON_FILED_LOSE = "53014016";
|
||||
|
||||
public static final String QZ_PERSON_FILED_INVALID = "53014017";
|
||||
|
||||
public static final String QZ_PERSON_FILED_NOT_EXISTS = "53014018";
|
||||
|
||||
public static final String QZ_PERSON_NO_SYSTEM_ID = "53014019";
|
||||
|
||||
public static final String QZ_PERSON_FILED_LABEL_ORGANIZATION_LOSE = "53014020";
|
||||
|
||||
public static final String QZ_PERSON_SOURCE_ILLEGAL = "53014021";
|
||||
|
||||
public static final String QZ_PERSON_PROPERTIES_CERT_LOSE = "53014022";
|
||||
|
||||
public static final String QZ_PERSON_CERT_ID_DUPLICATE = "53014023";
|
||||
|
||||
public static final String PERSON_ID_LIST_IS_EMPTY = "53014024";
|
||||
|
||||
public static final String IMAGE_ID_LIST_IS_EMPTY = "53014025";
|
||||
|
||||
public static final String IMAGE_ID_IS_EMPTY = "53014026";
|
||||
|
||||
public static final String QZ_SYSTEM_ID_VALUE_EMPTY = "53014027";
|
||||
|
||||
public static final String QZ_SYSTEM_ID_VALUE_DUPLICATE = "53014028";
|
||||
|
||||
public static final String PERSONNEL_ATTRIBUTES_ARE_NOT_SET = "53014029";
|
||||
|
||||
public static final String QZ_BATCH_ID_INVALID = "53014030";
|
||||
|
||||
public static final String QZ_BATCH_STATUS_INVALID = "53014031";
|
||||
|
||||
public static final String QZ_BATCH_ADD_ERROR = "53014032";
|
||||
|
||||
public static final String QZ_BATCH_QUERY_ERROR = "53014033";
|
||||
|
||||
public static final String QZ_BATCH_DETAIL_QUERY_ERROR = "53014034";
|
||||
|
||||
public static final String BATCH_IMPORT_INSERT_ERROR = "53014035";
|
||||
|
||||
public static final String BATCH_IMPORT_PROCESS_EXCEPTION = "53014036";
|
||||
|
||||
public static final String BATCH_IMPORT_ZIP_FILE_EMPTY = "53014037";
|
||||
|
||||
public static final String BATCH_IMPORT_UNZIP_FAILED = "53014038";
|
||||
|
||||
public static final String BATCH_IMPORT_EXCEL_FILE_NOTFOUND = "53014039";
|
||||
|
||||
public static final String BATCH_IMPORT_DATA_EMPTY = "53014040";
|
||||
|
||||
public static final String FILE_INIT_FAIL = "53014041";
|
||||
|
||||
public static final String FILE_FINISHI_FAIL = "53014042";
|
||||
|
||||
public static final String FILE_GET_FAIL = "53014043";
|
||||
|
||||
public static final String LABEL_NAME_IS_EXIST = "53003700";
|
||||
|
||||
public static final String LABEL_ID_IS_ERROR = "53003701";
|
||||
|
||||
public static final String LABEL_PAGE_IS_ERROR = "53003702";
|
||||
|
||||
public static final String QZ_LABEL_NAME_INVALID = "53003703";
|
||||
|
||||
public static final String QZ_LABEL_CODE_INVALID = "53003704";
|
||||
|
||||
public static final String LABEL_CODE_IS_EXIST = "53003705";
|
||||
|
||||
public static final String QZ_LABEL_ADD_TYPE_INVALID = "53003706";
|
||||
|
||||
public static final String QZ_LABEL_DEL_PERSON_RELATION = "53003707";
|
||||
|
||||
public static final String PERSON_PRO_NAME_NOT_NULL = "53014800";
|
||||
|
||||
public static final String PERSON_PRO_NAME_LENGTH_INVAILD = "53014801";
|
||||
|
||||
public static final String PERSON_PRO_TYPE_NOT_NULL = "53014802";
|
||||
|
||||
public static final String PERSON_PRO_TYPE_RANGE_INVAILD = "53014803";
|
||||
|
||||
public static final String PERSON_PRO_SYSACCOUNT_RANGE_INVAILD = "53014804";
|
||||
|
||||
public static final String PERSON_PRO_REQUIRED_RANGE_INVAILD = "53014805";
|
||||
|
||||
public static final String PERSON_PRO_ORDER_NOT_NULL = "53014806";
|
||||
|
||||
public static final String PERSON_PRO_REMINDER_NOT_NULL = "53014807";
|
||||
|
||||
public static final String PERSON_PRO_REMINDER_LENGTH_INVAILD = "53014808";
|
||||
|
||||
public static final String PERSON_PRO_ARRAYDATA_LENGTH_INVAILD = "53014809";
|
||||
|
||||
public static final String PERSON_PRO_MULTIPLE_RANGE_INVAILD = "53014810";
|
||||
|
||||
public static final String DEFAULT_ACCOUNT_CAN_NOT_CHANGE = "53014811";
|
||||
|
||||
public static final String REQUIRED_CAN_NOT_CHANGE = "53014812";
|
||||
|
||||
public static final String SWITCH_SIZE_PARAM_INVALID = "53014813";
|
||||
|
||||
public static final String SWITCH_BACKGROUND_OBJECT_INVALID = "53014814";
|
||||
|
||||
public static final String ORG_TYPE_NAME_NOT_NULL = "53003806";
|
||||
|
||||
public static final String ORG_TYPE_NAME_LENGTH_INVAILD = "53003807";
|
||||
|
||||
public static final String ORG_TYPE_LOWER_NOT_NULL = "53003808";
|
||||
|
||||
public static final String ORG_TYPE_LOWER_RANGE_INVAILD = "53003809";
|
||||
|
||||
public static final String ORG_TYPE_PRO_NAME_NOT_NULL = "53003810";
|
||||
|
||||
public static final String ORG_TYPE_PRO_REQUIRED_NOT_NULL = "53003811";
|
||||
|
||||
public static final String ORG_TYPE_PRO_REQUIRED_RANGE_INVAILD = "53003812";
|
||||
|
||||
public static final String ORG_TYPE_HAS_LOWER_DATA = "53003813";
|
||||
|
||||
public static final String ORG_TYPE_NOT_NEW_DEFAULT = "53003814";
|
||||
|
||||
public static final String ORG_TYPE_NOT_EDIT_DEFAULT = "53003815";
|
||||
|
||||
public static final String ORG_TYPE_PRO_ORDER_NOT_NULL = "53003816";
|
||||
|
||||
public static final String ORG_TYPE_PRO_ORDER_RANGE_INVAILD = "53003817";
|
||||
|
||||
public static final String CAT_NOT_EDIT_DEFAULT_TYPE = "53003818";
|
||||
|
||||
public static final String PERSON_NOT_EXIST = "53003819";
|
||||
|
||||
public static final String PERSON_IMAGE_SCORE_FAILE = "53003820";
|
||||
|
||||
public static final String ORG_SEARCH_PARAM_FAILE = "53003821";
|
||||
|
||||
public static final String PERSON_REGISTRY_STATUS_IS_NULL = "53014500";
|
||||
|
||||
public static final String PERSON_REGISTRY_DEVICESTATUS_IS_NULL = "53014501";
|
||||
|
||||
public static final String PERSON_REGISTRY_CODESTATUS_IS_NULL = "53014502";
|
||||
|
||||
public static final String PERSON_REGISTRY_PROPERTY_IS_NULL = "53014503";
|
||||
|
||||
public static final String PERSON_REGISTRY_DEVICE_IS_NULL = "53014504";
|
||||
|
||||
public static final String PERSON_REGISTRY_STATUS_INVALID = "53014505";
|
||||
|
||||
public static final String PERSON_REGISTRY_DEVICESTATUS_INVALID = "53014506";
|
||||
|
||||
public static final String PERSON_REGISTRY_CODESTATUS_INVALID = "53014507";
|
||||
|
||||
public static final String PERSON_REGISTRY_PRO_ID_LIST_IS_ERROR = "53014508";
|
||||
|
||||
public static final String PERSON_REGISTRY_PRO_NAME_IS_REQUIRED = "53014509";
|
||||
|
||||
public static final String PERSON_REGISTRY_PRO_ORG_LABEL_IS_REQUIRED = "53014510";
|
||||
|
||||
public static final String PERSON_REGISTRY_PRO_IS_REQUIRED = "53014511";
|
||||
|
||||
public static final String PERSON_REGISTRY_ORG_IDS_IS_ERROR = "53014512";
|
||||
|
||||
public static final String PERSON_REGISTRY_LABEL_IDS_IS_ERROR = "53014513";
|
||||
|
||||
public static final String PERSON_REGISTRY_DEVICE_IS_ERROR = "53014514";
|
||||
|
||||
public static final String PERSON_REGISTRY_ADD_FAIL = "53014515";
|
||||
|
||||
public static final String PERSON_REGISTRY_SAVE_FAIL = "53014516";
|
||||
|
||||
public static final String PERSON_REGISTRY_IS_NULL = "53014517";
|
||||
|
||||
public static final String PERSON_REGISTRY_STATUS_IS_CLOSED = "53014518";
|
||||
|
||||
public static final String PERSON_REGISTRY_DEVICE_IS_NOT_ADD = "53014519";
|
||||
|
||||
public static final String PERSON_REGISTRY_DETAIL_FAIL = "53014520";
|
||||
|
||||
public static final String PERSON_REGISTRY_PRO_LIST_FAIL = "53014521";
|
||||
|
||||
public static final String PERSON_REGISTRY_UNIQUE_PRO_IS_NULL = "53014522";
|
||||
|
||||
public static final String PERSON_REGISTRY_UNIQUE_PRO_FAIL = "53014523";
|
||||
|
||||
public static final String PERSON_PRO_IS_NULL = "53014524";
|
||||
|
||||
public static final String PERSON_CERT_PRO_IS_NULL = "53014525";
|
||||
|
||||
public static final String CARDID_NOT_BIND_PRO = "53014526";
|
||||
|
||||
public static final String NAME_NOT_BIND_PRO = "53014527";
|
||||
|
||||
public static final String BIND_PRO_ONE_TO_MANY = "53014528";
|
||||
|
||||
public static final String DEFAULT_PRO_ORG_LABEL_IS_REQUIRED = "53014529";
|
||||
|
||||
public static final String PERSON_REGISTRY_TYPE_INVALID = "53014530";
|
||||
|
||||
public static final String QUERY_DISTRICT_TREE_FAIL = "53014600";
|
||||
|
||||
public static final String QUERY_DEVICE_LIST_FAIL = "53014700";
|
||||
|
||||
public static final String DEVICE_ID_IS_NULL = "53014701";
|
||||
|
||||
public static final String QUERY_PERSON_GROUP_RELATIONS_FAIL = "53014702";
|
||||
|
||||
public static final String QUERY_QR_CODE_URL_FAIL = "53014900";
|
||||
|
||||
public static final String PERSON_AUDIT_PARAM_SOURCE = "53060533";
|
||||
|
||||
public static final String PERSON_AUDIT_DEVICE_FORBID = "53060534";
|
||||
|
||||
public static final String PERSON_AUDIT_ADD_EXCEPTION = "53060535";
|
||||
|
||||
public static final String PERSON_AUDIT_ID_INVALID = "53060536";
|
||||
|
||||
public static final String PERSON_AUDIT_ID_ISNULL = "53060537";
|
||||
|
||||
public static final String PERSON_AUDIT_QUERY_FAILED = "53060538";
|
||||
|
||||
public static final String PERSON_AUDIT_APPLY_FAILED = "53060539";
|
||||
|
||||
public static final String PERSON_AUDIT_PAGE_FAILED = "53060540";
|
||||
|
||||
public static final String PERSON_AUDIT_REGISTRY_SETTING_FAILED = "53060541";
|
||||
|
||||
public static final String PERSON_AUDIT_DEVICECODE_EMPTY = "53060542";
|
||||
|
||||
public static final String PERSON_AUDIT_DEVICE_INVALID = "53060543";
|
||||
|
||||
public static final String PERSON_AUDIT_UPLOAD_BASE64_EMPTY = "53060544";
|
||||
|
||||
public static final String PERSON_AUDIT_CHECK_NAME_EMPTY = "53060545";
|
||||
|
||||
public static final String PERSON_AUDIT_CHECK_WRONG_CAPTCHA = "53060546";
|
||||
|
||||
public static final String PERSON_AUDIT_UNIQUE_PROPERTY_ERROR = "53060547";
|
||||
|
||||
public static final String PERSON_AUDIT_QUERY_AUDIT_EMPTY = "53060548";
|
||||
|
||||
public static final String PERSON_AUDIT_AGREE_CAN_NOT_EDIT = "53060549";
|
||||
|
||||
public static final String AREA_PARENT_ID_IS_NULL = "53015100";
|
||||
|
||||
public static final String AREA_PARENT_HSH_LOWER_LEVEL_ERROR = "53015101";
|
||||
|
||||
public static final String AREA_PARENT_IS_HAVING = "53015102";
|
||||
|
||||
public static final String AREA_NAME_IS_EXIST = "53015103";
|
||||
|
||||
public static final String AREA_ID_IS_ERROR = "53015104";
|
||||
|
||||
public static final String AREA_PARENT_NODE_IS_ERROR = "53015105";
|
||||
|
||||
public static final String AREA_YI_IS_NOT_DELETE = "53015106";
|
||||
|
||||
public static final String AREA_TYPE_ID_IS_NULL = "53015107";
|
||||
|
||||
public static final String UNIT_ID_ARRAY_IS_ERROR = "53015108";
|
||||
|
||||
public static final String QUERY_AREA_ERROR = "53015109";
|
||||
|
||||
public static final String DETAIL_AREA_ERROR = "53015110";
|
||||
}
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-common-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\config\ErrorCode.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
package cn.cloudwalk.elevator.config;
|
||||
|
||||
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";
|
||||
|
||||
public static final String SERVICE_CODE = "elevator-app";
|
||||
}
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-common-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\config\FeignRemoteConfig.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+108
@@ -0,0 +1,108 @@
|
||||
/* */ package cn.cloudwalk.elevator.config;
|
||||
/* */
|
||||
/* */ import cn.cloudwalk.cloud.context.CloudwalkCallContext;
|
||||
/* */ import cn.cloudwalk.cloud.session.extend.DefaultExtendContext;
|
||||
/* */ import cn.cloudwalk.elevator.context.CloudWalkExtendContextValue;
|
||||
/* */ import java.util.HashMap;
|
||||
/* */ import java.util.Map;
|
||||
/* */ import java.util.concurrent.ConcurrentHashMap;
|
||||
/* */ import javax.servlet.http.HttpServletRequest;
|
||||
/* */ import org.apache.commons.lang3.StringUtils;
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public class FeignThreadLocalUtil
|
||||
/* */ {
|
||||
/* 23 */ private static ThreadLocal<Map<String, String>> threadLocal = new ThreadLocal<>();
|
||||
/* */
|
||||
/* */ public static void set(Map<String, String> t) {
|
||||
/* 26 */ threadLocal.remove();
|
||||
/* 27 */ threadLocal.set(t);
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public static Map<String, String> get() {
|
||||
/* 31 */ return threadLocal.get();
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public static void remove() {
|
||||
/* 35 */ threadLocal.remove();
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static Map<String, String> getRequestHeader(HttpServletRequest request) {
|
||||
/* 45 */ Map<String, String> map = new ConcurrentHashMap<>(10);
|
||||
/* 46 */ if (null != request.getHeader("platformuserid")) {
|
||||
/* 47 */ map.put("platformuserid", request.getHeader("platformuserid"));
|
||||
/* */ }
|
||||
/* 49 */ if (null != request.getHeader("loginid")) {
|
||||
/* 50 */ map.put("loginid", request.getHeader("loginid"));
|
||||
/* */ }
|
||||
/* 52 */ if (null != request.getHeader("businessid")) {
|
||||
/* 53 */ map.put("businessid", request.getHeader("businessid"));
|
||||
/* */ }
|
||||
/* 55 */ if (null != request.getHeader("username")) {
|
||||
/* 56 */ map.put("username", request.getHeader("username"));
|
||||
/* */ }
|
||||
/* 58 */ if (null != request.getHeader("applicationid")) {
|
||||
/* 59 */ map.put("applicationid", request.getHeader("applicationid"));
|
||||
/* */ }
|
||||
/* 61 */ if (null != request.getHeader("authorization")) {
|
||||
/* 62 */ map.put("authorization", request.getHeader("authorization"));
|
||||
/* */ }
|
||||
/* 64 */ return map;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static Map<String, String> getDefaultReqesutHeader(String businessId) {
|
||||
/* 69 */ Map<String, String> map = new ConcurrentHashMap<>(2);
|
||||
/* 70 */ map.put("businessid", businessId);
|
||||
/* 71 */ map.put("username", "default");
|
||||
/* 72 */ return map;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static void setRequestHeader(Map<String, String> headerMap) {
|
||||
/* 81 */ set(headerMap);
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public static Map<String, String> getDefaultRequestHeader(CloudwalkCallContext context) {
|
||||
/* 85 */ Map<String, String> map = new HashMap<>(10);
|
||||
/* */
|
||||
/* 87 */ DefaultExtendContext<CloudWalkExtendContextValue> extendContext = (DefaultExtendContext<CloudWalkExtendContextValue>)context.getExt();
|
||||
/* */
|
||||
/* 89 */ map.put("platformuserid", context.getUser().getCaller());
|
||||
/* 90 */ map.put("loginid", ((CloudWalkExtendContextValue)extendContext.getValue()).getLoginId());
|
||||
/* 91 */ map.put("businessid", context.getCompany().getCompanyId());
|
||||
/* 92 */ map.put("username", StringUtils.isEmpty(context.getUser().getCallerName()) ? "default" : context.getUser().getCallerName());
|
||||
/* 93 */ map.put("applicationid", context.getApplicationId());
|
||||
/* 94 */ map.put("authorization", ((CloudWalkExtendContextValue)extendContext.getValue()).getAuthorization());
|
||||
/* */
|
||||
/* 96 */ return map;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public static void setRequestHeader(CloudwalkCallContext context) {
|
||||
/* 100 */ set(getDefaultRequestHeader(context));
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-common-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\config\FeignThreadLocalUtil.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+192
@@ -0,0 +1,192 @@
|
||||
/* */ package cn.cloudwalk.elevator.config;
|
||||
/* */
|
||||
/* */ import java.util.Arrays;
|
||||
/* */ import java.util.List;
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public class ImageStoreConstants
|
||||
/* */ {
|
||||
/* */ public static final short IS_NOT_DEL = 0;
|
||||
/* */ public static final short IS_DEL = 1;
|
||||
/* */ public static final int ASSOCIATED_ACTION_INCLUDE = 0;
|
||||
/* */ public static final int ASSOCIATED_ACTION_EXCLUDE = 1;
|
||||
/* */ public static final int ASSOCIATED_OBJECT_ORG_TYPE = 1;
|
||||
/* */ public static final int ASSOCIATED_OBJECT_LABEL_TYPE = 2;
|
||||
/* */ public static final int ASSOCIATED_OBJECT_PERSON_TYPE = 3;
|
||||
/* */ public static final int ASSOCIATED_OBJECT_MATCHPATTERN_TYPE = 4;
|
||||
/* */ public static final int ASSOCIATED_OBJECT_IMAGE_STORE_TYPE = 5;
|
||||
/* */ public static final String COMMON_BUSINESS_ID = "cloudwalk";
|
||||
/* 58 */ public static final Integer COMMON_PROPERTIES_STATUS = Integer.valueOf(99);
|
||||
/* 59 */ public static final Integer COMMON_UNIT_PROPERTIES_STATUS = Integer.valueOf(98);
|
||||
/* 60 */ public static final Integer COMMON_PARK_PROPERTIES_STATUS = Integer.valueOf(97);
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* 65 */ private static final List<String> CUST_PROPERTIES = Arrays.asList(new String[] { "ext1", "ext2", "ext3", "ext4", "ext5", "ext6", "ext7", "ext8", "ext9", "ext10", "ext11", "ext12", "ext13", "ext14", "ext15", "ext16", "ext17", "ext18", "ext19", "ext20", "ext21", "ext22", "ext23", "ext24", "ext25", "ext26", "ext27", "ext28", "ext29", "ext30", "ext31", "ext32", "ext33", "ext34", "ext35", "ext36", "ext37", "ext38", "ext39", "ext40" }); public static final String PERSON_PROPERTY_USER_NAME = "userName";
|
||||
/* */
|
||||
/* */ public static List<String> getCustProperties() {
|
||||
/* 68 */ return CUST_PROPERTIES;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static final String PERSON_PROPERTY_PHONE = "phone";
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static final String PERSON_PROPERTY_EMAIL = "email";
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static final String COMPARE_PICTURE = "comparePicture";
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static final String PERSON_PROPERTY_PERSON_CODE = "personCode";
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static final String IC_CAED_NO = "icCardNo";
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static final String IC_CAED_TYPE = "icCardType";
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static final String FLOORS = "floors";
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static final String PROPERTY_CODE = "code";
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static final String PROPERTY_HAS_REQUIRED = "hasRequired";
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static final int PROPERTY_REQUIRED = 1;
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static final int PROPERTY_UNREQUIRED = 0;
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static final String PERSON_PROPERTY_NAME = "name";
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static final String PERSON_PROPERTY_ORGANIZATIONIDS = "organizationIds";
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static final String PERSON_PROPERTY_LABELIDS = "labelIds";
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static final String CREATE_SYS_ACCOUNT_CODE = "createSysAccount";
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static final String CREATE_SYS_ACCOUNT_NAME = "同步创建账号";
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static final String SYS_ACCOUNT_ID_CODE = "sysAccountId";
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static final String SYS_ACCOUNT_ID_NAME = "同步创建账号系统ID";
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* 153 */ public static final Integer AGREE = Integer.valueOf(0);
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static final String SYSTEM_USER = "system";
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static final String IMAGE_STORE_ID = "imageStoreId";
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static final String PASS_CRONS = "passCrons";
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static final short PERSON_DELETED = -1;
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static final short PERSON_VALIDATE = 0;
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static final short PERSON_INVALIDATE = 1;
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static final short DEVICE_PERSON_VALIDATE = 1;
|
||||
/* */
|
||||
/* */ public static final short DEVICE_PERSON_INVALIDATE = 0;
|
||||
/* */
|
||||
/* 178 */ public static final Integer MAX_FILE = Integer.valueOf(3145728);
|
||||
/* */ public static final String SYSTEM_GROUP_CREATE_USER_ID = "group";
|
||||
/* */ public static final int PERSON_ACTION_DELETE = -1;
|
||||
/* */ public static final int PERSON_ACTION_ADD = 0;
|
||||
/* */ public static final int PERSON_ACTION_UPDATE = 1;
|
||||
/* */ public static final short GROUP_MODEL_STATUS_NO_IMG = 0;
|
||||
/* */ public static final int PERSON_VALIDATE_UNPROCESSED = 0;
|
||||
/* */ public static final int PERSON_VALIDATE_PROCESSED = 1;
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-common-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\config\ImageStoreConstants.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+38
@@ -0,0 +1,38 @@
|
||||
/* */ package cn.cloudwalk.elevator.context;
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public class CloudWalkExtendContextValue
|
||||
/* */ {
|
||||
/* */ private String loginId;
|
||||
/* */ private String authorization;
|
||||
/* */
|
||||
/* */ public String getLoginId() {
|
||||
/* 18 */ return this.loginId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setLoginId(String loginId) {
|
||||
/* 22 */ this.loginId = loginId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getAuthorization() {
|
||||
/* 26 */ return this.authorization;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setAuthorization(String authorization) {
|
||||
/* 30 */ this.authorization = authorization;
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-common-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\context\CloudWalkExtendContextValue.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+53
@@ -0,0 +1,53 @@
|
||||
/* */ package cn.cloudwalk.elevator.em;
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public enum AcsApplicationSourceEnum
|
||||
/* */ {
|
||||
/* 16 */ ACCESS_CONTROL("ACCESS_CONTROL", "门禁应用"),
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* 20 */ CWOS_PORTAL("CWOS_PORTAL", "平台应用");
|
||||
/* */
|
||||
/* */ private final String code;
|
||||
/* */
|
||||
/* */ private final String name;
|
||||
/* */
|
||||
/* */ AcsApplicationSourceEnum(String code, String name) {
|
||||
/* 27 */ this.code = code;
|
||||
/* 28 */ this.name = name;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public static AcsApplicationSourceEnum getEnumByCode(String code) {
|
||||
/* 32 */ for (AcsApplicationSourceEnum item : values()) {
|
||||
/* 33 */ if (code.equals(item.code)) {
|
||||
/* 34 */ return item;
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* 37 */ return null;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getCode() {
|
||||
/* 41 */ return this.code;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getName() {
|
||||
/* 45 */ return this.name;
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-common-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\em\AcsApplicationSourceEnum.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+53
@@ -0,0 +1,53 @@
|
||||
/* */ package cn.cloudwalk.elevator.em;
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public enum AcsDeviceIdentifyTypeEnum
|
||||
/* */ {
|
||||
/* 16 */ FRONT_REG(Integer.valueOf(0), "前端识别"),
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* 20 */ BACKEND_REG(Integer.valueOf(1), "后端识别");
|
||||
/* */
|
||||
/* */ private Integer code;
|
||||
/* */
|
||||
/* */ private String name;
|
||||
/* */
|
||||
/* */ AcsDeviceIdentifyTypeEnum(Integer code, String name) {
|
||||
/* 27 */ this.code = code;
|
||||
/* 28 */ this.name = name;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public static AcsDeviceIdentifyTypeEnum getEnumByCode(Integer code) {
|
||||
/* 32 */ for (AcsDeviceIdentifyTypeEnum item : values()) {
|
||||
/* 33 */ if (code.equals(item.getCode())) {
|
||||
/* 34 */ return item;
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* 37 */ return null;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public Integer getCode() {
|
||||
/* 41 */ return this.code;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getName() {
|
||||
/* 45 */ return this.name;
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-common-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\em\AcsDeviceIdentifyTypeEnum.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+53
@@ -0,0 +1,53 @@
|
||||
/* */ package cn.cloudwalk.elevator.em;
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public enum AcsDeviceQueryTypeEnum
|
||||
/* */ {
|
||||
/* 16 */ QUERY_MAIN(Integer.valueOf(1), "只查询主设备"),
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* 20 */ QUERY_MAIN_AND_SUB(Integer.valueOf(2), "查询主设备及其子设备");
|
||||
/* */
|
||||
/* */ private Integer code;
|
||||
/* */
|
||||
/* */ private String message;
|
||||
/* */
|
||||
/* */ AcsDeviceQueryTypeEnum(Integer code, String message) {
|
||||
/* 27 */ this.code = code;
|
||||
/* 28 */ this.message = message;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public static AcsDeviceQueryTypeEnum getEnumByCode(Integer code) {
|
||||
/* 32 */ for (AcsDeviceQueryTypeEnum item : values()) {
|
||||
/* 33 */ if (code.equals(item.getCode())) {
|
||||
/* 34 */ return item;
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* 37 */ return null;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public Integer getCode() {
|
||||
/* 41 */ return this.code;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getMessage() {
|
||||
/* 45 */ return this.message;
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-common-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\em\AcsDeviceQueryTypeEnum.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+116
@@ -0,0 +1,116 @@
|
||||
/* */ package cn.cloudwalk.elevator.em;
|
||||
/* */
|
||||
/* */ import java.util.ArrayList;
|
||||
/* */ import java.util.List;
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public enum AcsDeviceSettingEnum
|
||||
/* */ {
|
||||
/* 21 */ QUALITY_SCORE("qualityScore", "人脸抓拍质量分", AcsApplicationSourceEnum.CWOS_PORTAL),
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* 25 */ TEMP_THRESHOLD("tempThreshold", "温度报警阈值", AcsApplicationSourceEnum.CWOS_PORTAL),
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* 29 */ TEMP_MIN("tempMin", "温度最低值", AcsApplicationSourceEnum.CWOS_PORTAL),
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* 33 */ MASK_THRESHOLD("maskThreshold", "口罩阈值", AcsApplicationSourceEnum.CWOS_PORTAL),
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* 37 */ LIVE_STATE("liveState", "活体检测开关", AcsApplicationSourceEnum.CWOS_PORTAL),
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* 41 */ TEMP_STATE("tempState", "温度控制开关", AcsApplicationSourceEnum.CWOS_PORTAL),
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* 45 */ FACE_SIZE_MIN("faceSizeMin", "人脸最小尺寸", AcsApplicationSourceEnum.CWOS_PORTAL),
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* 49 */ FACE_SIZE_MAX("faceSizeMax", "人脸最大尺寸", AcsApplicationSourceEnum.CWOS_PORTAL),
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* 53 */ FACE_ONE_THRESHOLD("faceOneThreshold", "人脸1:1识别阈值", AcsApplicationSourceEnum.CWOS_PORTAL),
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* 57 */ FACE_MANY_THRESHOLD("faceManyThreshold", "人脸1:N识别阈值", AcsApplicationSourceEnum.CWOS_PORTAL),
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* 64 */ ACS_FACE_REG_THRESHOLD("ACS_FACE_REG_THRESHOLD", "人脸抓拍识别阈值", AcsApplicationSourceEnum.ACCESS_CONTROL);
|
||||
/* */
|
||||
/* */
|
||||
/* */ private String code;
|
||||
/* */
|
||||
/* */ private String remark;
|
||||
/* */
|
||||
/* */ private AcsApplicationSourceEnum source;
|
||||
/* */
|
||||
/* */
|
||||
/* */ public String getCode() {
|
||||
/* 75 */ return this.code;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getRemark() {
|
||||
/* 79 */ return this.remark;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public AcsApplicationSourceEnum getSource() {
|
||||
/* 83 */ return this.source;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ AcsDeviceSettingEnum(String code, String remark, AcsApplicationSourceEnum source) {
|
||||
/* 87 */ this.code = code;
|
||||
/* 88 */ this.remark = remark;
|
||||
/* 89 */ this.source = source;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public static AcsDeviceSettingEnum getEnumByCode(String code) {
|
||||
/* 93 */ for (AcsDeviceSettingEnum item : values()) {
|
||||
/* 94 */ if (code.equals(item.code)) {
|
||||
/* 95 */ return item;
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* 98 */ return null;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public static List<AcsDeviceSettingEnum> getEnumBySource(String source) {
|
||||
/* 102 */ List<AcsDeviceSettingEnum> list = new ArrayList<>();
|
||||
/* 103 */ for (AcsDeviceSettingEnum item : values()) {
|
||||
/* 104 */ if (source.equals(item.source.getCode())) {
|
||||
/* 105 */ list.add(item);
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* 108 */ return list;
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-common-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\em\AcsDeviceSettingEnum.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+60
@@ -0,0 +1,60 @@
|
||||
/* */ package cn.cloudwalk.elevator.em;
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public enum AcsOpenDoorStatusEnum
|
||||
/* */ {
|
||||
/* 17 */ INIT(Integer.valueOf(0), "初始化"),
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* 21 */ SUCESS(Integer.valueOf(1), "成功"),
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* 25 */ FAIL(Integer.valueOf(2), "失败");
|
||||
/* */
|
||||
/* */ private Integer code;
|
||||
/* */
|
||||
/* */ private String message;
|
||||
/* */
|
||||
/* */
|
||||
/* */ AcsOpenDoorStatusEnum(Integer code, String message) {
|
||||
/* 33 */ this.code = code;
|
||||
/* 34 */ this.message = message;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public static AcsOpenDoorStatusEnum getEnumByCode(Integer code) {
|
||||
/* 38 */ for (AcsOpenDoorStatusEnum item : values()) {
|
||||
/* 39 */ if (code.equals(item.getCode())) {
|
||||
/* 40 */ return item;
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* 43 */ return null;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */ public Integer getCode() {
|
||||
/* 48 */ return this.code;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getMessage() {
|
||||
/* 52 */ return this.message;
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-common-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\em\AcsOpenDoorStatusEnum.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+55
@@ -0,0 +1,55 @@
|
||||
/* */ package cn.cloudwalk.elevator.em;
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public enum AcsOperateStatusEnum
|
||||
/* */ {
|
||||
/* 17 */ INIT(Integer.valueOf(0), "初始化"),
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* 22 */ MATCHED(Integer.valueOf(1), "已匹配");
|
||||
/* */
|
||||
/* */ private Integer code;
|
||||
/* */
|
||||
/* */ private String message;
|
||||
/* */
|
||||
/* */ AcsOperateStatusEnum(Integer code, String message) {
|
||||
/* 29 */ this.code = code;
|
||||
/* 30 */ this.message = message;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public static AcsOperateStatusEnum getEnumByCode(Integer code) {
|
||||
/* 34 */ for (AcsOperateStatusEnum item : values()) {
|
||||
/* 35 */ if (code.equals(item.getCode())) {
|
||||
/* 36 */ return item;
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* 39 */ return null;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public Integer getCode() {
|
||||
/* 43 */ return this.code;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getMessage() {
|
||||
/* 47 */ return this.message;
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-common-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\em\AcsOperateStatusEnum.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+55
@@ -0,0 +1,55 @@
|
||||
/* */ package cn.cloudwalk.elevator.em;
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public enum AcsOperateTypeEnum
|
||||
/* */ {
|
||||
/* 17 */ REMOTE_OPEN_DOOR("REMOTE_OPEN_DOOR", "远程开门"),
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* 22 */ QRCODE_OPEN_DOOR("QRCODE_OPEN_DOOR", "小程序扫码开门");
|
||||
/* */
|
||||
/* */ private String code;
|
||||
/* */
|
||||
/* */ private String message;
|
||||
/* */
|
||||
/* */ AcsOperateTypeEnum(String code, String message) {
|
||||
/* 29 */ this.code = code;
|
||||
/* 30 */ this.message = message;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public static AcsOperateTypeEnum getEnumByCode(String code) {
|
||||
/* 34 */ for (AcsOperateTypeEnum item : values()) {
|
||||
/* 35 */ if (code.equals(item.getCode())) {
|
||||
/* 36 */ return item;
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* 39 */ return null;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getCode() {
|
||||
/* 43 */ return this.code;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getMessage() {
|
||||
/* 47 */ return this.message;
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-common-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\em\AcsOperateTypeEnum.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+59
@@ -0,0 +1,59 @@
|
||||
/* */ package cn.cloudwalk.elevator.em;
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public enum AcsPassTypeEnum
|
||||
/* */ {
|
||||
/* 16 */ LONG_TIME(Integer.valueOf(0), "长期"),
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* 21 */ AUTO_PASS(Integer.valueOf(1), "自定义时间"),
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* 26 */ PASS_TIME(Integer.valueOf(2), "通行时间段");
|
||||
/* */
|
||||
/* */ private Integer code;
|
||||
/* */
|
||||
/* */ private String message;
|
||||
/* */
|
||||
/* */ AcsPassTypeEnum(Integer code, String message) {
|
||||
/* 33 */ this.code = code;
|
||||
/* 34 */ this.message = message;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public static YesNoTypeEnum getEnumByCode(Integer code) {
|
||||
/* 38 */ for (YesNoTypeEnum item : YesNoTypeEnum.values()) {
|
||||
/* 39 */ if (code.equals(item.getCode())) {
|
||||
/* 40 */ return item;
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* 43 */ return null;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public Integer getCode() {
|
||||
/* 47 */ return this.code;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getMessage() {
|
||||
/* 51 */ return this.message;
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-common-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\em\AcsPassTypeEnum.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+120
@@ -0,0 +1,120 @@
|
||||
/* */ package cn.cloudwalk.elevator.em;
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public enum AlarmStateCodeEnum
|
||||
/* */ {
|
||||
/* 10 */ OPERATION_FAILED("36000001", "操作失败"),
|
||||
/* 11 */ EMPTY_PARAMETERS_WRONG("36000002", "参数不能为空"),
|
||||
/* 12 */ INSERT_DATABSE_EREEOR("36000003", "插入数据库异常"),
|
||||
/* 13 */ EMPTY_USER_ID("36000004", "ID不能为空"),
|
||||
/* 14 */ PARAM_ERROR("36000005", "参数不符合要求"),
|
||||
/* 15 */ SEARCH_INFORMATION_FAILED("36000006", "查询信息失败"),
|
||||
/* 16 */ TASK_NAME_EXIST("36000007", "布控名称重复"),
|
||||
/* 17 */ TASK_TYPE_NAME_EXIST("36000012", "布控类型名称重复"),
|
||||
/* 18 */ DELETE_NOT_EXIST("36000008", "被删除资源不存在"),
|
||||
/* 19 */ CONTROL_TASK_TYPE_HAS_TASK("36000009", "存在关联任务"),
|
||||
/* 20 */ SAVE_TASK_TYPE_ERROR("36000010", "保存区控类型失败"),
|
||||
/* 21 */ UPDATE_TASK_TYPE_ERROR("36000011", "更新区控类型失败"),
|
||||
/* 22 */ FILE_SIZE_ILLEGAL("3600030", "文件大小超过"),
|
||||
/* 23 */ WRONG_PARAMETERS("400", "参数错误"),
|
||||
/* 24 */ SERVER_EXCEPTION("500", "服务器异常"),
|
||||
/* 25 */ SUCCESS("00000000", "成功"),
|
||||
/* 26 */ CWOS_FEIGN_FAILED("36000007", "调用cwos接口异常"),
|
||||
/* 27 */ PAGE_QUERY_FAILED("36000008", "分页查询失败"),
|
||||
/* 28 */ PARAM_REPEAT("36000009", "证件类型+证件号重复"),
|
||||
/* 29 */ CONTROL_TASK_ID_NOT_EXIST("36000010", "任务编号不存在"),
|
||||
/* 30 */ DEVICE_NOT_EXIST("36000011", "回放链接已失效"),
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* 35 */ LABEL_NAME_DUPLICATE_FAILED("10001056", "库名称重复"),
|
||||
/* 36 */ LABEL_NAME_INVALID("10001050", "库名称无效"),
|
||||
/* 37 */ LABEL_QUERY_FAILED("10001051", "标签查询失败"),
|
||||
/* 38 */ LABEL_SAVE_FAILED("10001052", "标签保存失败"),
|
||||
/* 39 */ LABEL_UPDATE_FAILED("10001053", "标签更新失败"),
|
||||
/* 40 */ LABEL_DELETE_FAILED("10001054", "标签删除失败"),
|
||||
/* 41 */ EMPTY_LABEL_NAME("10001055", "标签名称为空"),
|
||||
/* 42 */ LABEL_PAGE_FAILED("10001055", "分页查询标签异常"),
|
||||
/* 43 */ LABEL_LIST_FAILED("10001057", "列表查询标签异常"),
|
||||
/* 44 */ LABEL_BRAND_FAILED("10001060", "查询车辆品牌异常"),
|
||||
/* 45 */ VEHICLE_TYPE_FAILED("10001061", "查询车辆类型异常"),
|
||||
/* 46 */ VEHICLE_DETAIL_ERROR("10001062", "车辆详情查询失败"),
|
||||
/* 47 */ CODE_QUERY_ERROR("10001063", "查询失败"),
|
||||
/* 48 */ LABEL_SIZE_FAILED("10001067", "库名称超过最大长度"),
|
||||
/* 49 */ PLATE_NO_DUPLICATE("10001070", "车牌号重复添加"),
|
||||
/* 50 */ VEHICLE_ADD_ERROR("10001071", "车辆添加失败"),
|
||||
/* 51 */ VEHICLE_PROPERTY_UNQUALIFIED("10001087", "车辆属性不合格"),
|
||||
/* 52 */ PLATE_NO_INVALID("10005202", "车牌号无效"),
|
||||
/* 53 */ VEHICLE_TYPE_INVALID("10005203", "车牌类型无效"),
|
||||
/* 54 */ VEHICLE_BRAND_INVALID("10005204", "车辆品牌无效"),
|
||||
/* 55 */ VEHICLE_EDIT_FAIL("10001069", "车辆编辑失败"),
|
||||
/* 56 */ VEHICLE_DELETE_ERROR("10001076", "车辆删除失败"),
|
||||
/* 57 */ VEHICLE_PAGE_FAILED("10001064", "车辆分页查询失败"),
|
||||
/* 58 */ VEHICLE_LIST_FAILED("10001065", "车辆LIST查询失败"),
|
||||
/* 59 */ LABEL_BIND_VEHICLE("10001058", "该标签已被绑定具体车辆"),
|
||||
/* 60 */ EMPTY_PIC_NAME("10001059", "图片地址为空"),
|
||||
/* 61 */ PICTURE_FAILED("10001070", "图片不合法"),
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* 66 */ LABEL_BIND_PERSON("10002058", "该标签已被绑定具体人员"),
|
||||
/* 67 */ LABEL_BIND_FIELD("10002059", "该标签绑定人员失败"),
|
||||
/* 68 */ PERSON_PROPERTY_UNQUALIFIED("10002087", "人脸属性不合格"),
|
||||
/* 69 */ PERSON_PIC_UNQUALIFIED("10002088", "人脸图片不合格"),
|
||||
/* 70 */ PERSON_ORG_ADD_FEILD("10002089", "人员管理添加人员失败"),
|
||||
/* 71 */ PERSON_ADD_ERROR("10002071", "人员添加失败"),
|
||||
/* 72 */ PERSON_DUPLICATE("10002070", "人员重复添加"),
|
||||
/* 73 */ PHONE_NO_INVALID("10005205", "手机号无效"),
|
||||
/* 74 */ CARD_NO_INVALID("10005206", "身份证无效"),
|
||||
/* 75 */ NAME_NO_INVALID("10005207", "名称无效"),
|
||||
/* 76 */ CARD_NO_DUPLICATE("10005208", "身份证重复添加"),
|
||||
/* 77 */ PERSON_EDIT_FAIL("10002069", "人员编辑失败"),
|
||||
/* 78 */ PERSON_DELETE_ERROR("10002076", "人员删除失败"),
|
||||
/* 79 */ PERSON_PAGE_FAILED("10002064", "人员分页查询失败"),
|
||||
/* 80 */ PERSON_LIST_FAILED("10002065", "人员LIST查询失败"),
|
||||
/* 81 */ ORGANIZATION_PERSONS_EMPTY("10002066", "人员管理人员信息为空"),
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* 85 */ FILE_TYPE_IS_INVALID("53060429", "上传文件类型不合法"),
|
||||
/* 86 */ FILE_MAX_IS_ERROR("53060428", "上传文件超过最大大小"),
|
||||
/* 87 */ FILE_UPLOAD_CONTROLLER_ERROR("80014013", "模块文件上传异常"),
|
||||
/* 88 */ PIC_DELETE_ERROR("10001084", "图片删除失败"),
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* 93 */ EXPORT_TASK_DOWNLOAD_CENTER_FAILURE("36000008", "下载中心创建下载任务失败"),
|
||||
/* 94 */ EXPORT_TASK_FAILURE("36000009", "添加导出任务失败"),
|
||||
/* 95 */ EXPORT_TASK_TYPE_ERROR("36000010", "导出任务类型错误"),
|
||||
/* 96 */ EXPORT_TASK_OVERLOAD_THRESHOLD("36000011", "查询导出记录超过设定阈值");
|
||||
/* */
|
||||
/* */ private String code;
|
||||
/* */
|
||||
/* */ private String message;
|
||||
/* */
|
||||
/* */ AlarmStateCodeEnum(String code, String message) {
|
||||
/* 103 */ this.code = code;
|
||||
/* 104 */ this.message = message;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getCode() {
|
||||
/* 108 */ return this.code;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getMessage() {
|
||||
/* 112 */ return this.message;
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-common-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\em\AlarmStateCodeEnum.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+64
@@ -0,0 +1,64 @@
|
||||
/* */ package cn.cloudwalk.elevator.em;
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public enum CompareTypeEnum
|
||||
/* */ {
|
||||
/* 16 */ RECOG(Integer.valueOf(1), "1:N比对"),
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* 21 */ PERSON_CARD(Integer.valueOf(2), "人证比对"),
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* 26 */ ACS_BACK_RECOG(Integer.valueOf(3), "门禁1:N比对"),
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* 31 */ APP_BACK_RECOG(Integer.valueOf(4), "应用端1:N比对");
|
||||
/* */
|
||||
/* */ private Integer code;
|
||||
/* */
|
||||
/* */ private String message;
|
||||
/* */
|
||||
/* */ CompareTypeEnum(Integer code, String message) {
|
||||
/* 38 */ this.code = code;
|
||||
/* 39 */ this.message = message;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public static CompareTypeEnum getEnumByCode(Integer code) {
|
||||
/* 43 */ for (CompareTypeEnum item : values()) {
|
||||
/* 44 */ if (code.equals(item.getCode())) {
|
||||
/* 45 */ return item;
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* 48 */ return null;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public Integer getCode() {
|
||||
/* 52 */ return this.code;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getMessage() {
|
||||
/* 56 */ return this.message;
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-common-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\em\CompareTypeEnum.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+148
@@ -0,0 +1,148 @@
|
||||
/* */ package cn.cloudwalk.elevator.em;
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public enum EngineAddressEnum
|
||||
/* */ {
|
||||
/* 15 */ PORTAL_USER_PAGE("用户查询接口", "/portal/user/manage/page"),
|
||||
/* 16 */ PERSON_PROPERTIES_LIST("查询商户对应的员工属性", "/component/person/properties/list"),
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* 21 */ NINCACOMMON_AREA_GET_ALL_TREE("获取区域树状结构", "/sysetting/deviceArea/tree"),
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* 26 */ COMMON_VEHICLE_GET_ALL_LABLES("获取车辆管理标签信息", "/vm/label/list"),
|
||||
/* 27 */ COMMON_VEHICLE_VM_VEHICLE_LABELREF("获取车辆管理车辆分页信息", "/vm/vehicle/control/labelRef"),
|
||||
/* 28 */ COMMON_VEHICLE_VM_VEHICLE_LIST("批量获取车辆管理车辆信息", "/vm/vehicle/list"),
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* 33 */ CWOS_DEVICE_GET("设备列表查询", "/component/device/list"),
|
||||
/* 34 */ CW0S_DEVICE_DETAIL("设备详情", "/core/atomic/device/detail"),
|
||||
/* 35 */ CWOS_DEVICE_SETTING("下发参数到设备", "/server/push/55000"),
|
||||
/* 36 */ CWOS_AREA_GET_ALL_TREE("获取区域树状结构", "/component/device/area/get/alltree"),
|
||||
/* 37 */ CWOS_QUERY_DEVICE_APPLICATION("查询设备与应用关联列表", "/component/device/app/list"),
|
||||
/* 38 */ CWOS_BIND_DEVICE_APPLICATION("绑定设备与应用", "/component/device/app/add"),
|
||||
/* 39 */ CWOS_SPLIT_DEVICE_APPLICATION("解绑设备与应用", "/component/device/app/delete"),
|
||||
/* 40 */ CWOS_QUERY_APPLICATION_ID("查询应用ID", "/res/application/instance/query"),
|
||||
/* 41 */ CWOS_BIND_DEVICE_IMAGESTORE("绑定图库与设备", "/component/device/imagestore/add"),
|
||||
/* 42 */ CWOS_SPLIT_DEVICE_IMAGESTORE("解除绑定图库与设备", "/component/device/imagestore/delete"),
|
||||
/* 43 */ CWOS_BIND_IMAGESTORE_APPLICATION("绑定图库与应用", "/core/application/group/add"),
|
||||
/* 44 */ CWOS_SPLIT_IMAGESTORE_APPLICATION("解绑图库与应用", "/core/application/group/delete"),
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* 49 */ CWOS_ORGANIZATION_TREE("查询机构树型结构", "/component/organization/tree"),
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* 54 */ CWOS_BIOLOGY_IMAGE_COMPARE("单库或多库比对", "/component/biology/tool/feature/query"),
|
||||
/* 55 */ CWOS_BIOLOGY_PERSON_DETAIL("查询人员信息详情", "/component/person/detail"),
|
||||
/* 56 */ CWOS_BIOLOGY_PERSON_LIST("查询人员信息", "/component/person/listPerson"),
|
||||
/* 57 */ CWOS_BIOLOGY_IMAGESTORE_ADD("新增图库", "/component/imagestore/add"),
|
||||
/* 58 */ CWOS_BIOLOGY_IMAGESTORE_EDIT("编辑图库", "/component/imagestore/edit"),
|
||||
/* 59 */ CWOS_BIOLOGY_IMAGESTORE_LIST("查询图库", "/component/imagestore/list"),
|
||||
/* 60 */ COWS_BIOLOGY_IMAGESTORE_DELETE("删除图库", "/component/imagestore/delete"),
|
||||
/* 61 */ CWOS_BIOLOGY_IMAGESTORE_DETAIL("图库详情", "/component/imagestore/detail"),
|
||||
/* 62 */ CWOS_BIOLOGY_PERSON_PAGE("分页查询人员", "/component/person/page"),
|
||||
/* 63 */ CWOS_BIOLOGY_PERSON_ADD("新增人员", "/component/person/add"),
|
||||
/* 64 */ CWOS_BIOLOGY_PERSON_EDIT("编辑人员", "/component/person/edit"),
|
||||
/* 65 */ CWOS_BIOLOGY_PERSON_DELETE("删除人员", "/component/person/delete"),
|
||||
/* 66 */ CWOS_BIOLOGY_LABEL_GETALLLABELS("查询标签列表", "/biology/label/getAllLabels"),
|
||||
/* 67 */ CWOS_BIOLOGY_LABLE_ADD("新增标签", "/biology/label/add"),
|
||||
/* 68 */ CWOS_BIOLOGY_LABLE_EDIT("编辑标签", "/biology/label/edit"),
|
||||
/* 69 */ CWOS_BIOLOGY_LABLE_DELETE("删除标签", "/biology/label/delete"),
|
||||
/* 70 */ CWOS_BIOLOGY_LABLE_PERSONS_ADD("标签人员新增", "/biology/label/personsAdd"),
|
||||
/* 71 */ CWOS_BIOLOGY_LABLE_PERSONS_DEL("标签人员删除", "/biology/label/personsDel"),
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* 76 */ CWOS_FILE_UPLOAD("文件上传", "/portal/fileManager/{moduleCategory}/fileUpload"),
|
||||
/* 77 */ CWOS_FILE_DELETE("文件删除", "/portal/fileManager/remove/images"),
|
||||
/* 78 */ CWOS_FILE_PART_INIT("分片上传文件初始化", "/portal/file/part/init"),
|
||||
/* 79 */ CWOS_FILE_PART_FINISH("分片上传文件结束", "/portal/file/part/finish"),
|
||||
/* 80 */ CWOS_FILE_APPEND("文件追加", "/portal/file/part/append"),
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* 87 */ PINEAPPLE_FACE_FEATURE_GET("人脸特征提取", "staticdb/search/feature"),
|
||||
/* 88 */ PINEAPPLE_FACE_SEARCH_MULTIPLE("多库人脸检索", "staticdb/search/multiple"),
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* 92 */ PINEAPPLE_STRUCTURE_ATTRIBUTE("全结构化属性", "structure/recognize"),
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* 97 */ PINEAPPLE_CLUSTER_FACE_ADD("特征入库", "api/cluster/feature/add"),
|
||||
/* 98 */ PINEAPPLE_CLUSTER_START_DEVICE("按groupId聚类", "api/cluster/doClusterByDeviceId"),
|
||||
/* 99 */ PINEAPPLE_CLUSTER_GET_TASK_INFO("获取聚类任务信息", "api/cluster/getAllTaskInfo"),
|
||||
/* 100 */ PINEAPPLE_CLUSTER_STOP("停止聚类", "api/cluster/stopIncreCluster"),
|
||||
/* 101 */ PINEAPPLE_CLUSTER_GROUP_REMOVE("删除聚类库", "api/cluster/group/base/remove"),
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* 106 */ PINEAPPLE_ENGINE_PAGE_INFO("引擎分页查询", "gateway/config/server/getbypage"),
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* 111 */ SEND_MESSAGE_TO_MQTT("发送数据到mqtt", "mqtt/publish"),
|
||||
/* 112 */ GET_ALIVE_CLIENTS_OF_MQTT("获得所有存活的客户端", "mqtt/getClients"),
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* 117 */ ALARM_OCCUR("声光报警器触发", "mqtt/publish"),
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* 122 */ VISITOR_QUERY("查询识别记录详情", "/intelligent/visitor/record/query");
|
||||
/* */
|
||||
/* */ private final String api;
|
||||
/* */
|
||||
/* */ private final String address;
|
||||
/* */
|
||||
/* */
|
||||
/* */ EngineAddressEnum(String api, String address) {
|
||||
/* 130 */ this.api = api;
|
||||
/* 131 */ this.address = address;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getApi() {
|
||||
/* 135 */ return this.api;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */ public String getAddress() {
|
||||
/* 140 */ return this.address;
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-common-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\em\EngineAddressEnum.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+99
@@ -0,0 +1,99 @@
|
||||
/* */ package cn.cloudwalk.elevator.em;
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public enum OpenDoorTypeEnum
|
||||
/* */ {
|
||||
/* 17 */ FACE("FACE", "人脸开门"),
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* 21 */ APP("APP", "远程开门"),
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* 25 */ GUARD_CARD("GUARD_CARD", "门禁卡开门"),
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* 29 */ PASSWORD("PASSWORD", "密码开门"),
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* 33 */ ID_CARD("ID_CARD", "身份证开门"),
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* 37 */ FACE_GUARD_CARD("FACE_GUARD_CARD", "人脸门禁卡开门"),
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* 41 */ INTERCOM("INTERCOM", "室内机开门"),
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* 46 */ ONE("01", "人脸开门"),
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* 51 */ TWO("02", "门禁卡开门"),
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* 55 */ THREE("03", "二维码开门");
|
||||
/* */
|
||||
/* */
|
||||
/* */ private String code;
|
||||
/* */
|
||||
/* */ private String remark;
|
||||
/* */
|
||||
/* */
|
||||
/* */ public String getCode() {
|
||||
/* 64 */ return this.code;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getRemark() {
|
||||
/* 68 */ return this.remark;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ OpenDoorTypeEnum(String code, String remark) {
|
||||
/* 72 */ this.code = code;
|
||||
/* 73 */ this.remark = remark;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public static String getEnumByCode(String code) {
|
||||
/* 77 */ for (OpenDoorTypeEnum item : values()) {
|
||||
/* 78 */ if (code.equals(item.code) || code.toUpperCase().equals(item.code)) {
|
||||
/* 79 */ return item.remark;
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* 82 */ return code;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public static OpenDoorTypeEnum getOpenDoorTypeEnumByCode(String code) {
|
||||
/* 86 */ for (OpenDoorTypeEnum item : values()) {
|
||||
/* 87 */ if (code.equals(item.code) || code.toUpperCase().equals(item.code)) {
|
||||
/* 88 */ return item;
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* 91 */ return null;
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-common-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\em\OpenDoorTypeEnum.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+55
@@ -0,0 +1,55 @@
|
||||
/* */ package cn.cloudwalk.elevator.em;
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public enum YesNoTypeEnum
|
||||
/* */ {
|
||||
/* 17 */ N(Integer.valueOf(0), "否"),
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* 22 */ Y(Integer.valueOf(1), "是");
|
||||
/* */
|
||||
/* */ private Integer code;
|
||||
/* */
|
||||
/* */ private String message;
|
||||
/* */
|
||||
/* */ YesNoTypeEnum(Integer code, String message) {
|
||||
/* 29 */ this.code = code;
|
||||
/* 30 */ this.message = message;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public static YesNoTypeEnum getEnumByCode(Integer code) {
|
||||
/* 34 */ for (YesNoTypeEnum item : values()) {
|
||||
/* 35 */ if (code.equals(item.getCode())) {
|
||||
/* 36 */ return item;
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* 39 */ return null;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public Integer getCode() {
|
||||
/* 43 */ return this.code;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getMessage() {
|
||||
/* 47 */ return this.message;
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-common-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\em\YesNoTypeEnum.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+66
@@ -0,0 +1,66 @@
|
||||
/* */ package cn.cloudwalk.elevator.util;
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public class AcsCacheKeyUtil
|
||||
/* */ {
|
||||
/* */ public static String getOpenDoorCountKey(String date, String businessId) {
|
||||
/* 25 */ return "elevator:passCount:" + date + ":" + businessId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static String getRecogCountKey(String date, String businessId) {
|
||||
/* 36 */ return "acs_recogCount_" + date + "_" + businessId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static String getBackendRegLogIdKey(String deviceCode, String businessId, String captureId) {
|
||||
/* 47 */ return "acs:backendRegLogId:" + deviceCode + "_" + businessId + "_" + captureId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static String getBackendRegExpireKey(String businessId, String openDoorLogId) {
|
||||
/* 58 */ return "acs:backendRegExpire:#" + businessId + "#" + openDoorLogId;
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-common-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevato\\util\AcsCacheKeyUtil.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+1173
File diff suppressed because it is too large
Load Diff
+403
@@ -0,0 +1,403 @@
|
||||
/* */ package cn.cloudwalk.elevator.util;
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public class CommunityConstants
|
||||
/* */ {
|
||||
/* */ public static interface Common
|
||||
/* */ {
|
||||
/* */ public static final String NOTE_TYPE_ORG = "1";
|
||||
/* */ public static final String NOTE_TYPE_TAG = "2";
|
||||
/* */ public static final String NOTE_TYPE_PERSON = "3";
|
||||
/* */ public static final String NOTE_TYPE_EDG = "4";
|
||||
/* */ public static final String ACCESS_NAME_SUFFIX = "门禁";
|
||||
/* 41 */ public static final Integer ACCESS_AUTO = Integer.valueOf(0);
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* 46 */ public static final Integer ONE_HUNDRED = Integer.valueOf(100);
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* 51 */ public static final Integer BATCH_SIZE = Integer.valueOf(500);
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* 56 */ public static final Integer MAX_SHOW_CAPTURE = Integer.valueOf(7);
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static final String TEMP_PATH = "java.io.tmpdir";
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static final String FONT_PATH = "font/simsun.ttc";
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static final String TEMPLATE_NAME = "appraiseReportTemplate";
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static final String FONT_SUFFIX = ".ttc";
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static final String DASH = "-";
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static final String HTTP_PREFIX = "http://";
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static final String BR = "<br/>";
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static final String FORMAT = "yyyy/MM/dd/HH";
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static final String CLIENT_IP = "ClientIP";
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static interface Snap
|
||||
/* */ {
|
||||
/* */ public static final String IMG_DOWNLOAD_PARSE_ERROR = "img_download_parse_error";
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static final String DATA_IMAGE_BASE64_HEAD = "data:image/";
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static interface Symbol
|
||||
/* */ {
|
||||
/* */ public static final String COMMA = ",";
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static final String HYPHEN = "-";
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static final String COLON = ":";
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static interface Alarm
|
||||
/* */ {
|
||||
/* 123 */ public static final Integer IN = Integer.valueOf(1);
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* 128 */ public static final Integer OUT = Integer.valueOf(0);
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static final String STRANGER = "STRANGER";
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static final String BLACK_LIST = "BLACK_LIST";
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static interface Redis
|
||||
/* */ {
|
||||
/* */ public static final String EVENT_CODE_INC_KEY = "EVENT_CODE:INC_KEY";
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* 154 */ public static final Integer EVENT_CODE_INC_MAX_VALUE = Integer.valueOf(9999);
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static final String TF_BRAIN_ACCESS_TOKEN = "tfbrain_access_token";
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static final String USER_TOKEN_KEY = "USER_TOKEN:%s";
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static final String OUT_IN_IMAGE_STORE = "upOutInStore";
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static final String AGREEMENT = "redis://";
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static final String LOCK = "redisLock";
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static final String OLD_AUTO_CREATE_SETTING = "OLD:AUTO_CREATE";
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static final String CHILD_AUTO_CREATE_SETTING = "CHILD:AUTO_CREATE:%s";
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static final String IMPORT_FAILURE_MSG = "IMPORT:FAILURE:%s";
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static final String VILLAGE_RECORD_LIST = "village:list";
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static final String COMMUNITY_LIST = "community:list";
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* 209 */ public static final Long VALUE_CHANGE_EXPIRE_TIME = Long.valueOf(1L);
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static final String PROVINCE_TREE = "tree:province:level:%s";
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static interface Data
|
||||
/* */ {
|
||||
/* */ public static final String MALE = "男";
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static final String FEMALE = "女";
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static final String ID = "id";
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static final String CREATE_TIME = "createTime";
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static final String LAST_UPDATE_TIME = "lastUpdateTime";
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static final String REGISTER_PERSON_ID = "register_person_id";
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static final String GRID_ID = "grid_id";
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* 259 */ public static final Integer TOP_VALUE = Integer.valueOf(1);
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* 264 */ public static final Integer NO_TOP_VALUE = Integer.valueOf(0);
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* 269 */ public static final Integer PUBLISH_STATUS_1 = Integer.valueOf(1);
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* 273 */ public static final Integer PUBLISH_STATUS_2 = Integer.valueOf(2);
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* 278 */ public static final Integer PUBLISH_STATUS_3 = Integer.valueOf(3);
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static final String AGE = "age";
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static final String SEX = "sex";
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static final String COMMUNITY_ID = "community_id";
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static final String VILLAGE_ID = "village_id";
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static interface Dcs
|
||||
/* */ {
|
||||
/* */ public static final String DCS_URL_ID_FORMAT = "%s:%s@%s:2015?dcsID=";
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static final String DCS_URL_FORMAT = "%s:%s@%s:2015";
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static interface Dcr
|
||||
/* */ {
|
||||
/* */ public static final String HTTPS_PREFIX = "https://";
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static final String MID_PART_DOWNLOAD_URL = "/object/download?pool=";
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static final String MID_PART_UPLOAD_URL = "/object/upload/do?token=";
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static final String MID_DOWNLOAD_FILE_URL = "/simple-file/download?pool=";
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static final String MID_UPLOAD_FILE_URL = "/simple-file/upload/full?pool=";
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static final String PARA_PATH = "&path=";
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static final String PARA_SIZE = "&offset=0&size=";
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static final String PARA_ID = "&id=";
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static final String ID = "ID";
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static final String AUTH_TYPE = "Basic ";
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static final String AUTH = "authorization";
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static final String POOL = "pool";
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static final String TOKEN = "Token";
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static final String ADDRESS = "Address";
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static final String AUTH_SUFFIX = "/object/upload";
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* 384 */ public static final Integer MAX_DOWNLOAD_SIZE = Integer.valueOf(16000000);
|
||||
/* */ public static final String OFFSET = "&offset=";
|
||||
/* */ public static final String SIZE = "&size=";
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public static interface Icc {
|
||||
/* */ public static final String ICC_RTSP_URL = "rtsp://%s:9090/dss/monitor/param?cameraid=%s%%24%s&substream=1";
|
||||
/* */ public static final String ICC_PLAYBACK_RTSP_URL = "rtsp://%s:9090/dss/playback/param?cameraid=%s%%24%s&substream=1&type=3";
|
||||
/* */ public static final String ICC_OUTSIDE_HLS_URL = "/live/cameraid/%s%%24%s/substream/1.m3u8";
|
||||
/* */ public static final String ICC_PLAYBACK_OUTSIDE_HLS_URL = "/vod/center/cameraid/%s%%24%s/substream/1";
|
||||
/* */ public static final int DEVICE_TYPE_NVR = 6;
|
||||
/* */ public static final int DEVICE_TYPE_IPC = 2;
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-common-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevato\\util\CommunityConstants.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+668
@@ -0,0 +1,668 @@
|
||||
/* */ package cn.cloudwalk.elevator.util;
|
||||
/* */
|
||||
/* */ import java.security.Timestamp;
|
||||
/* */ import java.text.DateFormat;
|
||||
/* */ import java.text.ParseException;
|
||||
/* */ import java.text.SimpleDateFormat;
|
||||
/* */ import java.time.DayOfWeek;
|
||||
/* */ import java.time.Instant;
|
||||
/* */ import java.time.LocalDate;
|
||||
/* */ import java.time.LocalDateTime;
|
||||
/* */ import java.time.LocalTime;
|
||||
/* */ import java.time.ZoneOffset;
|
||||
/* */ import java.time.temporal.ChronoField;
|
||||
/* */ import java.time.temporal.TemporalAdjusters;
|
||||
/* */ import java.time.temporal.WeekFields;
|
||||
/* */ import java.util.ArrayList;
|
||||
/* */ import java.util.Calendar;
|
||||
/* */ import java.util.Collections;
|
||||
/* */ import java.util.Date;
|
||||
/* */ import java.util.List;
|
||||
/* */ import org.slf4j.Logger;
|
||||
/* */ import org.slf4j.LoggerFactory;
|
||||
/* */
|
||||
/* */ public class DateUtils {
|
||||
/* 25 */ private static final Logger logger = LoggerFactory.getLogger(DateUtils.class);
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static final long ONE_DAY_LONG = 86400000L;
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static final String YYYYMMDD = "yyyyMMdd";
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static final String STANDARD_FORMAT = "yyyy-MM-dd HH:mm";
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static final String YYYY_MM_DD = "yyyy-MM-dd";
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static final String YYYY_MM_DD_HMS = "yyyy-MM-dd HH:mm:ss";
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static final String HHMMSS = "HH:mm:ss";
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static final String YYYYMM = "yyyyMM";
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static final String YYYYMMDDHHMMSS = "yyyyMMddHHmmss";
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static long getCurrentTime() {
|
||||
/* 67 */ return System.currentTimeMillis();
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static String timestamp2String(Timestamp time, String pattern) {
|
||||
/* 78 */ SimpleDateFormat sdf = new SimpleDateFormat(pattern);
|
||||
/* 79 */ return sdf.format(time.getTimestamp());
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static String formatDate(Date date, String pattern) {
|
||||
/* 90 */ SimpleDateFormat sdf = new SimpleDateFormat(pattern);
|
||||
/* 91 */ return sdf.format(date);
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static int defaultFormat(Date date) {
|
||||
/* 103 */ return Integer.valueOf(formatDate(date, "yyyyMMdd")).intValue();
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static Date defaultFormat(String str) {
|
||||
/* 113 */ SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMdd");
|
||||
/* */ try {
|
||||
/* 115 */ return sdf.parse(str);
|
||||
/* 116 */ } catch (ParseException e) {
|
||||
/* 117 */ logger.error("日期格式转换失败", e);
|
||||
/* 118 */ return null;
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static Date customFormat(String str, String pattern) {
|
||||
/* 129 */ SimpleDateFormat sdf = new SimpleDateFormat(pattern);
|
||||
/* */ try {
|
||||
/* 131 */ return sdf.parse(str);
|
||||
/* 132 */ } catch (ParseException e) {
|
||||
/* 133 */ logger.error("日期格式转换失败", e);
|
||||
/* 134 */ return null;
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static int defaultFormat(long millis) {
|
||||
/* 145 */ Calendar cal = Calendar.getInstance();
|
||||
/* 146 */ cal.setTimeInMillis(millis);
|
||||
/* 147 */ return defaultFormat(cal.getTime());
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static String parseTimestamp(Timestamp time) {
|
||||
/* 158 */ return parseDate(time.getTimestamp());
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static String parseDate(Date date) {
|
||||
/* */ try {
|
||||
/* 170 */ SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMdd");
|
||||
/* 171 */ return sdf.format(date);
|
||||
/* 172 */ } catch (Exception e) {
|
||||
/* 173 */ logger.error("日期格式转换失败", e);
|
||||
/* 174 */ return null;
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static String parseDate(Date date, String partern) {
|
||||
/* */ try {
|
||||
/* 188 */ SimpleDateFormat sdf = new SimpleDateFormat(partern);
|
||||
/* 189 */ return sdf.format(date);
|
||||
/* 190 */ } catch (Exception e) {
|
||||
/* 191 */ logger.error("日期格式转换失败", e);
|
||||
/* 192 */ return null;
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static int getYear() {
|
||||
/* 202 */ Calendar cal = Calendar.getInstance();
|
||||
/* 203 */ cal.setTime(new Date());
|
||||
/* 204 */ return cal.get(1);
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static long getMonthFirstDate(Date date) {
|
||||
/* 213 */ Calendar calendar = Calendar.getInstance();
|
||||
/* 214 */ calendar.setTime(date);
|
||||
/* 215 */ calendar.set(5, 1);
|
||||
/* 216 */ calendar.set(11, 0);
|
||||
/* 217 */ calendar.set(12, 0);
|
||||
/* 218 */ calendar.set(13, 0);
|
||||
/* 219 */ calendar.set(14, 0);
|
||||
/* 220 */ return calendar.getTime().getTime();
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static long getMonthLastDate(Date date) {
|
||||
/* 229 */ Calendar calendar = Calendar.getInstance();
|
||||
/* 230 */ calendar.setTime(date);
|
||||
/* 231 */ calendar.set(5, calendar.getActualMaximum(5));
|
||||
/* 232 */ calendar.set(11, 23);
|
||||
/* 233 */ calendar.set(12, 59);
|
||||
/* 234 */ calendar.set(13, 59);
|
||||
/* 235 */ calendar.set(14, 999);
|
||||
/* 236 */ return calendar.getTime().getTime();
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static Long dateToStamp(String s) {
|
||||
/* 247 */ SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyyMMdd");
|
||||
/* */ try {
|
||||
/* 249 */ Date date = simpleDateFormat.parse(s);
|
||||
/* 250 */ long ts = date.getTime();
|
||||
/* 251 */ return Long.valueOf(ts);
|
||||
/* 252 */ } catch (Exception e) {
|
||||
/* 253 */ logger.error("日期转为时间戳失败", e);
|
||||
/* */
|
||||
/* 255 */ return Long.valueOf(0L);
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static String stampToDate(String s) {
|
||||
/* 266 */ SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
||||
/* 267 */ long lt = (new Long(s)).longValue();
|
||||
/* 268 */ Date date = new Date(lt);
|
||||
/* 269 */ String res = simpleDateFormat.format(date);
|
||||
/* 270 */ return res;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static String getTwoDaysDesc(Integer startTime, Integer endTime) {
|
||||
/* */ String twoDayDesc;
|
||||
/* 281 */ List<Integer> days = new ArrayList<>();
|
||||
/* 282 */ if (null == startTime || null == endTime) {
|
||||
/* 283 */ return "日";
|
||||
/* */ }
|
||||
/* 285 */ DateFormat dateFormat = new SimpleDateFormat("yyyyMMdd");
|
||||
/* */ try {
|
||||
/* 287 */ Date start = dateFormat.parse(String.valueOf(startTime));
|
||||
/* 288 */ Date end = dateFormat.parse(String.valueOf(endTime));
|
||||
/* */
|
||||
/* 290 */ Calendar tempStart = Calendar.getInstance();
|
||||
/* 291 */ tempStart.setTime(start);
|
||||
/* */
|
||||
/* 293 */ Calendar tempEnd = Calendar.getInstance();
|
||||
/* 294 */ tempEnd.setTime(end);
|
||||
/* */
|
||||
/* 296 */ tempEnd.add(5, 1);
|
||||
/* 297 */ while (tempStart.before(tempEnd)) {
|
||||
/* 298 */ days.add(Integer.valueOf(Integer.parseInt(dateFormat.format(tempStart.getTime()))));
|
||||
/* 299 */ tempStart.add(6, 1);
|
||||
/* */ }
|
||||
/* */
|
||||
/* 302 */ } catch (ParseException e) {
|
||||
/* 303 */ logger.error("时间转换失败", e);
|
||||
/* */ }
|
||||
/* */
|
||||
/* 306 */ int dayOfWeek = 7;
|
||||
/* 307 */ if (days.size() > dayOfWeek) {
|
||||
/* 308 */ twoDayDesc = "月";
|
||||
/* 309 */ } else if (days.size() > 1) {
|
||||
/* 310 */ twoDayDesc = "周";
|
||||
/* */ } else {
|
||||
/* */
|
||||
/* 313 */ twoDayDesc = "日";
|
||||
/* */ }
|
||||
/* */
|
||||
/* 316 */ return twoDayDesc;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static Long todayStart() {
|
||||
/* 326 */ Calendar calendar = Calendar.getInstance();
|
||||
/* 327 */ calendar.set(11, 0);
|
||||
/* 328 */ calendar.set(12, 0);
|
||||
/* 329 */ calendar.set(13, 0);
|
||||
/* 330 */ calendar.set(14, 0);
|
||||
/* 331 */ return Long.valueOf(calendar.getTimeInMillis());
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static Long dateToStampTomorrow(String s) {
|
||||
/* 342 */ SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyyMMdd");
|
||||
/* */ try {
|
||||
/* 344 */ Date date = simpleDateFormat.parse(s);
|
||||
/* 345 */ Calendar cal = Calendar.getInstance();
|
||||
/* 346 */ cal.setTime(date);
|
||||
/* 347 */ cal.add(5, 1);
|
||||
/* 348 */ long ts = cal.getTimeInMillis();
|
||||
/* 349 */ return Long.valueOf(ts);
|
||||
/* 350 */ } catch (Exception e) {
|
||||
/* 351 */ logger.error("日期转换失败", e);
|
||||
/* */
|
||||
/* 353 */ return Long.valueOf(0L);
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static Date getDateSubDay(int day) {
|
||||
/* 363 */ Calendar cal = Calendar.getInstance();
|
||||
/* 364 */ cal.setTime(new Date());
|
||||
/* 365 */ cal.add(5, day);
|
||||
/* 366 */ return cal.getTime();
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static Date getDateSubDay(Date date, int day) {
|
||||
/* 376 */ Calendar cal = Calendar.getInstance();
|
||||
/* 377 */ cal.setTime(date);
|
||||
/* 378 */ cal.add(5, day);
|
||||
/* 379 */ return cal.getTime();
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static Long todayStart(Date date) {
|
||||
/* 390 */ Calendar calendar = Calendar.getInstance();
|
||||
/* 391 */ calendar.setTime(date);
|
||||
/* 392 */ calendar.set(11, 0);
|
||||
/* 393 */ calendar.set(12, 0);
|
||||
/* 394 */ calendar.set(13, 0);
|
||||
/* 395 */ calendar.set(14, 0);
|
||||
/* 396 */ return Long.valueOf(calendar.getTimeInMillis());
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static Long todayEnd(Date date) {
|
||||
/* 407 */ Calendar calendar = Calendar.getInstance();
|
||||
/* 408 */ calendar.setTime(date);
|
||||
/* 409 */ calendar.set(11, 23);
|
||||
/* 410 */ calendar.set(12, 59);
|
||||
/* 411 */ calendar.set(13, 59);
|
||||
/* 412 */ calendar.set(14, 999);
|
||||
/* 413 */ return Long.valueOf(calendar.getTimeInMillis());
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static Long todayEnd() {
|
||||
/* 423 */ Calendar calendar = Calendar.getInstance();
|
||||
/* 424 */ calendar.set(11, 23);
|
||||
/* 425 */ calendar.set(12, 59);
|
||||
/* 426 */ calendar.set(13, 59);
|
||||
/* 427 */ calendar.set(14, 999);
|
||||
/* 428 */ return Long.valueOf(calendar.getTimeInMillis());
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static String formatTimeDuration(long duration, int format) {
|
||||
/* 438 */ boolean fu = false;
|
||||
/* 439 */ long fduration = duration;
|
||||
/* 440 */ if (duration < 0L) {
|
||||
/* 441 */ fu = true;
|
||||
/* 442 */ fduration = Math.abs(duration);
|
||||
/* */ }
|
||||
/* 444 */ StringBuilder builder = new StringBuilder();
|
||||
/* */
|
||||
/* 446 */ long sec = fduration / 1000L % 60L;
|
||||
/* */
|
||||
/* 448 */ long min = fduration / 1000L / 60L % 60L;
|
||||
/* */
|
||||
/* 450 */ long hour = fduration / 1000L / 60L / 60L % 24L;
|
||||
/* */
|
||||
/* 452 */ long day = fduration / 1000L / 60L / 60L / 24L;
|
||||
/* */
|
||||
/* 454 */ if (day > 0L && format > 0) {
|
||||
/* 455 */ format--;
|
||||
/* 456 */ builder.append(day).append("天");
|
||||
/* */ }
|
||||
/* 458 */ format--;
|
||||
/* 459 */ if (hour > 0L && format > 0)
|
||||
/* */ {
|
||||
/* 461 */ builder.append(hour).append("小时");
|
||||
/* */ }
|
||||
/* 463 */ format--;
|
||||
/* 464 */ if (min > 0L && format > 0)
|
||||
/* */ {
|
||||
/* 466 */ builder.append(min).append("分钟");
|
||||
/* */ }
|
||||
/* 468 */ format--;
|
||||
/* 469 */ if (sec > 0L && format > 0) {
|
||||
/* 470 */ builder.append(sec).append("秒");
|
||||
/* */ }
|
||||
/* 472 */ if (fu) {
|
||||
/* 473 */ builder.insert(0, "-");
|
||||
/* */ }
|
||||
/* 475 */ return builder.toString();
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static String formatTimeDurationHour(long duration, int format) {
|
||||
/* 480 */ if (duration == 0L) {
|
||||
/* 481 */ return "-";
|
||||
/* */ }
|
||||
/* 483 */ long fduration = Math.abs(duration);
|
||||
/* 484 */ StringBuilder builder = new StringBuilder();
|
||||
/* */
|
||||
/* 486 */ long sec = fduration / 1000L % 60L;
|
||||
/* */
|
||||
/* 488 */ long min = fduration / 1000L / 60L % 60L;
|
||||
/* */
|
||||
/* 490 */ long hour = fduration / 1000L / 60L / 60L;
|
||||
/* 491 */ if (hour > 0L && format > 0) {
|
||||
/* 492 */ builder.append(hour).append("小时");
|
||||
/* */ }
|
||||
/* 494 */ format--;
|
||||
/* 495 */ if (min > 0L && format > 0)
|
||||
/* */ {
|
||||
/* 497 */ builder.append(min).append("分钟");
|
||||
/* */ }
|
||||
/* 499 */ format--;
|
||||
/* 500 */ if (sec > 0L && format > 0) {
|
||||
/* 501 */ builder.append(sec).append("秒");
|
||||
/* */ }
|
||||
/* */
|
||||
/* 504 */ return builder.toString();
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static Date getMonth(Date date, int count) {
|
||||
/* 513 */ Calendar calendar = Calendar.getInstance();
|
||||
/* 514 */ calendar.setTime(date);
|
||||
/* 515 */ int month = calendar.get(2);
|
||||
/* 516 */ calendar.set(2, month - count);
|
||||
/* 517 */ return calendar.getTime();
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static int getYear(Date date) {
|
||||
/* 526 */ Calendar calendar = Calendar.getInstance();
|
||||
/* 527 */ calendar.setTime(date);
|
||||
/* 528 */ return calendar.get(1);
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static int getMonth(Date date) {
|
||||
/* 537 */ Calendar calendar = Calendar.getInstance();
|
||||
/* 538 */ calendar.setTime(date);
|
||||
/* 539 */ return calendar.get(2) + 1;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static Long dateToStampFormat(String s, String format) {
|
||||
/* 550 */ SimpleDateFormat simpleDateFormat = new SimpleDateFormat(format);
|
||||
/* */ try {
|
||||
/* 552 */ Date date = simpleDateFormat.parse(s);
|
||||
/* 553 */ return Long.valueOf(date.getTime());
|
||||
/* 554 */ } catch (Exception e) {
|
||||
/* 555 */ logger.error("日期转换失败", e);
|
||||
/* */
|
||||
/* 557 */ return Long.valueOf(0L);
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static boolean timeIsInRound(String now, String start, String end, String format) {
|
||||
/* */ Date nowTime, beginTime, endTime;
|
||||
/* 570 */ SimpleDateFormat df = new SimpleDateFormat(format);
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ try {
|
||||
/* 576 */ nowTime = df.parse(now);
|
||||
/* 577 */ beginTime = df.parse(start);
|
||||
/* 578 */ endTime = df.parse(end);
|
||||
/* 579 */ } catch (Exception e) {
|
||||
/* 580 */ logger.error("时间格式转换异常,原因=[{}]", e.getMessage(), e);
|
||||
/* 581 */ return false;
|
||||
/* */ }
|
||||
/* */
|
||||
/* 584 */ if (nowTime.getTime() >= beginTime.getTime() && nowTime.getTime() <= endTime.getTime()) {
|
||||
/* 585 */ return true;
|
||||
/* */ }
|
||||
/* 587 */ return false;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static int getDayOfWeek(Date date) {
|
||||
/* 597 */ Calendar calendar = Calendar.getInstance();
|
||||
/* 598 */ calendar.setTime(date);
|
||||
/* 599 */ return calendar.get(7);
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static LocalDateTime millToDate(Long mill) {
|
||||
/* 612 */ return LocalDateTime.ofInstant(Instant.ofEpochMilli(mill.longValue()), ZoneOffset.ofHours(8)); } public static List<StartTimeAndEndTime> getCycle(Integer timeType, int cycleNum) { LocalDateTime nowStartTime, nowEndTime; int i; LocalDateTime nowMonday, nowSunday;
|
||||
/* */ int j;
|
||||
/* */ LocalDateTime nowFirstDay, nowLastDay;
|
||||
/* */ int k;
|
||||
/* 616 */ if (timeType == null) {
|
||||
/* 617 */ return Collections.emptyList();
|
||||
/* */ }
|
||||
/* 619 */ List<StartTimeAndEndTime> timeList = new ArrayList<>(cycleNum);
|
||||
/* */
|
||||
/* 621 */ switch (timeType.intValue()) {
|
||||
/* */ case 0:
|
||||
/* 623 */ nowStartTime = LocalDateTime.of(LocalDate.now(), LocalTime.MIN);
|
||||
/* 624 */ nowEndTime = LocalDateTime.of(LocalDate.now(), LocalTime.MAX);
|
||||
/* 625 */ timeList.add(new StartTimeAndEndTime(Long.valueOf(nowStartTime.toInstant(ZoneOffset.of("+8")).toEpochMilli()), Long.valueOf(nowEndTime.toInstant(ZoneOffset.of("+8")).toEpochMilli()), nowStartTime.getDayOfMonth() + "号"));
|
||||
/* 626 */ for (i = 1; i < cycleNum; i++) {
|
||||
/* 627 */ LocalDateTime firstDay = nowStartTime.minusDays(i);
|
||||
/* 628 */ LocalDateTime lastDay = nowEndTime.minusDays(i);
|
||||
/* 629 */ timeList.add(new StartTimeAndEndTime(Long.valueOf(firstDay.toInstant(ZoneOffset.of("+8")).toEpochMilli()), Long.valueOf(lastDay.toInstant(ZoneOffset.of("+8")).toEpochMilli()), firstDay.getDayOfMonth() + "号"));
|
||||
/* */ }
|
||||
/* */ break;
|
||||
/* */ case 1:
|
||||
/* 633 */ nowMonday = LocalDateTime.of(LocalDate.now(), LocalTime.MIN).with(DayOfWeek.MONDAY);
|
||||
/* 634 */ nowSunday = LocalDateTime.of(LocalDate.now(), LocalTime.MAX).with(DayOfWeek.SUNDAY);
|
||||
/* 635 */ timeList.add(new StartTimeAndEndTime(Long.valueOf(nowMonday.toInstant(ZoneOffset.of("+8")).toEpochMilli()), Long.valueOf(nowSunday.toInstant(ZoneOffset.of("+8")).toEpochMilli()), nowMonday.get(WeekFields.ISO.weekOfWeekBasedYear()) + "周"));
|
||||
/* 636 */ for (j = 1; j < cycleNum; j++) {
|
||||
/* 637 */ LocalDateTime lastMonday = nowMonday.minusWeeks(j);
|
||||
/* 638 */ LocalDateTime lastSunday = nowSunday.minusWeeks(j);
|
||||
/* 639 */ timeList.add(new StartTimeAndEndTime(Long.valueOf(lastMonday.toInstant(ZoneOffset.of("+8")).toEpochMilli()), Long.valueOf(lastSunday.toInstant(ZoneOffset.of("+8")).toEpochMilli()), lastMonday.get(WeekFields.ISO.weekOfWeekBasedYear()) + "周"));
|
||||
/* */ }
|
||||
/* */ break;
|
||||
/* */
|
||||
/* */ case 2:
|
||||
/* 644 */ nowFirstDay = LocalDateTime.of(LocalDate.now(), LocalTime.MIN).with(TemporalAdjusters.firstDayOfMonth());
|
||||
/* 645 */ nowLastDay = LocalDateTime.of(LocalDate.now(), LocalTime.MAX).with(TemporalAdjusters.lastDayOfMonth());
|
||||
/* 646 */ timeList.add(new StartTimeAndEndTime(Long.valueOf(nowFirstDay.toInstant(ZoneOffset.of("+8")).toEpochMilli()), Long.valueOf(nowLastDay.toInstant(ZoneOffset.of("+8")).toEpochMilli()), nowFirstDay.get(ChronoField.MONTH_OF_YEAR) + "月"));
|
||||
/* 647 */ for (k = 1; k < cycleNum; k++) {
|
||||
/* 648 */ LocalDateTime firstDay = LocalDateTime.now().minusMonths(k).with(TemporalAdjusters.firstDayOfMonth()).with(LocalTime.MIN);
|
||||
/* 649 */ LocalDateTime lastDay = LocalDateTime.now().minusMonths(k).with(TemporalAdjusters.lastDayOfMonth()).with(LocalTime.MAX);
|
||||
/* 650 */ timeList.add(new StartTimeAndEndTime(Long.valueOf(firstDay.toInstant(ZoneOffset.of("+8")).toEpochMilli()), Long.valueOf(lastDay.toInstant(ZoneOffset.of("+8")).toEpochMilli()), firstDay.get(ChronoField.MONTH_OF_YEAR) + "月"));
|
||||
/* */ }
|
||||
/* */ break;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* 656 */ return timeList; }
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static void main(String[] args) {
|
||||
/* 660 */ System.out.println(">>>>>>>>>>>>>>" + dateToStampFormat("202002", "yyyyMM"));
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-common-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevato\\util\DateUtils.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+96
@@ -0,0 +1,96 @@
|
||||
/* */ package cn.cloudwalk.elevator.util;
|
||||
/* */
|
||||
/* */ import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
/* */ import com.fasterxml.jackson.core.JsonProcessingException;
|
||||
/* */ import com.fasterxml.jackson.core.type.TypeReference;
|
||||
/* */ import com.fasterxml.jackson.databind.DeserializationFeature;
|
||||
/* */ import com.fasterxml.jackson.databind.JavaType;
|
||||
/* */ import com.fasterxml.jackson.databind.Module;
|
||||
/* */ import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
/* */ import com.fasterxml.jackson.databind.SerializationFeature;
|
||||
/* */ import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
|
||||
/* */ import java.io.IOException;
|
||||
/* */ import java.util.ArrayList;
|
||||
/* */ import java.util.List;
|
||||
/* */ import org.slf4j.Logger;
|
||||
/* */ import org.slf4j.LoggerFactory;
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public class JsonUtils
|
||||
/* */ {
|
||||
/* 25 */ private static final Logger log = LoggerFactory.getLogger(JsonUtils.class);
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* 31 */ private static final Logger logger = LoggerFactory.getLogger(DateUtils.class);
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static String toJson(Object obj) {
|
||||
/* 35 */ ObjectMapper mapper = objectMapper();
|
||||
/* */ try {
|
||||
/* 37 */ return mapper.writeValueAsString(obj);
|
||||
/* 38 */ } catch (JsonProcessingException e) {
|
||||
/* 39 */ logger.warn("json parase exception :{}", e.getMessage());
|
||||
/* */
|
||||
/* 41 */ return null;
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* */ public static <T> T toObj(String json, Class<T> clazz) {
|
||||
/* 45 */ ObjectMapper mapper = objectMapper();
|
||||
/* 46 */ T value = null;
|
||||
/* */ try {
|
||||
/* 48 */ value = (T)mapper.readValue(json, clazz);
|
||||
/* 49 */ } catch (IOException e) {
|
||||
/* 50 */ logger.warn("json parase exception :{}", e.getMessage());
|
||||
/* */ }
|
||||
/* 52 */ return value;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static <T> T toObj(String json, TypeReference<T> tTypeReference) {
|
||||
/* 57 */ ObjectMapper mapper = objectMapper();
|
||||
/* 58 */ T value = null;
|
||||
/* */ try {
|
||||
/* 60 */ value = (T)mapper.readValue(json, tTypeReference);
|
||||
/* 61 */ } catch (IOException e) {
|
||||
/* 62 */ logger.warn("json parase exception :{}", e.getMessage());
|
||||
/* */ }
|
||||
/* 64 */ return value;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static <T> List<T> toObjList(String json, Class<T> clazz) {
|
||||
/* 69 */ ObjectMapper mapper = objectMapper();
|
||||
/* 70 */ List<T> value = null;
|
||||
/* */ try {
|
||||
/* 72 */ JavaType jt = mapper.getTypeFactory().constructParametricType(ArrayList.class, new Class[] { clazz });
|
||||
/* 73 */ value = (List<T>)mapper.readValue(json, jt);
|
||||
/* 74 */ } catch (IOException e) {
|
||||
/* 75 */ logger.warn("json parase exception :{}", e.getMessage());
|
||||
/* */ }
|
||||
/* 77 */ return value;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static ObjectMapper objectMapper() {
|
||||
/* 83 */ ObjectMapper mapper = new ObjectMapper();
|
||||
/* 84 */ mapper.registerModule((Module)new JavaTimeModule());
|
||||
/* 85 */ mapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS);
|
||||
/* 86 */ mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
|
||||
/* 87 */ mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL);
|
||||
/* 88 */ return mapper;
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-common-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevato\\util\JsonUtils.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+239
@@ -0,0 +1,239 @@
|
||||
/* */ package cn.cloudwalk.elevator.util;
|
||||
/* */
|
||||
/* */ import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
/* */ import com.fasterxml.jackson.core.type.TypeReference;
|
||||
/* */ import com.fasterxml.jackson.databind.DeserializationFeature;
|
||||
/* */ import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
/* */ import java.net.URI;
|
||||
/* */ import java.util.List;
|
||||
/* */ import javax.annotation.PostConstruct;
|
||||
/* */ import org.slf4j.Logger;
|
||||
/* */ import org.slf4j.LoggerFactory;
|
||||
/* */ import org.springframework.http.HttpEntity;
|
||||
/* */ import org.springframework.http.HttpHeaders;
|
||||
/* */ import org.springframework.http.HttpMethod;
|
||||
/* */ import org.springframework.http.HttpStatus;
|
||||
/* */ import org.springframework.http.ResponseEntity;
|
||||
/* */ import org.springframework.http.client.ClientHttpRequestFactory;
|
||||
/* */ import org.springframework.http.client.SimpleClientHttpRequestFactory;
|
||||
/* */ import org.springframework.http.converter.HttpMessageConverter;
|
||||
/* */ import org.springframework.http.converter.json.MappingJackson2HttpMessageConverter;
|
||||
/* */ import org.springframework.stereotype.Component;
|
||||
/* */ import org.springframework.util.MultiValueMap;
|
||||
/* */ import org.springframework.web.client.RestTemplate;
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ @Component
|
||||
/* */ public class RestTemplateUtil
|
||||
/* */ {
|
||||
/* 35 */ private static final Logger logger = LoggerFactory.getLogger(DateUtils.class);
|
||||
/* */ private static RestTemplate restTemplate;
|
||||
/* */
|
||||
/* */ private static class SingletonRestTemplate
|
||||
/* */ {
|
||||
/* 40 */ static SimpleClientHttpRequestFactory requestFactory = new SimpleClientHttpRequestFactory();
|
||||
/* */
|
||||
/* */ static {
|
||||
/* 43 */ requestFactory.setConnectTimeout(10000);
|
||||
/* 44 */ requestFactory.setReadTimeout(10000);
|
||||
/* */ }
|
||||
/* */
|
||||
/* 47 */ static final RestTemplate INSTANCE = new RestTemplate((ClientHttpRequestFactory)requestFactory);
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ @PostConstruct
|
||||
/* */ public void getInstance() {
|
||||
/* 56 */ RestTemplate restTemplate = SingletonRestTemplate.INSTANCE;
|
||||
/* 57 */ List<HttpMessageConverter<?>> converterList = restTemplate.getMessageConverters();
|
||||
/* 58 */ HttpMessageConverter<?> converterTarget = null;
|
||||
/* 59 */ for (HttpMessageConverter<?> item : converterList) {
|
||||
/* 60 */ if (MappingJackson2HttpMessageConverter.class == item.getClass()) {
|
||||
/* 61 */ converterTarget = item;
|
||||
/* */ break;
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* 65 */ if (null != converterTarget) {
|
||||
/* 66 */ converterList.remove(converterTarget);
|
||||
/* */ }
|
||||
/* 68 */ ObjectMapper objectMapper = new ObjectMapper();
|
||||
/* 69 */ objectMapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
|
||||
/* 70 */ objectMapper.setSerializationInclusion(JsonInclude.Include.NON_NULL);
|
||||
/* */
|
||||
/* 72 */ converterList.add(new MappingJackson2HttpMessageConverter(objectMapper));
|
||||
/* 73 */ RestTemplateUtil.restTemplate = restTemplate;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static String get(String url) {
|
||||
/* 83 */ HttpHeaders headers = new HttpHeaders();
|
||||
/* 84 */ headers.add("Accept", "application/json");
|
||||
/* 85 */ headers.add("Content-Encoding", "UTF-8");
|
||||
/* 86 */ headers.add("Content-Type", "application/json; charset=UTF-8");
|
||||
/* 87 */ HttpEntity<String> requestEntity = new HttpEntity(null, (MultiValueMap)headers);
|
||||
/* */
|
||||
/* 89 */ ResponseEntity<String> response = restTemplate.exchange(url, HttpMethod.GET, requestEntity, String.class, new Object[0]);
|
||||
/* 90 */ return (String)response.getBody();
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static String get(URI url, HttpHeaders headers) {
|
||||
/* 99 */ HttpEntity<String> requestEntity = new HttpEntity(null, (MultiValueMap)headers);
|
||||
/* */
|
||||
/* 101 */ ResponseEntity<String> response = restTemplate.exchange(url, HttpMethod.GET, requestEntity, String.class);
|
||||
/* 102 */ return (String)response.getBody();
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static <T> T get(URI url, HttpHeaders headers, Class<T> responseType) {
|
||||
/* 111 */ HttpEntity<Object> requestEntity = new HttpEntity(null, (MultiValueMap)headers);
|
||||
/* 112 */ T resultEntity = null;
|
||||
/* */
|
||||
/* */ try {
|
||||
/* 115 */ ResponseEntity<T> result = restTemplate.exchange(url, HttpMethod.GET, requestEntity, responseType);
|
||||
/* 116 */ resultEntity = getResultEntity(result, url);
|
||||
/* 117 */ } catch (Exception e) {
|
||||
/* 118 */ logger.warn(">>>>>>>>>>>>>>>>>【{}】接口调用失败,错误信息", url, e);
|
||||
/* */ }
|
||||
/* 120 */ return resultEntity;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static <T> T post(URI url, Object data, HttpHeaders headers, Class<T> responseType) {
|
||||
/* 131 */ HttpEntity<Object> requestEntity = new HttpEntity(data, (MultiValueMap)headers);
|
||||
/* 132 */ T resultEntity = null;
|
||||
/* */ try {
|
||||
/* 134 */ logger.info(">>>>>>>>>>>>>>>>>开始请求接口:{},payload:{},", url.toString(), data);
|
||||
/* 135 */ ResponseEntity<T> result = restTemplate.postForEntity(url, requestEntity, responseType);
|
||||
/* 136 */ resultEntity = getResultEntity(result, url);
|
||||
/* 137 */ } catch (Exception e) {
|
||||
/* 138 */ logger.warn(">>>>>>>>>>>>>>>>>接口调用失败,错误信息:{}", e.getMessage());
|
||||
/* */ }
|
||||
/* 140 */ return resultEntity;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static <T> T postTf(URI url, Object data, HttpHeaders headers, Class<T> responseType) throws Exception {
|
||||
/* 151 */ HttpEntity<Object> requestEntity = new HttpEntity(data, (MultiValueMap)headers);
|
||||
/* 152 */ T resultEntity = null;
|
||||
/* */ try {
|
||||
/* 154 */ logger.info(">>>>>>>>>>>>>>>>>开始请求接口:{},payload:{},", url.toString(), data);
|
||||
/* 155 */ ResponseEntity<T> result = restTemplate.postForEntity(url, requestEntity, responseType);
|
||||
/* 156 */ resultEntity = getTfResultEntity(result, url);
|
||||
/* 157 */ } catch (Exception e) {
|
||||
/* 158 */ logger.warn(">>>>>>>>>>>>>>>>>接口调用失败,错误信息:{}", e.getMessage());
|
||||
/* 159 */ throw e;
|
||||
/* */ }
|
||||
/* 161 */ return resultEntity;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public static <T> T post(URI url, Object data, HttpHeaders headers, TypeReference<T> tTypeReference) {
|
||||
/* 165 */ HttpEntity<Object> requestEntity = new HttpEntity(data, (MultiValueMap)headers);
|
||||
/* 166 */ T resultEntity = null;
|
||||
/* */
|
||||
/* */ try {
|
||||
/* 169 */ ResponseEntity<String> result = restTemplate.postForEntity(url, requestEntity, String.class);
|
||||
/* 170 */ if (HttpStatus.OK == result.getStatusCode()) {
|
||||
/* */
|
||||
/* 172 */ if (logger.isDebugEnabled()) {
|
||||
/* 173 */ logger.debug("接口返回值:{}", JsonUtils.toJson(result.getBody()));
|
||||
/* */ }
|
||||
/* 175 */ return JsonUtils.toObj((String)result.getBody(), tTypeReference);
|
||||
/* */ }
|
||||
/* 177 */ logger.info(">>>>>>>>>>>>>>>>>接口调用失败,状态码:{},错误原因:{}", result.getStatusCode(),
|
||||
/* 178 */ JsonUtils.toJson(result.getBody()));
|
||||
/* */ }
|
||||
/* 180 */ catch (Exception e) {
|
||||
/* 181 */ logger.warn(">>>>>>>>>>>>>>>>>接口调用失败,错误信息:{}", e.getMessage());
|
||||
/* */ }
|
||||
/* 183 */ return resultEntity;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ private static <T> T getTfResultEntity(ResponseEntity<T> result, URI url) throws Exception {
|
||||
/* 196 */ HttpStatus statusCode = result.getStatusCode();
|
||||
/* 197 */ if (HttpStatus.OK == statusCode) {
|
||||
/* 198 */ logger.info(">>>>>>>>>>>>>>>>>接口:{} 调用成功", url);
|
||||
/* 199 */ if (logger.isDebugEnabled()) {
|
||||
/* 200 */ logger.debug("接口返回值:{}", JsonUtils.toJson(result.getBody()));
|
||||
/* */ }
|
||||
/* 202 */ return (T)result.getBody();
|
||||
/* */ }
|
||||
/* 204 */ logger.info(">>>>>>>>>>>>>>>>>接口调用失败,状态码:{},错误原因:{}", statusCode,
|
||||
/* 205 */ JsonUtils.toJson(result.getBody()));
|
||||
/* 206 */ if (HttpStatus.UNAUTHORIZED == statusCode) {
|
||||
/* 207 */ throw new Exception(statusCode.toString());
|
||||
/* */ }
|
||||
/* 209 */ return null;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ private static <T> T getResultEntity(ResponseEntity<T> result, URI url) {
|
||||
/* 222 */ if (HttpStatus.OK == result.getStatusCode()) {
|
||||
/* 223 */ logger.info(">>>>>>>>>>>>>>>>>接口:{} 调用成功", url);
|
||||
/* 224 */ if (logger.isDebugEnabled()) {
|
||||
/* 225 */ logger.debug("接口返回值:{}", JsonUtils.toJson(result.getBody()));
|
||||
/* */ }
|
||||
/* 227 */ return (T)result.getBody();
|
||||
/* */ }
|
||||
/* 229 */ logger.info(">>>>>>>>>>>>>>>>>接口调用失败,状态码:{},错误原因:{}", result.getStatusCode(),
|
||||
/* 230 */ JsonUtils.toJson(result.getBody()));
|
||||
/* 231 */ return null;
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-common-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevato\\util\RestTemplateUtil.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+49
@@ -0,0 +1,49 @@
|
||||
/* */ package cn.cloudwalk.elevator.util;
|
||||
/* */
|
||||
/* */ public class StartTimeAndEndTime
|
||||
/* */ {
|
||||
/* */ public StartTimeAndEndTime(Long startTime, Long endTime, String currentTime) {
|
||||
/* 6 */ this.startTime = startTime;
|
||||
/* 7 */ this.endTime = endTime;
|
||||
/* 8 */ this.currentTime = currentTime;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ private Long startTime;
|
||||
/* */
|
||||
/* */ private Long endTime;
|
||||
/* */
|
||||
/* */ private String currentTime;
|
||||
/* */
|
||||
/* */
|
||||
/* */ public Long getStartTime() {
|
||||
/* 21 */ return this.startTime;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setStartTime(Long startTime) {
|
||||
/* 25 */ this.startTime = startTime;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public Long getEndTime() {
|
||||
/* 29 */ return this.endTime;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setEndTime(Long endTime) {
|
||||
/* 33 */ this.endTime = endTime;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getCurrentTime() {
|
||||
/* 37 */ return this.currentTime;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setCurrentTime(String currentTime) {
|
||||
/* 41 */ this.currentTime = currentTime;
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-common-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevato\\util\StartTimeAndEndTime.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+5521
File diff suppressed because it is too large
Load Diff
+38
@@ -0,0 +1,38 @@
|
||||
/* */ package cn.cloudwalk.elevator.util;
|
||||
/* */
|
||||
/* */ import java.util.Set;
|
||||
/* */ import java.util.UUID;
|
||||
/* */ import java.util.concurrent.ConcurrentHashMap;
|
||||
/* */ import java.util.function.Function;
|
||||
/* */ import java.util.function.Predicate;
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public class ToolUtil
|
||||
/* */ {
|
||||
/* */ public static String generateUUID() {
|
||||
/* 17 */ String uuid = UUID.randomUUID().toString();
|
||||
/* */
|
||||
/* 19 */ return uuid.replaceAll("-", "");
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static <T> Predicate<T> distinctByKey(Function<? super T, ?> keyExtractor) {
|
||||
/* 29 */ Set<Object> seen = ConcurrentHashMap.newKeySet();
|
||||
/* 30 */ return t -> seen.add(keyExtractor.apply(t));
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-common-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevato\\util\ToolUtil.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
Reference in New Issue
Block a user