fix: relocate cwos-portal decompiled output to correct path; remove nested directory

Former-commit-id: dc30d42a8c55ed8b2382a41dc2434233fbed9930
This commit is contained in:
反编译工作区
2026-04-29 12:09:48 +08:00
parent ea8e492076
commit e8672a3c7b
1759 changed files with 547735 additions and 280 deletions
@@ -0,0 +1,87 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.cloud.context.CloudwalkSessionContextHolder
* cn.cloudwalk.cloud.context.CloudwalkSessionObject
* cn.cloudwalk.elevator.config.FeignThreadLocalUtil
* feign.RequestInterceptor
* feign.RequestTemplate
* javax.servlet.http.HttpServletRequest
* org.apache.commons.lang3.StringUtils
* org.slf4j.Logger
* org.slf4j.LoggerFactory
* org.springframework.beans.factory.annotation.Autowired
* org.springframework.context.annotation.Configuration
* org.springframework.web.context.request.RequestContextHolder
* org.springframework.web.context.request.ServletRequestAttributes
*/
package cn.cloudwalk.elevator;
import cn.cloudwalk.cloud.context.CloudwalkSessionContextHolder;
import cn.cloudwalk.cloud.context.CloudwalkSessionObject;
import cn.cloudwalk.elevator.config.FeignThreadLocalUtil;
import feign.RequestInterceptor;
import feign.RequestTemplate;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.context.request.RequestContextHolder;
import org.springframework.web.context.request.ServletRequestAttributes;
@Configuration
public class AcsFeignConfiguration
implements RequestInterceptor {
protected final Logger logger = LoggerFactory.getLogger(AcsFeignConfiguration.class);
@Autowired
private CloudwalkSessionContextHolder cloudwalkSessionContextHolder;
public void apply(RequestTemplate requestTemplate) {
Map map = FeignThreadLocalUtil.get();
if (map != null && !map.isEmpty()) {
requestTemplate.header("platformuserid", new String[]{(String)map.get("platformuserid")});
requestTemplate.header("loginid", new String[]{(String)map.get("loginid")});
requestTemplate.header("businessid", new String[]{(String)map.get("businessid")});
requestTemplate.header("username", new String[]{(String)map.get("username")});
requestTemplate.header("applicationid", new String[]{(String)map.get("applicationid")});
requestTemplate.header("authorization", new String[]{(String)map.get("authorization")});
this.logger.info("feign\u8c03\u7528\u914d\u7f6eheader\u53c2\u6570, businessId={}, threadId={}", requestTemplate.headers().get("businessid"), (Object)Thread.currentThread().getId());
} else {
Map headerMap = requestTemplate.headers();
ServletRequestAttributes attributes = (ServletRequestAttributes)RequestContextHolder.getRequestAttributes();
if (null != attributes) {
HttpServletRequest request = attributes.getRequest();
if (!headerMap.containsKey("platformuserid")) {
requestTemplate.header("platformuserid", new String[]{request.getHeader("platformuserid")});
}
if (!headerMap.containsKey("loginid")) {
requestTemplate.header("loginid", new String[]{request.getHeader("loginid")});
}
if (!headerMap.containsKey("businessid")) {
requestTemplate.header("businessid", new String[]{request.getHeader("businessid")});
}
if (!headerMap.containsKey("username")) {
requestTemplate.header("username", new String[]{request.getHeader("username")});
}
if (!headerMap.containsKey("applicationid")) {
requestTemplate.header("applicationid", new String[]{request.getHeader("applicationid")});
}
if (!headerMap.containsKey("authorization")) {
requestTemplate.header("authorization", new String[]{request.getHeader("authorization")});
}
CloudwalkSessionObject session = this.cloudwalkSessionContextHolder.getSession();
if (StringUtils.isBlank((CharSequence)request.getHeader("businessid")) && session != null) {
requestTemplate.header("businessid", new String[]{session.getCompany().getCompanyId()});
}
if (StringUtils.isBlank((CharSequence)request.getHeader("applicationid")) && session != null) {
requestTemplate.header("applicationid", new String[]{session.getApplicationId()});
}
}
}
}
}
@@ -0,0 +1,44 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.event.EnableCloudwalkEvent
* com.github.pagehelper.autoconfigure.PageHelperAutoConfiguration
* org.mybatis.spring.annotation.MapperScan
* org.springframework.boot.Banner$Mode
* org.springframework.boot.SpringApplication
* org.springframework.boot.autoconfigure.SpringBootApplication
* org.springframework.cloud.netflix.feign.EnableFeignClients
* org.springframework.context.annotation.ComponentScan
* org.springframework.context.annotation.EnableAspectJAutoProxy
* org.springframework.scheduling.annotation.EnableAsync
*/
package cn.cloudwalk.elevator;
import cn.cloudwalk.event.EnableCloudwalkEvent;
import com.github.pagehelper.autoconfigure.PageHelperAutoConfiguration;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.Banner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.scheduling.annotation.EnableAsync;
@SpringBootApplication(exclude={PageHelperAutoConfiguration.class})
@EnableFeignClients(basePackages={"cn.cloudwalk.**"})
@MapperScan(value={"cn.cloudwalk.elevator.**.mapper"})
@ComponentScan(basePackages={"cn.cloudwalk.**"})
@EnableAsync
@EnableCloudwalkEvent
@EnableAspectJAutoProxy(exposeProxy=true)
public class AppApplication {
public static void main(String[] args) {
System.out.println("[\u8f7b\u821f\u5e73\u53f0]-[ninca-crk-access-control] \u5f00\u59cb\u542f\u52a8...");
SpringApplication app = new SpringApplication(new Object[]{AppApplication.class});
app.setBannerMode(Banner.Mode.OFF);
app.run(args);
System.out.println("[\u8f7b\u821f\u5e73\u53f0]-[ninca-crk-access-control] \u542f\u52a8\u5b8c\u6210...");
}
}
@@ -0,0 +1,61 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.elevator.util.DateUtils
* com.google.common.collect.Range
* org.apache.shardingsphere.api.sharding.standard.PreciseShardingAlgorithm
* org.apache.shardingsphere.api.sharding.standard.PreciseShardingValue
* org.apache.shardingsphere.api.sharding.standard.RangeShardingAlgorithm
* org.apache.shardingsphere.api.sharding.standard.RangeShardingValue
* org.springframework.util.CollectionUtils
*/
package cn.cloudwalk.elevator;
import cn.cloudwalk.elevator.util.DateUtils;
import com.google.common.collect.Range;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Date;
import org.apache.shardingsphere.api.sharding.standard.PreciseShardingAlgorithm;
import org.apache.shardingsphere.api.sharding.standard.PreciseShardingValue;
import org.apache.shardingsphere.api.sharding.standard.RangeShardingAlgorithm;
import org.apache.shardingsphere.api.sharding.standard.RangeShardingValue;
import org.springframework.util.CollectionUtils;
public class YearlyShardingAlgorithm
implements PreciseShardingAlgorithm<Long>,
RangeShardingAlgorithm<Long> {
public String doSharding(Collection<String> availableTargetNames, PreciseShardingValue<Long> shardingValue) {
Long time = (Long)shardingValue.getValue();
String suffix = DateUtils.formatDate((Date)new Date(time), (String)"yyyy");
String logicTableName = shardingValue.getLogicTableName();
String actualTableName = logicTableName + "_" + suffix;
if (!availableTargetNames.contains(actualTableName)) {
// empty if block
}
return actualTableName;
}
public Collection<String> doSharding(Collection<String> availableTargetNames, RangeShardingValue<Long> shardingValue) {
ArrayList<String> availables = new ArrayList<String>();
Range valueRange = shardingValue.getValueRange();
if (!CollectionUtils.isEmpty(availableTargetNames)) {
Integer lowerBoundYear = Integer.MIN_VALUE;
Integer upperBoundYear = Integer.MAX_VALUE;
if (valueRange.hasLowerBound()) {
lowerBoundYear = Integer.parseInt(DateUtils.formatDate((Date)new Date((Long)valueRange.lowerEndpoint()), (String)"YYYY"));
}
if (valueRange.hasUpperBound()) {
upperBoundYear = Integer.parseInt(DateUtils.formatDate((Date)new Date((Long)valueRange.upperEndpoint()), (String)"YYYY"));
}
for (String targetTable : availableTargetNames) {
Integer tableNameSuffix = Integer.parseInt(targetTable.substring(targetTable.lastIndexOf(95) + 1, targetTable.lastIndexOf(95) + 5));
if (tableNameSuffix.compareTo(lowerBoundYear) < 0 || tableNameSuffix.compareTo(upperBoundYear) > 0) continue;
availables.add(targetTable);
}
}
return availables;
}
}
@@ -0,0 +1,15 @@
/*
* Decompiled with CFR 0.152.
*/
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(value={ElementType.FIELD})
@Retention(value=RetentionPolicy.RUNTIME)
public @interface DavinciPic {
}
@@ -0,0 +1,67 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* com.fasterxml.jackson.annotation.JsonAutoDetect$Visibility
* com.fasterxml.jackson.annotation.PropertyAccessor
* com.fasterxml.jackson.databind.ObjectMapper
* com.fasterxml.jackson.databind.ObjectMapper$DefaultTyping
* org.springframework.context.annotation.Bean
* org.springframework.context.annotation.Configuration
* org.springframework.context.annotation.Primary
* org.springframework.data.redis.connection.RedisConnectionFactory
* org.springframework.data.redis.core.RedisTemplate
* org.springframework.data.redis.serializer.Jackson2JsonRedisSerializer
* org.springframework.data.redis.serializer.RedisSerializer
* org.springframework.data.redis.serializer.StringRedisSerializer
*/
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(value={"redisTemplate"})
public RedisTemplate<Object, Object> redisTemplate(RedisConnectionFactory redisConnectionFactory) {
RedisTemplate redisTemplate = new RedisTemplate();
redisTemplate.setConnectionFactory(redisConnectionFactory);
StringRedisSerializer stringRedisSerializer = new StringRedisSerializer();
Jackson2JsonRedisSerializer jackson2JsonRedisSerializer = new Jackson2JsonRedisSerializer(Object.class);
ObjectMapper objectMapper = new ObjectMapper();
objectMapper.setVisibility(PropertyAccessor.ALL, JsonAutoDetect.Visibility.ANY);
objectMapper.enableDefaultTyping(ObjectMapper.DefaultTyping.NON_FINAL);
jackson2JsonRedisSerializer.setObjectMapper(objectMapper);
redisTemplate.setValueSerializer((RedisSerializer)jackson2JsonRedisSerializer);
redisTemplate.setKeySerializer((RedisSerializer)stringRedisSerializer);
redisTemplate.afterPropertiesSet();
return redisTemplate;
}
}
@@ -0,0 +1,35 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.client.cwoscomponent.intelligent.sysetting.param.DeviceAreaTreeParam
* cn.cloudwalk.client.cwoscomponent.intelligent.sysetting.result.AreaTreeResult
* cn.cloudwalk.client.cwoscomponent.intelligent.sysetting.service.SysettingAreaService
* cn.cloudwalk.cloud.context.CloudwalkCallContext
* cn.cloudwalk.cloud.result.CloudwalkResult
* org.springframework.cache.annotation.Cacheable
* org.springframework.stereotype.Service
*/
package cn.cloudwalk.elevator.cacheable;
import cn.cloudwalk.client.cwoscomponent.intelligent.sysetting.param.DeviceAreaTreeParam;
import cn.cloudwalk.client.cwoscomponent.intelligent.sysetting.result.AreaTreeResult;
import cn.cloudwalk.client.cwoscomponent.intelligent.sysetting.service.SysettingAreaService;
import cn.cloudwalk.cloud.context.CloudwalkCallContext;
import cn.cloudwalk.cloud.result.CloudwalkResult;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;
@Service
public class AcsAreaTreeCacheableService {
@Resource
private SysettingAreaService sysettingAreaService;
@Cacheable(cacheNames={"ACS_AreaTreeCache"}, key="T(cn.cloudwalk.elevator.cache.CacheOverrideConfig).CACHE_KEY_ACS_AREA_TREE_PREFIX + #param.businessId")
public CloudwalkResult<List<AreaTreeResult>> tree(DeviceAreaTreeParam param, CloudwalkCallContext context) {
return this.sysettingAreaService.tree(param, context);
}
}
@@ -0,0 +1,22 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.cloud.exception.ServiceException
*/
package cn.cloudwalk.elevator.codeElevatorArea.dao;
import cn.cloudwalk.cloud.exception.ServiceException;
import cn.cloudwalk.elevator.codeElevatorArea.dto.AcsElevatorCodeDTO;
import cn.cloudwalk.elevator.codeElevatorArea.dto.AcsElevatorCodeResultDTO;
public interface AcsElevatorCodeDao {
public Integer insertNew(AcsElevatorCodeDTO var1) throws ServiceException;
public Integer updateOld(AcsElevatorCodeDTO var1) throws ServiceException;
public AcsElevatorCodeResultDTO get(AcsElevatorCodeDTO var1);
public AcsElevatorCodeResultDTO getFirstByParentId(String var1);
}
@@ -0,0 +1,52 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.cloud.entity.CloudwalkBaseTimes
*/
package cn.cloudwalk.elevator.codeElevatorArea.dto;
import cn.cloudwalk.cloud.entity.CloudwalkBaseTimes;
import java.io.Serializable;
public class AcsElevatorCodeDTO
extends CloudwalkBaseTimes
implements Serializable {
private String zoneId;
private String code;
private String parentId;
private Integer isFirst;
public String getZoneId() {
return this.zoneId;
}
public void setZoneId(String zoneId) {
this.zoneId = zoneId;
}
public String getCode() {
return this.code;
}
public void setCode(String code) {
this.code = code;
}
public Integer getIsFirst() {
return this.isFirst;
}
public void setIsFirst(Integer isFirst) {
this.isFirst = isFirst;
}
public String getParentId() {
return this.parentId;
}
public void setParentId(String parentId) {
this.parentId = parentId;
}
}
@@ -0,0 +1,62 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.elevator.codeElevatorArea.dto;
public class AcsElevatorCodeQueryDTO {
private String zoneId;
private String id;
private String zoneName;
private String zoneType;
private String code;
private Integer isFirst;
public String getZoneId() {
return this.zoneId;
}
public void setZoneId(String zoneId) {
this.zoneId = zoneId;
}
public String getCode() {
return this.code;
}
public void setCode(String code) {
this.code = code;
}
public String getZoneName() {
return this.zoneName;
}
public void setZoneName(String zoneName) {
this.zoneName = zoneName;
}
public String getZoneType() {
return this.zoneType;
}
public void setZoneType(String zoneType) {
this.zoneType = zoneType;
}
public String getId() {
return this.id;
}
public void setId(String id) {
this.id = id;
}
public Integer getIsFirst() {
return this.isFirst;
}
public void setIsFirst(Integer isFirst) {
this.isFirst = isFirst;
}
}
@@ -0,0 +1,35 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.elevator.codeElevatorArea.dto;
public class AcsElevatorCodeResultDTO {
private String zoneId;
private String code;
private Integer isFirst;
public String getZoneId() {
return this.zoneId;
}
public void setZoneId(String zoneId) {
this.zoneId = zoneId;
}
public String getCode() {
return this.code;
}
public void setCode(String code) {
this.code = code;
}
public Integer getIsFirst() {
return this.isFirst;
}
public void setIsFirst(Integer isFirst) {
this.isFirst = isFirst;
}
}
@@ -0,0 +1,44 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.cloud.exception.ServiceException
* org.springframework.stereotype.Repository
*/
package cn.cloudwalk.elevator.codeElevatorArea.impl;
import cn.cloudwalk.cloud.exception.ServiceException;
import cn.cloudwalk.elevator.codeElevatorArea.dao.AcsElevatorCodeDao;
import cn.cloudwalk.elevator.codeElevatorArea.dto.AcsElevatorCodeDTO;
import cn.cloudwalk.elevator.codeElevatorArea.dto.AcsElevatorCodeResultDTO;
import cn.cloudwalk.elevator.codeElevatorArea.mapper.AcsElevatorCodeMapper;
import javax.annotation.Resource;
import org.springframework.stereotype.Repository;
@Repository
public class AcsElevatorCodeDaoImpl
implements AcsElevatorCodeDao {
@Resource
private AcsElevatorCodeMapper acsElevatorCodeMapper;
@Override
public Integer insertNew(AcsElevatorCodeDTO dto) throws ServiceException {
return this.acsElevatorCodeMapper.insertNew(dto);
}
@Override
public Integer updateOld(AcsElevatorCodeDTO dto) throws ServiceException {
return this.acsElevatorCodeMapper.updateOld(dto);
}
@Override
public AcsElevatorCodeResultDTO get(AcsElevatorCodeDTO dto) {
return this.acsElevatorCodeMapper.get(dto);
}
@Override
public AcsElevatorCodeResultDTO getFirstByParentId(String parentId) {
return this.acsElevatorCodeMapper.getFirstByParentId(parentId);
}
}
@@ -0,0 +1,69 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.cloud.exception.ServiceException
* cn.cloudwalk.cloud.utils.BeanCopyUtils
* cn.cloudwalk.elevator.codeElevatorArea.dao.AcsElevatorCodeDao
* cn.cloudwalk.elevator.codeElevatorArea.dto.AcsElevatorCodeDTO
* cn.cloudwalk.elevator.codeElevatorArea.dto.AcsElevatorCodeResultDTO
* org.slf4j.Logger
* org.slf4j.LoggerFactory
* org.springframework.stereotype.Repository
* org.springframework.util.ObjectUtils
*/
package cn.cloudwalk.elevator.codeElevatorArea.impl;
import cn.cloudwalk.cloud.exception.ServiceException;
import cn.cloudwalk.cloud.utils.BeanCopyUtils;
import cn.cloudwalk.elevator.codeElevatorArea.dao.AcsElevatorCodeDao;
import cn.cloudwalk.elevator.codeElevatorArea.dto.AcsElevatorCodeDTO;
import cn.cloudwalk.elevator.codeElevatorArea.dto.AcsElevatorCodeResultDTO;
import cn.cloudwalk.elevator.codeElevatorArea.param.AcsElevatorCodeParam;
import cn.cloudwalk.elevator.codeElevatorArea.service.AcsElevatorCodeService;
import javax.annotation.Resource;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Repository;
import org.springframework.util.ObjectUtils;
@Repository
public class AcsElevatorCodeServiceImpl
implements AcsElevatorCodeService {
@Resource
private AcsElevatorCodeDao acsElevatorCodeDao;
protected final Logger logger = LoggerFactory.getLogger(this.getClass());
@Override
public Integer insertNew(AcsElevatorCodeParam param) throws ServiceException {
AcsElevatorCodeDTO dto = (AcsElevatorCodeDTO)BeanCopyUtils.copyProperties((Object)param, AcsElevatorCodeDTO.class);
Long createTime = System.currentTimeMillis();
dto.setCreateTime(createTime);
dto.setLastUpdateTime(createTime);
return this.acsElevatorCodeDao.insertNew(dto);
}
@Override
public Integer updateOld(AcsElevatorCodeParam param) throws ServiceException {
AcsElevatorCodeDTO dto = (AcsElevatorCodeDTO)BeanCopyUtils.copyProperties((Object)param, AcsElevatorCodeDTO.class);
Long nowTime = System.currentTimeMillis();
dto.setLastUpdateTime(nowTime);
return this.acsElevatorCodeDao.updateOld(dto);
}
@Override
public AcsElevatorCodeResultDTO get(AcsElevatorCodeParam param) throws ServiceException {
AcsElevatorCodeDTO dto = (AcsElevatorCodeDTO)BeanCopyUtils.copyProperties((Object)param, AcsElevatorCodeDTO.class);
AcsElevatorCodeResultDTO result = this.acsElevatorCodeDao.get(dto);
if (!ObjectUtils.isEmpty((Object)result)) {
return result;
}
return null;
}
@Override
public AcsElevatorCodeResultDTO getFirstByParentId(String parentId) throws ServiceException {
return this.acsElevatorCodeDao.getFirstByParentId(parentId);
}
}
@@ -0,0 +1,18 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.elevator.codeElevatorArea.mapper;
import cn.cloudwalk.elevator.codeElevatorArea.dto.AcsElevatorCodeDTO;
import cn.cloudwalk.elevator.codeElevatorArea.dto.AcsElevatorCodeResultDTO;
public interface AcsElevatorCodeMapper {
public AcsElevatorCodeResultDTO get(AcsElevatorCodeDTO var1);
public int insertNew(AcsElevatorCodeDTO var1);
public int updateOld(AcsElevatorCodeDTO var1);
public AcsElevatorCodeResultDTO getFirstByParentId(String var1);
}
@@ -0,0 +1,52 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.cloud.entity.CloudwalkBaseTimes
*/
package cn.cloudwalk.elevator.codeElevatorArea.param;
import cn.cloudwalk.cloud.entity.CloudwalkBaseTimes;
import java.io.Serializable;
public class AcsElevatorCodeParam
extends CloudwalkBaseTimes
implements Serializable {
private String zoneId;
private String parentId;
private String code;
private Integer isFirst;
public String getZoneId() {
return this.zoneId;
}
public void setZoneId(String zoneId) {
this.zoneId = zoneId;
}
public String getParentId() {
return this.parentId;
}
public void setParentId(String parentId) {
this.parentId = parentId;
}
public String getCode() {
return this.code;
}
public void setCode(String code) {
this.code = code;
}
public Integer getIsFirst() {
return this.isFirst;
}
public void setIsFirst(Integer isFirst) {
this.isFirst = isFirst;
}
}
@@ -0,0 +1,35 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.elevator.codeElevatorArea.result;
public class AcsElevatorCodeResult {
private String zoneId;
private String code;
private Integer isFirst;
public String getZoneId() {
return this.zoneId;
}
public void setZoneId(String zoneId) {
this.zoneId = zoneId;
}
public String getCode() {
return this.code;
}
public void setCode(String code) {
this.code = code;
}
public Integer getIsFirst() {
return this.isFirst;
}
public void setIsFirst(Integer isFirst) {
this.isFirst = isFirst;
}
}
@@ -0,0 +1,23 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.cloud.exception.ServiceException
* cn.cloudwalk.elevator.codeElevatorArea.dto.AcsElevatorCodeResultDTO
*/
package cn.cloudwalk.elevator.codeElevatorArea.service;
import cn.cloudwalk.cloud.exception.ServiceException;
import cn.cloudwalk.elevator.codeElevatorArea.dto.AcsElevatorCodeResultDTO;
import cn.cloudwalk.elevator.codeElevatorArea.param.AcsElevatorCodeParam;
public interface AcsElevatorCodeService {
public Integer insertNew(AcsElevatorCodeParam var1) throws ServiceException;
public Integer updateOld(AcsElevatorCodeParam var1) throws ServiceException;
public AcsElevatorCodeResultDTO get(AcsElevatorCodeParam var1) throws ServiceException;
public AcsElevatorCodeResultDTO getFirstByParentId(String var1) throws ServiceException;
}
@@ -0,0 +1,53 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.client.cwoscomponent.intelligent.sysetting.result.AreaTreeResult
* cn.cloudwalk.cloud.context.CloudwalkCallContext
* cn.cloudwalk.cloud.session.company.CompanyContext
* cn.cloudwalk.cloud.session.user.UserContext
* cn.cloudwalk.cloud.utils.CloudwalkDateUtils
* cn.cloudwalk.elevator.config.FeignThreadLocalUtil
*/
package cn.cloudwalk.elevator.common;
import cn.cloudwalk.client.cwoscomponent.intelligent.sysetting.result.AreaTreeResult;
import cn.cloudwalk.cloud.context.CloudwalkCallContext;
import cn.cloudwalk.cloud.session.company.CompanyContext;
import cn.cloudwalk.cloud.session.user.UserContext;
import cn.cloudwalk.cloud.utils.CloudwalkDateUtils;
import cn.cloudwalk.elevator.common.AbstractCloudwalkService;
import cn.cloudwalk.elevator.config.FeignThreadLocalUtil;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class AbstractAcsDeviceService
extends AbstractCloudwalkService {
protected void getAreaMap(List<AreaTreeResult> areaTreeResultList, Map<String, String> areaMap) {
for (AreaTreeResult areaTree : areaTreeResultList) {
areaMap.put(areaTree.getId(), areaTree.getName());
if (areaTree.getChildren() == null) continue;
this.getAreaMap(areaTree.getChildren(), areaMap);
}
}
public CloudwalkCallContext getCloudwalkContext(String businessId) {
CloudwalkCallContext context = new CloudwalkCallContext();
CompanyContext companyContext = new CompanyContext();
companyContext.setCompanyId(businessId);
context.setCompany(companyContext);
UserContext userContext = new UserContext();
userContext.setCaller("defaultUserId");
userContext.setCallerName("defaultUserName");
context.setUser(userContext);
context.setCallTime(CloudwalkDateUtils.getCurrentDate());
HashMap<String, String> feignThreadLoaclMap = new HashMap<String, String>(3);
feignThreadLoaclMap.put("businessid", businessId);
feignThreadLoaclMap.put("platformuserid", "defaultUserId");
feignThreadLoaclMap.put("username", "defaultUserName");
FeignThreadLocalUtil.set(feignThreadLoaclMap);
return context;
}
}
@@ -0,0 +1,98 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.cloud.context.CloudwalkCallContext
* cn.cloudwalk.cloud.context.CloudwalkCallContextBuilder
* cn.cloudwalk.cloud.context.CloudwalkSessionContextHolder
* cn.cloudwalk.cloud.session.extend.DefaultExtendContext
* cn.cloudwalk.cloud.session.extend.ExtendContext
* cn.cloudwalk.elevator.context.CloudWalkExtendContextValue
* javax.servlet.http.HttpServletRequest
* javax.servlet.http.HttpServletResponse
* org.slf4j.Logger
* org.slf4j.LoggerFactory
* org.springframework.beans.factory.annotation.Autowired
* org.springframework.context.MessageSource
* org.springframework.context.i18n.LocaleContextHolder
* org.springframework.web.context.request.RequestContextHolder
* org.springframework.web.context.request.ServletRequestAttributes
*/
package cn.cloudwalk.elevator.common;
import cn.cloudwalk.cloud.context.CloudwalkCallContext;
import cn.cloudwalk.cloud.context.CloudwalkCallContextBuilder;
import cn.cloudwalk.cloud.context.CloudwalkSessionContextHolder;
import cn.cloudwalk.cloud.session.extend.DefaultExtendContext;
import cn.cloudwalk.cloud.session.extend.ExtendContext;
import cn.cloudwalk.elevator.context.CloudWalkExtendContextValue;
import java.net.URLEncoder;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.MessageSource;
import org.springframework.context.i18n.LocaleContextHolder;
import org.springframework.web.context.request.RequestContextHolder;
import org.springframework.web.context.request.ServletRequestAttributes;
public abstract class AbstractCloudwalkController {
protected final Logger LOGGER = LoggerFactory.getLogger(this.getClass());
@Autowired
private MessageSource messageSource;
@Autowired
private CloudwalkSessionContextHolder cloudwalkSessionContextHolder;
public CloudwalkCallContext getCloudwalkContext() {
CloudwalkCallContext cloudwalkCallContext = CloudwalkCallContextBuilder.buildContext((CloudwalkSessionContextHolder)this.cloudwalkSessionContextHolder);
ServletRequestAttributes attributes = (ServletRequestAttributes)RequestContextHolder.getRequestAttributes();
if (null != attributes) {
DefaultExtendContext extendContext = new DefaultExtendContext();
CloudWalkExtendContextValue cloudWalkExtendContextValue = new CloudWalkExtendContextValue();
HttpServletRequest request = attributes.getRequest();
cloudWalkExtendContextValue.setLoginId(request.getHeader("loginid"));
cloudWalkExtendContextValue.setAuthorization(request.getHeader("authorization"));
extendContext.setValue((Object)cloudWalkExtendContextValue);
cloudwalkCallContext.setExt((ExtendContext)extendContext);
}
return cloudwalkCallContext;
}
public String getToken() {
ServletRequestAttributes attributes = (ServletRequestAttributes)RequestContextHolder.getRequestAttributes();
if (null != attributes) {
return attributes.getRequest().getHeader("authorization");
}
return null;
}
protected HttpServletRequest getHttpServletRequest() {
return ((ServletRequestAttributes)RequestContextHolder.getRequestAttributes()).getRequest();
}
public String getMessage(String code, String defaultMsg) {
return this.messageSource.getMessage(code, null, defaultMsg, LocaleContextHolder.getLocale());
}
public String getMessage(String code) {
return this.getMessage(code, "");
}
protected void makeExcelresponse(HttpServletRequest request, HttpServletResponse response, String fileName) {
response.setContentType("application/vnd.ms-excel;charset=utf-8");
response.setHeader("Content-Disposition", "attachment;filename=" + this.encodeFileName(fileName, request));
}
protected String encodeFileName(String fileNames, HttpServletRequest request) {
String codedFilename = null;
try {
codedFilename = URLEncoder.encode(fileNames, "UTF-8");
}
catch (Exception e) {
this.LOGGER.error("\u8f6c\u6362\u6587\u4ef6\u540d\u5b57\u7b26\u7c7b\u578b\u5931\u8d25\uff0c\u539f\u56e0\uff1a", (Throwable)e);
}
return codedFilename;
}
}
@@ -0,0 +1,54 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.client.cwoscomponent.intelligent.device.service.DeviceService
* cn.cloudwalk.cloud.serial.UUIDSerial
* cn.cloudwalk.cloud.utils.CloudwalkDateUtils
* cn.cloudwalk.serial.code.AbstractGeneralCode
* org.slf4j.Logger
* org.slf4j.LoggerFactory
* org.springframework.beans.factory.annotation.Autowired
* org.springframework.context.MessageSource
* org.springframework.context.i18n.LocaleContextHolder
*/
package cn.cloudwalk.elevator.common;
import cn.cloudwalk.client.cwoscomponent.intelligent.device.service.DeviceService;
import cn.cloudwalk.cloud.serial.UUIDSerial;
import cn.cloudwalk.cloud.utils.CloudwalkDateUtils;
import cn.cloudwalk.serial.code.AbstractGeneralCode;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.MessageSource;
import org.springframework.context.i18n.LocaleContextHolder;
public class AbstractCloudwalkService {
@Autowired
protected DeviceService deviceService;
protected final Logger logger = LoggerFactory.getLogger(this.getClass());
private static final int GENGRAL_CODE_LENGTH = 8;
@Autowired
private MessageSource messageSource;
@Autowired
protected AbstractGeneralCode generalCode;
@Autowired(required=false)
private UUIDSerial uuidSerial;
public String getMessage(String code) {
return this.messageSource.getMessage(code, null, "", LocaleContextHolder.getLocale());
}
public String createGeneralCode() {
return this.generalCode.generalCode(CloudwalkDateUtils.getDate8YMD(), Integer.valueOf(8));
}
public String genUUID() {
if (null != this.uuidSerial) {
return this.uuidSerial.uuid();
}
return CloudwalkDateUtils.getUUID();
}
}
@@ -0,0 +1,58 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.client.resource.application.param.ApplicationQueryParam
* cn.cloudwalk.client.resource.application.result.ApplicationResult
* cn.cloudwalk.client.resource.application.service.ApplicationService
* cn.cloudwalk.cloud.exception.ServiceException
* cn.cloudwalk.cloud.result.CloudwalkResult
* org.apache.commons.collections4.CollectionUtils
* org.slf4j.Logger
* org.slf4j.LoggerFactory
* org.springframework.cache.annotation.Cacheable
* org.springframework.stereotype.Service
*/
package cn.cloudwalk.elevator.common;
import cn.cloudwalk.client.resource.application.param.ApplicationQueryParam;
import cn.cloudwalk.client.resource.application.result.ApplicationResult;
import cn.cloudwalk.client.resource.application.service.ApplicationService;
import cn.cloudwalk.cloud.exception.ServiceException;
import cn.cloudwalk.cloud.result.CloudwalkResult;
import cn.cloudwalk.elevator.common.service.AcsApplicationService;
import java.util.Collection;
import java.util.List;
import javax.annotation.Resource;
import org.apache.commons.collections4.CollectionUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;
@Service
public class AcsApplicationServiceImpl
implements AcsApplicationService {
private static final Logger logger = LoggerFactory.getLogger(AcsApplicationServiceImpl.class);
@Resource
private ApplicationService applicationService;
@Override
@Cacheable(cacheNames={"ACS_Applicationids"}, key="T(cn.cloudwalk.biz.ninca.accesscontrol.cache.CacheOverrideConfig).CACHE_KEY_APPLICATION_IDS_PREFIX + #businessId")
public String getApplicationId(String businessId) throws ServiceException {
ApplicationQueryParam param = new ApplicationQueryParam();
param.setBusinessId(businessId);
param.setServiceCode("elevator-app");
CloudwalkResult cloudwalkResult = this.applicationService.query(param);
if (cloudwalkResult.isSuccess()) {
if (CollectionUtils.isNotEmpty((Collection)((Collection)cloudwalkResult.getData()))) {
return ((ApplicationResult)((List)cloudwalkResult.getData()).get(0)).getId();
}
logger.info("\u672a\u67e5\u5230applicationId");
throw new ServiceException("76260005", "\u672a\u67e5\u5230applicationId");
}
logger.info("\u67e5\u8be2applicationId\u5931\u8d25");
throw new ServiceException("76260006", "\u67e5\u8be2applicationId\u5931\u8d25");
}
}
@@ -0,0 +1,8 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.elevator.common;
public class CloudwalkCallNewContext {
}
@@ -0,0 +1,62 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* org.springframework.boot.context.properties.ConfigurationProperties
* org.springframework.context.annotation.Configuration
*/
package cn.cloudwalk.elevator.common;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
@Configuration
@ConfigurationProperties(prefix="ninca.update.floor.pool")
public class UpdateFloorsPoolProperties {
private int corePoolSize = 3;
private int maxPoolSize = 5;
private int keepAliveSeconds = 150;
private int queueCapacity = 100;
private boolean allowCoreThreadTimeOut = true;
public int getCorePoolSize() {
return this.corePoolSize;
}
public void setCorePoolSize(int corePoolSize) {
this.corePoolSize = corePoolSize;
}
public int getMaxPoolSize() {
return this.maxPoolSize;
}
public void setMaxPoolSize(int maxPoolSize) {
this.maxPoolSize = maxPoolSize;
}
public int getKeepAliveSeconds() {
return this.keepAliveSeconds;
}
public void setKeepAliveSeconds(int keepAliveSeconds) {
this.keepAliveSeconds = keepAliveSeconds;
}
public int getQueueCapacity() {
return this.queueCapacity;
}
public void setQueueCapacity(int queueCapacity) {
this.queueCapacity = queueCapacity;
}
public boolean isAllowCoreThreadTimeOut() {
return this.allowCoreThreadTimeOut;
}
public void setAllowCoreThreadTimeOut(boolean allowCoreThreadTimeOut) {
this.allowCoreThreadTimeOut = allowCoreThreadTimeOut;
}
}
@@ -0,0 +1,38 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* org.springframework.beans.factory.annotation.Autowired
* org.springframework.context.annotation.Bean
* org.springframework.context.annotation.Configuration
* org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor
*/
package cn.cloudwalk.elevator.common;
import cn.cloudwalk.elevator.common.UpdateFloorsPoolProperties;
import java.util.concurrent.RejectedExecutionHandler;
import java.util.concurrent.ThreadPoolExecutor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor;
@Configuration
public class UpdateFloorsTaskExecutor {
@Autowired
private UpdateFloorsPoolProperties updateFloorsPoolProperties;
@Bean(name={"updateFloorsExecutor"})
public ThreadPoolTaskExecutor pictureRevisionTaskExecutor() {
ThreadPoolTaskExecutor threadPoolTaskExecutor = new ThreadPoolTaskExecutor();
threadPoolTaskExecutor.setCorePoolSize(this.updateFloorsPoolProperties.getCorePoolSize());
threadPoolTaskExecutor.setAllowCoreThreadTimeOut(this.updateFloorsPoolProperties.isAllowCoreThreadTimeOut());
threadPoolTaskExecutor.setMaxPoolSize(this.updateFloorsPoolProperties.getMaxPoolSize());
threadPoolTaskExecutor.setQueueCapacity(this.updateFloorsPoolProperties.getQueueCapacity());
threadPoolTaskExecutor.setThreadNamePrefix("update-floors-pool-");
threadPoolTaskExecutor.setRejectedExecutionHandler((RejectedExecutionHandler)new ThreadPoolExecutor.AbortPolicy());
threadPoolTaskExecutor.initialize();
return threadPoolTaskExecutor;
}
}
@@ -0,0 +1,14 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.cloud.exception.ServiceException
*/
package cn.cloudwalk.elevator.common.service;
import cn.cloudwalk.cloud.exception.ServiceException;
public interface AcsApplicationService {
public String getApplicationId(String var1) throws ServiceException;
}
@@ -0,0 +1,20 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.elevator.config;
public class AcsConstants {
public static final String SUCCESS_CODE = "00000000";
public static final String SERVICE_CODE = "elevator-app";
public static final Long ONE_DAY_MILLISECONDS = 86400000L;
public static final Long ONE_YEAR_MILLISECONDS = 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:";
private AcsConstants() {
}
}
@@ -0,0 +1,15 @@
/*
* Decompiled with CFR 0.152.
*/
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:";
private AcsLockConstants() {
}
}
@@ -0,0 +1,26 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* org.springframework.boot.context.properties.ConfigurationProperties
* org.springframework.stereotype.Component
*/
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() {
return this.relativePrefix;
}
public void setRelativePrefix(String relativePrefix) {
this.relativePrefix = relativePrefix;
}
}
@@ -0,0 +1,238 @@
/*
* Decompiled with CFR 0.152.
*/
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";
private ErrorCode() {
}
}
@@ -0,0 +1,18 @@
/*
* Decompiled with CFR 0.152.
*/
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";
private FeignRemoteConfig() {
}
}
@@ -0,0 +1,87 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.cloud.context.CloudwalkCallContext
* cn.cloudwalk.cloud.session.extend.DefaultExtendContext
* javax.servlet.http.HttpServletRequest
* org.apache.commons.lang3.StringUtils
*/
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 {
private static ThreadLocal<Map<String, String>> threadLocal = new ThreadLocal();
public static void set(Map<String, String> t) {
threadLocal.remove();
threadLocal.set(t);
}
public static Map<String, String> get() {
return threadLocal.get();
}
public static void remove() {
threadLocal.remove();
}
public static Map<String, String> getRequestHeader(HttpServletRequest request) {
ConcurrentHashMap<String, String> map = new ConcurrentHashMap<String, String>(10);
if (null != request.getHeader("platformuserid")) {
map.put("platformuserid", request.getHeader("platformuserid"));
}
if (null != request.getHeader("loginid")) {
map.put("loginid", request.getHeader("loginid"));
}
if (null != request.getHeader("businessid")) {
map.put("businessid", request.getHeader("businessid"));
}
if (null != request.getHeader("username")) {
map.put("username", request.getHeader("username"));
}
if (null != request.getHeader("applicationid")) {
map.put("applicationid", request.getHeader("applicationid"));
}
if (null != request.getHeader("authorization")) {
map.put("authorization", request.getHeader("authorization"));
}
return map;
}
public static Map<String, String> getDefaultReqesutHeader(String businessId) {
ConcurrentHashMap<String, String> map = new ConcurrentHashMap<String, String>(2);
map.put("businessid", businessId);
map.put("username", "default");
return map;
}
public static void setRequestHeader(Map<String, String> headerMap) {
FeignThreadLocalUtil.set(headerMap);
}
public static Map<String, String> getDefaultRequestHeader(CloudwalkCallContext context) {
HashMap<String, String> map = new HashMap<String, String>(10);
DefaultExtendContext extendContext = (DefaultExtendContext)context.getExt();
map.put("platformuserid", context.getUser().getCaller());
map.put("loginid", ((CloudWalkExtendContextValue)extendContext.getValue()).getLoginId());
map.put("businessid", context.getCompany().getCompanyId());
map.put("username", StringUtils.isEmpty((CharSequence)context.getUser().getCallerName()) ? "default" : context.getUser().getCallerName());
map.put("applicationid", context.getApplicationId());
map.put("authorization", ((CloudWalkExtendContextValue)extendContext.getValue()).getAuthorization());
return map;
}
public static void setRequestHeader(CloudwalkCallContext context) {
FeignThreadLocalUtil.set(FeignThreadLocalUtil.getDefaultRequestHeader(context));
}
}
@@ -0,0 +1,68 @@
/*
* Decompiled with CFR 0.152.
*/
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";
public static final Integer COMMON_PROPERTIES_STATUS = 99;
public static final Integer COMMON_UNIT_PROPERTIES_STATUS = 98;
public static final Integer COMMON_PARK_PROPERTIES_STATUS = 97;
private static final List<String> CUST_PROPERTIES = Arrays.asList("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 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 = "\u540c\u6b65\u521b\u5efa\u8d26\u53f7";
public static final String SYS_ACCOUNT_ID_CODE = "sysAccountId";
public static final String SYS_ACCOUNT_ID_NAME = "\u540c\u6b65\u521b\u5efa\u8d26\u53f7\u7cfb\u7edfID";
public static final Integer AGREE = 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;
public static final Integer MAX_FILE = 0x300000;
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;
private ImageStoreConstants() {
}
public static List<String> getCustProperties() {
return CUST_PROPERTIES;
}
}
@@ -0,0 +1,26 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.elevator.context;
public class CloudWalkExtendContextValue {
private String loginId;
private String authorization;
public String getLoginId() {
return this.loginId;
}
public void setLoginId(String loginId) {
this.loginId = loginId;
}
public String getAuthorization() {
return this.authorization;
}
public void setAuthorization(String authorization) {
this.authorization = authorization;
}
}
@@ -0,0 +1,18 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.elevator.device.dao;
import cn.cloudwalk.elevator.device.dto.AcsDeviceTaskAddDto;
import cn.cloudwalk.elevator.device.dto.AcsDeviceTaskDTO;
public interface AcsDeviceTaskDao {
public Integer insert(AcsDeviceTaskAddDto var1);
public Integer updateBingDevices(AcsDeviceTaskAddDto var1);
public Integer updateIsStop(AcsDeviceTaskAddDto var1);
public AcsDeviceTaskDTO getById(String var1);
}
@@ -0,0 +1,50 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.cloud.exception.DataAccessException
* cn.cloudwalk.cloud.exception.ServiceException
* cn.cloudwalk.cloud.page.CloudwalkPageAble
* cn.cloudwalk.cloud.page.CloudwalkPageInfo
*/
package cn.cloudwalk.elevator.device.dao;
import cn.cloudwalk.cloud.exception.DataAccessException;
import cn.cloudwalk.cloud.exception.ServiceException;
import cn.cloudwalk.cloud.page.CloudwalkPageAble;
import cn.cloudwalk.cloud.page.CloudwalkPageInfo;
import cn.cloudwalk.elevator.device.dto.AcsElevatorDeviceAddDTO;
import cn.cloudwalk.elevator.device.dto.AcsElevatorDeviceEditDTO;
import cn.cloudwalk.elevator.device.dto.AcsElevatorDeviceListByBuildingIdDto;
import cn.cloudwalk.elevator.device.dto.AcsElevatorDeviceListDto;
import cn.cloudwalk.elevator.device.dto.AcsElevatorDeviceQueryByIdDTO;
import cn.cloudwalk.elevator.device.dto.AcsElevatorDeviceQueryDTO;
import cn.cloudwalk.elevator.device.dto.AcsElevatorDeviceResultDTO;
import java.util.List;
public interface AcsElevatorDeviceDao {
public Integer add(AcsElevatorDeviceAddDTO var1) throws DataAccessException;
public Integer edit(AcsElevatorDeviceEditDTO var1) throws DataAccessException;
public Integer delete(List<String> var1) throws DataAccessException;
public CloudwalkPageAble<AcsElevatorDeviceResultDTO> page(AcsElevatorDeviceQueryDTO var1, CloudwalkPageInfo var2) throws DataAccessException;
public List<AcsElevatorDeviceResultDTO> listByZoneId(AcsElevatorDeviceListDto var1) throws DataAccessException;
public List<AcsElevatorDeviceResultDTO> listByZoneIds(AcsElevatorDeviceListDto var1) throws DataAccessException;
public List<AcsElevatorDeviceResultDTO> listBuBuildingId(AcsElevatorDeviceListByBuildingIdDto var1) throws DataAccessException;
public List<AcsElevatorDeviceResultDTO> get(AcsElevatorDeviceQueryDTO var1) throws ServiceException;
public AcsElevatorDeviceResultDTO getById(AcsElevatorDeviceQueryByIdDTO var1) throws ServiceException;
public AcsElevatorDeviceResultDTO getByDeciveCode(String var1) throws ServiceException;
public String getBuildingId(AcsElevatorDeviceQueryDTO var1) throws ServiceException;
public String getBusinessId(AcsElevatorDeviceQueryDTO var1) throws ServiceException;
}
@@ -0,0 +1,16 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.cloud.exception.ServiceException
*/
package cn.cloudwalk.elevator.device.dao;
import cn.cloudwalk.cloud.exception.ServiceException;
public interface DeviceImageStoreDao {
public Boolean save(String var1, String var2) throws ServiceException;
public String getByBuildingId(String var1) throws ServiceException;
}
@@ -0,0 +1,103 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.elevator.device.dto;
import java.io.Serializable;
import java.util.List;
public class AcsDeviceQueryDTO
implements Serializable {
private static final long serialVersionUID = -9107652629099620576L;
private String id;
private List<String> ids;
private String businessId;
private String deviceId;
private List<String> deviceIds;
private String deviceCode;
private String parentDeviceId;
private List<String> parentDeviceIds;
private Integer openStatus;
private Integer queryParent;
public String getId() {
return this.id;
}
public void setId(String id) {
this.id = id;
}
public List<String> getIds() {
return this.ids;
}
public void setIds(List<String> ids) {
this.ids = ids;
}
public String getBusinessId() {
return this.businessId;
}
public void setBusinessId(String businessId) {
this.businessId = businessId;
}
public String getDeviceId() {
return this.deviceId;
}
public void setDeviceId(String deviceId) {
this.deviceId = deviceId;
}
public List<String> getDeviceIds() {
return this.deviceIds;
}
public void setDeviceIds(List<String> deviceIds) {
this.deviceIds = deviceIds;
}
public String getDeviceCode() {
return this.deviceCode;
}
public void setDeviceCode(String deviceCode) {
this.deviceCode = deviceCode;
}
public String getParentDeviceId() {
return this.parentDeviceId;
}
public void setParentDeviceId(String parentDeviceId) {
this.parentDeviceId = parentDeviceId;
}
public List<String> getParentDeviceIds() {
return this.parentDeviceIds;
}
public void setParentDeviceIds(List<String> parentDeviceIds) {
this.parentDeviceIds = parentDeviceIds;
}
public Integer getQueryParent() {
return this.queryParent;
}
public void setQueryParent(Integer queryParent) {
this.queryParent = queryParent;
}
public Integer getOpenStatus() {
return this.openStatus;
}
public void setOpenStatus(Integer openStatus) {
this.openStatus = openStatus;
}
}
@@ -0,0 +1,80 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.cloud.entity.CloudwalkBaseTimes
*/
package cn.cloudwalk.elevator.device.dto;
import cn.cloudwalk.cloud.entity.CloudwalkBaseTimes;
import java.io.Serializable;
public class AcsDeviceResultDTO
extends CloudwalkBaseTimes
implements Serializable {
private static final long serialVersionUID = 6868258119634367362L;
private String id;
private String businessId;
private String deviceId;
private String deviceCode;
private String parentDeviceId;
private String imageStoreId;
private Integer openStatus;
public String getId() {
return this.id;
}
public void setId(String id) {
this.id = id;
}
public String getBusinessId() {
return this.businessId;
}
public void setBusinessId(String businessId) {
this.businessId = businessId;
}
public String getDeviceId() {
return this.deviceId;
}
public void setDeviceId(String deviceId) {
this.deviceId = deviceId;
}
public String getDeviceCode() {
return this.deviceCode;
}
public void setDeviceCode(String deviceCode) {
this.deviceCode = deviceCode;
}
public String getParentDeviceId() {
return this.parentDeviceId;
}
public void setParentDeviceId(String parentDeviceId) {
this.parentDeviceId = parentDeviceId;
}
public String getImageStoreId() {
return this.imageStoreId;
}
public void setImageStoreId(String imageStoreId) {
this.imageStoreId = imageStoreId;
}
public Integer getOpenStatus() {
return this.openStatus;
}
public void setOpenStatus(Integer openStatus) {
this.openStatus = openStatus;
}
}
@@ -0,0 +1,44 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.cloud.entity.CloudwalkBaseTimes
*/
package cn.cloudwalk.elevator.device.dto;
import cn.cloudwalk.cloud.entity.CloudwalkBaseTimes;
import java.io.Serializable;
public class AcsDeviceTaskAddDto
extends CloudwalkBaseTimes
implements Serializable {
private static final long serialVersionUID = 6909321999650444051L;
private Integer allDevices;
private Integer bindDevices;
private Integer isStop;
public Integer getAllDevices() {
return this.allDevices;
}
public void setAllDevices(Integer allDevices) {
this.allDevices = allDevices;
}
public Integer getBindDevices() {
return this.bindDevices;
}
public void setBindDevices(Integer bindDevices) {
this.bindDevices = bindDevices;
}
public Integer getIsStop() {
return this.isStop;
}
public void setIsStop(Integer isStop) {
this.isStop = isStop;
}
}
@@ -0,0 +1,48 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.elevator.device.dto;
import java.io.Serializable;
public class AcsDeviceTaskDTO
implements Serializable {
private static final long serialVersionUID = -3746361327881264974L;
private String id;
private Integer allDevices;
private Integer bindDevices;
private Integer isStop;
public String getId() {
return this.id;
}
public void setId(String id) {
this.id = id;
}
public Integer getAllDevices() {
return this.allDevices;
}
public void setAllDevices(Integer allDevices) {
this.allDevices = allDevices;
}
public Integer getBindDevices() {
return this.bindDevices;
}
public void setBindDevices(Integer bindDevices) {
this.bindDevices = bindDevices;
}
public Integer getIsStop() {
return this.isStop;
}
public void setIsStop(Integer isStop) {
this.isStop = isStop;
}
}
@@ -0,0 +1,155 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.cloud.entity.CloudwalkBaseTimes
*/
package cn.cloudwalk.elevator.device.dto;
import cn.cloudwalk.cloud.entity.CloudwalkBaseTimes;
import java.io.Serializable;
public class AcsElevatorDeviceAddDTO
extends CloudwalkBaseTimes
implements Serializable {
private String businessId;
private String deviceId;
private String deviceCode;
private String deviceName;
private String deviceTypeName;
private String elevatorFloorList;
private String currentFloorId;
private String currentFloor;
private String currentBuilding;
private String currentBuildingId;
private String areaName;
private Integer status;
private Integer deleteFlag;
private String areaId;
private String elevatorFloorIdList;
public String getElevatorFloorIdList() {
return this.elevatorFloorIdList;
}
public void setElevatorFloorIdList(String elevatorFloorIdList) {
this.elevatorFloorIdList = elevatorFloorIdList;
}
public String getCurrentBuildingId() {
return this.currentBuildingId;
}
public void setCurrentBuildingId(String currentBuildingId) {
this.currentBuildingId = currentBuildingId;
}
public String getAreaId() {
return this.areaId;
}
public void setAreaId(String areaId) {
this.areaId = areaId;
}
public String getBusinessId() {
return this.businessId;
}
public void setBusinessId(String businessId) {
this.businessId = businessId;
}
public String getDeviceId() {
return this.deviceId;
}
public void setDeviceId(String deviceId) {
this.deviceId = deviceId;
}
public String getDeviceCode() {
return this.deviceCode;
}
public void setDeviceCode(String deviceCode) {
this.deviceCode = deviceCode;
}
public String getDeviceName() {
return this.deviceName;
}
public void setDeviceName(String deviceName) {
this.deviceName = deviceName;
}
public String getDeviceTypeName() {
return this.deviceTypeName;
}
public void setDeviceTypeName(String deviceTypeName) {
this.deviceTypeName = deviceTypeName;
}
public String getElevatorFloorList() {
return this.elevatorFloorList;
}
public void setElevatorFloorList(String elevatorFloorList) {
this.elevatorFloorList = elevatorFloorList;
}
public String getCurrentFloorId() {
return this.currentFloorId;
}
public void setCurrentFloorId(String currentFloorId) {
this.currentFloorId = currentFloorId;
}
public String getCurrentFloor() {
return this.currentFloor;
}
public void setCurrentFloor(String currentFloor) {
this.currentFloor = currentFloor;
}
public String getCurrentBuilding() {
return this.currentBuilding;
}
public void setCurrentBuilding(String currentBuilding) {
this.currentBuilding = currentBuilding;
}
public String getAreaName() {
return this.areaName;
}
public void setAreaName(String areaName) {
this.areaName = areaName;
}
public Integer getStatus() {
return this.status;
}
public void setStatus(Integer status) {
this.status = status;
}
public Integer getDeleteFlag() {
return this.deleteFlag;
}
public void setDeleteFlag(Integer deleteFlag) {
this.deleteFlag = deleteFlag;
}
public String toString() {
return "AcsElevatorDeviceAddDTO{businessId='" + this.businessId + '\'' + ", deviceId='" + this.deviceId + '\'' + ", deviceCode='" + this.deviceCode + '\'' + ", deviceName='" + this.deviceName + '\'' + ", deviceTypeName='" + this.deviceTypeName + '\'' + ", elevatorFloorList='" + this.elevatorFloorList + '\'' + ", currentFloorId='" + this.currentFloorId + '\'' + ", currentFloor='" + this.currentFloor + '\'' + ", currentBuilding='" + this.currentBuilding + '\'' + ", areaName='" + this.areaName + '\'' + ", status=" + this.status + ", deleteFlag=" + this.deleteFlag + '}';
}
}
@@ -0,0 +1,84 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.cloud.entity.CloudwalkBaseTimes
*/
package cn.cloudwalk.elevator.device.dto;
import cn.cloudwalk.cloud.entity.CloudwalkBaseTimes;
import java.io.Serializable;
public class AcsElevatorDeviceEditDTO
extends CloudwalkBaseTimes
implements Serializable {
private static final long serialVersionUID = 885170301572808321L;
private String elevatorFloorList;
private String currentFloorId;
private String currentFloor;
private String currentBuilding;
private String currentBuildingId;
private String areaId;
private String elevatorFloorIdList;
public String getElevatorFloorIdList() {
return this.elevatorFloorIdList;
}
public void setElevatorFloorIdList(String elevatorFloorIdList) {
this.elevatorFloorIdList = elevatorFloorIdList;
}
public String getAreaId() {
return this.areaId;
}
public void setAreaId(String areaId) {
this.areaId = areaId;
}
public String getElevatorFloorList() {
return this.elevatorFloorList;
}
public void setElevatorFloorList(String elevatorFloorList) {
this.elevatorFloorList = elevatorFloorList;
}
public String getCurrentFloorId() {
return this.currentFloorId;
}
public void setCurrentFloorId(String currentFloorId) {
this.currentFloorId = currentFloorId;
}
public String getCurrentFloor() {
return this.currentFloor;
}
public void setCurrentFloor(String currentFloor) {
this.currentFloor = currentFloor;
}
public String getCurrentBuilding() {
return this.currentBuilding;
}
public void setCurrentBuilding(String currentBuilding) {
this.currentBuilding = currentBuilding;
}
public String getCurrentBuildingId() {
return this.currentBuildingId;
}
public void setCurrentBuildingId(String currentBuildingId) {
this.currentBuildingId = currentBuildingId;
}
public String toString() {
return "AcsElevatorDeciveEditDTO{elevatorFloorList='" + this.elevatorFloorList + '\'' + ", currentFloorId='" + this.currentFloorId + '\'' + ", currentFloor='" + this.currentFloor + '\'' + ", currentBuilding='" + this.currentBuilding + '\'' + ", currentBuildingId='" + this.currentBuildingId + '\'' + '}';
}
}
@@ -0,0 +1,68 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.elevator.device.dto;
import java.io.Serializable;
public class AcsElevatorDeviceListByBuildingIdDto
implements Serializable {
private String businessId;
private String currentBuildingId;
public String getBusinessId() {
return this.businessId;
}
public String getCurrentBuildingId() {
return this.currentBuildingId;
}
public void setBusinessId(String businessId) {
this.businessId = businessId;
}
public void setCurrentBuildingId(String currentBuildingId) {
this.currentBuildingId = currentBuildingId;
}
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (!(o instanceof AcsElevatorDeviceListByBuildingIdDto)) {
return false;
}
AcsElevatorDeviceListByBuildingIdDto other = (AcsElevatorDeviceListByBuildingIdDto)o;
if (!other.canEqual(this)) {
return false;
}
String this$businessId = this.getBusinessId();
String other$businessId = other.getBusinessId();
if (this$businessId == null ? other$businessId != null : !this$businessId.equals(other$businessId)) {
return false;
}
String this$currentBuildingId = this.getCurrentBuildingId();
String other$currentBuildingId = other.getCurrentBuildingId();
return !(this$currentBuildingId == null ? other$currentBuildingId != null : !this$currentBuildingId.equals(other$currentBuildingId));
}
protected boolean canEqual(Object other) {
return other instanceof AcsElevatorDeviceListByBuildingIdDto;
}
public int hashCode() {
int PRIME = 59;
int result = 1;
String $businessId = this.getBusinessId();
result = result * 59 + ($businessId == null ? 43 : $businessId.hashCode());
String $currentBuildingId = this.getCurrentBuildingId();
result = result * 59 + ($currentBuildingId == null ? 43 : $currentBuildingId.hashCode());
return result;
}
public String toString() {
return "AcsElevatorDeviceListByBuildingIdDto(businessId=" + this.getBusinessId() + ", currentBuildingId=" + this.getCurrentBuildingId() + ")";
}
}
@@ -0,0 +1,44 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.cloud.entity.CloudwalkBaseTimes
*/
package cn.cloudwalk.elevator.device.dto;
import cn.cloudwalk.cloud.entity.CloudwalkBaseTimes;
import java.io.Serializable;
import java.util.List;
public class AcsElevatorDeviceListDto
extends CloudwalkBaseTimes
implements Serializable {
private String businessId;
private String currentFloorId;
private List<String> currentFloorIds;
public List<String> getCurrentFloorIds() {
return this.currentFloorIds;
}
public void setCurrentFloorIds(List<String> currentFloorIds) {
this.currentFloorIds = currentFloorIds;
}
public String getBusinessId() {
return this.businessId;
}
public void setBusinessId(String businessId) {
this.businessId = businessId;
}
public String getCurrentFloorId() {
return this.currentFloorId;
}
public void setCurrentFloorId(String currentFloorId) {
this.currentFloorId = currentFloorId;
}
}
@@ -0,0 +1,233 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.cloud.entity.CloudwalkBaseTimes
*/
package cn.cloudwalk.elevator.device.dto;
import cn.cloudwalk.cloud.entity.CloudwalkBaseTimes;
import java.io.Serializable;
public class AcsElevatorDeviceListResultDto
extends CloudwalkBaseTimes
implements Serializable {
private String businessId;
private String deviceId;
private String deviceCode;
private String deviceName;
private String deviceTypeName;
private String elevatorFloorList;
private String currentFloorId;
private String currentFloor;
private String currentBuilding;
private String currentBuildingId;
private String areaName;
private Integer status;
public String getBusinessId() {
return this.businessId;
}
public void setBusinessId(String businessId) {
this.businessId = businessId;
}
public String getDeviceId() {
return this.deviceId;
}
public void setDeviceId(String deviceId) {
this.deviceId = deviceId;
}
public String getDeviceCode() {
return this.deviceCode;
}
public void setDeviceCode(String deviceCode) {
this.deviceCode = deviceCode;
}
public String getDeviceName() {
return this.deviceName;
}
public void setDeviceName(String deviceName) {
this.deviceName = deviceName;
}
public String getDeviceTypeName() {
return this.deviceTypeName;
}
public void setDeviceTypeName(String deviceTypeName) {
this.deviceTypeName = deviceTypeName;
}
public String getElevatorFloorList() {
return this.elevatorFloorList;
}
public void setElevatorFloorList(String elevatorFloorList) {
this.elevatorFloorList = elevatorFloorList;
}
public String getCurrentFloorId() {
return this.currentFloorId;
}
public void setCurrentFloorId(String currentFloorId) {
this.currentFloorId = currentFloorId;
}
public String getCurrentFloor() {
return this.currentFloor;
}
public void setCurrentFloor(String currentFloor) {
this.currentFloor = currentFloor;
}
public String getCurrentBuilding() {
return this.currentBuilding;
}
public void setCurrentBuilding(String currentBuilding) {
this.currentBuilding = currentBuilding;
}
public String getCurrentBuildingId() {
return this.currentBuildingId;
}
public void setCurrentBuildingId(String currentBuildingId) {
this.currentBuildingId = currentBuildingId;
}
public String getAreaName() {
return this.areaName;
}
public void setAreaName(String areaName) {
this.areaName = areaName;
}
public Integer getStatus() {
return this.status;
}
public void setStatus(Integer status) {
this.status = status;
}
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (!(o instanceof AcsElevatorDeviceListResultDto)) {
return false;
}
AcsElevatorDeviceListResultDto other = (AcsElevatorDeviceListResultDto)o;
if (!other.canEqual(this)) {
return false;
}
String this$businessId = this.getBusinessId();
String other$businessId = other.getBusinessId();
if (this$businessId == null ? other$businessId != null : !this$businessId.equals(other$businessId)) {
return false;
}
String this$deviceId = this.getDeviceId();
String other$deviceId = other.getDeviceId();
if (this$deviceId == null ? other$deviceId != null : !this$deviceId.equals(other$deviceId)) {
return false;
}
String this$deviceCode = this.getDeviceCode();
String other$deviceCode = other.getDeviceCode();
if (this$deviceCode == null ? other$deviceCode != null : !this$deviceCode.equals(other$deviceCode)) {
return false;
}
String this$deviceName = this.getDeviceName();
String other$deviceName = other.getDeviceName();
if (this$deviceName == null ? other$deviceName != null : !this$deviceName.equals(other$deviceName)) {
return false;
}
String this$deviceTypeName = this.getDeviceTypeName();
String other$deviceTypeName = other.getDeviceTypeName();
if (this$deviceTypeName == null ? other$deviceTypeName != null : !this$deviceTypeName.equals(other$deviceTypeName)) {
return false;
}
String this$elevatorFloorList = this.getElevatorFloorList();
String other$elevatorFloorList = other.getElevatorFloorList();
if (this$elevatorFloorList == null ? other$elevatorFloorList != null : !this$elevatorFloorList.equals(other$elevatorFloorList)) {
return false;
}
String this$currentFloorId = this.getCurrentFloorId();
String other$currentFloorId = other.getCurrentFloorId();
if (this$currentFloorId == null ? other$currentFloorId != null : !this$currentFloorId.equals(other$currentFloorId)) {
return false;
}
String this$currentFloor = this.getCurrentFloor();
String other$currentFloor = other.getCurrentFloor();
if (this$currentFloor == null ? other$currentFloor != null : !this$currentFloor.equals(other$currentFloor)) {
return false;
}
String this$currentBuilding = this.getCurrentBuilding();
String other$currentBuilding = other.getCurrentBuilding();
if (this$currentBuilding == null ? other$currentBuilding != null : !this$currentBuilding.equals(other$currentBuilding)) {
return false;
}
String this$currentBuildingId = this.getCurrentBuildingId();
String other$currentBuildingId = other.getCurrentBuildingId();
if (this$currentBuildingId == null ? other$currentBuildingId != null : !this$currentBuildingId.equals(other$currentBuildingId)) {
return false;
}
String this$areaName = this.getAreaName();
String other$areaName = other.getAreaName();
if (this$areaName == null ? other$areaName != null : !this$areaName.equals(other$areaName)) {
return false;
}
Integer this$status = this.getStatus();
Integer other$status = other.getStatus();
return !(this$status == null ? other$status != null : !((Object)this$status).equals(other$status));
}
protected boolean canEqual(Object other) {
return other instanceof AcsElevatorDeviceListResultDto;
}
public int hashCode() {
int PRIME = 59;
int result = 1;
String $businessId = this.getBusinessId();
result = result * 59 + ($businessId == null ? 43 : $businessId.hashCode());
String $deviceId = this.getDeviceId();
result = result * 59 + ($deviceId == null ? 43 : $deviceId.hashCode());
String $deviceCode = this.getDeviceCode();
result = result * 59 + ($deviceCode == null ? 43 : $deviceCode.hashCode());
String $deviceName = this.getDeviceName();
result = result * 59 + ($deviceName == null ? 43 : $deviceName.hashCode());
String $deviceTypeName = this.getDeviceTypeName();
result = result * 59 + ($deviceTypeName == null ? 43 : $deviceTypeName.hashCode());
String $elevatorFloorList = this.getElevatorFloorList();
result = result * 59 + ($elevatorFloorList == null ? 43 : $elevatorFloorList.hashCode());
String $currentFloorId = this.getCurrentFloorId();
result = result * 59 + ($currentFloorId == null ? 43 : $currentFloorId.hashCode());
String $currentFloor = this.getCurrentFloor();
result = result * 59 + ($currentFloor == null ? 43 : $currentFloor.hashCode());
String $currentBuilding = this.getCurrentBuilding();
result = result * 59 + ($currentBuilding == null ? 43 : $currentBuilding.hashCode());
String $currentBuildingId = this.getCurrentBuildingId();
result = result * 59 + ($currentBuildingId == null ? 43 : $currentBuildingId.hashCode());
String $areaName = this.getAreaName();
result = result * 59 + ($areaName == null ? 43 : $areaName.hashCode());
Integer $status = this.getStatus();
result = result * 59 + ($status == null ? 43 : ((Object)$status).hashCode());
return result;
}
public String toString() {
return "AcsElevatorDeviceListResultDto(businessId=" + this.getBusinessId() + ", deviceId=" + this.getDeviceId() + ", deviceCode=" + this.getDeviceCode() + ", deviceName=" + this.getDeviceName() + ", deviceTypeName=" + this.getDeviceTypeName() + ", elevatorFloorList=" + this.getElevatorFloorList() + ", currentFloorId=" + this.getCurrentFloorId() + ", currentFloor=" + this.getCurrentFloor() + ", currentBuilding=" + this.getCurrentBuilding() + ", currentBuildingId=" + this.getCurrentBuildingId() + ", areaName=" + this.getAreaName() + ", status=" + this.getStatus() + ")";
}
}
@@ -0,0 +1,25 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.cloud.page.CloudwalkBasePageForm
*/
package cn.cloudwalk.elevator.device.dto;
import cn.cloudwalk.cloud.page.CloudwalkBasePageForm;
import java.io.Serializable;
public class AcsElevatorDeviceQueryByIdDTO
extends CloudwalkBasePageForm
implements Serializable {
private String id;
public String getId() {
return this.id;
}
public void setId(String id) {
this.id = id;
}
}
@@ -0,0 +1,108 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.cloud.entity.CloudwalkBaseTimes
*/
package cn.cloudwalk.elevator.device.dto;
import cn.cloudwalk.cloud.entity.CloudwalkBaseTimes;
import java.io.Serializable;
import java.util.List;
public class AcsElevatorDeviceQueryDTO
extends CloudwalkBaseTimes
implements Serializable {
private static final long serialVersionUID = -761586737506722816L;
private String areaName;
private String deviceCode;
private String deviceName;
private String deviceTypeName;
private List<String> areaIds;
private String deviceId;
private String businessId;
private String ip;
private Integer status;
private Integer onlineStatus;
public String getIp() {
return this.ip;
}
public void setIp(String ip) {
this.ip = ip;
}
public Integer getStatus() {
return this.status;
}
public void setStatus(Integer status) {
this.status = status;
}
public Integer getOnlineStatus() {
return this.onlineStatus;
}
public void setOnlineStatus(Integer onlineStatus) {
this.onlineStatus = onlineStatus;
}
public String getBusinessId() {
return this.businessId;
}
public void setBusinessId(String businessId) {
this.businessId = businessId;
}
public String getDeviceId() {
return this.deviceId;
}
public void setDeviceId(String deviceId) {
this.deviceId = deviceId;
}
public List<String> getAreaIds() {
return this.areaIds;
}
public void setAreaIds(List<String> areaIds) {
this.areaIds = areaIds;
}
public String getAreaName() {
return this.areaName;
}
public void setAreaName(String areaName) {
this.areaName = areaName;
}
public String getDeviceCode() {
return this.deviceCode;
}
public void setDeviceCode(String deviceCode) {
this.deviceCode = deviceCode;
}
public String getDeviceName() {
return this.deviceName;
}
public void setDeviceName(String deviceName) {
this.deviceName = deviceName;
}
public String getDeviceTypeName() {
return this.deviceTypeName;
}
public void setDeviceTypeName(String deviceTypeName) {
this.deviceTypeName = deviceTypeName;
}
}
@@ -0,0 +1,257 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.elevator.device.dto;
public class AcsElevatorDeviceQueryFoDTO {
private String id;
private String businessId;
private String deviceId;
private String deviceCode;
private String deviceName;
private String deviceTypeName;
private String elevatorFloorList;
private String currentFloorId;
private String currentFloor;
private String currentBuilding;
private String currentBuildingId;
private String areaName;
private String areaId;
private String elevatorFloorIdList;
public String getId() {
return this.id;
}
public String getBusinessId() {
return this.businessId;
}
public String getDeviceId() {
return this.deviceId;
}
public String getDeviceCode() {
return this.deviceCode;
}
public String getDeviceName() {
return this.deviceName;
}
public String getDeviceTypeName() {
return this.deviceTypeName;
}
public String getElevatorFloorList() {
return this.elevatorFloorList;
}
public String getCurrentFloorId() {
return this.currentFloorId;
}
public String getCurrentFloor() {
return this.currentFloor;
}
public String getCurrentBuilding() {
return this.currentBuilding;
}
public String getCurrentBuildingId() {
return this.currentBuildingId;
}
public String getAreaName() {
return this.areaName;
}
public String getAreaId() {
return this.areaId;
}
public String getElevatorFloorIdList() {
return this.elevatorFloorIdList;
}
public void setId(String id) {
this.id = id;
}
public void setBusinessId(String businessId) {
this.businessId = businessId;
}
public void setDeviceId(String deviceId) {
this.deviceId = deviceId;
}
public void setDeviceCode(String deviceCode) {
this.deviceCode = deviceCode;
}
public void setDeviceName(String deviceName) {
this.deviceName = deviceName;
}
public void setDeviceTypeName(String deviceTypeName) {
this.deviceTypeName = deviceTypeName;
}
public void setElevatorFloorList(String elevatorFloorList) {
this.elevatorFloorList = elevatorFloorList;
}
public void setCurrentFloorId(String currentFloorId) {
this.currentFloorId = currentFloorId;
}
public void setCurrentFloor(String currentFloor) {
this.currentFloor = currentFloor;
}
public void setCurrentBuilding(String currentBuilding) {
this.currentBuilding = currentBuilding;
}
public void setCurrentBuildingId(String currentBuildingId) {
this.currentBuildingId = currentBuildingId;
}
public void setAreaName(String areaName) {
this.areaName = areaName;
}
public void setAreaId(String areaId) {
this.areaId = areaId;
}
public void setElevatorFloorIdList(String elevatorFloorIdList) {
this.elevatorFloorIdList = elevatorFloorIdList;
}
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (!(o instanceof AcsElevatorDeviceQueryFoDTO)) {
return false;
}
AcsElevatorDeviceQueryFoDTO other = (AcsElevatorDeviceQueryFoDTO)o;
if (!other.canEqual(this)) {
return false;
}
String this$id = this.getId();
String other$id = other.getId();
if (this$id == null ? other$id != null : !this$id.equals(other$id)) {
return false;
}
String this$businessId = this.getBusinessId();
String other$businessId = other.getBusinessId();
if (this$businessId == null ? other$businessId != null : !this$businessId.equals(other$businessId)) {
return false;
}
String this$deviceId = this.getDeviceId();
String other$deviceId = other.getDeviceId();
if (this$deviceId == null ? other$deviceId != null : !this$deviceId.equals(other$deviceId)) {
return false;
}
String this$deviceCode = this.getDeviceCode();
String other$deviceCode = other.getDeviceCode();
if (this$deviceCode == null ? other$deviceCode != null : !this$deviceCode.equals(other$deviceCode)) {
return false;
}
String this$deviceName = this.getDeviceName();
String other$deviceName = other.getDeviceName();
if (this$deviceName == null ? other$deviceName != null : !this$deviceName.equals(other$deviceName)) {
return false;
}
String this$deviceTypeName = this.getDeviceTypeName();
String other$deviceTypeName = other.getDeviceTypeName();
if (this$deviceTypeName == null ? other$deviceTypeName != null : !this$deviceTypeName.equals(other$deviceTypeName)) {
return false;
}
String this$elevatorFloorList = this.getElevatorFloorList();
String other$elevatorFloorList = other.getElevatorFloorList();
if (this$elevatorFloorList == null ? other$elevatorFloorList != null : !this$elevatorFloorList.equals(other$elevatorFloorList)) {
return false;
}
String this$currentFloorId = this.getCurrentFloorId();
String other$currentFloorId = other.getCurrentFloorId();
if (this$currentFloorId == null ? other$currentFloorId != null : !this$currentFloorId.equals(other$currentFloorId)) {
return false;
}
String this$currentFloor = this.getCurrentFloor();
String other$currentFloor = other.getCurrentFloor();
if (this$currentFloor == null ? other$currentFloor != null : !this$currentFloor.equals(other$currentFloor)) {
return false;
}
String this$currentBuilding = this.getCurrentBuilding();
String other$currentBuilding = other.getCurrentBuilding();
if (this$currentBuilding == null ? other$currentBuilding != null : !this$currentBuilding.equals(other$currentBuilding)) {
return false;
}
String this$currentBuildingId = this.getCurrentBuildingId();
String other$currentBuildingId = other.getCurrentBuildingId();
if (this$currentBuildingId == null ? other$currentBuildingId != null : !this$currentBuildingId.equals(other$currentBuildingId)) {
return false;
}
String this$areaName = this.getAreaName();
String other$areaName = other.getAreaName();
if (this$areaName == null ? other$areaName != null : !this$areaName.equals(other$areaName)) {
return false;
}
String this$areaId = this.getAreaId();
String other$areaId = other.getAreaId();
if (this$areaId == null ? other$areaId != null : !this$areaId.equals(other$areaId)) {
return false;
}
String this$elevatorFloorIdList = this.getElevatorFloorIdList();
String other$elevatorFloorIdList = other.getElevatorFloorIdList();
return !(this$elevatorFloorIdList == null ? other$elevatorFloorIdList != null : !this$elevatorFloorIdList.equals(other$elevatorFloorIdList));
}
protected boolean canEqual(Object other) {
return other instanceof AcsElevatorDeviceQueryFoDTO;
}
public int hashCode() {
int PRIME = 59;
int result = 1;
String $id = this.getId();
result = result * 59 + ($id == null ? 43 : $id.hashCode());
String $businessId = this.getBusinessId();
result = result * 59 + ($businessId == null ? 43 : $businessId.hashCode());
String $deviceId = this.getDeviceId();
result = result * 59 + ($deviceId == null ? 43 : $deviceId.hashCode());
String $deviceCode = this.getDeviceCode();
result = result * 59 + ($deviceCode == null ? 43 : $deviceCode.hashCode());
String $deviceName = this.getDeviceName();
result = result * 59 + ($deviceName == null ? 43 : $deviceName.hashCode());
String $deviceTypeName = this.getDeviceTypeName();
result = result * 59 + ($deviceTypeName == null ? 43 : $deviceTypeName.hashCode());
String $elevatorFloorList = this.getElevatorFloorList();
result = result * 59 + ($elevatorFloorList == null ? 43 : $elevatorFloorList.hashCode());
String $currentFloorId = this.getCurrentFloorId();
result = result * 59 + ($currentFloorId == null ? 43 : $currentFloorId.hashCode());
String $currentFloor = this.getCurrentFloor();
result = result * 59 + ($currentFloor == null ? 43 : $currentFloor.hashCode());
String $currentBuilding = this.getCurrentBuilding();
result = result * 59 + ($currentBuilding == null ? 43 : $currentBuilding.hashCode());
String $currentBuildingId = this.getCurrentBuildingId();
result = result * 59 + ($currentBuildingId == null ? 43 : $currentBuildingId.hashCode());
String $areaName = this.getAreaName();
result = result * 59 + ($areaName == null ? 43 : $areaName.hashCode());
String $areaId = this.getAreaId();
result = result * 59 + ($areaId == null ? 43 : $areaId.hashCode());
String $elevatorFloorIdList = this.getElevatorFloorIdList();
result = result * 59 + ($elevatorFloorIdList == null ? 43 : $elevatorFloorIdList.hashCode());
return result;
}
public String toString() {
return "AcsElevatorDeviceQueryFoDTO(id=" + this.getId() + ", businessId=" + this.getBusinessId() + ", deviceId=" + this.getDeviceId() + ", deviceCode=" + this.getDeviceCode() + ", deviceName=" + this.getDeviceName() + ", deviceTypeName=" + this.getDeviceTypeName() + ", elevatorFloorList=" + this.getElevatorFloorList() + ", currentFloorId=" + this.getCurrentFloorId() + ", currentFloor=" + this.getCurrentFloor() + ", currentBuilding=" + this.getCurrentBuilding() + ", currentBuildingId=" + this.getCurrentBuildingId() + ", areaName=" + this.getAreaName() + ", areaId=" + this.getAreaId() + ", elevatorFloorIdList=" + this.getElevatorFloorIdList() + ")";
}
}
@@ -0,0 +1,28 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.cloud.entity.CloudwalkBaseTimes
*/
package cn.cloudwalk.elevator.device.dto;
import cn.cloudwalk.cloud.entity.CloudwalkBaseTimes;
import java.io.Serializable;
public class AcsElevatorDeviceQueryResultDTO
extends CloudwalkBaseTimes
implements Serializable {
private static final long serialVersionUID = -761586737506722816L;
private String businessId;
private String deviceId;
private String deviceCode;
private String deviceName;
private String deviceTypeName;
private String elevatorFloorList;
private String currentFloorId;
private String currentFloor;
private String currentBuilding;
private String currentBuildingId;
private Integer status;
}
@@ -0,0 +1,353 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.elevator.device.dto;
public class AcsElevatorDeviceResultDTO {
private String id;
private String businessId;
private String deviceId;
private String deviceCode;
private String deviceName;
private String deviceTypeName;
private String elevatorFloorList;
private String currentFloorId;
private String currentFloor;
private String currentBuilding;
private String currentBuildingId;
private String areaName;
private String areaId;
private Integer status;
private String statusString;
private String elevatorFloorIdList;
private Long lastHeartbeatTime;
private String imageStoreId;
private String ip;
private Integer onlineStatus;
public String getElevatorFloorIdList() {
return this.elevatorFloorIdList;
}
public void setElevatorFloorIdList(String elevatorFloorIdList) {
this.elevatorFloorIdList = elevatorFloorIdList;
}
public String getBusinessId() {
return this.businessId;
}
public void setBusinessId(String businessId) {
this.businessId = businessId;
}
public String getDeviceId() {
return this.deviceId;
}
public void setDeviceId(String deviceId) {
this.deviceId = deviceId;
}
public String getDeviceCode() {
return this.deviceCode;
}
public void setDeviceCode(String deviceCode) {
this.deviceCode = deviceCode;
}
public String getDeviceName() {
return this.deviceName;
}
public void setDeviceName(String deviceName) {
this.deviceName = deviceName;
}
public String getDeviceTypeName() {
return this.deviceTypeName;
}
public void setDeviceTypeName(String deviceTypeName) {
this.deviceTypeName = deviceTypeName;
}
public String getElevatorFloorList() {
return this.elevatorFloorList;
}
public void setElevatorFloorList(String elevatorFloorList) {
this.elevatorFloorList = elevatorFloorList;
}
public String getCurrentFloorId() {
return this.currentFloorId;
}
public void setCurrentFloorId(String currentFloorId) {
this.currentFloorId = currentFloorId;
}
public String getCurrentFloor() {
return this.currentFloor;
}
public void setCurrentFloor(String currentFloor) {
this.currentFloor = currentFloor;
}
public String getCurrentBuilding() {
return this.currentBuilding;
}
public void setCurrentBuilding(String currentBuilding) {
this.currentBuilding = currentBuilding;
}
public String getCurrentBuildingId() {
return this.currentBuildingId;
}
public void setCurrentBuildingId(String currentBuildingId) {
this.currentBuildingId = currentBuildingId;
}
public String getAreaName() {
return this.areaName;
}
public void setAreaName(String areaName) {
this.areaName = areaName;
}
public Integer getStatus() {
return this.status;
}
public void setStatus(Integer status) {
this.status = status;
}
public Long getLastHeartbeatTime() {
return this.lastHeartbeatTime;
}
public void setLastHeartbeatTime(Long lastHeartbeatTime) {
this.lastHeartbeatTime = lastHeartbeatTime;
}
public String getAreaId() {
return this.areaId;
}
public void setAreaId(String areaId) {
this.areaId = areaId;
}
public String getStatusString() {
return this.statusString;
}
public void setStatusString(String statusString) {
this.statusString = statusString;
}
public String getImageStoreId() {
return this.imageStoreId;
}
public void setImageStoreId(String imageStoreId) {
this.imageStoreId = imageStoreId;
}
public Integer getOnlineStatus() {
return this.onlineStatus;
}
public void setOnlineStatus(Integer onlineStatus) {
this.onlineStatus = onlineStatus;
}
public String getId() {
return this.id;
}
public String getIp() {
return this.ip;
}
public void setId(String id) {
this.id = id;
}
public void setIp(String ip) {
this.ip = ip;
}
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (!(o instanceof AcsElevatorDeviceResultDTO)) {
return false;
}
AcsElevatorDeviceResultDTO other = (AcsElevatorDeviceResultDTO)o;
if (!other.canEqual(this)) {
return false;
}
String this$id = this.getId();
String other$id = other.getId();
if (this$id == null ? other$id != null : !this$id.equals(other$id)) {
return false;
}
String this$businessId = this.getBusinessId();
String other$businessId = other.getBusinessId();
if (this$businessId == null ? other$businessId != null : !this$businessId.equals(other$businessId)) {
return false;
}
String this$deviceId = this.getDeviceId();
String other$deviceId = other.getDeviceId();
if (this$deviceId == null ? other$deviceId != null : !this$deviceId.equals(other$deviceId)) {
return false;
}
String this$deviceCode = this.getDeviceCode();
String other$deviceCode = other.getDeviceCode();
if (this$deviceCode == null ? other$deviceCode != null : !this$deviceCode.equals(other$deviceCode)) {
return false;
}
String this$deviceName = this.getDeviceName();
String other$deviceName = other.getDeviceName();
if (this$deviceName == null ? other$deviceName != null : !this$deviceName.equals(other$deviceName)) {
return false;
}
String this$deviceTypeName = this.getDeviceTypeName();
String other$deviceTypeName = other.getDeviceTypeName();
if (this$deviceTypeName == null ? other$deviceTypeName != null : !this$deviceTypeName.equals(other$deviceTypeName)) {
return false;
}
String this$elevatorFloorList = this.getElevatorFloorList();
String other$elevatorFloorList = other.getElevatorFloorList();
if (this$elevatorFloorList == null ? other$elevatorFloorList != null : !this$elevatorFloorList.equals(other$elevatorFloorList)) {
return false;
}
String this$currentFloorId = this.getCurrentFloorId();
String other$currentFloorId = other.getCurrentFloorId();
if (this$currentFloorId == null ? other$currentFloorId != null : !this$currentFloorId.equals(other$currentFloorId)) {
return false;
}
String this$currentFloor = this.getCurrentFloor();
String other$currentFloor = other.getCurrentFloor();
if (this$currentFloor == null ? other$currentFloor != null : !this$currentFloor.equals(other$currentFloor)) {
return false;
}
String this$currentBuilding = this.getCurrentBuilding();
String other$currentBuilding = other.getCurrentBuilding();
if (this$currentBuilding == null ? other$currentBuilding != null : !this$currentBuilding.equals(other$currentBuilding)) {
return false;
}
String this$currentBuildingId = this.getCurrentBuildingId();
String other$currentBuildingId = other.getCurrentBuildingId();
if (this$currentBuildingId == null ? other$currentBuildingId != null : !this$currentBuildingId.equals(other$currentBuildingId)) {
return false;
}
String this$areaName = this.getAreaName();
String other$areaName = other.getAreaName();
if (this$areaName == null ? other$areaName != null : !this$areaName.equals(other$areaName)) {
return false;
}
String this$areaId = this.getAreaId();
String other$areaId = other.getAreaId();
if (this$areaId == null ? other$areaId != null : !this$areaId.equals(other$areaId)) {
return false;
}
Integer this$status = this.getStatus();
Integer other$status = other.getStatus();
if (this$status == null ? other$status != null : !((Object)this$status).equals(other$status)) {
return false;
}
String this$statusString = this.getStatusString();
String other$statusString = other.getStatusString();
if (this$statusString == null ? other$statusString != null : !this$statusString.equals(other$statusString)) {
return false;
}
String this$elevatorFloorIdList = this.getElevatorFloorIdList();
String other$elevatorFloorIdList = other.getElevatorFloorIdList();
if (this$elevatorFloorIdList == null ? other$elevatorFloorIdList != null : !this$elevatorFloorIdList.equals(other$elevatorFloorIdList)) {
return false;
}
Long this$lastHeartbeatTime = this.getLastHeartbeatTime();
Long other$lastHeartbeatTime = other.getLastHeartbeatTime();
if (this$lastHeartbeatTime == null ? other$lastHeartbeatTime != null : !((Object)this$lastHeartbeatTime).equals(other$lastHeartbeatTime)) {
return false;
}
String this$imageStoreId = this.getImageStoreId();
String other$imageStoreId = other.getImageStoreId();
if (this$imageStoreId == null ? other$imageStoreId != null : !this$imageStoreId.equals(other$imageStoreId)) {
return false;
}
String this$ip = this.getIp();
String other$ip = other.getIp();
if (this$ip == null ? other$ip != null : !this$ip.equals(other$ip)) {
return false;
}
Integer this$onlineStatus = this.getOnlineStatus();
Integer other$onlineStatus = other.getOnlineStatus();
return !(this$onlineStatus == null ? other$onlineStatus != null : !((Object)this$onlineStatus).equals(other$onlineStatus));
}
protected boolean canEqual(Object other) {
return other instanceof AcsElevatorDeviceResultDTO;
}
public int hashCode() {
int PRIME = 59;
int result = 1;
String $id = this.getId();
result = result * 59 + ($id == null ? 43 : $id.hashCode());
String $businessId = this.getBusinessId();
result = result * 59 + ($businessId == null ? 43 : $businessId.hashCode());
String $deviceId = this.getDeviceId();
result = result * 59 + ($deviceId == null ? 43 : $deviceId.hashCode());
String $deviceCode = this.getDeviceCode();
result = result * 59 + ($deviceCode == null ? 43 : $deviceCode.hashCode());
String $deviceName = this.getDeviceName();
result = result * 59 + ($deviceName == null ? 43 : $deviceName.hashCode());
String $deviceTypeName = this.getDeviceTypeName();
result = result * 59 + ($deviceTypeName == null ? 43 : $deviceTypeName.hashCode());
String $elevatorFloorList = this.getElevatorFloorList();
result = result * 59 + ($elevatorFloorList == null ? 43 : $elevatorFloorList.hashCode());
String $currentFloorId = this.getCurrentFloorId();
result = result * 59 + ($currentFloorId == null ? 43 : $currentFloorId.hashCode());
String $currentFloor = this.getCurrentFloor();
result = result * 59 + ($currentFloor == null ? 43 : $currentFloor.hashCode());
String $currentBuilding = this.getCurrentBuilding();
result = result * 59 + ($currentBuilding == null ? 43 : $currentBuilding.hashCode());
String $currentBuildingId = this.getCurrentBuildingId();
result = result * 59 + ($currentBuildingId == null ? 43 : $currentBuildingId.hashCode());
String $areaName = this.getAreaName();
result = result * 59 + ($areaName == null ? 43 : $areaName.hashCode());
String $areaId = this.getAreaId();
result = result * 59 + ($areaId == null ? 43 : $areaId.hashCode());
Integer $status = this.getStatus();
result = result * 59 + ($status == null ? 43 : ((Object)$status).hashCode());
String $statusString = this.getStatusString();
result = result * 59 + ($statusString == null ? 43 : $statusString.hashCode());
String $elevatorFloorIdList = this.getElevatorFloorIdList();
result = result * 59 + ($elevatorFloorIdList == null ? 43 : $elevatorFloorIdList.hashCode());
Long $lastHeartbeatTime = this.getLastHeartbeatTime();
result = result * 59 + ($lastHeartbeatTime == null ? 43 : ((Object)$lastHeartbeatTime).hashCode());
String $imageStoreId = this.getImageStoreId();
result = result * 59 + ($imageStoreId == null ? 43 : $imageStoreId.hashCode());
String $ip = this.getIp();
result = result * 59 + ($ip == null ? 43 : $ip.hashCode());
Integer $onlineStatus = this.getOnlineStatus();
result = result * 59 + ($onlineStatus == null ? 43 : ((Object)$onlineStatus).hashCode());
return result;
}
public String toString() {
return "AcsElevatorDeviceResultDTO(id=" + this.getId() + ", businessId=" + this.getBusinessId() + ", deviceId=" + this.getDeviceId() + ", deviceCode=" + this.getDeviceCode() + ", deviceName=" + this.getDeviceName() + ", deviceTypeName=" + this.getDeviceTypeName() + ", elevatorFloorList=" + this.getElevatorFloorList() + ", currentFloorId=" + this.getCurrentFloorId() + ", currentFloor=" + this.getCurrentFloor() + ", currentBuilding=" + this.getCurrentBuilding() + ", currentBuildingId=" + this.getCurrentBuildingId() + ", areaName=" + this.getAreaName() + ", areaId=" + this.getAreaId() + ", status=" + this.getStatus() + ", statusString=" + this.getStatusString() + ", elevatorFloorIdList=" + this.getElevatorFloorIdList() + ", lastHeartbeatTime=" + this.getLastHeartbeatTime() + ", imageStoreId=" + this.getImageStoreId() + ", ip=" + this.getIp() + ", onlineStatus=" + this.getOnlineStatus() + ")";
}
}
@@ -0,0 +1,43 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* org.springframework.beans.factory.annotation.Autowired
* org.springframework.stereotype.Repository
*/
package cn.cloudwalk.elevator.device.impl;
import cn.cloudwalk.elevator.device.dao.AcsDeviceTaskDao;
import cn.cloudwalk.elevator.device.dto.AcsDeviceTaskAddDto;
import cn.cloudwalk.elevator.device.dto.AcsDeviceTaskDTO;
import cn.cloudwalk.elevator.device.mapper.AcsDeviceTaskMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
@Repository
public class AcsDeviceTaskDaoImpl
implements AcsDeviceTaskDao {
@Autowired
private AcsDeviceTaskMapper acsDeviceTaskMapper;
@Override
public Integer insert(AcsDeviceTaskAddDto dto) {
return this.acsDeviceTaskMapper.insert(dto);
}
@Override
public Integer updateBingDevices(AcsDeviceTaskAddDto dto) {
return this.acsDeviceTaskMapper.updateBingDevices(dto);
}
@Override
public Integer updateIsStop(AcsDeviceTaskAddDto dto) {
return this.acsDeviceTaskMapper.updateIsStop(dto);
}
@Override
public AcsDeviceTaskDTO getById(String taskId) {
return this.acsDeviceTaskMapper.getById(taskId);
}
}
@@ -0,0 +1,150 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.cloud.context.CloudwalkCallContext
* cn.cloudwalk.cloud.exception.ServiceException
* cn.cloudwalk.elevator.device.dao.AcsDeviceTaskDao
* cn.cloudwalk.elevator.device.dto.AcsDeviceTaskAddDto
* cn.cloudwalk.elevator.device.dto.AcsDeviceTaskDTO
* cn.cloudwalk.elevator.passrule.dao.ImageRuleRefDao
* cn.cloudwalk.elevator.passrule.dto.AcsPassRuleDeleteDto
* cn.cloudwalk.elevator.passrule.dto.AcsPassRuleImageResultDto
* cn.cloudwalk.elevator.util.CollectionUtils
* org.springframework.beans.factory.annotation.Autowired
* org.springframework.scheduling.annotation.Async
* org.springframework.stereotype.Service
* org.springframework.util.ObjectUtils
*/
package cn.cloudwalk.elevator.device.impl;
import cn.cloudwalk.cloud.context.CloudwalkCallContext;
import cn.cloudwalk.cloud.exception.ServiceException;
import cn.cloudwalk.elevator.common.AbstractAcsDeviceService;
import cn.cloudwalk.elevator.device.dao.AcsDeviceTaskDao;
import cn.cloudwalk.elevator.device.dto.AcsDeviceTaskAddDto;
import cn.cloudwalk.elevator.device.dto.AcsDeviceTaskDTO;
import cn.cloudwalk.elevator.device.param.AcsRestructureBindingParam;
import cn.cloudwalk.elevator.device.service.AcsDeviceTaskService;
import cn.cloudwalk.elevator.passrule.dao.ImageRuleRefDao;
import cn.cloudwalk.elevator.passrule.dto.AcsPassRuleDeleteDto;
import cn.cloudwalk.elevator.passrule.dto.AcsPassRuleImageResultDto;
import cn.cloudwalk.elevator.passrule.param.AcsPassRuleDeleteParam;
import cn.cloudwalk.elevator.passrule.param.AcsPassRuleNewParam;
import cn.cloudwalk.elevator.passrule.service.ImageRuleRefService;
import cn.cloudwalk.elevator.person.param.AcsPersonAddParam;
import cn.cloudwalk.elevator.person.param.AcsPersonDeleteParam;
import cn.cloudwalk.elevator.person.service.PersonRuleService;
import cn.cloudwalk.elevator.util.CollectionUtils;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;
import org.springframework.util.ObjectUtils;
@Service
public class AcsDeviceTaskServiceImpl
extends AbstractAcsDeviceService
implements AcsDeviceTaskService {
@Autowired
private PersonRuleService personRuleService;
@Autowired
private ImageRuleRefService imageRuleRefService;
@Resource
private AcsDeviceTaskDao acsDeviceTaskDao;
@Resource
private ImageRuleRefDao imageRuleRefDao;
@Override
@Async(value="updateFloorsExecutor")
public void updateFloors(AcsRestructureBindingParam param, List<AcsPassRuleImageResultDto> addFloors, List<String> delFloorIds, CloudwalkCallContext context) throws ServiceException {
block16: {
try {
if (!CollectionUtils.isEmpty(addFloors)) {
for (AcsPassRuleImageResultDto addFloor : addFloors) {
AcsDeviceTaskDTO task = this.acsDeviceTaskDao.getById(param.getTaskId());
if (task.getIsStop() != 0) break;
if (!ObjectUtils.isEmpty((Object)param.getPersonId())) {
AcsPersonAddParam addParam = new AcsPersonAddParam();
addParam.setPersonIds(Collections.singletonList(param.getPersonId()));
addParam.setParentId(param.getParentId());
addParam.setZoneId(addFloor.getZoneId());
addParam.setZoneName(addFloor.getZoneName());
this.personRuleService.add(addParam, context);
} else {
AcsPassRuleNewParam ruleParam = new AcsPassRuleNewParam();
ruleParam.setParentId(param.getParentId());
ruleParam.setZoneId(addFloor.getZoneId());
ruleParam.setZoneName(addFloor.getZoneName());
if (!ObjectUtils.isEmpty((Object)param.getLabelId())) {
ruleParam.setIncludeLabels(Collections.singletonList(param.getLabelId()));
ruleParam.setRuleName(addFloor.getZoneName() + param.getLabelName());
}
if (!ObjectUtils.isEmpty((Object)param.getOrgId())) {
ruleParam.setIncludeOrganizations(Collections.singletonList(param.getOrgId()));
ruleParam.setRuleName(addFloor.getZoneName() + param.getOrgName());
}
this.imageRuleRefService.addOnlyRule(ruleParam, context);
}
AcsDeviceTaskAddDto addDto = new AcsDeviceTaskAddDto();
addDto.setId(task.getId());
addDto.setBindDevices(Integer.valueOf(task.getBindDevices() + 1));
this.acsDeviceTaskDao.updateBingDevices(addDto);
}
}
if (CollectionUtils.isEmpty(delFloorIds)) break block16;
List ruleList = this.imageRuleRefDao.listZoneInfoByIds(delFloorIds);
HashMap ruleMap = new HashMap();
ruleList.forEach(rule -> ruleMap.put(rule.getZoneId(), rule.getZoneName()));
for (String delFloorId : delFloorIds) {
AcsDeviceTaskDTO task = this.acsDeviceTaskDao.getById(param.getTaskId());
if (task.getIsStop() == 0) {
if (!ObjectUtils.isEmpty((Object)param.getPersonId())) {
AcsPersonDeleteParam delParam = new AcsPersonDeleteParam();
delParam.setParentId(param.getParentId());
delParam.setZoneId(delFloorId);
delParam.setPersonIds(Collections.singletonList(param.getPersonId()));
this.personRuleService.delete(delParam, context);
} else {
String ruleId;
String ruleName = "";
if (!ObjectUtils.isEmpty((Object)param.getLabelName())) {
ruleName = (String)ruleMap.get(delFloorId) + param.getLabelName();
}
if (!ObjectUtils.isEmpty((Object)param.getOrgName())) {
ruleName = (String)ruleMap.get(delFloorId) + param.getOrgName();
}
if (!ObjectUtils.isEmpty((Object)(ruleId = this.imageRuleRefDao.getByRuleName(ruleName, delFloorId)))) {
AcsPassRuleDeleteParam deleteParam = new AcsPassRuleDeleteParam();
deleteParam.setIds(Collections.singletonList(ruleId));
deleteParam.setZoneId(delFloorId);
deleteParam.setParentId(param.getParentId());
this.imageRuleRefService.delete(deleteParam, context);
} else {
AcsPassRuleDeleteDto dto = new AcsPassRuleDeleteDto();
dto.setZoneId(delFloorId);
dto.setLabelId(param.getLabelId());
dto.setOrgId(param.getOrgId());
this.imageRuleRefDao.deleteByOrgAndLabel(dto);
}
}
AcsDeviceTaskAddDto addDto = new AcsDeviceTaskAddDto();
addDto.setId(task.getId());
addDto.setBindDevices(Integer.valueOf(task.getBindDevices() + 1));
this.acsDeviceTaskDao.updateBingDevices(addDto);
continue;
}
break;
}
}
catch (Exception e) {
this.logger.error("\u5904\u7406\u8bbe\u5907\u4efb\u52a1\u5931\u8d25\uff0c\u5931\u8d25\u539f\u56e0\uff1a{}", (Throwable)e);
throw new ServiceException(e.getMessage());
}
}
}
}
@@ -0,0 +1,154 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.cloud.exception.DataAccessException
* cn.cloudwalk.cloud.exception.ServiceException
* cn.cloudwalk.cloud.page.CloudwalkPageAble
* cn.cloudwalk.cloud.page.CloudwalkPageInfo
* cn.cloudwalk.cloud.utils.BeanCopyUtils
* com.github.pagehelper.Page
* com.github.pagehelper.PageHelper
* org.slf4j.Logger
* org.slf4j.LoggerFactory
* org.springframework.stereotype.Repository
*/
package cn.cloudwalk.elevator.device.impl;
import cn.cloudwalk.cloud.exception.DataAccessException;
import cn.cloudwalk.cloud.exception.ServiceException;
import cn.cloudwalk.cloud.page.CloudwalkPageAble;
import cn.cloudwalk.cloud.page.CloudwalkPageInfo;
import cn.cloudwalk.cloud.utils.BeanCopyUtils;
import cn.cloudwalk.elevator.device.dao.AcsElevatorDeviceDao;
import cn.cloudwalk.elevator.device.dto.AcsElevatorDeviceAddDTO;
import cn.cloudwalk.elevator.device.dto.AcsElevatorDeviceEditDTO;
import cn.cloudwalk.elevator.device.dto.AcsElevatorDeviceListByBuildingIdDto;
import cn.cloudwalk.elevator.device.dto.AcsElevatorDeviceListDto;
import cn.cloudwalk.elevator.device.dto.AcsElevatorDeviceQueryByIdDTO;
import cn.cloudwalk.elevator.device.dto.AcsElevatorDeviceQueryDTO;
import cn.cloudwalk.elevator.device.dto.AcsElevatorDeviceResultDTO;
import cn.cloudwalk.elevator.device.mapper.AcsElevatorDeviceMapper;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import java.util.Collection;
import java.util.List;
import javax.annotation.Resource;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Repository;
@Repository
public class AcsElevatorDeviceDaoImpl
implements AcsElevatorDeviceDao {
@Resource
private AcsElevatorDeviceMapper acsElevatorDeviceMapper;
protected final Logger logger = LoggerFactory.getLogger(this.getClass());
@Override
public Integer add(AcsElevatorDeviceAddDTO dto) throws DataAccessException {
try {
return this.acsElevatorDeviceMapper.add(dto);
}
catch (Exception e) {
this.logger.error("\u4fdd\u5b58\u6d3e\u68af\u8bbe\u5907\u4fe1\u606f\u5931\u8d25\uff0c\u539f\u56e0\uff1a", (Throwable)e);
throw new DataAccessException((Throwable)e);
}
}
@Override
public Integer edit(AcsElevatorDeviceEditDTO dto) throws DataAccessException {
try {
return this.acsElevatorDeviceMapper.edit(dto);
}
catch (Exception e) {
this.logger.error("\u4fdd\u5b58\u6d3e\u68af\u8bbe\u5907\u4fe1\u606f\u5931\u8d25\uff0c\u539f\u56e0\uff1a", (Throwable)e);
throw new DataAccessException((Throwable)e);
}
}
@Override
public Integer delete(List<String> ids) throws DataAccessException {
try {
return this.acsElevatorDeviceMapper.delete(ids);
}
catch (Exception e) {
this.logger.error("\u5220\u9664\u6d3e\u68af\u8bbe\u5907\u4fe1\u606f\u5931\u8d25\uff0c\u539f\u56e0\uff1a", (Throwable)e);
throw new DataAccessException((Throwable)e);
}
}
@Override
public CloudwalkPageAble<AcsElevatorDeviceResultDTO> page(AcsElevatorDeviceQueryDTO dto, CloudwalkPageInfo page) throws DataAccessException {
try {
PageHelper.startPage((int)page.getCurrentPage(), (int)page.getPageSize());
Page result = (Page)this.acsElevatorDeviceMapper.page(dto);
return new CloudwalkPageAble((Collection)BeanCopyUtils.copy((Collection)result.getResult(), AcsElevatorDeviceResultDTO.class), page, result.getTotal());
}
catch (Exception e) {
this.logger.error("\u8bbe\u5907\u5206\u9875\u67e5\u8be2\u5931\u8d25\uff0c\u539f\u56e0\uff1a", (Throwable)e);
throw new DataAccessException((Throwable)e);
}
}
@Override
public List<AcsElevatorDeviceResultDTO> listByZoneId(AcsElevatorDeviceListDto dto) throws DataAccessException {
try {
return this.acsElevatorDeviceMapper.listByZoneId(dto);
}
catch (Exception e) {
this.logger.error("\u6839\u636e\u697c\u5c42id\u83b7\u53d6\u8bbe\u5907\u4fe1\u606f\u5931\u8d25\uff0c\u539f\u56e0\uff1a", (Throwable)e);
throw new DataAccessException((Throwable)e);
}
}
@Override
public List<AcsElevatorDeviceResultDTO> listByZoneIds(AcsElevatorDeviceListDto dto) throws DataAccessException {
try {
return this.acsElevatorDeviceMapper.listByZoneIds(dto);
}
catch (Exception e) {
this.logger.error("\u6839\u636e\u697c\u5c42id\u96c6\u5408\u83b7\u53d6\u8bbe\u5907\u4fe1\u606f\u5931\u8d25\uff0c\u539f\u56e0\uff1a", (Throwable)e);
throw new DataAccessException((Throwable)e);
}
}
@Override
public List<AcsElevatorDeviceResultDTO> listBuBuildingId(AcsElevatorDeviceListByBuildingIdDto dto) throws DataAccessException {
try {
return this.acsElevatorDeviceMapper.listBuBuildingId(dto);
}
catch (Exception e) {
this.logger.error("\u6839\u636e\u697c\u680bid\u83b7\u53d6\u8bbe\u5907\u4fe1\u606f\u5931\u8d25\uff0c\u539f\u56e0\uff1a", (Throwable)e);
throw new DataAccessException((Throwable)e);
}
}
@Override
public List<AcsElevatorDeviceResultDTO> get(AcsElevatorDeviceQueryDTO dto) throws ServiceException {
return this.acsElevatorDeviceMapper.get(dto);
}
@Override
public AcsElevatorDeviceResultDTO getById(AcsElevatorDeviceQueryByIdDTO dto) throws ServiceException {
return this.acsElevatorDeviceMapper.getById(dto);
}
@Override
public AcsElevatorDeviceResultDTO getByDeciveCode(String deviceCode) throws ServiceException {
AcsElevatorDeviceQueryDTO dto = new AcsElevatorDeviceQueryDTO();
dto.setDeviceCode(deviceCode);
return this.acsElevatorDeviceMapper.getByDeciveCode(dto);
}
@Override
public String getBuildingId(AcsElevatorDeviceQueryDTO dto) throws ServiceException {
return this.acsElevatorDeviceMapper.getBuildingId(dto);
}
@Override
public String getBusinessId(AcsElevatorDeviceQueryDTO dto) throws ServiceException {
return this.acsElevatorDeviceMapper.getBusinessId(dto);
}
}
@@ -0,0 +1,960 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.client.cwoscomponent.intelligent.device.param.DeviceQueryParam
* cn.cloudwalk.client.cwoscomponent.intelligent.device.result.DeviceResult
* cn.cloudwalk.client.cwoscomponent.intelligent.device.service.DeviceService
* cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.param.ImageStoreAddParam
* cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.param.ImageStoreDelParam
* cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.service.ImageStoreService
* cn.cloudwalk.client.cwoscomponent.intelligent.person.param.PersonDetailParam
* cn.cloudwalk.client.cwoscomponent.intelligent.person.result.PersonResult
* cn.cloudwalk.client.cwoscomponent.intelligent.person.service.PersonService
* cn.cloudwalk.client.cwoscomponent.intelligent.sysetting.param.DeviceAreaTreeParam
* cn.cloudwalk.client.cwoscomponent.intelligent.sysetting.result.AreaTreeResult
* cn.cloudwalk.cloud.context.CloudwalkCallContext
* cn.cloudwalk.cloud.exception.ServiceException
* cn.cloudwalk.cloud.page.CloudwalkPageAble
* cn.cloudwalk.cloud.page.CloudwalkPageInfo
* cn.cloudwalk.cloud.result.CloudwalkResult
* cn.cloudwalk.cloud.utils.BeanCopyUtils
* cn.cloudwalk.elevator.device.dao.AcsDeviceTaskDao
* cn.cloudwalk.elevator.device.dao.AcsElevatorDeviceDao
* cn.cloudwalk.elevator.device.dao.DeviceImageStoreDao
* cn.cloudwalk.elevator.device.dto.AcsDeviceTaskAddDto
* cn.cloudwalk.elevator.device.dto.AcsDeviceTaskDTO
* cn.cloudwalk.elevator.device.dto.AcsElevatorDeviceAddDTO
* cn.cloudwalk.elevator.device.dto.AcsElevatorDeviceEditDTO
* cn.cloudwalk.elevator.device.dto.AcsElevatorDeviceListDto
* cn.cloudwalk.elevator.device.dto.AcsElevatorDeviceQueryByIdDTO
* cn.cloudwalk.elevator.device.dto.AcsElevatorDeviceQueryDTO
* cn.cloudwalk.elevator.device.dto.AcsElevatorDeviceQueryFoDTO
* cn.cloudwalk.elevator.device.dto.AcsElevatorDeviceResultDTO
* cn.cloudwalk.elevator.passrule.dao.AcsPassRuleDao
* cn.cloudwalk.elevator.passrule.dao.ImageRuleRefDao
* cn.cloudwalk.elevator.passrule.dto.AcsPassRuleImageDto
* cn.cloudwalk.elevator.passrule.dto.AcsPassRuleImageResultDto
* cn.cloudwalk.elevator.passrule.dto.AcsPassRuleLabelResultDto
* cn.cloudwalk.elevator.passrule.dto.AcsPassRuleQueryDto
* cn.cloudwalk.elevator.util.CollectionUtils
* cn.cloudwalk.elevator.util.StringUtils
* com.alibaba.fastjson.JSONObject
* org.slf4j.Logger
* org.slf4j.LoggerFactory
* org.springframework.beans.factory.annotation.Autowired
* org.springframework.beans.factory.annotation.Value
* org.springframework.stereotype.Repository
* org.springframework.util.ObjectUtils
*/
package cn.cloudwalk.elevator.device.impl;
import cn.cloudwalk.client.cwoscomponent.intelligent.device.param.DeviceQueryParam;
import cn.cloudwalk.client.cwoscomponent.intelligent.device.result.DeviceResult;
import cn.cloudwalk.client.cwoscomponent.intelligent.device.service.DeviceService;
import cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.param.ImageStoreAddParam;
import cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.param.ImageStoreDelParam;
import cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.service.ImageStoreService;
import cn.cloudwalk.client.cwoscomponent.intelligent.person.param.PersonDetailParam;
import cn.cloudwalk.client.cwoscomponent.intelligent.person.result.PersonResult;
import cn.cloudwalk.client.cwoscomponent.intelligent.person.service.PersonService;
import cn.cloudwalk.client.cwoscomponent.intelligent.sysetting.param.DeviceAreaTreeParam;
import cn.cloudwalk.client.cwoscomponent.intelligent.sysetting.result.AreaTreeResult;
import cn.cloudwalk.cloud.context.CloudwalkCallContext;
import cn.cloudwalk.cloud.exception.ServiceException;
import cn.cloudwalk.cloud.page.CloudwalkPageAble;
import cn.cloudwalk.cloud.page.CloudwalkPageInfo;
import cn.cloudwalk.cloud.result.CloudwalkResult;
import cn.cloudwalk.cloud.utils.BeanCopyUtils;
import cn.cloudwalk.elevator.cacheable.AcsAreaTreeCacheableService;
import cn.cloudwalk.elevator.common.service.AcsApplicationService;
import cn.cloudwalk.elevator.device.dao.AcsDeviceTaskDao;
import cn.cloudwalk.elevator.device.dao.AcsElevatorDeviceDao;
import cn.cloudwalk.elevator.device.dao.DeviceImageStoreDao;
import cn.cloudwalk.elevator.device.dto.AcsDeviceTaskAddDto;
import cn.cloudwalk.elevator.device.dto.AcsDeviceTaskDTO;
import cn.cloudwalk.elevator.device.dto.AcsElevatorDeviceAddDTO;
import cn.cloudwalk.elevator.device.dto.AcsElevatorDeviceEditDTO;
import cn.cloudwalk.elevator.device.dto.AcsElevatorDeviceListDto;
import cn.cloudwalk.elevator.device.dto.AcsElevatorDeviceQueryByIdDTO;
import cn.cloudwalk.elevator.device.dto.AcsElevatorDeviceQueryDTO;
import cn.cloudwalk.elevator.device.dto.AcsElevatorDeviceQueryFoDTO;
import cn.cloudwalk.elevator.device.dto.AcsElevatorDeviceResultDTO;
import cn.cloudwalk.elevator.device.param.AcsDeviceQueryParam;
import cn.cloudwalk.elevator.device.param.AcsDeviceRestructureTaskParam;
import cn.cloudwalk.elevator.device.param.AcsElevatorDeviceAddParam;
import cn.cloudwalk.elevator.device.param.AcsElevatorDeviceEditParam;
import cn.cloudwalk.elevator.device.param.AcsElevatorDeviceQueryByIdParam;
import cn.cloudwalk.elevator.device.param.AcsElevatorDeviceQueryParam;
import cn.cloudwalk.elevator.device.param.AcsRestructureBindingParam;
import cn.cloudwalk.elevator.device.param.AcsRestructureQueryParam;
import cn.cloudwalk.elevator.device.result.AcsDeviceNewResult;
import cn.cloudwalk.elevator.device.result.AcsDeviceRestructureResult;
import cn.cloudwalk.elevator.device.result.AcsLabelElevatorResult;
import cn.cloudwalk.elevator.device.service.AcsDeviceTaskService;
import cn.cloudwalk.elevator.device.service.AcsElevatorDeviceService;
import cn.cloudwalk.elevator.device.setting.impl.AcsDeviceImageStoreAppBindServiceImpl;
import cn.cloudwalk.elevator.device.setting.param.DeviceImageStoreAppBindParam;
import cn.cloudwalk.elevator.device.setting.param.DeviceImageStoreAppUnbindParam;
import cn.cloudwalk.elevator.device.setting.service.AcsDeviceImageStoreAppBindService;
import cn.cloudwalk.elevator.passrule.dao.AcsPassRuleDao;
import cn.cloudwalk.elevator.passrule.dao.ImageRuleRefDao;
import cn.cloudwalk.elevator.passrule.dto.AcsPassRuleImageDto;
import cn.cloudwalk.elevator.passrule.dto.AcsPassRuleImageResultDto;
import cn.cloudwalk.elevator.passrule.dto.AcsPassRuleLabelResultDto;
import cn.cloudwalk.elevator.passrule.dto.AcsPassRuleQueryDto;
import cn.cloudwalk.elevator.passrule.impl.AbstractAcsPassService;
import cn.cloudwalk.elevator.passrule.service.AcsPassRuleService;
import cn.cloudwalk.elevator.util.CollectionUtils;
import cn.cloudwalk.elevator.util.StringUtils;
import com.alibaba.fastjson.JSONObject;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import javax.annotation.Resource;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Repository;
import org.springframework.util.ObjectUtils;
@Repository
public class AcsElevatorDeviceServiceImpl
extends AbstractAcsPassService
implements AcsElevatorDeviceService {
@Value(value="${floor.building.id}")
private String floorBuildingId;
@Resource
private ImageStoreService imageStoreService;
@Resource
private AcsElevatorDeviceDao acsElevatorDeviceDao;
@Resource
private AcsPassRuleDao acsPassRuleDao;
@Resource
private ImageRuleRefDao imageRuleRefDao;
@Autowired
private AcsDeviceTaskService acsDeviceTaskService;
@Resource
private AcsDeviceTaskDao acsDeviceTaskDao;
@Resource
private DeviceImageStoreDao deviceImageStoreDao;
@Resource
private PersonService personService;
@Resource
private AcsDeviceImageStoreAppBindService acsDeviceImageStoreAppBindService;
@Resource
private AcsDeviceImageStoreAppBindServiceImpl acsDeviceImageStoreAppBindServiceImpl;
@Resource
private DeviceService deviceService;
@Autowired
private AcsApplicationService acsApplicationService;
@Resource
private AcsPassRuleService acsPassRuleService;
@Resource
private AcsAreaTreeCacheableService acsAreaTreeCacheableService;
protected final Logger logger = LoggerFactory.getLogger(this.getClass());
@Override
public Integer add(AcsElevatorDeviceAddParam param, CloudwalkCallContext context) throws ServiceException {
AcsElevatorDeviceAddDTO dto = (AcsElevatorDeviceAddDTO)BeanCopyUtils.copyProperties((Object)param, AcsElevatorDeviceAddDTO.class);
try {
Long createTime = System.currentTimeMillis();
dto.setCreateTime(createTime);
dto.setLastUpdateTime(createTime);
String currentBuildingId = dto.getCurrentBuildingId();
if (dto.getDeleteFlag() == null) {
dto.setDeleteFlag(Integer.valueOf(1));
}
if (StringUtils.isNotBlank((String)currentBuildingId)) {
String imageStoreId = this.deviceImageStoreDao.getByBuildingId(currentBuildingId);
if (ObjectUtils.isEmpty((Object)imageStoreId)) {
String bigImageStoreId = this.addImageStore(param, context);
this.deviceImageStoreDao.save(currentBuildingId, bigImageStoreId);
} else {
String applicationId = this.acsApplicationService.getApplicationId(context.getCompany().getCompanyId());
DeviceImageStoreAppBindParam bindParam = new DeviceImageStoreAppBindParam();
bindParam.setImageStoreId(imageStoreId);
bindParam.setDeviceId(param.getDeviceId());
bindParam.setApplicationId(applicationId);
this.acsDeviceImageStoreAppBindService.bindDeviceAndImageStore(bindParam, context);
}
}
return this.acsElevatorDeviceDao.add(dto);
}
catch (Exception e) {
this.logger.error("\u4fdd\u5b58\u6d3e\u68af\u8bbe\u5907\u4fe1\u606f\u5931\u8d25\uff0c\u539f\u56e0\uff1a", (Throwable)e);
throw new ServiceException((Throwable)e);
}
}
@Override
public Integer edit(AcsElevatorDeviceEditParam param, CloudwalkCallContext context) throws ServiceException {
AcsElevatorDeviceEditDTO dto = (AcsElevatorDeviceEditDTO)BeanCopyUtils.copyProperties((Object)param, AcsElevatorDeviceEditDTO.class);
try {
AcsElevatorDeviceQueryByIdDTO deviceQueryByIdDTO = new AcsElevatorDeviceQueryByIdDTO();
deviceQueryByIdDTO.setId(param.getId());
AcsElevatorDeviceResultDTO deviceResultDTO = this.acsElevatorDeviceDao.getById(deviceQueryByIdDTO);
String oldImageStoreId = this.deviceImageStoreDao.getByBuildingId(deviceResultDTO.getCurrentBuildingId());
if (deviceResultDTO != null && StringUtils.isNotBlank((String)deviceResultDTO.getCurrentFloorId()) && !deviceResultDTO.getCurrentBuildingId().equals(param.getCurrentBuildingId())) {
String applicationId = this.acsApplicationService.getApplicationId(context.getCompany().getCompanyId());
DeviceImageStoreAppUnbindParam unbindParam = new DeviceImageStoreAppUnbindParam();
unbindParam.setApplicationId(applicationId);
unbindParam.setImageStoreId(oldImageStoreId);
unbindParam.setDeviceId(deviceResultDTO.getDeviceId());
unbindParam.setDeviceCode(deviceResultDTO.getDeviceCode());
this.acsDeviceImageStoreAppBindService.unbindAppImageStoreDeviceNotDeleteImage(unbindParam, context);
String imageStoreId = this.deviceImageStoreDao.getByBuildingId(param.getCurrentBuildingId());
if (ObjectUtils.isEmpty((Object)imageStoreId)) {
AcsElevatorDeviceAddParam addParam = (AcsElevatorDeviceAddParam)BeanCopyUtils.copyProperties((Object)param, AcsElevatorDeviceAddParam.class);
String bigImageStoreId = this.addImageStore(addParam, context);
this.deviceImageStoreDao.save(param.getCurrentBuildingId(), bigImageStoreId);
} else {
DeviceImageStoreAppBindParam bindParam = new DeviceImageStoreAppBindParam();
bindParam.setImageStoreId(imageStoreId);
bindParam.setDeviceId(deviceResultDTO.getDeviceId());
bindParam.setApplicationId(applicationId);
this.acsDeviceImageStoreAppBindService.bindDeviceAndImageStore(bindParam, context);
}
}
Long nowTime = System.currentTimeMillis();
dto.setLastUpdateTime(nowTime);
return this.acsElevatorDeviceDao.edit(dto);
}
catch (Exception e) {
this.logger.error("\u66f4\u65b0\u6d3e\u68af\u8bbe\u5907\u4fe1\u606f\u5931\u8d25\uff0c\u539f\u56e0\uff1a", (Throwable)e);
throw new ServiceException((Throwable)e);
}
}
@Override
public Integer delete(List<String> ids, CloudwalkCallContext context) throws ServiceException {
try {
String applicationId = this.acsApplicationService.getApplicationId(context.getCompany().getCompanyId());
for (String id : ids) {
AcsElevatorDeviceQueryByIdDTO byIdDTO = new AcsElevatorDeviceQueryByIdDTO();
byIdDTO.setId(id);
AcsElevatorDeviceResultDTO deviceResultDTO = this.acsElevatorDeviceDao.getById(byIdDTO);
String imageStoreId = this.deviceImageStoreDao.getByBuildingId(deviceResultDTO.getCurrentBuildingId());
DeviceImageStoreAppUnbindParam unbindParam = new DeviceImageStoreAppUnbindParam();
unbindParam.setApplicationId(applicationId);
unbindParam.setImageStoreId(imageStoreId);
unbindParam.setDeviceId(deviceResultDTO.getDeviceId());
unbindParam.setDeviceCode(deviceResultDTO.getDeviceCode());
this.acsDeviceImageStoreAppBindService.unbindAppImageStoreDeviceNotDeleteImage(unbindParam, context);
}
int result = this.acsElevatorDeviceDao.delete(ids);
return 1;
}
catch (Exception e) {
this.logger.error("\u66f4\u65b0\u6d3e\u68af\u8bbe\u5907\u4fe1\u606f\u5931\u8d25\uff0c\u539f\u56e0\uff1a", (Throwable)e);
throw new ServiceException((Throwable)e);
}
}
@Override
public String getBuildingId(AcsElevatorDeviceQueryParam param) throws ServiceException {
AcsElevatorDeviceQueryDTO dto = (AcsElevatorDeviceQueryDTO)BeanCopyUtils.copyProperties((Object)param, AcsElevatorDeviceQueryDTO.class);
return this.acsElevatorDeviceDao.getBuildingId(dto);
}
@Override
public String getBusinessId(AcsElevatorDeviceQueryParam param) throws ServiceException {
AcsElevatorDeviceQueryDTO dto = (AcsElevatorDeviceQueryDTO)BeanCopyUtils.copyProperties((Object)param, AcsElevatorDeviceQueryDTO.class);
return this.acsElevatorDeviceDao.getBusinessId(dto);
}
@Override
public CloudwalkResult<CloudwalkPageAble<AcsElevatorDeviceResultDTO>> get(AcsElevatorDeviceQueryParam param, CloudwalkCallContext context) throws ServiceException {
AcsElevatorDeviceQueryDTO dto = (AcsElevatorDeviceQueryDTO)BeanCopyUtils.copyProperties((Object)param, AcsElevatorDeviceQueryDTO.class);
dto.setBusinessId(context.getCompany().getCompanyId());
CloudwalkPageInfo page = new CloudwalkPageInfo(param.getCurrentPage(), param.getRowsOfPage());
try {
CloudwalkPageAble deviceList = this.acsElevatorDeviceDao.page(dto, page);
return CloudwalkResult.success((Object)deviceList);
}
catch (Exception e) {
this.logger.error("\u5206\u9875\u67e5\u8be2\u6d3e\u68af\u8bbe\u5907\u5931\u8d25\uff0c\u5931\u8d25\u539f\u56e0\uff1a", (Throwable)e);
throw new ServiceException("76260108", this.getMessage("76260108"));
}
}
@Override
public CloudwalkResult<CloudwalkPageAble<DeviceResult>> devicePage(AcsDeviceQueryParam param, CloudwalkPageInfo pageInfo, CloudwalkCallContext context) throws ServiceException {
try {
DeviceQueryParam queryParam = new DeviceQueryParam();
if (!ObjectUtils.isEmpty((Object)param.getDeviceName())) {
queryParam.setDeviceName(param.getDeviceName());
}
if (!ObjectUtils.isEmpty((Object)param.getAreaId())) {
queryParam.setAreaIds(Collections.singletonList(param.getAreaId()));
}
if (!ObjectUtils.isEmpty((Object)param.getDeviceCategoryId())) {
queryParam.setDeviceTypeCategoryId(param.getDeviceCategoryId());
}
queryParam.setBusinessId(context.getCompany().getCompanyId());
CloudwalkResult pageResult = this.deviceService.list(queryParam, context);
List<Object> result = new ArrayList();
if (!pageResult.isSuccess() || CollectionUtils.isEmpty((Collection)((Collection)pageResult.getData()))) {
return CloudwalkResult.success((Object)new CloudwalkPageAble(result, pageInfo, 0L));
}
List<DeviceResult> deviceResult = this.deviceFilter((List)pageResult.getData(), context);
if (CollectionUtils.isEmpty(deviceResult)) {
return CloudwalkResult.success((Object)new CloudwalkPageAble(result, pageInfo, 0L));
}
Map<String, String> areaMap = this.getAllAreaMap(context);
result = this.page(this.convertDeviceNewResult(deviceResult, areaMap), pageInfo.getPageSize(), pageInfo.getCurrentPage());
return CloudwalkResult.success((Object)new CloudwalkPageAble(result, pageInfo, (long)deviceResult.size()));
}
catch (Exception e) {
this.logger.error("\u5206\u9875\u67e5\u8be2\u8bbe\u5907\u5f02\u5e38\uff0c\u539f\u56e0\uff1a", (Throwable)e);
throw new ServiceException((Throwable)e);
}
}
@Override
public List<AcsElevatorDeviceQueryFoDTO> getFo(AcsElevatorDeviceQueryParam param) throws ServiceException {
AcsElevatorDeviceQueryDTO dto = (AcsElevatorDeviceQueryDTO)BeanCopyUtils.copyProperties((Object)param, AcsElevatorDeviceQueryDTO.class);
List deviceList = this.acsElevatorDeviceDao.get(dto);
ArrayList<AcsElevatorDeviceQueryFoDTO> deviceFoList = new ArrayList<AcsElevatorDeviceQueryFoDTO>();
for (AcsElevatorDeviceResultDTO resultDTO : deviceList) {
AcsElevatorDeviceQueryFoDTO foDto = (AcsElevatorDeviceQueryFoDTO)BeanCopyUtils.copyProperties((Object)resultDTO, AcsElevatorDeviceQueryFoDTO.class);
deviceFoList.add(foDto);
}
return deviceFoList;
}
@Override
public AcsElevatorDeviceResultDTO getById(AcsElevatorDeviceQueryByIdParam param, CloudwalkCallContext var2) throws ServiceException {
AcsElevatorDeviceQueryByIdDTO dto = (AcsElevatorDeviceQueryByIdDTO)BeanCopyUtils.copyProperties((Object)param, AcsElevatorDeviceQueryByIdDTO.class);
AcsElevatorDeviceResultDTO resultDTO = this.acsElevatorDeviceDao.getById(dto);
if (resultDTO != null && StringUtils.isNotBlank((String)resultDTO.getDeviceId())) {
DeviceResult deviceResult;
DeviceQueryParam deviceQueryParam = new DeviceQueryParam();
deviceQueryParam.setId(resultDTO.getId());
CloudwalkResult result = this.deviceService.list(deviceQueryParam, var2);
List list = (List)result.getData();
if (list != null && list.size() > 0 && (deviceResult = (DeviceResult)list.get(0)) != null) {
String id = deviceResult.getId();
Long lastHeartbeatTime = deviceResult.getLastHeartbeatTime();
String status = deviceResult.getOnlineStatus();
resultDTO.setStatusString(status);
resultDTO.setLastHeartbeatTime(lastHeartbeatTime);
}
}
return resultDTO;
}
@Override
public AcsElevatorDeviceResultDTO getByDeciveCode(String deviceCode) throws ServiceException {
return this.acsElevatorDeviceDao.getByDeciveCode(deviceCode);
}
@Override
public CloudwalkResult listUnbindFloors(AcsRestructureQueryParam param, CloudwalkCallContext context) throws ServiceException {
try {
List floorList;
AcsPassRuleImageDto dto;
ArrayList results = new ArrayList();
if (!ObjectUtils.isEmpty((Object)param.getPersonId())) {
dto = new AcsPassRuleImageDto();
dto.setPersonId(param.getPersonId());
PersonDetailParam detailParam = new PersonDetailParam();
detailParam.setId(param.getPersonId());
detailParam.setBusinessId(context.getCompany().getCompanyId());
CloudwalkResult detail = this.personService.detail(detailParam, context);
if (!CollectionUtils.isEmpty((Collection)((PersonResult)detail.getData()).getLabelIds())) {
dto.setIncludeLabels(((PersonResult)detail.getData()).getLabelIds());
}
if (!CollectionUtils.isEmpty((Collection)((PersonResult)detail.getData()).getOrganizationIds())) {
dto.setIncludeOrganizations(((PersonResult)detail.getData()).getOrganizationIds());
}
floorList = this.imageRuleRefDao.listByPersonInfo(dto);
} else {
dto = new AcsPassRuleImageDto();
if (!ObjectUtils.isEmpty((Object)param.getLabelId())) {
dto.setIncludeLabels(Collections.singletonList(param.getLabelId()));
}
if (!ObjectUtils.isEmpty((Object)param.getOrgId())) {
dto.setIncludeOrganizations(Collections.singletonList(param.getOrgId()));
}
floorList = this.imageRuleRefDao.listByRestructure(dto);
}
ArrayList floorIds = new ArrayList();
if (!CollectionUtils.isEmpty((Collection)floorList)) {
floorList.forEach(floor -> floorIds.add(floor.getZoneId()));
}
AcsPassRuleQueryDto queryDto = new AcsPassRuleQueryDto();
queryDto.setZoneIds(floorIds);
return CloudwalkResult.success((Object)this.imageRuleRefDao.listByNotZoneIds(queryDto));
}
catch (Exception e) {
this.logger.error("\u67e5\u8be2\u672a\u7ed1\u5b9a\u7684\u6d3e\u68af\u697c\u5c42\u5f02\u5e38\uff0c\u539f\u56e0\uff1a", (Throwable)e);
throw new ServiceException((Throwable)e);
}
}
@Override
public CloudwalkResult listFloors(AcsRestructureQueryParam param, CloudwalkCallContext context) throws ServiceException {
try {
List unBindFloors;
List floorList;
AcsPassRuleImageDto dto;
ArrayList<AcsDeviceRestructureResult> results = new ArrayList<AcsDeviceRestructureResult>();
if (!ObjectUtils.isEmpty((Object)param.getPersonId())) {
dto = new AcsPassRuleImageDto();
dto.setPersonId(param.getPersonId());
PersonDetailParam detailParam = new PersonDetailParam();
detailParam.setId(param.getPersonId());
detailParam.setBusinessId(context.getCompany().getCompanyId());
CloudwalkResult detail = this.personService.detail(detailParam, context);
if (!CollectionUtils.isEmpty((Collection)((PersonResult)detail.getData()).getLabelIds())) {
dto.setIncludeLabels(((PersonResult)detail.getData()).getLabelIds());
}
if (!CollectionUtils.isEmpty((Collection)((PersonResult)detail.getData()).getOrganizationIds())) {
dto.setIncludeOrganizations(((PersonResult)detail.getData()).getOrganizationIds());
}
floorList = this.imageRuleRefDao.listByPersonInfo(dto);
} else {
dto = new AcsPassRuleImageDto();
if (!ObjectUtils.isEmpty((Object)param.getLabelId())) {
dto.setIncludeLabels(Collections.singletonList(param.getLabelId()));
}
if (!ObjectUtils.isEmpty((Object)param.getOrgId())) {
dto.setIncludeOrganizations(Collections.singletonList(param.getOrgId()));
}
floorList = this.imageRuleRefDao.listByRestructure(dto);
}
dto = new AcsElevatorDeviceListDto();
ArrayList floorIds = new ArrayList();
if (!CollectionUtils.isEmpty((Collection)floorList)) {
floorList.forEach(floor -> floorIds.add(floor.getZoneId()));
}
AcsPassRuleQueryDto queryDto = new AcsPassRuleQueryDto();
if (!ObjectUtils.isEmpty((Object)param.getZoneId())) {
if (floorIds.contains(param.getZoneId())) {
return CloudwalkResult.success(results);
}
queryDto.setZoneId(param.getZoneId());
unBindFloors = this.imageRuleRefDao.listByNotZoneIds(queryDto);
} else {
queryDto.setZoneIds(floorIds);
unBindFloors = this.imageRuleRefDao.listByNotZoneIds(queryDto);
}
ArrayList unBindFloorIds = new ArrayList();
if (CollectionUtils.isEmpty((Collection)unBindFloors)) {
return CloudwalkResult.success(results);
}
unBindFloors.forEach(floor -> unBindFloorIds.add(floor.getZoneId()));
if (!ObjectUtils.isEmpty((Object)param.getZoneId())) {
dto.setCurrentFloorId(param.getZoneId());
} else {
dto.setCurrentFloorIds(unBindFloorIds);
}
List deviceList = this.acsElevatorDeviceDao.listByZoneIds((AcsElevatorDeviceListDto)dto);
ArrayList deviceIds = new ArrayList();
HashMap<String, DeviceResult> mapDevice = new HashMap<String, DeviceResult>();
if (!CollectionUtils.isEmpty((Collection)deviceList)) {
deviceList.forEach(device -> deviceIds.add(device.getDeviceId()));
DeviceQueryParam queryParam = new DeviceQueryParam();
queryParam.setBusinessId(context.getCompany().getCompanyId());
queryParam.setIds(deviceIds);
CloudwalkResult resultList = this.deviceService.list(queryParam, context);
List list = (List)resultList.getData();
if (list != null && list.size() > 0) {
for (DeviceResult deviceResult : list) {
mapDevice.put(deviceResult.getId(), deviceResult);
}
}
}
for (AcsPassRuleImageResultDto floor2 : unBindFloors) {
AcsDeviceRestructureResult result = new AcsDeviceRestructureResult();
result.setZoneId(floor2.getZoneId());
result.setZoneName(floor2.getZoneName());
if (!CollectionUtils.isEmpty((Collection)deviceList)) {
result.setParentId(((AcsElevatorDeviceResultDTO)deviceList.get(0)).getCurrentBuildingId());
} else {
result.setParentId(this.floorBuildingId);
}
String online = "";
String offline = "";
if (!CollectionUtils.isEmpty((Collection)deviceList)) {
for (int i = 0; i < deviceList.size(); ++i) {
DeviceResult deviceResult;
if (!floor2.getZoneId().equals(((AcsElevatorDeviceResultDTO)deviceList.get(i)).getCurrentFloorId()) || ObjectUtils.isEmpty((Object)(deviceResult = (DeviceResult)mapDevice.get(((AcsElevatorDeviceResultDTO)deviceList.get(i)).getDeviceId())))) continue;
if ("2".equals(deviceResult.getOnlineStatus())) {
if ("".equals(online)) {
online = online + deviceResult.getDeviceName();
continue;
}
online = online + "," + deviceResult.getDeviceName();
continue;
}
offline = "".equals(offline) ? offline + deviceResult.getDeviceName() : offline + ',' + deviceResult.getDeviceName();
}
}
result.setOnlineDevices(online);
result.setOfflineDevices(offline);
results.add(result);
}
return CloudwalkResult.success(results);
}
catch (Exception e) {
this.logger.error("\u67e5\u8be2\u672a\u7ed1\u5b9a\u7684\u6d3e\u68af\u697c\u5c42\u5f02\u5e38\uff0c\u539f\u56e0\uff1a", (Throwable)e);
throw new ServiceException((Throwable)e);
}
}
/*
* Enabled force condition propagation
* Lifted jumps to return sites
*/
@Override
public CloudwalkResult listCondition(AcsRestructureQueryParam param, CloudwalkCallContext context) throws ServiceException {
try {
List floorList;
AcsPassRuleImageDto dto;
ArrayList<AcsDeviceRestructureResult> results = new ArrayList<AcsDeviceRestructureResult>();
if (!ObjectUtils.isEmpty((Object)param.getBusinessId())) {
context.getCompany().setCompanyId(param.getBusinessId());
}
if (!ObjectUtils.isEmpty((Object)param.getPersonId())) {
dto = new AcsPassRuleImageDto();
dto.setPersonId(param.getPersonId());
PersonDetailParam detailParam = new PersonDetailParam();
detailParam.setId(param.getPersonId());
detailParam.setBusinessId(context.getCompany().getCompanyId());
CloudwalkResult detail = this.personService.detail(detailParam, context);
if (!CollectionUtils.isEmpty((Collection)((PersonResult)detail.getData()).getLabelIds())) {
dto.setIncludeLabels(((PersonResult)detail.getData()).getLabelIds());
}
if (!CollectionUtils.isEmpty((Collection)((PersonResult)detail.getData()).getOrganizationIds())) {
dto.setIncludeOrganizations(((PersonResult)detail.getData()).getOrganizationIds());
}
floorList = this.imageRuleRefDao.listByPersonInfo(dto);
} else {
dto = new AcsPassRuleImageDto();
if (!ObjectUtils.isEmpty((Object)param.getLabelId())) {
dto.setIncludeLabels(Collections.singletonList(param.getLabelId()));
}
if (!ObjectUtils.isEmpty((Object)param.getOrgId())) {
dto.setIncludeOrganizations(Collections.singletonList(param.getOrgId()));
}
floorList = this.imageRuleRefDao.listByRestructure(dto);
}
if (CollectionUtils.isEmpty((Collection)floorList)) return CloudwalkResult.success(results);
dto = new AcsElevatorDeviceListDto();
ArrayList floorIds = new ArrayList();
floorList.forEach(floor -> floorIds.add(floor.getZoneId()));
if (!ObjectUtils.isEmpty((Object)param.getZoneId())) {
if (!floorIds.contains(param.getZoneId())) return CloudwalkResult.success(results);
dto.setCurrentFloorIds(Collections.singletonList(param.getZoneId()));
} else {
dto.setCurrentFloorIds(floorIds);
}
List deviceList = this.acsElevatorDeviceDao.listByZoneIds((AcsElevatorDeviceListDto)dto);
if (!CollectionUtils.isEmpty((Collection)deviceList)) {
ArrayList deviceIds = new ArrayList();
deviceList.forEach(device -> deviceIds.add(device.getDeviceId()));
HashMap<String, DeviceResult> mapDevice = new HashMap<String, DeviceResult>();
DeviceQueryParam queryParam = new DeviceQueryParam();
queryParam.setBusinessId(context.getCompany().getCompanyId());
queryParam.setIds(deviceIds);
CloudwalkResult resultList = this.deviceService.list(queryParam, context);
List list = (List)resultList.getData();
if (list != null && list.size() > 0) {
for (DeviceResult deviceResult : list) {
mapDevice.put(deviceResult.getId(), deviceResult);
}
}
for (AcsPassRuleImageResultDto floor2 : floorList) {
if (!ObjectUtils.isEmpty((Object)param.getZoneId()) && !param.getZoneId().equals(floor2.getZoneId())) continue;
AcsDeviceRestructureResult result = new AcsDeviceRestructureResult();
result.setZoneId(floor2.getZoneId());
result.setZoneName(floor2.getZoneName());
result.setParentId(this.floorBuildingId);
String online = "";
String offline = "";
for (int i = 0; i < deviceList.size(); ++i) {
if (!floor2.getZoneId().equals(((AcsElevatorDeviceResultDTO)deviceList.get(i)).getCurrentFloorId())) continue;
DeviceResult deviceResult = (DeviceResult)mapDevice.get(((AcsElevatorDeviceResultDTO)deviceList.get(i)).getDeviceId());
result.setParentId(((AcsElevatorDeviceResultDTO)deviceList.get(i)).getCurrentBuildingId());
if (ObjectUtils.isEmpty((Object)deviceResult)) continue;
if ("2".equals(deviceResult.getOnlineStatus())) {
if ("".equals(online)) {
online = online + deviceResult.getDeviceName();
continue;
}
online = online + "," + deviceResult.getDeviceName();
continue;
}
offline = "".equals(offline) ? offline + deviceResult.getDeviceName() : offline + ',' + deviceResult.getDeviceName();
}
result.setOnlineDevices(online);
result.setOfflineDevices(offline);
results.add(result);
}
return CloudwalkResult.success(results);
}
if (!ObjectUtils.isEmpty((Object)param.getZoneId())) {
for (AcsPassRuleImageResultDto floor3 : floorList) {
if (!floor3.getZoneId().equals(param.getZoneId())) continue;
AcsDeviceRestructureResult result = new AcsDeviceRestructureResult();
result.setZoneId(floor3.getZoneId());
result.setZoneName(floor3.getZoneName());
result.setParentId(this.floorBuildingId);
results.add(result);
return CloudwalkResult.success(results);
}
return CloudwalkResult.success(results);
}
for (AcsPassRuleImageResultDto floor4 : floorList) {
AcsDeviceRestructureResult result = new AcsDeviceRestructureResult();
result.setZoneId(floor4.getZoneId());
result.setZoneName(floor4.getZoneName());
result.setParentId(this.floorBuildingId);
results.add(result);
}
return CloudwalkResult.success(results);
}
catch (Exception e) {
this.logger.error("\u6839\u636e\u673a\u6784id\u3001\u6807\u7b7eid\u3001\u4eba\u5458id\u67e5\u8be2\u6d3e\u68af\u8bbe\u5907\u5f02\u5e38\uff0c\u539f\u56e0\uff1a", (Throwable)e);
throw new ServiceException((Throwable)e);
}
}
@Override
public CloudwalkResult listConditionByLabelIds(AcsRestructureQueryParam param, CloudwalkCallContext context) throws ServiceException {
try {
ArrayList<AcsLabelElevatorResult> results = new ArrayList<AcsLabelElevatorResult>();
if (CollectionUtils.isEmpty(param.getLabelIds())) {
return CloudwalkResult.success(null);
}
AcsPassRuleImageDto dto = new AcsPassRuleImageDto();
dto.setIncludeLabels(param.getLabelIds());
List floorList = this.imageRuleRefDao.listFloorsByRestructure(dto);
HashMap<String, List> maps = new HashMap<String, List>();
if (CollectionUtils.isEmpty((Collection)floorList)) {
for (String label : param.getLabelIds()) {
AcsLabelElevatorResult result = new AcsLabelElevatorResult();
result.setLabelId(label);
result.setDetails(null);
results.add(result);
}
} else {
for (AcsPassRuleLabelResultDto resultDto : floorList) {
List dtos = (List)maps.get(resultDto.getLabelId());
if (!CollectionUtils.isEmpty((Collection)dtos)) {
dtos.add(resultDto);
maps.put(resultDto.getLabelId(), dtos);
continue;
}
ArrayList<AcsPassRuleLabelResultDto> dtoList = new ArrayList<AcsPassRuleLabelResultDto>();
dtoList.add(resultDto);
maps.put(resultDto.getLabelId(), dtoList);
}
for (String label : param.getLabelIds()) {
List dtoList = (List)maps.get(label);
AcsLabelElevatorResult result = new AcsLabelElevatorResult();
result.setLabelId(label);
if (!CollectionUtils.isEmpty((Collection)dtoList)) {
result.setDetails(dtoList);
} else {
result.setDetails(null);
}
results.add(result);
}
}
return CloudwalkResult.success(results);
}
catch (Exception e) {
this.logger.error("\u6839\u636e\u6807\u7b7eid\u96c6\u5408\u67e5\u8be2\u6d3e\u68af\u697c\u5c42\u6743\u9650\u5f02\u5e38\uff0c\u539f\u56e0\uff1a", (Throwable)e);
throw new ServiceException((Throwable)e);
}
}
@Override
public CloudwalkResult<String> bindingFloors(AcsRestructureBindingParam param, CloudwalkCallContext context) throws ServiceException {
try {
AcsPassRuleImageDto dto = new AcsPassRuleImageDto();
if (!ObjectUtils.isEmpty((Object)param.getLabelId())) {
dto.setIncludeLabels(Collections.singletonList(param.getLabelId()));
}
if (!ObjectUtils.isEmpty((Object)param.getOrgId())) {
dto.setIncludeOrganizations(Collections.singletonList(param.getOrgId()));
}
List floorList = this.imageRuleRefDao.listByRestructure(dto);
ArrayList<String> floorIds = new ArrayList<String>();
HashMap<String, AcsPassRuleImageResultDto> zoneMap = new HashMap<String, AcsPassRuleImageResultDto>();
for (AcsPassRuleImageResultDto resultDto : floorList) {
floorIds.add(resultDto.getZoneId());
zoneMap.put(resultDto.getZoneId(), resultDto);
}
ArrayList<AcsPassRuleImageResultDto> addFloors = new ArrayList<AcsPassRuleImageResultDto>();
ArrayList<String> delFloorIds = new ArrayList<String>();
ArrayList<String> addFloorIds = new ArrayList<String>();
if (!CollectionUtils.isEmpty((Collection)floorList)) {
for (AcsPassRuleImageResultDto floor : floorList) {
if (param.getZoneIds().contains(floor.getZoneId())) continue;
delFloorIds.add(floor.getZoneId());
}
for (String zoneId : param.getZoneIds()) {
if (floorIds.contains(zoneId)) continue;
addFloorIds.add(zoneId);
}
if (!CollectionUtils.isEmpty(addFloorIds)) {
addFloors.addAll(this.imageRuleRefDao.listZoneInfoByIds(addFloorIds));
}
} else {
addFloors.addAll(this.imageRuleRefDao.listZoneInfoByIds(param.getZoneIds()));
}
if (!CollectionUtils.isEmpty(addFloors) || !CollectionUtils.isEmpty(delFloorIds)) {
String taskId = this.genUUID();
AcsDeviceTaskAddDto addDto = new AcsDeviceTaskAddDto();
addDto.setId(taskId);
addDto.setAllDevices(Integer.valueOf(addFloors.size() + delFloorIds.size()));
addDto.setBindDevices(Integer.valueOf(0));
addDto.setIsStop(Integer.valueOf(0));
this.acsDeviceTaskDao.insert(addDto);
param.setTaskId(taskId);
this.acsDeviceTaskService.updateFloors(param, addFloors, delFloorIds, context);
return CloudwalkResult.success((Object)taskId);
}
return CloudwalkResult.success(null);
}
catch (Exception e) {
this.logger.error("\u6839\u636e\u673a\u6784id\u3001\u6807\u7b7eid\u3001\u4eba\u5458id\u67e5\u8be2\u6d3e\u68af\u8bbe\u5907\u5f02\u5e38\uff0c\u539f\u56e0\uff1a", (Throwable)e);
throw new ServiceException((Throwable)e);
}
}
@Override
public CloudwalkResult<String> bindingPerson(AcsRestructureBindingParam param, CloudwalkCallContext context) throws ServiceException {
try {
AcsPassRuleImageDto dto = new AcsPassRuleImageDto();
dto.setPersonId(param.getPersonId());
PersonDetailParam detailParam = new PersonDetailParam();
detailParam.setId(param.getPersonId());
detailParam.setBusinessId(context.getCompany().getCompanyId());
CloudwalkResult detail = this.personService.detail(detailParam, context);
if (!CollectionUtils.isEmpty((Collection)((PersonResult)detail.getData()).getLabelIds())) {
dto.setIncludeLabels(((PersonResult)detail.getData()).getLabelIds());
}
if (!CollectionUtils.isEmpty((Collection)((PersonResult)detail.getData()).getLabelIds())) {
dto.setIncludeOrganizations(((PersonResult)detail.getData()).getOrganizationIds());
}
List floorList = this.imageRuleRefDao.listByPersonInfo(dto);
ArrayList<String> floorIds = new ArrayList<String>();
HashMap<String, AcsPassRuleImageResultDto> zoneMap = new HashMap<String, AcsPassRuleImageResultDto>();
floorList.forEach(floor -> floorIds.add(floor.getZoneId()));
for (AcsPassRuleImageResultDto resultDto : floorList) {
floorIds.add(resultDto.getZoneId());
zoneMap.put(resultDto.getZoneId(), resultDto);
}
ArrayList<AcsPassRuleImageResultDto> addFloors = new ArrayList<AcsPassRuleImageResultDto>();
ArrayList<String> delFloorIds = new ArrayList<String>();
ArrayList<String> addFloorIds = new ArrayList<String>();
if (!CollectionUtils.isEmpty((Collection)floorList)) {
for (AcsPassRuleImageResultDto floor2 : floorList) {
if (param.getZoneIds().contains(floor2.getZoneId())) continue;
delFloorIds.add(floor2.getZoneId());
}
for (String zoneId : param.getZoneIds()) {
if (floorIds.contains(zoneId)) continue;
addFloorIds.add(zoneId);
}
if (!CollectionUtils.isEmpty(addFloorIds)) {
addFloors.addAll(this.imageRuleRefDao.listZoneInfoByIds(addFloorIds));
}
} else {
addFloors.addAll(this.imageRuleRefDao.listZoneInfoByIds(param.getZoneIds()));
}
if (!CollectionUtils.isEmpty(addFloors) || !CollectionUtils.isEmpty(delFloorIds)) {
String taskId = this.genUUID();
AcsDeviceTaskAddDto addDto = new AcsDeviceTaskAddDto();
addDto.setId(taskId);
addDto.setAllDevices(Integer.valueOf(addFloors.size() + delFloorIds.size()));
addDto.setBindDevices(Integer.valueOf(0));
addDto.setIsStop(Integer.valueOf(0));
this.acsDeviceTaskDao.insert(addDto);
param.setTaskId(taskId);
this.acsDeviceTaskService.updateFloors(param, addFloors, delFloorIds, context);
return CloudwalkResult.success((Object)taskId);
}
return CloudwalkResult.success(null);
}
catch (Exception e) {
this.logger.error("\u6839\u4eba\u5458\u6279\u91cf\u7ed1\u5b9a\u6d3e\u68af\u697c\u5c42\u5f02\u5e38\uff0c\u539f\u56e0\uff1a", (Throwable)e);
throw new ServiceException((Throwable)e);
}
}
@Override
public CloudwalkResult<AcsDeviceTaskDTO> getTask(AcsDeviceRestructureTaskParam param, CloudwalkCallContext context) throws ServiceException {
try {
return CloudwalkResult.success((Object)this.acsDeviceTaskDao.getById(param.getTaskId()));
}
catch (Exception e) {
this.logger.error("\u6839\u636e\u4efb\u52a1id\u67e5\u8be2\u4efb\u52a1\u8be6\u60c5\u5f02\u5e38\uff0c\u539f\u56e0\uff1a", (Throwable)e);
throw new ServiceException((Throwable)e);
}
}
@Override
public CloudwalkResult<Boolean> setTaskStop(AcsDeviceRestructureTaskParam param, CloudwalkCallContext context) throws ServiceException {
try {
AcsDeviceTaskAddDto dto = new AcsDeviceTaskAddDto();
dto.setId(param.getTaskId());
dto.setIsStop(Integer.valueOf(1));
this.acsDeviceTaskDao.updateIsStop(dto);
return CloudwalkResult.success((Object)true);
}
catch (Exception e) {
this.logger.error("\u7f16\u8f91\u4efb\u52a1\u8fdb\u7a0b\u5f02\u5e38\uff0c\u539f\u56e0\uff1a", (Throwable)e);
throw new ServiceException((Throwable)e);
}
}
private String addImageStore(AcsElevatorDeviceAddParam param, CloudwalkCallContext context) throws ServiceException {
ImageStoreAddParam imageStoreAddParam = new ImageStoreAddParam();
String applicationId = this.acsApplicationService.getApplicationId(context.getCompany().getCompanyId());
imageStoreAddParam.setName(param.getCurrentBuilding() + "-\u9ed8\u8ba4\u56fe\u5e93");
imageStoreAddParam.setType(Short.valueOf((short)1));
imageStoreAddParam.setSourceApplicationId(applicationId);
imageStoreAddParam.setBusinessId(context.getCompany().getCompanyId());
CloudwalkResult imageStoreId = this.imageStoreService.add(imageStoreAddParam, context);
if (!imageStoreId.isSuccess()) {
this.logger.info("\u8fdc\u7a0b\u8c03\u7528\u65b0\u589e\u56fe\u5e93\u5931\u8d25,\u539f\u56e0\uff1a" + imageStoreId.getMessage());
throw new ServiceException(imageStoreId.getCode(), imageStoreId.getMessage());
}
this.logger.info("\u8fdc\u7a0b\u8c03\u7528\u65b0\u589e\u56fe\u5e93\u51fa\u53c2\uff1aimageStoreId=[{}]", imageStoreId.getData());
DeviceImageStoreAppBindParam appBindParam = new DeviceImageStoreAppBindParam();
appBindParam.setImageStoreId((String)imageStoreId.getData());
appBindParam.setApplicationId(applicationId);
this.acsDeviceImageStoreAppBindService.bindAppImageStoreDevice(appBindParam, context);
try {
DeviceImageStoreAppBindParam bindParam = new DeviceImageStoreAppBindParam();
bindParam.setImageStoreId((String)imageStoreId.getData());
bindParam.setDeviceId(param.getDeviceId());
bindParam.setApplicationId(applicationId);
this.acsDeviceImageStoreAppBindService.bindDeviceAndImageStore(bindParam, context);
}
catch (ServiceException e) {
this.logger.error("\u56fe\u5e93\u5173\u8054\u5931\u8d25,\u56fe\u5e93id={},\u539f\u56e0:{}", imageStoreId.getData(), (Object)e.getMessage());
ImageStoreDelParam delParam = new ImageStoreDelParam();
delParam.setId((String)imageStoreId.getData());
delParam.setBusinessId(context.getCompany().getCompanyId());
this.logger.info("\u56de\u6eda\u5220\u9664\u56fe\u5e93\u5f00\u59cb,delParam={},context={}", JSONObject.toJSON((Object)delParam), JSONObject.toJSON((Object)context));
CloudwalkResult deleteResult = this.imageStoreService.delete(delParam, context);
this.logger.info("\u5220\u9664\u56fe\u5e93\uff1a\u56fe\u5e93id={},\u7ed3\u679c:{}", (Object)imageStoreId, (Object)deleteResult.getMessage());
throw new ServiceException(e.getCode(), e.getMessage());
}
return (String)imageStoreId.getData();
}
private List<DeviceResult> deviceFilter(List<DeviceResult> pageResult, CloudwalkCallContext context) throws ServiceException {
List<AcsDeviceNewResult> acsDeviceNewResults = this.getAcsDeviceIds(context);
List acsDeviceIds = acsDeviceNewResults.stream().map(AcsDeviceNewResult::getDeviceId).collect(Collectors.toList());
List deviceIds = pageResult.stream().map(DeviceResult::getId).collect(Collectors.toList());
List newList = CollectionUtils.removeList(deviceIds, acsDeviceIds);
ArrayList<DeviceResult> newDeviceResultList = new ArrayList<DeviceResult>();
Map<String, DeviceResult> deviceResultMap = pageResult.stream().collect(Collectors.toMap(DeviceResult::getId, d -> d));
for (String id : newList) {
newDeviceResultList.add(deviceResultMap.get(id));
}
return newDeviceResultList;
}
private List<AcsDeviceNewResult> getAcsDeviceIds(CloudwalkCallContext context) throws ServiceException {
List acsDeviceList;
List<AcsDeviceNewResult> acsDeviceNewResultList = new ArrayList<AcsDeviceNewResult>();
AcsElevatorDeviceQueryDTO dto = new AcsElevatorDeviceQueryDTO();
dto.setBusinessId(context.getCompany().getCompanyId());
try {
acsDeviceList = this.acsElevatorDeviceDao.get(dto);
}
catch (ServiceException e) {
throw new ServiceException("76260007", this.getMessage("76260007"));
}
Map<String, String> areaMap = this.getAllAreaMap(context);
if (CollectionUtils.isNotEmpty((Collection)acsDeviceList)) {
List deviceIds = acsDeviceList.stream().map(AcsElevatorDeviceResultDTO::getDeviceId).collect(Collectors.toList());
DeviceQueryParam queryParam = new DeviceQueryParam();
queryParam.setIds(deviceIds);
queryParam.setBusinessId(context.getCompany().getCompanyId());
CloudwalkResult deviceResult = this.deviceService.list(queryParam, context);
if (deviceResult.isSuccess()) {
if (CollectionUtils.isNotEmpty((Collection)((Collection)deviceResult.getData()))) {
acsDeviceNewResultList = this.convertDeviceNewResult((Collection)deviceResult.getData(), areaMap);
}
} else {
this.logger.error("\u67e5\u8be2\u8bbe\u5907\u4fe1\u606f\u5217\u8868\u5931\u8d25,\u539f\u56e0={}", (Object)deviceResult.getMessage());
throw new ServiceException("\u67e5\u8be2\u8bbe\u5907\u4fe1\u606f\u5217\u8868\u5931\u8d25");
}
}
return acsDeviceNewResultList;
}
protected Map<String, String> getAllAreaMap(CloudwalkCallContext context) {
DeviceAreaTreeParam areaTreeParam = new DeviceAreaTreeParam();
areaTreeParam.setBusinessId(context.getCompany().getCompanyId());
CloudwalkResult<List<AreaTreeResult>> areaTree = this.acsAreaTreeCacheableService.tree(areaTreeParam, context);
HashMap<String, String> areaMap = new HashMap<String, String>();
this.getAreaMap((List)areaTree.getData(), areaMap);
return areaMap;
}
protected void getAreaMap(List<AreaTreeResult> areaTreeResultList, Map<String, String> areaMap) {
for (AreaTreeResult areaTree : areaTreeResultList) {
areaMap.put(areaTree.getId(), areaTree.getName());
if (areaTree.getChildren() == null) continue;
this.getAreaMap(areaTree.getChildren(), areaMap);
}
}
protected List<AcsDeviceNewResult> convertDeviceNewResult(Collection<DeviceResult> datas, Map<String, String> areaMap) {
ArrayList<AcsDeviceNewResult> result = new ArrayList<AcsDeviceNewResult>();
for (DeviceResult data : datas) {
AcsDeviceNewResult acsDeviceResult = new AcsDeviceNewResult();
BeanCopyUtils.copyProperties((Object)data, (Object)acsDeviceResult);
acsDeviceResult.setId(data.getId());
acsDeviceResult.setDeviceId(data.getId());
acsDeviceResult.setDeviceStatus(Integer.valueOf(data.getStatus()));
acsDeviceResult.setDeviceOnlineStatus(Integer.valueOf(data.getOnlineStatus()));
acsDeviceResult.setAddress(this.getAddress(data));
acsDeviceResult.setAreaName(areaMap.get(data.getAreaId()));
result.add(acsDeviceResult);
}
return result;
}
protected String getAddress(DeviceResult data) {
StringBuffer sb = new StringBuffer();
if (StringUtils.isNotBlank((String)data.getDistrictMergeName())) {
sb.append(data.getDistrictMergeName());
}
if (StringUtils.isNotBlank((String)data.getAreaName())) {
sb.append(" ");
sb.append(data.getAreaName());
}
return sb.toString().trim();
}
private List<DeviceResult> page(List<AcsDeviceNewResult> dataList, int pageSize, int currentPage) {
ArrayList<DeviceResult> currentPageList = new ArrayList<DeviceResult>();
if (dataList != null && dataList.size() > 0) {
int currIdx = currentPage > 1 ? (currentPage - 1) * pageSize : 0;
for (int i = 0; i < pageSize && i < dataList.size() - currIdx; ++i) {
AcsDeviceNewResult data = dataList.get(currIdx + i);
DeviceResult deviceResult = (DeviceResult)BeanCopyUtils.copyProperties((Object)data, DeviceResult.class);
currentPageList.add(deviceResult);
}
}
return currentPageList;
}
}
@@ -0,0 +1,32 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.cloud.exception.ServiceException
* org.springframework.stereotype.Repository
*/
package cn.cloudwalk.elevator.device.impl;
import cn.cloudwalk.cloud.exception.ServiceException;
import cn.cloudwalk.elevator.device.dao.DeviceImageStoreDao;
import cn.cloudwalk.elevator.device.mapper.DeviceImageStoreMapper;
import javax.annotation.Resource;
import org.springframework.stereotype.Repository;
@Repository
public class DeviceImageStoreDaoImpl
implements DeviceImageStoreDao {
@Resource
private DeviceImageStoreMapper deviceImageStoreMapper;
@Override
public Boolean save(String buildingId, String imageStoreId) throws ServiceException {
return this.deviceImageStoreMapper.save(buildingId, imageStoreId);
}
@Override
public String getByBuildingId(String buildingId) throws ServiceException {
return this.deviceImageStoreMapper.getByBuildingId(buildingId);
}
}
@@ -0,0 +1,18 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.elevator.device.mapper;
import cn.cloudwalk.elevator.device.dto.AcsDeviceTaskAddDto;
import cn.cloudwalk.elevator.device.dto.AcsDeviceTaskDTO;
public interface AcsDeviceTaskMapper {
public Integer insert(AcsDeviceTaskAddDto var1);
public Integer updateBingDevices(AcsDeviceTaskAddDto var1);
public Integer updateIsStop(AcsDeviceTaskAddDto var1);
public AcsDeviceTaskDTO getById(String var1);
}
@@ -0,0 +1,40 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.elevator.device.mapper;
import cn.cloudwalk.elevator.device.dto.AcsElevatorDeviceAddDTO;
import cn.cloudwalk.elevator.device.dto.AcsElevatorDeviceEditDTO;
import cn.cloudwalk.elevator.device.dto.AcsElevatorDeviceListByBuildingIdDto;
import cn.cloudwalk.elevator.device.dto.AcsElevatorDeviceListDto;
import cn.cloudwalk.elevator.device.dto.AcsElevatorDeviceQueryByIdDTO;
import cn.cloudwalk.elevator.device.dto.AcsElevatorDeviceQueryDTO;
import cn.cloudwalk.elevator.device.dto.AcsElevatorDeviceResultDTO;
import java.util.List;
public interface AcsElevatorDeviceMapper {
public int add(AcsElevatorDeviceAddDTO var1);
public int edit(AcsElevatorDeviceEditDTO var1);
public int delete(List<String> var1);
public List<AcsElevatorDeviceResultDTO> listByZoneId(AcsElevatorDeviceListDto var1);
public List<AcsElevatorDeviceResultDTO> listByZoneIds(AcsElevatorDeviceListDto var1);
public List<AcsElevatorDeviceResultDTO> page(AcsElevatorDeviceQueryDTO var1);
public List<AcsElevatorDeviceResultDTO> listBuBuildingId(AcsElevatorDeviceListByBuildingIdDto var1);
public List<AcsElevatorDeviceResultDTO> get(AcsElevatorDeviceQueryDTO var1);
public AcsElevatorDeviceResultDTO getById(AcsElevatorDeviceQueryByIdDTO var1);
public AcsElevatorDeviceResultDTO getByDeciveCode(AcsElevatorDeviceQueryDTO var1);
public String getBuildingId(AcsElevatorDeviceQueryDTO var1);
public String getBusinessId(AcsElevatorDeviceQueryDTO var1);
}
@@ -0,0 +1,16 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* org.apache.ibatis.annotations.Param
*/
package cn.cloudwalk.elevator.device.mapper;
import org.apache.ibatis.annotations.Param;
public interface DeviceImageStoreMapper {
public Boolean save(@Param(value="buildingId") String var1, @Param(value="imageStoreId") String var2);
public String getByBuildingId(String var1);
}
@@ -0,0 +1,43 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.cloud.page.CloudwalkBasePageForm
*/
package cn.cloudwalk.elevator.device.param;
import cn.cloudwalk.cloud.page.CloudwalkBasePageForm;
import java.io.Serializable;
public class AcsDeviceQueryParam
extends CloudwalkBasePageForm
implements Serializable {
private String deviceName;
private String deviceCategoryId;
private String areaId;
public String getDeviceName() {
return this.deviceName;
}
public void setDeviceName(String deviceName) {
this.deviceName = deviceName;
}
public String getDeviceCategoryId() {
return this.deviceCategoryId;
}
public void setDeviceCategoryId(String deviceCategoryId) {
this.deviceCategoryId = deviceCategoryId;
}
public String getAreaId() {
return this.areaId;
}
public void setAreaId(String areaId) {
this.areaId = areaId;
}
}
@@ -0,0 +1,53 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.elevator.device.param;
import java.io.Serializable;
public class AcsDeviceRestructureTaskParam
implements Serializable {
private static final long serialVersionUID = -7349123760464380004L;
private String taskId;
public String getTaskId() {
return this.taskId;
}
public void setTaskId(String taskId) {
this.taskId = taskId;
}
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (!(o instanceof AcsDeviceRestructureTaskParam)) {
return false;
}
AcsDeviceRestructureTaskParam other = (AcsDeviceRestructureTaskParam)o;
if (!other.canEqual(this)) {
return false;
}
String this$taskId = this.getTaskId();
String other$taskId = other.getTaskId();
return !(this$taskId == null ? other$taskId != null : !this$taskId.equals(other$taskId));
}
protected boolean canEqual(Object other) {
return other instanceof AcsDeviceRestructureTaskParam;
}
public int hashCode() {
int PRIME = 59;
int result = 1;
String $taskId = this.getTaskId();
result = result * 59 + ($taskId == null ? 43 : $taskId.hashCode());
return result;
}
public String toString() {
return "AcsDeviceRestructureTaskParam(taskId=" + this.getTaskId() + ")";
}
}
@@ -0,0 +1,163 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.cloud.entity.CloudwalkBaseTimes
* javax.validation.constraints.NotNull
* org.hibernate.validator.constraints.NotEmpty
*/
package cn.cloudwalk.elevator.device.param;
import cn.cloudwalk.cloud.entity.CloudwalkBaseTimes;
import java.io.Serializable;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.NotEmpty;
public class AcsElevatorDeviceAddParam
extends CloudwalkBaseTimes
implements Serializable {
private String businessId;
@NotEmpty
private String deviceId;
@NotEmpty
private String deviceCode;
@NotNull
private String deviceName;
private String deviceTypeName;
private String elevatorFloorList;
@NotNull
private String currentFloorId;
private String currentFloor;
private String currentBuilding;
private String currentBuildingId;
private String areaName;
private Integer status;
private Integer deleteFlag;
private String areaId;
private String elevatorFloorIdList;
public String getElevatorFloorIdList() {
return this.elevatorFloorIdList;
}
public void setElevatorFloorIdList(String elevatorFloorIdList) {
this.elevatorFloorIdList = elevatorFloorIdList;
}
public String getAreaId() {
return this.areaId;
}
public void setAreaId(String areaId) {
this.areaId = areaId;
}
public String getBusinessId() {
return this.businessId;
}
public void setBusinessId(String businessId) {
this.businessId = businessId;
}
public String getDeviceId() {
return this.deviceId;
}
public void setDeviceId(String deviceId) {
this.deviceId = deviceId;
}
public String getDeviceCode() {
return this.deviceCode;
}
public void setDeviceCode(String deviceCode) {
this.deviceCode = deviceCode;
}
public String getDeviceName() {
return this.deviceName;
}
public void setDeviceName(String deviceName) {
this.deviceName = deviceName;
}
public String getDeviceTypeName() {
return this.deviceTypeName;
}
public void setDeviceTypeName(String deviceTypeName) {
this.deviceTypeName = deviceTypeName;
}
public String getElevatorFloorList() {
return this.elevatorFloorList;
}
public void setElevatorFloorList(String elevatorFloorList) {
this.elevatorFloorList = elevatorFloorList;
}
public String getCurrentFloorId() {
return this.currentFloorId;
}
public void setCurrentFloorId(String currentFloorId) {
this.currentFloorId = currentFloorId;
}
public String getCurrentFloor() {
return this.currentFloor;
}
public void setCurrentFloor(String currentFloor) {
this.currentFloor = currentFloor;
}
public String getCurrentBuilding() {
return this.currentBuilding;
}
public void setCurrentBuilding(String currentBuilding) {
this.currentBuilding = currentBuilding;
}
public String getAreaName() {
return this.areaName;
}
public void setAreaName(String areaName) {
this.areaName = areaName;
}
public Integer getStatus() {
return this.status;
}
public void setStatus(Integer status) {
this.status = status;
}
public Integer getDeleteFlag() {
return this.deleteFlag;
}
public void setDeleteFlag(Integer deleteFlag) {
this.deleteFlag = deleteFlag;
}
public String getCurrentBuildingId() {
return this.currentBuildingId;
}
public void setCurrentBuildingId(String currentBuildingId) {
this.currentBuildingId = currentBuildingId;
}
public String toString() {
return "AcsElevatorDeviceAddDTO{businessId='" + this.businessId + '\'' + ", deviceId='" + this.deviceId + '\'' + ", deviceCode='" + this.deviceCode + '\'' + ", deviceName='" + this.deviceName + '\'' + ", deviceTypeName='" + this.deviceTypeName + '\'' + ", elevatorFloorList='" + this.elevatorFloorList + '\'' + ", currentFloorId='" + this.currentFloorId + '\'' + ", currentFloor='" + this.currentFloor + '\'' + ", currentBuilding='" + this.currentBuilding + '\'' + ", areaName='" + this.areaName + '\'' + ", status=" + this.status + ", deleteFlag=" + this.deleteFlag + '}';
}
}
@@ -0,0 +1,131 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.cloud.entity.CloudwalkBaseTimes
* javax.validation.constraints.NotNull
*/
package cn.cloudwalk.elevator.device.param;
import cn.cloudwalk.cloud.entity.CloudwalkBaseTimes;
import java.io.Serializable;
import javax.validation.constraints.NotNull;
public class AcsElevatorDeviceEditParam
extends CloudwalkBaseTimes
implements Serializable {
private String elevatorFloorList;
@NotNull
private String currentFloorId;
private String currentFloor;
private String currentBuilding;
private String currentBuildingId;
private String areaId;
private String elevatorFloorIdList;
private String businessId;
private String deviceId;
private String deviceCode;
private String deviceName;
private String deviceTypeName;
public String getBusinessId() {
return this.businessId;
}
public void setBusinessId(String businessId) {
this.businessId = businessId;
}
public String getDeviceId() {
return this.deviceId;
}
public void setDeviceId(String deviceId) {
this.deviceId = deviceId;
}
public String getDeviceCode() {
return this.deviceCode;
}
public void setDeviceCode(String deviceCode) {
this.deviceCode = deviceCode;
}
public String getDeviceName() {
return this.deviceName;
}
public void setDeviceName(String deviceName) {
this.deviceName = deviceName;
}
public String getDeviceTypeName() {
return this.deviceTypeName;
}
public void setDeviceTypeName(String deviceTypeName) {
this.deviceTypeName = deviceTypeName;
}
public String getElevatorFloorIdList() {
return this.elevatorFloorIdList;
}
public void setElevatorFloorIdList(String elevatorFloorIdList) {
this.elevatorFloorIdList = elevatorFloorIdList;
}
public String getAreaId() {
return this.areaId;
}
public void setAreaId(String areaId) {
this.areaId = areaId;
}
public String getElevatorFloorList() {
return this.elevatorFloorList;
}
public void setElevatorFloorList(String elevatorFloorList) {
this.elevatorFloorList = elevatorFloorList;
}
public String getCurrentFloorId() {
return this.currentFloorId;
}
public void setCurrentFloorId(String currentFloorId) {
this.currentFloorId = currentFloorId;
}
public String getCurrentFloor() {
return this.currentFloor;
}
public void setCurrentFloor(String currentFloor) {
this.currentFloor = currentFloor;
}
public String getCurrentBuilding() {
return this.currentBuilding;
}
public void setCurrentBuilding(String currentBuilding) {
this.currentBuilding = currentBuilding;
}
public String getCurrentBuildingId() {
return this.currentBuildingId;
}
public void setCurrentBuildingId(String currentBuildingId) {
this.currentBuildingId = currentBuildingId;
}
public String toString() {
return "AcsElevatorDeviceAddDTO{, elevatorFloorList='" + this.elevatorFloorList + '\'' + ", currentFloorId='" + this.currentFloorId + '\'' + ", currentFloor='" + this.currentFloor + '\'' + ", currentBuilding='" + this.currentBuilding + '\'' + '}';
}
}
@@ -0,0 +1,37 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.cloud.entity.CloudwalkBaseTimes
* javax.validation.constraints.NotNull
*/
package cn.cloudwalk.elevator.device.param;
import cn.cloudwalk.cloud.entity.CloudwalkBaseTimes;
import java.io.Serializable;
import javax.validation.constraints.NotNull;
public class AcsElevatorDeviceListParam
extends CloudwalkBaseTimes
implements Serializable {
private String businessId;
@NotNull
private String currentFloorId;
public String getBusinessId() {
return this.businessId;
}
public void setBusinessId(String businessId) {
this.businessId = businessId;
}
public String getCurrentFloorId() {
return this.currentFloorId;
}
public void setCurrentFloorId(String currentFloorId) {
this.currentFloorId = currentFloorId;
}
}
@@ -0,0 +1,25 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.cloud.page.CloudwalkBasePageForm
*/
package cn.cloudwalk.elevator.device.param;
import cn.cloudwalk.cloud.page.CloudwalkBasePageForm;
import java.io.Serializable;
public class AcsElevatorDeviceQueryByIdParam
extends CloudwalkBasePageForm
implements Serializable {
private String id;
public String getId() {
return this.id;
}
public void setId(String id) {
this.id = id;
}
}
@@ -0,0 +1,101 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.cloud.page.CloudwalkBasePageForm
* javax.validation.constraints.NotNull
*/
package cn.cloudwalk.elevator.device.param;
import cn.cloudwalk.cloud.page.CloudwalkBasePageForm;
import java.io.Serializable;
import java.util.List;
import javax.validation.constraints.NotNull;
public class AcsElevatorDeviceQueryParam
extends CloudwalkBasePageForm
implements Serializable {
@NotNull
private String deviceName;
private String deviceTypeName;
private String areaName;
private String deviceId;
private String deviceCode;
private List<String> areaIds;
private Integer status;
private Integer onlineStatus;
private String ip;
public Integer getStatus() {
return this.status;
}
public void setStatus(Integer status) {
this.status = status;
}
public Integer getOnlineStatus() {
return this.onlineStatus;
}
public void setOnlineStatus(Integer onlineStatus) {
this.onlineStatus = onlineStatus;
}
public String getIp() {
return this.ip;
}
public void setIp(String ip) {
this.ip = ip;
}
public String getDeviceId() {
return this.deviceId;
}
public void setDeviceId(String deviceId) {
this.deviceId = deviceId;
}
public List<String> getAreaIds() {
return this.areaIds;
}
public void setAreaIds(List<String> areaIds) {
this.areaIds = areaIds;
}
public String getDeviceName() {
return this.deviceName;
}
public void setDeviceName(String deviceName) {
this.deviceName = deviceName;
}
public String getDeviceTypeName() {
return this.deviceTypeName;
}
public void setDeviceTypeName(String deviceTypeName) {
this.deviceTypeName = deviceTypeName;
}
public String getAreaName() {
return this.areaName;
}
public void setAreaName(String areaName) {
this.areaName = areaName;
}
public String getDeviceCode() {
return this.deviceCode;
}
public void setDeviceCode(String deviceCode) {
this.deviceCode = deviceCode;
}
}
@@ -0,0 +1,165 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.elevator.device.param;
import java.io.Serializable;
import java.util.List;
public class AcsRestructureBindingParam
implements Serializable {
private String parentId;
private String orgId;
private String orgName;
private String labelId;
private String labelName;
private String personId;
private List<String> zoneIds;
private String taskId;
public String getParentId() {
return this.parentId;
}
public String getOrgId() {
return this.orgId;
}
public String getOrgName() {
return this.orgName;
}
public String getLabelId() {
return this.labelId;
}
public String getLabelName() {
return this.labelName;
}
public String getPersonId() {
return this.personId;
}
public List<String> getZoneIds() {
return this.zoneIds;
}
public String getTaskId() {
return this.taskId;
}
public void setParentId(String parentId) {
this.parentId = parentId;
}
public void setOrgId(String orgId) {
this.orgId = orgId;
}
public void setOrgName(String orgName) {
this.orgName = orgName;
}
public void setLabelId(String labelId) {
this.labelId = labelId;
}
public void setLabelName(String labelName) {
this.labelName = labelName;
}
public void setPersonId(String personId) {
this.personId = personId;
}
public void setZoneIds(List<String> zoneIds) {
this.zoneIds = zoneIds;
}
public void setTaskId(String taskId) {
this.taskId = taskId;
}
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (!(o instanceof AcsRestructureBindingParam)) {
return false;
}
AcsRestructureBindingParam other = (AcsRestructureBindingParam)o;
if (!other.canEqual(this)) {
return false;
}
String this$parentId = this.getParentId();
String other$parentId = other.getParentId();
if (this$parentId == null ? other$parentId != null : !this$parentId.equals(other$parentId)) {
return false;
}
String this$orgId = this.getOrgId();
String other$orgId = other.getOrgId();
if (this$orgId == null ? other$orgId != null : !this$orgId.equals(other$orgId)) {
return false;
}
String this$orgName = this.getOrgName();
String other$orgName = other.getOrgName();
if (this$orgName == null ? other$orgName != null : !this$orgName.equals(other$orgName)) {
return false;
}
String this$labelId = this.getLabelId();
String other$labelId = other.getLabelId();
if (this$labelId == null ? other$labelId != null : !this$labelId.equals(other$labelId)) {
return false;
}
String this$labelName = this.getLabelName();
String other$labelName = other.getLabelName();
if (this$labelName == null ? other$labelName != null : !this$labelName.equals(other$labelName)) {
return false;
}
String this$personId = this.getPersonId();
String other$personId = other.getPersonId();
if (this$personId == null ? other$personId != null : !this$personId.equals(other$personId)) {
return false;
}
List<String> this$zoneIds = this.getZoneIds();
List<String> other$zoneIds = other.getZoneIds();
if (this$zoneIds == null ? other$zoneIds != null : !((Object)this$zoneIds).equals(other$zoneIds)) {
return false;
}
String this$taskId = this.getTaskId();
String other$taskId = other.getTaskId();
return !(this$taskId == null ? other$taskId != null : !this$taskId.equals(other$taskId));
}
protected boolean canEqual(Object other) {
return other instanceof AcsRestructureBindingParam;
}
public int hashCode() {
int PRIME = 59;
int result = 1;
String $parentId = this.getParentId();
result = result * 59 + ($parentId == null ? 43 : $parentId.hashCode());
String $orgId = this.getOrgId();
result = result * 59 + ($orgId == null ? 43 : $orgId.hashCode());
String $orgName = this.getOrgName();
result = result * 59 + ($orgName == null ? 43 : $orgName.hashCode());
String $labelId = this.getLabelId();
result = result * 59 + ($labelId == null ? 43 : $labelId.hashCode());
String $labelName = this.getLabelName();
result = result * 59 + ($labelName == null ? 43 : $labelName.hashCode());
String $personId = this.getPersonId();
result = result * 59 + ($personId == null ? 43 : $personId.hashCode());
List<String> $zoneIds = this.getZoneIds();
result = result * 59 + ($zoneIds == null ? 43 : ((Object)$zoneIds).hashCode());
String $taskId = this.getTaskId();
result = result * 59 + ($taskId == null ? 43 : $taskId.hashCode());
return result;
}
public String toString() {
return "AcsRestructureBindingParam(parentId=" + this.getParentId() + ", orgId=" + this.getOrgId() + ", orgName=" + this.getOrgName() + ", labelId=" + this.getLabelId() + ", labelName=" + this.getLabelName() + ", personId=" + this.getPersonId() + ", zoneIds=" + this.getZoneIds() + ", taskId=" + this.getTaskId() + ")";
}
}
@@ -0,0 +1,133 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.elevator.device.param;
import java.io.Serializable;
import java.util.List;
public class AcsRestructureQueryParam
implements Serializable {
private String orgId;
private String labelId;
private List<String> labelIds;
private String personId;
private String zoneId;
private String businessId;
public String getOrgId() {
return this.orgId;
}
public String getLabelId() {
return this.labelId;
}
public List<String> getLabelIds() {
return this.labelIds;
}
public String getPersonId() {
return this.personId;
}
public String getZoneId() {
return this.zoneId;
}
public String getBusinessId() {
return this.businessId;
}
public void setOrgId(String orgId) {
this.orgId = orgId;
}
public void setLabelId(String labelId) {
this.labelId = labelId;
}
public void setLabelIds(List<String> labelIds) {
this.labelIds = labelIds;
}
public void setPersonId(String personId) {
this.personId = personId;
}
public void setZoneId(String zoneId) {
this.zoneId = zoneId;
}
public void setBusinessId(String businessId) {
this.businessId = businessId;
}
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (!(o instanceof AcsRestructureQueryParam)) {
return false;
}
AcsRestructureQueryParam other = (AcsRestructureQueryParam)o;
if (!other.canEqual(this)) {
return false;
}
String this$orgId = this.getOrgId();
String other$orgId = other.getOrgId();
if (this$orgId == null ? other$orgId != null : !this$orgId.equals(other$orgId)) {
return false;
}
String this$labelId = this.getLabelId();
String other$labelId = other.getLabelId();
if (this$labelId == null ? other$labelId != null : !this$labelId.equals(other$labelId)) {
return false;
}
List<String> this$labelIds = this.getLabelIds();
List<String> other$labelIds = other.getLabelIds();
if (this$labelIds == null ? other$labelIds != null : !((Object)this$labelIds).equals(other$labelIds)) {
return false;
}
String this$personId = this.getPersonId();
String other$personId = other.getPersonId();
if (this$personId == null ? other$personId != null : !this$personId.equals(other$personId)) {
return false;
}
String this$zoneId = this.getZoneId();
String other$zoneId = other.getZoneId();
if (this$zoneId == null ? other$zoneId != null : !this$zoneId.equals(other$zoneId)) {
return false;
}
String this$businessId = this.getBusinessId();
String other$businessId = other.getBusinessId();
return !(this$businessId == null ? other$businessId != null : !this$businessId.equals(other$businessId));
}
protected boolean canEqual(Object other) {
return other instanceof AcsRestructureQueryParam;
}
public int hashCode() {
int PRIME = 59;
int result = 1;
String $orgId = this.getOrgId();
result = result * 59 + ($orgId == null ? 43 : $orgId.hashCode());
String $labelId = this.getLabelId();
result = result * 59 + ($labelId == null ? 43 : $labelId.hashCode());
List<String> $labelIds = this.getLabelIds();
result = result * 59 + ($labelIds == null ? 43 : ((Object)$labelIds).hashCode());
String $personId = this.getPersonId();
result = result * 59 + ($personId == null ? 43 : $personId.hashCode());
String $zoneId = this.getZoneId();
result = result * 59 + ($zoneId == null ? 43 : $zoneId.hashCode());
String $businessId = this.getBusinessId();
result = result * 59 + ($businessId == null ? 43 : $businessId.hashCode());
return result;
}
public String toString() {
return "AcsRestructureQueryParam(orgId=" + this.getOrgId() + ", labelId=" + this.getLabelId() + ", labelIds=" + this.getLabelIds() + ", personId=" + this.getPersonId() + ", zoneId=" + this.getZoneId() + ", businessId=" + this.getBusinessId() + ")";
}
}
@@ -0,0 +1,183 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.elevator.device.result;
import java.io.Serializable;
public class AcsDeviceNewResult
implements Serializable {
private static final long serialVersionUID = -3535840233209237358L;
private String id;
private String deviceId;
private String deviceName;
private String deviceCode;
private String deviceTypeId;
private String deviceTypeCode;
private String deviceTypeName;
private Integer deviceStatus;
private Integer deviceOnlineStatus;
private String address;
private String imageStoreId;
private int identifyType;
private String areaId;
private String areaName;
private Long lastHeartbeatTime;
private Integer deviceOpenStatus;
private String deviceTypeCategoryId;
private String status;
private String onlineStatus;
public String getId() {
return this.id;
}
public void setId(String id) {
this.id = id;
}
public String getAreaId() {
return this.areaId;
}
public void setAreaId(String areaId) {
this.areaId = areaId;
}
public String getAreaName() {
return this.areaName;
}
public void setAreaName(String areaName) {
this.areaName = areaName;
}
public String getDeviceId() {
return this.deviceId;
}
public void setDeviceId(String deviceId) {
this.deviceId = deviceId;
}
public String getDeviceName() {
return this.deviceName;
}
public void setDeviceName(String deviceName) {
this.deviceName = deviceName;
}
public String getDeviceCode() {
return this.deviceCode;
}
public void setDeviceCode(String deviceCode) {
this.deviceCode = deviceCode;
}
public String getDeviceTypeId() {
return this.deviceTypeId;
}
public void setDeviceTypeId(String deviceTypeId) {
this.deviceTypeId = deviceTypeId;
}
public String getDeviceTypeCode() {
return this.deviceTypeCode;
}
public void setDeviceTypeCode(String deviceTypeCode) {
this.deviceTypeCode = deviceTypeCode;
}
public String getDeviceTypeName() {
return this.deviceTypeName;
}
public void setDeviceTypeName(String deviceTypeName) {
this.deviceTypeName = deviceTypeName;
}
public Integer getDeviceStatus() {
return this.deviceStatus;
}
public void setDeviceStatus(Integer deviceStatus) {
this.deviceStatus = deviceStatus;
}
public Integer getDeviceOnlineStatus() {
return this.deviceOnlineStatus;
}
public void setDeviceOnlineStatus(Integer deviceOnlineStatus) {
this.deviceOnlineStatus = deviceOnlineStatus;
}
public String getAddress() {
return this.address;
}
public void setAddress(String address) {
this.address = address;
}
public String getImageStoreId() {
return this.imageStoreId;
}
public void setImageStoreId(String imageStoreId) {
this.imageStoreId = imageStoreId;
}
public int getIdentifyType() {
return this.identifyType;
}
public void setIdentifyType(int identifyType) {
this.identifyType = identifyType;
}
public Long getLastHeartbeatTime() {
return this.lastHeartbeatTime;
}
public void setLastHeartbeatTime(Long lastHeartbeatTime) {
this.lastHeartbeatTime = lastHeartbeatTime;
}
public Integer getDeviceOpenStatus() {
return this.deviceOpenStatus;
}
public void setDeviceOpenStatus(Integer deviceOpenStatus) {
this.deviceOpenStatus = deviceOpenStatus;
}
public String getDeviceTypeCategoryId() {
return this.deviceTypeCategoryId;
}
public void setDeviceTypeCategoryId(String deviceTypeCategoryId) {
this.deviceTypeCategoryId = deviceTypeCategoryId;
}
public String getStatus() {
return this.status;
}
public void setStatus(String status) {
this.status = status;
}
public String getOnlineStatus() {
return this.onlineStatus;
}
public void setOnlineStatus(String onlineStatus) {
this.onlineStatus = onlineStatus;
}
}
@@ -0,0 +1,113 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.elevator.device.result;
public class AcsDeviceRestructureResult {
private String parentId;
private String zoneId;
private String zoneName;
private String onlineDevices;
private String offlineDevices;
public String getParentId() {
return this.parentId;
}
public String getZoneId() {
return this.zoneId;
}
public String getZoneName() {
return this.zoneName;
}
public String getOnlineDevices() {
return this.onlineDevices;
}
public String getOfflineDevices() {
return this.offlineDevices;
}
public void setParentId(String parentId) {
this.parentId = parentId;
}
public void setZoneId(String zoneId) {
this.zoneId = zoneId;
}
public void setZoneName(String zoneName) {
this.zoneName = zoneName;
}
public void setOnlineDevices(String onlineDevices) {
this.onlineDevices = onlineDevices;
}
public void setOfflineDevices(String offlineDevices) {
this.offlineDevices = offlineDevices;
}
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (!(o instanceof AcsDeviceRestructureResult)) {
return false;
}
AcsDeviceRestructureResult other = (AcsDeviceRestructureResult)o;
if (!other.canEqual(this)) {
return false;
}
String this$parentId = this.getParentId();
String other$parentId = other.getParentId();
if (this$parentId == null ? other$parentId != null : !this$parentId.equals(other$parentId)) {
return false;
}
String this$zoneId = this.getZoneId();
String other$zoneId = other.getZoneId();
if (this$zoneId == null ? other$zoneId != null : !this$zoneId.equals(other$zoneId)) {
return false;
}
String this$zoneName = this.getZoneName();
String other$zoneName = other.getZoneName();
if (this$zoneName == null ? other$zoneName != null : !this$zoneName.equals(other$zoneName)) {
return false;
}
String this$onlineDevices = this.getOnlineDevices();
String other$onlineDevices = other.getOnlineDevices();
if (this$onlineDevices == null ? other$onlineDevices != null : !this$onlineDevices.equals(other$onlineDevices)) {
return false;
}
String this$offlineDevices = this.getOfflineDevices();
String other$offlineDevices = other.getOfflineDevices();
return !(this$offlineDevices == null ? other$offlineDevices != null : !this$offlineDevices.equals(other$offlineDevices));
}
protected boolean canEqual(Object other) {
return other instanceof AcsDeviceRestructureResult;
}
public int hashCode() {
int PRIME = 59;
int result = 1;
String $parentId = this.getParentId();
result = result * 59 + ($parentId == null ? 43 : $parentId.hashCode());
String $zoneId = this.getZoneId();
result = result * 59 + ($zoneId == null ? 43 : $zoneId.hashCode());
String $zoneName = this.getZoneName();
result = result * 59 + ($zoneName == null ? 43 : $zoneName.hashCode());
String $onlineDevices = this.getOnlineDevices();
result = result * 59 + ($onlineDevices == null ? 43 : $onlineDevices.hashCode());
String $offlineDevices = this.getOfflineDevices();
result = result * 59 + ($offlineDevices == null ? 43 : $offlineDevices.hashCode());
return result;
}
public String toString() {
return "AcsDeviceRestructureResult(parentId=" + this.getParentId() + ", zoneId=" + this.getZoneId() + ", zoneName=" + this.getZoneName() + ", onlineDevices=" + this.getOnlineDevices() + ", offlineDevices=" + this.getOfflineDevices() + ")";
}
}
@@ -0,0 +1,233 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.cloud.entity.CloudwalkBaseTimes
*/
package cn.cloudwalk.elevator.device.result;
import cn.cloudwalk.cloud.entity.CloudwalkBaseTimes;
import java.io.Serializable;
public class AcsElevatorDeviceListResult
extends CloudwalkBaseTimes
implements Serializable {
private String businessId;
private String deviceId;
private String deviceCode;
private String deviceName;
private String deviceTypeName;
private String elevatorFloorList;
private String currentFloorId;
private String currentFloor;
private String currentBuilding;
private String currentBuildingId;
private String areaName;
private Integer status;
public String getBusinessId() {
return this.businessId;
}
public String getDeviceId() {
return this.deviceId;
}
public String getDeviceCode() {
return this.deviceCode;
}
public String getDeviceName() {
return this.deviceName;
}
public String getDeviceTypeName() {
return this.deviceTypeName;
}
public String getElevatorFloorList() {
return this.elevatorFloorList;
}
public String getCurrentFloorId() {
return this.currentFloorId;
}
public String getCurrentFloor() {
return this.currentFloor;
}
public String getCurrentBuilding() {
return this.currentBuilding;
}
public String getCurrentBuildingId() {
return this.currentBuildingId;
}
public String getAreaName() {
return this.areaName;
}
public Integer getStatus() {
return this.status;
}
public void setBusinessId(String businessId) {
this.businessId = businessId;
}
public void setDeviceId(String deviceId) {
this.deviceId = deviceId;
}
public void setDeviceCode(String deviceCode) {
this.deviceCode = deviceCode;
}
public void setDeviceName(String deviceName) {
this.deviceName = deviceName;
}
public void setDeviceTypeName(String deviceTypeName) {
this.deviceTypeName = deviceTypeName;
}
public void setElevatorFloorList(String elevatorFloorList) {
this.elevatorFloorList = elevatorFloorList;
}
public void setCurrentFloorId(String currentFloorId) {
this.currentFloorId = currentFloorId;
}
public void setCurrentFloor(String currentFloor) {
this.currentFloor = currentFloor;
}
public void setCurrentBuilding(String currentBuilding) {
this.currentBuilding = currentBuilding;
}
public void setCurrentBuildingId(String currentBuildingId) {
this.currentBuildingId = currentBuildingId;
}
public void setAreaName(String areaName) {
this.areaName = areaName;
}
public void setStatus(Integer status) {
this.status = status;
}
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (!(o instanceof AcsElevatorDeviceListResult)) {
return false;
}
AcsElevatorDeviceListResult other = (AcsElevatorDeviceListResult)o;
if (!other.canEqual(this)) {
return false;
}
String this$businessId = this.getBusinessId();
String other$businessId = other.getBusinessId();
if (this$businessId == null ? other$businessId != null : !this$businessId.equals(other$businessId)) {
return false;
}
String this$deviceId = this.getDeviceId();
String other$deviceId = other.getDeviceId();
if (this$deviceId == null ? other$deviceId != null : !this$deviceId.equals(other$deviceId)) {
return false;
}
String this$deviceCode = this.getDeviceCode();
String other$deviceCode = other.getDeviceCode();
if (this$deviceCode == null ? other$deviceCode != null : !this$deviceCode.equals(other$deviceCode)) {
return false;
}
String this$deviceName = this.getDeviceName();
String other$deviceName = other.getDeviceName();
if (this$deviceName == null ? other$deviceName != null : !this$deviceName.equals(other$deviceName)) {
return false;
}
String this$deviceTypeName = this.getDeviceTypeName();
String other$deviceTypeName = other.getDeviceTypeName();
if (this$deviceTypeName == null ? other$deviceTypeName != null : !this$deviceTypeName.equals(other$deviceTypeName)) {
return false;
}
String this$elevatorFloorList = this.getElevatorFloorList();
String other$elevatorFloorList = other.getElevatorFloorList();
if (this$elevatorFloorList == null ? other$elevatorFloorList != null : !this$elevatorFloorList.equals(other$elevatorFloorList)) {
return false;
}
String this$currentFloorId = this.getCurrentFloorId();
String other$currentFloorId = other.getCurrentFloorId();
if (this$currentFloorId == null ? other$currentFloorId != null : !this$currentFloorId.equals(other$currentFloorId)) {
return false;
}
String this$currentFloor = this.getCurrentFloor();
String other$currentFloor = other.getCurrentFloor();
if (this$currentFloor == null ? other$currentFloor != null : !this$currentFloor.equals(other$currentFloor)) {
return false;
}
String this$currentBuilding = this.getCurrentBuilding();
String other$currentBuilding = other.getCurrentBuilding();
if (this$currentBuilding == null ? other$currentBuilding != null : !this$currentBuilding.equals(other$currentBuilding)) {
return false;
}
String this$currentBuildingId = this.getCurrentBuildingId();
String other$currentBuildingId = other.getCurrentBuildingId();
if (this$currentBuildingId == null ? other$currentBuildingId != null : !this$currentBuildingId.equals(other$currentBuildingId)) {
return false;
}
String this$areaName = this.getAreaName();
String other$areaName = other.getAreaName();
if (this$areaName == null ? other$areaName != null : !this$areaName.equals(other$areaName)) {
return false;
}
Integer this$status = this.getStatus();
Integer other$status = other.getStatus();
return !(this$status == null ? other$status != null : !((Object)this$status).equals(other$status));
}
protected boolean canEqual(Object other) {
return other instanceof AcsElevatorDeviceListResult;
}
public int hashCode() {
int PRIME = 59;
int result = 1;
String $businessId = this.getBusinessId();
result = result * 59 + ($businessId == null ? 43 : $businessId.hashCode());
String $deviceId = this.getDeviceId();
result = result * 59 + ($deviceId == null ? 43 : $deviceId.hashCode());
String $deviceCode = this.getDeviceCode();
result = result * 59 + ($deviceCode == null ? 43 : $deviceCode.hashCode());
String $deviceName = this.getDeviceName();
result = result * 59 + ($deviceName == null ? 43 : $deviceName.hashCode());
String $deviceTypeName = this.getDeviceTypeName();
result = result * 59 + ($deviceTypeName == null ? 43 : $deviceTypeName.hashCode());
String $elevatorFloorList = this.getElevatorFloorList();
result = result * 59 + ($elevatorFloorList == null ? 43 : $elevatorFloorList.hashCode());
String $currentFloorId = this.getCurrentFloorId();
result = result * 59 + ($currentFloorId == null ? 43 : $currentFloorId.hashCode());
String $currentFloor = this.getCurrentFloor();
result = result * 59 + ($currentFloor == null ? 43 : $currentFloor.hashCode());
String $currentBuilding = this.getCurrentBuilding();
result = result * 59 + ($currentBuilding == null ? 43 : $currentBuilding.hashCode());
String $currentBuildingId = this.getCurrentBuildingId();
result = result * 59 + ($currentBuildingId == null ? 43 : $currentBuildingId.hashCode());
String $areaName = this.getAreaName();
result = result * 59 + ($areaName == null ? 43 : $areaName.hashCode());
Integer $status = this.getStatus();
result = result * 59 + ($status == null ? 43 : ((Object)$status).hashCode());
return result;
}
public String toString() {
return "AcsElevatorDeviceListResult(businessId=" + this.getBusinessId() + ", deviceId=" + this.getDeviceId() + ", deviceCode=" + this.getDeviceCode() + ", deviceName=" + this.getDeviceName() + ", deviceTypeName=" + this.getDeviceTypeName() + ", elevatorFloorList=" + this.getElevatorFloorList() + ", currentFloorId=" + this.getCurrentFloorId() + ", currentFloor=" + this.getCurrentFloor() + ", currentBuilding=" + this.getCurrentBuilding() + ", currentBuildingId=" + this.getCurrentBuildingId() + ", areaName=" + this.getAreaName() + ", status=" + this.getStatus() + ")";
}
}
@@ -0,0 +1,120 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.elevator.device.result;
import java.io.Serializable;
public class AcsElevatorDeviceResult
implements Serializable {
private static final long serialVersionUID = -90554404684210529L;
private String businessId;
private String deviceId;
private String deviceCode;
private String deviceName;
private String deviceTypeName;
private String elevatorFloorList;
private String currentFloorId;
private String currentFloor;
private String currentBuilding;
private String currentBuildingId;
private String areaName;
private Integer status;
public String getBusinessId() {
return this.businessId;
}
public void setBusinessId(String businessId) {
this.businessId = businessId;
}
public String getDeviceId() {
return this.deviceId;
}
public void setDeviceId(String deviceId) {
this.deviceId = deviceId;
}
public String getDeviceCode() {
return this.deviceCode;
}
public void setDeviceCode(String deviceCode) {
this.deviceCode = deviceCode;
}
public String getElevatorFloorList() {
return this.elevatorFloorList;
}
public void setElevatorFloorList(String elevatorFloorList) {
this.elevatorFloorList = elevatorFloorList;
}
public String getCurrentFloorId() {
return this.currentFloorId;
}
public void setCurrentFloorId(String currentFloorId) {
this.currentFloorId = currentFloorId;
}
public String getCurrentFloor() {
return this.currentFloor;
}
public void setCurrentFloor(String currentFloor) {
this.currentFloor = currentFloor;
}
public String getCurrentBuilding() {
return this.currentBuilding;
}
public void setCurrentBuilding(String currentBuilding) {
this.currentBuilding = currentBuilding;
}
public String getCurrentBuildingId() {
return this.currentBuildingId;
}
public void setCurrentBuildingId(String currentBuildingId) {
this.currentBuildingId = currentBuildingId;
}
public Integer getStatus() {
return this.status;
}
public void setStatus(Integer status) {
this.status = status;
}
public String getDeviceName() {
return this.deviceName;
}
public void setDeviceName(String deviceName) {
this.deviceName = deviceName;
}
public String getDeviceTypeName() {
return this.deviceTypeName;
}
public void setDeviceTypeName(String deviceTypeName) {
this.deviceTypeName = deviceTypeName;
}
public String getAreaName() {
return this.areaName;
}
public void setAreaName(String areaName) {
this.areaName = areaName;
}
}
@@ -0,0 +1,71 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.elevator.passrule.dto.AcsPassRuleLabelResultDto
*/
package cn.cloudwalk.elevator.device.result;
import cn.cloudwalk.elevator.passrule.dto.AcsPassRuleLabelResultDto;
import java.util.List;
public class AcsLabelElevatorResult {
private String labelId;
private List<AcsPassRuleLabelResultDto> details;
public String getLabelId() {
return this.labelId;
}
public List<AcsPassRuleLabelResultDto> getDetails() {
return this.details;
}
public void setLabelId(String labelId) {
this.labelId = labelId;
}
public void setDetails(List<AcsPassRuleLabelResultDto> details) {
this.details = details;
}
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (!(o instanceof AcsLabelElevatorResult)) {
return false;
}
AcsLabelElevatorResult other = (AcsLabelElevatorResult)o;
if (!other.canEqual(this)) {
return false;
}
String this$labelId = this.getLabelId();
String other$labelId = other.getLabelId();
if (this$labelId == null ? other$labelId != null : !this$labelId.equals(other$labelId)) {
return false;
}
List<AcsPassRuleLabelResultDto> this$details = this.getDetails();
List<AcsPassRuleLabelResultDto> other$details = other.getDetails();
return !(this$details == null ? other$details != null : !((Object)this$details).equals(other$details));
}
protected boolean canEqual(Object other) {
return other instanceof AcsLabelElevatorResult;
}
public int hashCode() {
int PRIME = 59;
int result = 1;
String $labelId = this.getLabelId();
result = result * 59 + ($labelId == null ? 43 : $labelId.hashCode());
List<AcsPassRuleLabelResultDto> $details = this.getDetails();
result = result * 59 + ($details == null ? 43 : ((Object)$details).hashCode());
return result;
}
public String toString() {
return "AcsLabelElevatorResult(labelId=" + this.getLabelId() + ", details=" + this.getDetails() + ")";
}
}
@@ -0,0 +1,81 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.elevator.device.result;
public class KeyValueResult {
private String key;
private Long time;
private String keyA;
public String getKey() {
return this.key;
}
public Long getTime() {
return this.time;
}
public String getKeyA() {
return this.keyA;
}
public void setKey(String key) {
this.key = key;
}
public void setTime(Long time) {
this.time = time;
}
public void setKeyA(String keyA) {
this.keyA = keyA;
}
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (!(o instanceof KeyValueResult)) {
return false;
}
KeyValueResult other = (KeyValueResult)o;
if (!other.canEqual(this)) {
return false;
}
String this$key = this.getKey();
String other$key = other.getKey();
if (this$key == null ? other$key != null : !this$key.equals(other$key)) {
return false;
}
Long this$time = this.getTime();
Long other$time = other.getTime();
if (this$time == null ? other$time != null : !((Object)this$time).equals(other$time)) {
return false;
}
String this$keyA = this.getKeyA();
String other$keyA = other.getKeyA();
return !(this$keyA == null ? other$keyA != null : !this$keyA.equals(other$keyA));
}
protected boolean canEqual(Object other) {
return other instanceof KeyValueResult;
}
public int hashCode() {
int PRIME = 59;
int result = 1;
String $key = this.getKey();
result = result * 59 + ($key == null ? 43 : $key.hashCode());
Long $time = this.getTime();
result = result * 59 + ($time == null ? 43 : ((Object)$time).hashCode());
String $keyA = this.getKeyA();
result = result * 59 + ($keyA == null ? 43 : $keyA.hashCode());
return result;
}
public String toString() {
return "KeyValueResult(key=" + this.getKey() + ", time=" + this.getTime() + ", keyA=" + this.getKeyA() + ")";
}
}
@@ -0,0 +1,20 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.cloud.context.CloudwalkCallContext
* cn.cloudwalk.cloud.exception.ServiceException
* cn.cloudwalk.elevator.passrule.dto.AcsPassRuleImageResultDto
*/
package cn.cloudwalk.elevator.device.service;
import cn.cloudwalk.cloud.context.CloudwalkCallContext;
import cn.cloudwalk.cloud.exception.ServiceException;
import cn.cloudwalk.elevator.device.param.AcsRestructureBindingParam;
import cn.cloudwalk.elevator.passrule.dto.AcsPassRuleImageResultDto;
import java.util.List;
public interface AcsDeviceTaskService {
public void updateFloors(AcsRestructureBindingParam var1, List<AcsPassRuleImageResultDto> var2, List<String> var3, CloudwalkCallContext var4) throws ServiceException;
}
@@ -0,0 +1,73 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.client.cwoscomponent.intelligent.device.result.DeviceResult
* cn.cloudwalk.cloud.context.CloudwalkCallContext
* cn.cloudwalk.cloud.exception.ServiceException
* cn.cloudwalk.cloud.page.CloudwalkPageAble
* cn.cloudwalk.cloud.page.CloudwalkPageInfo
* cn.cloudwalk.cloud.result.CloudwalkResult
* cn.cloudwalk.elevator.device.dto.AcsDeviceTaskDTO
* cn.cloudwalk.elevator.device.dto.AcsElevatorDeviceQueryFoDTO
* cn.cloudwalk.elevator.device.dto.AcsElevatorDeviceResultDTO
*/
package cn.cloudwalk.elevator.device.service;
import cn.cloudwalk.client.cwoscomponent.intelligent.device.result.DeviceResult;
import cn.cloudwalk.cloud.context.CloudwalkCallContext;
import cn.cloudwalk.cloud.exception.ServiceException;
import cn.cloudwalk.cloud.page.CloudwalkPageAble;
import cn.cloudwalk.cloud.page.CloudwalkPageInfo;
import cn.cloudwalk.cloud.result.CloudwalkResult;
import cn.cloudwalk.elevator.device.dto.AcsDeviceTaskDTO;
import cn.cloudwalk.elevator.device.dto.AcsElevatorDeviceQueryFoDTO;
import cn.cloudwalk.elevator.device.dto.AcsElevatorDeviceResultDTO;
import cn.cloudwalk.elevator.device.param.AcsDeviceQueryParam;
import cn.cloudwalk.elevator.device.param.AcsDeviceRestructureTaskParam;
import cn.cloudwalk.elevator.device.param.AcsElevatorDeviceAddParam;
import cn.cloudwalk.elevator.device.param.AcsElevatorDeviceEditParam;
import cn.cloudwalk.elevator.device.param.AcsElevatorDeviceQueryByIdParam;
import cn.cloudwalk.elevator.device.param.AcsElevatorDeviceQueryParam;
import cn.cloudwalk.elevator.device.param.AcsRestructureBindingParam;
import cn.cloudwalk.elevator.device.param.AcsRestructureQueryParam;
import java.util.List;
public interface AcsElevatorDeviceService {
public Integer add(AcsElevatorDeviceAddParam var1, CloudwalkCallContext var2) throws ServiceException;
public Integer edit(AcsElevatorDeviceEditParam var1, CloudwalkCallContext var2) throws ServiceException;
public Integer delete(List<String> var1, CloudwalkCallContext var2) throws ServiceException;
public String getBuildingId(AcsElevatorDeviceQueryParam var1) throws ServiceException;
public String getBusinessId(AcsElevatorDeviceQueryParam var1) throws ServiceException;
public CloudwalkResult<CloudwalkPageAble<AcsElevatorDeviceResultDTO>> get(AcsElevatorDeviceQueryParam var1, CloudwalkCallContext var2) throws ServiceException;
public CloudwalkResult<CloudwalkPageAble<DeviceResult>> devicePage(AcsDeviceQueryParam var1, CloudwalkPageInfo var2, CloudwalkCallContext var3) throws ServiceException;
public List<AcsElevatorDeviceQueryFoDTO> getFo(AcsElevatorDeviceQueryParam var1) throws ServiceException;
public AcsElevatorDeviceResultDTO getById(AcsElevatorDeviceQueryByIdParam var1, CloudwalkCallContext var2) throws ServiceException;
public AcsElevatorDeviceResultDTO getByDeciveCode(String var1) throws ServiceException;
public CloudwalkResult listUnbindFloors(AcsRestructureQueryParam var1, CloudwalkCallContext var2) throws ServiceException;
public CloudwalkResult listFloors(AcsRestructureQueryParam var1, CloudwalkCallContext var2) throws ServiceException;
public CloudwalkResult listCondition(AcsRestructureQueryParam var1, CloudwalkCallContext var2) throws ServiceException;
public CloudwalkResult listConditionByLabelIds(AcsRestructureQueryParam var1, CloudwalkCallContext var2) throws ServiceException;
public CloudwalkResult<String> bindingFloors(AcsRestructureBindingParam var1, CloudwalkCallContext var2) throws ServiceException;
public CloudwalkResult<String> bindingPerson(AcsRestructureBindingParam var1, CloudwalkCallContext var2) throws ServiceException;
public CloudwalkResult<AcsDeviceTaskDTO> getTask(AcsDeviceRestructureTaskParam var1, CloudwalkCallContext var2) throws ServiceException;
public CloudwalkResult<Boolean> setTaskStop(AcsDeviceRestructureTaskParam var1, CloudwalkCallContext var2) throws ServiceException;
}
@@ -0,0 +1,166 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.client.cwoscomponent.intelligent.application.param.ApplicationImageStoreAddParam
* cn.cloudwalk.client.cwoscomponent.intelligent.application.param.ApplicationImageStoreDelParam
* cn.cloudwalk.client.cwoscomponent.intelligent.application.service.ApplicationImageStoreService
* cn.cloudwalk.client.cwoscomponent.intelligent.device.param.DeviceImageStoreParam
* cn.cloudwalk.client.cwoscomponent.intelligent.device.service.DeviceImageStoreService
* cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.param.ImageStoreDelParam
* cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.param.ImageStoreQueryParam
* cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.result.ImageStoreListResult
* cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.service.ImageStoreService
* cn.cloudwalk.cloud.context.CloudwalkCallContext
* cn.cloudwalk.cloud.exception.ServiceException
* cn.cloudwalk.cloud.result.CloudwalkResult
* cn.cloudwalk.elevator.util.CollectionUtils
* org.springframework.stereotype.Service
*/
package cn.cloudwalk.elevator.device.setting.impl;
import cn.cloudwalk.client.cwoscomponent.intelligent.application.param.ApplicationImageStoreAddParam;
import cn.cloudwalk.client.cwoscomponent.intelligent.application.param.ApplicationImageStoreDelParam;
import cn.cloudwalk.client.cwoscomponent.intelligent.application.service.ApplicationImageStoreService;
import cn.cloudwalk.client.cwoscomponent.intelligent.device.param.DeviceImageStoreParam;
import cn.cloudwalk.client.cwoscomponent.intelligent.device.service.DeviceImageStoreService;
import cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.param.ImageStoreDelParam;
import cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.param.ImageStoreQueryParam;
import cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.result.ImageStoreListResult;
import cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.service.ImageStoreService;
import cn.cloudwalk.cloud.context.CloudwalkCallContext;
import cn.cloudwalk.cloud.exception.ServiceException;
import cn.cloudwalk.cloud.result.CloudwalkResult;
import cn.cloudwalk.elevator.common.AbstractAcsDeviceService;
import cn.cloudwalk.elevator.device.setting.param.DeviceImageStoreAppBindParam;
import cn.cloudwalk.elevator.device.setting.param.DeviceImageStoreAppUnbindParam;
import cn.cloudwalk.elevator.device.setting.service.AcsDeviceImageStoreAppBindService;
import cn.cloudwalk.elevator.util.CollectionUtils;
import java.util.Collections;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
@Service
public class AcsDeviceImageStoreAppBindServiceImpl
extends AbstractAcsDeviceService
implements AcsDeviceImageStoreAppBindService {
@Resource
private ApplicationImageStoreService applicationImageStoreService;
@Resource
private DeviceImageStoreService deviceImageStoreService;
@Resource
private ImageStoreService imageStoreService;
@Override
public CloudwalkResult<Boolean> bindAppImageStoreDevice(DeviceImageStoreAppBindParam param, CloudwalkCallContext context) throws ServiceException {
this.bindApplicationImageStore(param, context);
return CloudwalkResult.success((Object)true);
}
@Override
public CloudwalkResult<Boolean> bindDeviceAndImageStore(DeviceImageStoreAppBindParam param, CloudwalkCallContext context) throws ServiceException {
try {
this.bindDeviceImageStore(param, context);
}
catch (ServiceException e) {
this.logger.error("\u8bbe\u5907\u56fe\u5e93\u5173\u8054\u5931\u8d25,\u56fe\u5e93id={},\u539f\u56e0:{}", (Object)param.getImageStoreId(), (Object)e.getMessage());
throw new ServiceException("\u8bbe\u5907\u56fe\u5e93\u5173\u8054\u5931\u8d25");
}
return CloudwalkResult.success((Object)true);
}
private void bindApplicationImageStore(DeviceImageStoreAppBindParam param, CloudwalkCallContext context) throws ServiceException {
ApplicationImageStoreAddParam applicationImageStoreAddParam = new ApplicationImageStoreAddParam();
applicationImageStoreAddParam.setApplicationId(param.getApplicationId());
applicationImageStoreAddParam.setImageStoreId(param.getImageStoreId());
CloudwalkResult applicationImageStoreAddResult = this.applicationImageStoreService.add(applicationImageStoreAddParam, context);
if (!applicationImageStoreAddResult.isSuccess()) {
this.logger.error("\u6dfb\u52a0\u5e94\u7528\u56fe\u5e93\u5173\u8054\u5931\u8d25\uff0c\u539f\u56e0\uff1a{}", (Object)applicationImageStoreAddResult.getMessage());
throw new ServiceException(applicationImageStoreAddResult.getCode(), "\u6dfb\u52a0\u5e94\u7528\u56fe\u5e93\u5173\u8054\u5931\u8d25\uff0c\u539f\u56e0\uff1a" + applicationImageStoreAddResult.getMessage());
}
}
private void bindDeviceImageStore(DeviceImageStoreAppBindParam param, CloudwalkCallContext context) throws ServiceException {
DeviceImageStoreParam imageStoreSaveParam = new DeviceImageStoreParam();
imageStoreSaveParam.setDeviceId(param.getDeviceId());
imageStoreSaveParam.setImageStoreId(param.getImageStoreId());
CloudwalkResult saveDeviceResult = this.deviceImageStoreService.add(imageStoreSaveParam, context);
if (!saveDeviceResult.isSuccess()) {
this.logger.error("\u7ed1\u5b9a\u8bbe\u5907\u4e0e\u56fe\u5e93\u5931\u8d25,\u8bbe\u5907id={},\u56fe\u5e93id={},\u539f\u56e0:{}", new Object[]{param.getDeviceId(), param.getImageStoreId(), saveDeviceResult.getMessage()});
throw new ServiceException("\u7ed1\u5b9a\u8bbe\u5907\u4e0e\u56fe\u5e93\u5931\u8d25");
}
}
@Override
public CloudwalkResult<Boolean> unbindAppImageStoreDevice(DeviceImageStoreAppUnbindParam param, CloudwalkCallContext context) throws ServiceException {
this.deviceUnBindImageStore(context, param.getDeviceId(), param.getImageStoreId(), param.getDeviceCode());
this.applicationUnBindImageStore(param.getApplicationId(), param.getImageStoreId(), context);
List<ImageStoreListResult> imageStoreList = this.getImageStoreResult(param.getImageStoreId(), param.getDeviceCode(), context);
if (!CollectionUtils.isEmpty(imageStoreList)) {
this.deleteImageStore(param.getImageStoreId(), context);
}
return CloudwalkResult.success((Object)true);
}
@Override
public CloudwalkResult<Boolean> deleteImageStore(DeviceImageStoreAppUnbindParam param, CloudwalkCallContext context) throws ServiceException {
this.applicationUnBindImageStore(param.getApplicationId(), param.getImageStoreId(), context);
this.deleteImageStore(param.getImageStoreId(), context);
return CloudwalkResult.success((Object)true);
}
@Override
public CloudwalkResult<Boolean> unbindAppImageStoreDeviceNotDeleteImage(DeviceImageStoreAppUnbindParam param, CloudwalkCallContext context) throws ServiceException {
this.deviceUnBindImageStore(context, param.getDeviceId(), param.getImageStoreId(), param.getDeviceCode());
return CloudwalkResult.success((Object)true);
}
private List<ImageStoreListResult> getImageStoreResult(String imageStoreId, String deviceCode, CloudwalkCallContext context) throws ServiceException {
ImageStoreQueryParam imageStoreQueryParam = new ImageStoreQueryParam();
imageStoreQueryParam.setIds(Collections.singletonList(imageStoreId));
imageStoreQueryParam.setBusinessId(context.getCompany().getCompanyId());
CloudwalkResult imageStoreList = this.imageStoreService.list(imageStoreQueryParam, context);
if (!imageStoreList.isSuccess()) {
this.logger.error("\u67e5\u8be2\u8bbe\u5907\u56fe\u5e93\u5931\u8d25,\u8bbe\u5907\u7f16\u53f7:{},\u56fe\u5e93id:{},\u539f\u56e0:{}", new Object[]{deviceCode, imageStoreId, imageStoreList.getMessage()});
throw new ServiceException("\u67e5\u8be2\u8bbe\u5907\u56fe\u5e93\u5931\u8d25,\u8bbe\u5907\u7f16\u53f7:{}" + deviceCode);
}
return (List)imageStoreList.getData();
}
private void deviceUnBindImageStore(CloudwalkCallContext context, String deviceId, String imageStoreId, String deviceCode) throws ServiceException {
DeviceImageStoreParam deviceImageStoreParam = new DeviceImageStoreParam();
deviceImageStoreParam.setDeviceId(deviceId);
deviceImageStoreParam.setImageStoreId(imageStoreId);
CloudwalkResult deleteDeviceImageStoreResult = this.deviceImageStoreService.delete(deviceImageStoreParam, context);
this.logger.info("\u5220\u9664\u8bbe\u5907\u56fe\u5e93\u5173\u8054\uff1a\u56fe\u5e93id={},\u7ed3\u679c:{}", (Object)imageStoreId, (Object)deleteDeviceImageStoreResult.getMessage());
if (!deleteDeviceImageStoreResult.isSuccess()) {
this.logger.error("\u5220\u9664\u8bbe\u5907\u56fe\u5e93\u5173\u8054\u5931\u8d25,\u8bbe\u5907\u7f16\u53f7:{},\u56fe\u5e93id:{},\u539f\u56e0:{}", new Object[]{deviceCode, imageStoreId, deleteDeviceImageStoreResult.getMessage()});
throw new ServiceException("\u5220\u9664\u8bbe\u5907\u56fe\u5e93\u5173\u8054\u5931\u8d25,\u8bbe\u5907\u7f16\u53f7:" + deviceCode);
}
}
private void deleteImageStore(String imageStoreId, CloudwalkCallContext context) throws ServiceException {
ImageStoreDelParam imageStoreDelParam = new ImageStoreDelParam();
imageStoreDelParam.setId(imageStoreId);
imageStoreDelParam.setBusinessId(context.getCompany().getCompanyId());
CloudwalkResult deleteImageStoreResult = this.imageStoreService.delete(imageStoreDelParam, context);
if (!deleteImageStoreResult.isSuccess()) {
this.logger.error("\u5220\u9664\u56fe\u5e93\u5931\u8d25,\u56fe\u5e93id:{},\u539f\u56e0:{}", (Object)imageStoreId, (Object)deleteImageStoreResult.getMessage());
throw new ServiceException("\u5220\u9664\u56fe\u5e93\u5931\u8d25");
}
}
public void applicationUnBindImageStore(String applicationId, String imageStoreId, CloudwalkCallContext context) throws ServiceException {
ApplicationImageStoreDelParam applicationImageStoreDelParam = new ApplicationImageStoreDelParam();
applicationImageStoreDelParam.setApplicationId(applicationId);
applicationImageStoreDelParam.setImageStoreId(imageStoreId);
CloudwalkResult deleteApplicationImageStoreResult = this.applicationImageStoreService.delete(applicationImageStoreDelParam, context);
this.logger.info("\u5220\u9664\u5e94\u7528\u56fe\u5e93\u5173\u8054\uff1a\u56fe\u5e93id={},\u5e94\u7528id={},\u7ed3\u679c:{}", new Object[]{imageStoreId, applicationId, deleteApplicationImageStoreResult.getMessage()});
if (!deleteApplicationImageStoreResult.isSuccess()) {
this.logger.error("\u5e94\u7528\u4e0e\u56fe\u5e93\u89e3\u7ed1\u5931\u8d25,\u5e94\u7528id:{},\u56fe\u5e93id:{},\u539f\u56e0\uff1a{}", new Object[]{applicationId, imageStoreId, deleteApplicationImageStoreResult.getMessage()});
throw new ServiceException("\u5e94\u7528\u4e0e\u56fe\u5e93\u89e3\u7ed1\u5931\u8d25");
}
}
}
@@ -0,0 +1,86 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.client.cwoscomponent.intelligent.device.param.DeviceSettingQueryParam
* cn.cloudwalk.client.cwoscomponent.intelligent.device.result.DeviceSettingResult
* cn.cloudwalk.client.cwoscomponent.intelligent.device.result.DeviceSettingResult$DeviceSettings
* cn.cloudwalk.client.cwoscomponent.intelligent.device.service.DeviceSettingService
* cn.cloudwalk.cloud.context.CloudwalkCallContext
* cn.cloudwalk.cloud.exception.ServiceException
* cn.cloudwalk.cloud.result.CloudwalkResult
* cn.cloudwalk.elevator.em.AcsDeviceSettingEnum
* com.google.common.collect.Lists
* org.apache.commons.collections4.CollectionUtils
* org.springframework.beans.factory.annotation.Autowired
* org.springframework.stereotype.Service
*/
package cn.cloudwalk.elevator.device.setting.impl;
import cn.cloudwalk.client.cwoscomponent.intelligent.device.param.DeviceSettingQueryParam;
import cn.cloudwalk.client.cwoscomponent.intelligent.device.result.DeviceSettingResult;
import cn.cloudwalk.client.cwoscomponent.intelligent.device.service.DeviceSettingService;
import cn.cloudwalk.cloud.context.CloudwalkCallContext;
import cn.cloudwalk.cloud.exception.ServiceException;
import cn.cloudwalk.cloud.result.CloudwalkResult;
import cn.cloudwalk.elevator.common.AbstractAcsDeviceService;
import cn.cloudwalk.elevator.device.setting.param.AcsDeviceTemperatureSettingParam;
import cn.cloudwalk.elevator.device.setting.result.AcsDeviceSettingResult;
import cn.cloudwalk.elevator.device.setting.result.AcsSettingAttr;
import cn.cloudwalk.elevator.device.setting.service.AcsDeviceSettingService;
import cn.cloudwalk.elevator.em.AcsDeviceSettingEnum;
import com.google.common.collect.Lists;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.stream.Collectors;
import org.apache.commons.collections4.CollectionUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class AcsDeviceSettingServiceImpl
extends AbstractAcsDeviceService
implements AcsDeviceSettingService {
@Autowired
private DeviceSettingService deviceSettingService;
@Override
public CloudwalkResult<AcsDeviceSettingResult> getTemperatureSetting(AcsDeviceTemperatureSettingParam param, CloudwalkCallContext context) throws ServiceException {
AcsDeviceSettingResult result = new AcsDeviceSettingResult();
result.setDeviceId(param.getDeviceId());
DeviceSettingQueryParam deviceSettingQueryParam = new DeviceSettingQueryParam();
deviceSettingQueryParam.setDeviceIds((List)Lists.newArrayList((Object[])new String[]{param.getDeviceId()}));
deviceSettingQueryParam.setHasDefault(Short.valueOf((short)0));
CloudwalkResult deviceSettingQueryResult = this.deviceSettingService.query(deviceSettingQueryParam);
if (deviceSettingQueryResult.isSuccess()) {
DeviceSettingResult deviceSettingResult;
List settingResult;
if (CollectionUtils.isNotEmpty((Collection)((Collection)deviceSettingQueryResult.getData())) && CollectionUtils.isNotEmpty((Collection)(settingResult = (deviceSettingResult = (DeviceSettingResult)((List)deviceSettingQueryResult.getData()).get(0)).getSettings()))) {
ArrayList<AcsSettingAttr> acsSettingAttrs = new ArrayList<AcsSettingAttr>();
this.recursionSettingAttr(acsSettingAttrs, settingResult);
List<AcsSettingAttr> attrs = acsSettingAttrs.stream().filter(s -> AcsDeviceSettingEnum.TEMP_MIN.getCode().equals(s.getCode()) || AcsDeviceSettingEnum.TEMP_STATE.getCode().equals(s.getCode()) || AcsDeviceSettingEnum.TEMP_THRESHOLD.getCode().equals(s.getCode())).collect(Collectors.toList());
result.setAttrs(attrs);
}
return CloudwalkResult.success((Object)result);
}
return CloudwalkResult.fail((String)deviceSettingQueryResult.getCode(), (String)deviceSettingQueryResult.getMessage());
}
private void recursionSettingAttr(List<AcsSettingAttr> acsSettingAttrs, List<DeviceSettingResult.DeviceSettings> deviceSettings) {
if (CollectionUtils.isNotEmpty(deviceSettings)) {
for (DeviceSettingResult.DeviceSettings deviceSetting : deviceSettings) {
AcsSettingAttr acsSettingAttr = new AcsSettingAttr();
acsSettingAttr.setName(deviceSetting.getSettingAttrName());
acsSettingAttr.setValue(deviceSetting.getSettingAttrValue());
acsSettingAttr.setRemark(deviceSetting.getSettingAttrRemark());
acsSettingAttr.setCode(deviceSetting.getSettingAttrCode());
acsSettingAttr.setId(deviceSetting.getId());
acsSettingAttr.setParentId(deviceSetting.getSettingParentId());
acsSettingAttrs.add(acsSettingAttr);
this.recursionSettingAttr(acsSettingAttrs, deviceSetting.getChild());
}
}
}
}
@@ -0,0 +1,25 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* org.hibernate.validator.constraints.NotBlank
*/
package cn.cloudwalk.elevator.device.setting.param;
import java.io.Serializable;
import org.hibernate.validator.constraints.NotBlank;
public class AcsDeviceTemperatureSettingParam
implements Serializable {
@NotBlank(message="76260003")
private String deviceId;
public String getDeviceId() {
return this.deviceId;
}
public void setDeviceId(String deviceId) {
this.deviceId = deviceId;
}
}
@@ -0,0 +1,39 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.elevator.device.setting.param;
import java.io.Serializable;
public class DeviceImageStoreAppBindParam
implements Serializable {
private static final long serialVersionUID = -5165610910023828727L;
private String applicationId;
private String imageStoreId;
private String deviceId;
public String getApplicationId() {
return this.applicationId;
}
public void setApplicationId(String applicationId) {
this.applicationId = applicationId;
}
public String getImageStoreId() {
return this.imageStoreId;
}
public void setImageStoreId(String imageStoreId) {
this.imageStoreId = imageStoreId;
}
public String getDeviceId() {
return this.deviceId;
}
public void setDeviceId(String deviceId) {
this.deviceId = deviceId;
}
}
@@ -0,0 +1,47 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.elevator.device.setting.param;
import java.io.Serializable;
public class DeviceImageStoreAppUnbindParam
implements Serializable {
private String applicationId;
private String imageStoreId;
private String deviceId;
private String deviceCode;
public String getApplicationId() {
return this.applicationId;
}
public void setApplicationId(String applicationId) {
this.applicationId = applicationId;
}
public String getImageStoreId() {
return this.imageStoreId;
}
public void setImageStoreId(String imageStoreId) {
this.imageStoreId = imageStoreId;
}
public String getDeviceId() {
return this.deviceId;
}
public void setDeviceId(String deviceId) {
this.deviceId = deviceId;
}
public String getDeviceCode() {
return this.deviceCode;
}
public void setDeviceCode(String deviceCode) {
this.deviceCode = deviceCode;
}
}
@@ -0,0 +1,32 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.elevator.device.setting.result;
import cn.cloudwalk.elevator.device.setting.result.AcsSettingAttr;
import java.io.Serializable;
import java.util.List;
public class AcsDeviceSettingResult
implements Serializable {
private static final long serialVersionUID = -6934487366934322212L;
private String deviceId;
private List<AcsSettingAttr> attrs;
public String getDeviceId() {
return this.deviceId;
}
public void setDeviceId(String deviceId) {
this.deviceId = deviceId;
}
public List<AcsSettingAttr> getAttrs() {
return this.attrs;
}
public void setAttrs(List<AcsSettingAttr> attrs) {
this.attrs = attrs;
}
}
@@ -0,0 +1,66 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.elevator.device.setting.result;
import java.io.Serializable;
public class AcsSettingAttr
implements Serializable {
private static final long serialVersionUID = 1670487736253830287L;
private String name;
private String value;
private String remark;
private String code;
private String id;
private String parentId;
public String getParentId() {
return this.parentId;
}
public void setParentId(String parentId) {
this.parentId = parentId;
}
public String getId() {
return this.id;
}
public void setId(String id) {
this.id = id;
}
public String getName() {
return this.name;
}
public void setName(String name) {
this.name = name;
}
public String getValue() {
return this.value;
}
public void setValue(String value) {
this.value = value;
}
public String getRemark() {
return this.remark;
}
public void setRemark(String remark) {
this.remark = remark;
}
public String getCode() {
return this.code;
}
public void setCode(String code) {
this.code = code;
}
}
@@ -0,0 +1,28 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.cloud.context.CloudwalkCallContext
* cn.cloudwalk.cloud.exception.ServiceException
* cn.cloudwalk.cloud.result.CloudwalkResult
*/
package cn.cloudwalk.elevator.device.setting.service;
import cn.cloudwalk.cloud.context.CloudwalkCallContext;
import cn.cloudwalk.cloud.exception.ServiceException;
import cn.cloudwalk.cloud.result.CloudwalkResult;
import cn.cloudwalk.elevator.device.setting.param.DeviceImageStoreAppBindParam;
import cn.cloudwalk.elevator.device.setting.param.DeviceImageStoreAppUnbindParam;
public interface AcsDeviceImageStoreAppBindService {
public CloudwalkResult<Boolean> bindAppImageStoreDevice(DeviceImageStoreAppBindParam var1, CloudwalkCallContext var2) throws ServiceException;
public CloudwalkResult<Boolean> bindDeviceAndImageStore(DeviceImageStoreAppBindParam var1, CloudwalkCallContext var2) throws ServiceException;
public CloudwalkResult<Boolean> unbindAppImageStoreDevice(DeviceImageStoreAppUnbindParam var1, CloudwalkCallContext var2) throws ServiceException;
public CloudwalkResult<Boolean> deleteImageStore(DeviceImageStoreAppUnbindParam var1, CloudwalkCallContext var2) throws ServiceException;
public CloudwalkResult<Boolean> unbindAppImageStoreDeviceNotDeleteImage(DeviceImageStoreAppUnbindParam var1, CloudwalkCallContext var2) throws ServiceException;
}
@@ -0,0 +1,20 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.cloud.context.CloudwalkCallContext
* cn.cloudwalk.cloud.exception.ServiceException
* cn.cloudwalk.cloud.result.CloudwalkResult
*/
package cn.cloudwalk.elevator.device.setting.service;
import cn.cloudwalk.cloud.context.CloudwalkCallContext;
import cn.cloudwalk.cloud.exception.ServiceException;
import cn.cloudwalk.cloud.result.CloudwalkResult;
import cn.cloudwalk.elevator.device.setting.param.AcsDeviceTemperatureSettingParam;
import cn.cloudwalk.elevator.device.setting.result.AcsDeviceSettingResult;
public interface AcsDeviceSettingService {
public CloudwalkResult<AcsDeviceSettingResult> getTemperatureSetting(AcsDeviceTemperatureSettingParam var1, CloudwalkCallContext var2) throws ServiceException;
}
@@ -0,0 +1,19 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.cloud.context.CloudwalkCallContext
*/
package cn.cloudwalk.elevator.downloadcenter;
import cn.cloudwalk.cloud.context.CloudwalkCallContext;
import cn.cloudwalk.elevator.downloadcenter.param.AcsFileFinishParam;
public interface AcsDownloadCenterService {
public String createDownload(String var1, CloudwalkCallContext var2);
public boolean finishDownload(AcsFileFinishParam var1, CloudwalkCallContext var2);
public int queryDownloadStatus(String var1, CloudwalkCallContext var2);
}
@@ -0,0 +1,115 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.client.cwoscomponent.intelligent.file.param.FileFinishParam
* cn.cloudwalk.client.cwoscomponent.intelligent.file.param.FileGetParam
* cn.cloudwalk.client.cwoscomponent.intelligent.file.param.FileInitParam
* cn.cloudwalk.client.cwoscomponent.intelligent.file.result.FileDetail
* cn.cloudwalk.client.cwoscomponent.intelligent.file.service.FileService
* cn.cloudwalk.cloud.context.CloudwalkCallContext
* cn.cloudwalk.cloud.exception.ServiceException
* cn.cloudwalk.cloud.result.CloudwalkResult
* cn.cloudwalk.cloud.utils.BeanCopyUtils
* cn.cloudwalk.elevator.config.FeignThreadLocalUtil
* org.springframework.beans.factory.annotation.Autowired
* org.springframework.stereotype.Service
*/
package cn.cloudwalk.elevator.downloadcenter.impl;
import cn.cloudwalk.client.cwoscomponent.intelligent.file.param.FileFinishParam;
import cn.cloudwalk.client.cwoscomponent.intelligent.file.param.FileGetParam;
import cn.cloudwalk.client.cwoscomponent.intelligent.file.param.FileInitParam;
import cn.cloudwalk.client.cwoscomponent.intelligent.file.result.FileDetail;
import cn.cloudwalk.client.cwoscomponent.intelligent.file.service.FileService;
import cn.cloudwalk.cloud.context.CloudwalkCallContext;
import cn.cloudwalk.cloud.exception.ServiceException;
import cn.cloudwalk.cloud.result.CloudwalkResult;
import cn.cloudwalk.cloud.utils.BeanCopyUtils;
import cn.cloudwalk.elevator.common.AbstractCloudwalkService;
import cn.cloudwalk.elevator.common.service.AcsApplicationService;
import cn.cloudwalk.elevator.config.FeignThreadLocalUtil;
import cn.cloudwalk.elevator.downloadcenter.AcsDownloadCenterService;
import cn.cloudwalk.elevator.downloadcenter.param.AcsFileFinishParam;
import cn.cloudwalk.elevator.export.AcsFileStatusEnum;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class AcsDownloadCenterServiceImpl
extends AbstractCloudwalkService
implements AcsDownloadCenterService {
@Autowired
private FileService fileService;
@Autowired
private AcsApplicationService acsApplicationService;
@Override
public String createDownload(String fileName, CloudwalkCallContext context) {
try {
FileInitParam fileInitParam = new FileInitParam();
fileInitParam.setFileName(fileName);
context.setApplicationId(this.acsApplicationService.getApplicationId(context.getCompany().getCompanyId()));
fileInitParam.setApplicationId(context.getApplicationId());
FeignThreadLocalUtil.setRequestHeader((CloudwalkCallContext)context);
CloudwalkResult result = this.fileService.init(fileInitParam, context);
if ("00000000".equals(result.getCode())) {
String string = (String)result.getData();
return string;
}
try {
this.logger.error("\u4e0b\u8f7d\u4efb\u52a1\u521d\u59cb\u5316\u5931\u8d25\uff1acode={},message={}", (Object)result.getCode(), (Object)result.getMessage());
throw new RuntimeException("\u4e0b\u8f7d\u4efb\u52a1\u521b\u5efa\u5931\u8d25\uff01");
}
catch (ServiceException e) {
this.logger.error("\u4e0b\u8f7d\u4efb\u52a1\u521d\u59cb\u5316\u63a5\u53e3\u9519\u8bef", (Throwable)e);
throw new RuntimeException("\u4e0b\u8f7d\u4efb\u52a1\u521b\u5efa\u5931\u8d25\uff01");
}
}
finally {
FeignThreadLocalUtil.remove();
}
}
/*
* WARNING - Removed try catching itself - possible behaviour change.
*/
@Override
public boolean finishDownload(AcsFileFinishParam param, CloudwalkCallContext context) {
try {
FeignThreadLocalUtil.setRequestHeader((CloudwalkCallContext)context);
FileFinishParam fileFinishParam = (FileFinishParam)BeanCopyUtils.copyProperties((Object)param, FileFinishParam.class);
CloudwalkResult result = this.fileService.finish(fileFinishParam, context);
if ("00000000".equals(result.getCode())) {
boolean bl = true;
return bl;
}
this.logger.error("\u4e0b\u8f7d\u4efb\u52a1\u5b8c\u6210\u5931\u8d25\uff1acode={},message={}", (Object)result.getCode(), (Object)result.getMessage());
}
catch (ServiceException e) {
this.logger.error("\u4e0b\u8f7d\u4efb\u52a1\u5b8c\u6210\u63a5\u53e3\u9519\u8bef", (Throwable)e);
}
finally {
FeignThreadLocalUtil.remove();
}
return false;
}
@Override
public int queryDownloadStatus(String fileId, CloudwalkCallContext context) {
try {
FileGetParam fileGetParam = new FileGetParam();
fileGetParam.setFileId(fileId);
CloudwalkResult result = this.fileService.get(fileGetParam, context);
if ("00000000".equals(result.getCode())) {
return ((FileDetail)result.getData()).getStatus();
}
this.logger.error("\u4e0b\u8f7d\u4efb\u52a1\u521d\u59cb\u5316\u5931\u8d25\uff1acode={},message={}", (Object)result.getCode(), (Object)result.getMessage());
}
catch (ServiceException e) {
this.logger.error("\u4e0b\u8f7d\u4efb\u52a1\u5b8c\u6210\u63a5\u53e3\u9519\u8bef", (Throwable)e);
}
return AcsFileStatusEnum.PRODUCING.getCode();
}
}
@@ -0,0 +1,66 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.elevator.downloadcenter.param;
import java.io.Serializable;
public class AcsFileFinishParam
implements Serializable {
private static final long serialVersionUID = 4334332744642479052L;
private String fileId;
private Long fileSize;
private String filePath;
private Integer fileStatus;
private String errorCode;
private String errorMessage;
public String getFileId() {
return this.fileId;
}
public void setFileId(String fileId) {
this.fileId = fileId;
}
public Long getFileSize() {
return this.fileSize;
}
public void setFileSize(Long fileSize) {
this.fileSize = fileSize;
}
public String getFilePath() {
return this.filePath;
}
public void setFilePath(String filePath) {
this.filePath = filePath;
}
public Integer getFileStatus() {
return this.fileStatus;
}
public void setFileStatus(Integer fileStatus) {
this.fileStatus = fileStatus;
}
public String getErrorCode() {
return this.errorCode;
}
public void setErrorCode(String errorCode) {
this.errorCode = errorCode;
}
public String getErrorMessage() {
return this.errorMessage;
}
public void setErrorMessage(String errorMessage) {
this.errorMessage = errorMessage;
}
}
@@ -0,0 +1,34 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.elevator.em;
public enum AcsApplicationSourceEnum {
ACCESS_CONTROL("ACCESS_CONTROL", "\u95e8\u7981\u5e94\u7528"),
CWOS_PORTAL("CWOS_PORTAL", "\u5e73\u53f0\u5e94\u7528");
private final String code;
private final String name;
private AcsApplicationSourceEnum(String code, String name) {
this.code = code;
this.name = name;
}
public static AcsApplicationSourceEnum getEnumByCode(String code) {
for (AcsApplicationSourceEnum item : AcsApplicationSourceEnum.values()) {
if (!code.equals(item.code)) continue;
return item;
}
return null;
}
public String getCode() {
return this.code;
}
public String getName() {
return this.name;
}
}
@@ -0,0 +1,34 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.elevator.em;
public enum AcsDeviceIdentifyTypeEnum {
FRONT_REG(0, "\u524d\u7aef\u8bc6\u522b"),
BACKEND_REG(1, "\u540e\u7aef\u8bc6\u522b");
private Integer code;
private String name;
private AcsDeviceIdentifyTypeEnum(Integer code, String name) {
this.code = code;
this.name = name;
}
public static AcsDeviceIdentifyTypeEnum getEnumByCode(Integer code) {
for (AcsDeviceIdentifyTypeEnum item : AcsDeviceIdentifyTypeEnum.values()) {
if (!code.equals(item.getCode())) continue;
return item;
}
return null;
}
public Integer getCode() {
return this.code;
}
public String getName() {
return this.name;
}
}
@@ -0,0 +1,34 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.elevator.em;
public enum AcsDeviceQueryTypeEnum {
QUERY_MAIN(1, "\u53ea\u67e5\u8be2\u4e3b\u8bbe\u5907"),
QUERY_MAIN_AND_SUB(2, "\u67e5\u8be2\u4e3b\u8bbe\u5907\u53ca\u5176\u5b50\u8bbe\u5907");
private Integer code;
private String message;
private AcsDeviceQueryTypeEnum(Integer code, String message) {
this.code = code;
this.message = message;
}
public static AcsDeviceQueryTypeEnum getEnumByCode(Integer code) {
for (AcsDeviceQueryTypeEnum item : AcsDeviceQueryTypeEnum.values()) {
if (!code.equals(item.getCode())) continue;
return item;
}
return null;
}
public Integer getCode() {
return this.code;
}
public String getMessage() {
return this.message;
}
}
@@ -0,0 +1,62 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.elevator.em;
import cn.cloudwalk.elevator.em.AcsApplicationSourceEnum;
import java.util.ArrayList;
import java.util.List;
public enum AcsDeviceSettingEnum {
QUALITY_SCORE("qualityScore", "\u4eba\u8138\u6293\u62cd\u8d28\u91cf\u5206", AcsApplicationSourceEnum.CWOS_PORTAL),
TEMP_THRESHOLD("tempThreshold", "\u6e29\u5ea6\u62a5\u8b66\u9608\u503c", AcsApplicationSourceEnum.CWOS_PORTAL),
TEMP_MIN("tempMin", "\u6e29\u5ea6\u6700\u4f4e\u503c", AcsApplicationSourceEnum.CWOS_PORTAL),
MASK_THRESHOLD("maskThreshold", "\u53e3\u7f69\u9608\u503c", AcsApplicationSourceEnum.CWOS_PORTAL),
LIVE_STATE("liveState", "\u6d3b\u4f53\u68c0\u6d4b\u5f00\u5173", AcsApplicationSourceEnum.CWOS_PORTAL),
TEMP_STATE("tempState", "\u6e29\u5ea6\u63a7\u5236\u5f00\u5173", AcsApplicationSourceEnum.CWOS_PORTAL),
FACE_SIZE_MIN("faceSizeMin", "\u4eba\u8138\u6700\u5c0f\u5c3a\u5bf8", AcsApplicationSourceEnum.CWOS_PORTAL),
FACE_SIZE_MAX("faceSizeMax", "\u4eba\u8138\u6700\u5927\u5c3a\u5bf8", AcsApplicationSourceEnum.CWOS_PORTAL),
FACE_ONE_THRESHOLD("faceOneThreshold", "\u4eba\u81381:1\u8bc6\u522b\u9608\u503c", AcsApplicationSourceEnum.CWOS_PORTAL),
FACE_MANY_THRESHOLD("faceManyThreshold", "\u4eba\u81381:N\u8bc6\u522b\u9608\u503c", AcsApplicationSourceEnum.CWOS_PORTAL),
ACS_FACE_REG_THRESHOLD("ACS_FACE_REG_THRESHOLD", "\u4eba\u8138\u6293\u62cd\u8bc6\u522b\u9608\u503c", AcsApplicationSourceEnum.ACCESS_CONTROL);
private String code;
private String remark;
private AcsApplicationSourceEnum source;
public String getCode() {
return this.code;
}
public String getRemark() {
return this.remark;
}
public AcsApplicationSourceEnum getSource() {
return this.source;
}
private AcsDeviceSettingEnum(String code, String remark, AcsApplicationSourceEnum source) {
this.code = code;
this.remark = remark;
this.source = source;
}
public static AcsDeviceSettingEnum getEnumByCode(String code) {
for (AcsDeviceSettingEnum item : AcsDeviceSettingEnum.values()) {
if (!code.equals(item.code)) continue;
return item;
}
return null;
}
public static List<AcsDeviceSettingEnum> getEnumBySource(String source) {
ArrayList<AcsDeviceSettingEnum> list = new ArrayList<AcsDeviceSettingEnum>();
for (AcsDeviceSettingEnum item : AcsDeviceSettingEnum.values()) {
if (!source.equals(item.source.getCode())) continue;
list.add(item);
}
return list;
}
}
@@ -0,0 +1,35 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.elevator.em;
public enum AcsOpenDoorStatusEnum {
INIT(0, "\u521d\u59cb\u5316"),
SUCESS(1, "\u6210\u529f"),
FAIL(2, "\u5931\u8d25");
private Integer code;
private String message;
private AcsOpenDoorStatusEnum(Integer code, String message) {
this.code = code;
this.message = message;
}
public static AcsOpenDoorStatusEnum getEnumByCode(Integer code) {
for (AcsOpenDoorStatusEnum item : AcsOpenDoorStatusEnum.values()) {
if (!code.equals(item.getCode())) continue;
return item;
}
return null;
}
public Integer getCode() {
return this.code;
}
public String getMessage() {
return this.message;
}
}
@@ -0,0 +1,34 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.elevator.em;
public enum AcsOperateStatusEnum {
INIT(0, "\u521d\u59cb\u5316"),
MATCHED(1, "\u5df2\u5339\u914d");
private Integer code;
private String message;
private AcsOperateStatusEnum(Integer code, String message) {
this.code = code;
this.message = message;
}
public static AcsOperateStatusEnum getEnumByCode(Integer code) {
for (AcsOperateStatusEnum item : AcsOperateStatusEnum.values()) {
if (!code.equals(item.getCode())) continue;
return item;
}
return null;
}
public Integer getCode() {
return this.code;
}
public String getMessage() {
return this.message;
}
}
@@ -0,0 +1,34 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.elevator.em;
public enum AcsOperateTypeEnum {
REMOTE_OPEN_DOOR("REMOTE_OPEN_DOOR", "\u8fdc\u7a0b\u5f00\u95e8"),
QRCODE_OPEN_DOOR("QRCODE_OPEN_DOOR", "\u5c0f\u7a0b\u5e8f\u626b\u7801\u5f00\u95e8");
private String code;
private String message;
private AcsOperateTypeEnum(String code, String message) {
this.code = code;
this.message = message;
}
public static AcsOperateTypeEnum getEnumByCode(String code) {
for (AcsOperateTypeEnum item : AcsOperateTypeEnum.values()) {
if (!code.equals(item.getCode())) continue;
return item;
}
return null;
}
public String getCode() {
return this.code;
}
public String getMessage() {
return this.message;
}
}
@@ -0,0 +1,37 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.elevator.em;
import cn.cloudwalk.elevator.em.YesNoTypeEnum;
public enum AcsPassTypeEnum {
LONG_TIME(0, "\u957f\u671f"),
AUTO_PASS(1, "\u81ea\u5b9a\u4e49\u65f6\u95f4"),
PASS_TIME(2, "\u901a\u884c\u65f6\u95f4\u6bb5");
private Integer code;
private String message;
private AcsPassTypeEnum(Integer code, String message) {
this.code = code;
this.message = message;
}
public static YesNoTypeEnum getEnumByCode(Integer code) {
for (YesNoTypeEnum item : YesNoTypeEnum.values()) {
if (!code.equals(item.getCode())) continue;
return item;
}
return null;
}
public Integer getCode() {
return this.code;
}
public String getMessage() {
return this.message;
}
}
@@ -0,0 +1,96 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.elevator.em;
public enum AlarmStateCodeEnum {
OPERATION_FAILED("36000001", "\u64cd\u4f5c\u5931\u8d25"),
EMPTY_PARAMETERS_WRONG("36000002", "\u53c2\u6570\u4e0d\u80fd\u4e3a\u7a7a"),
INSERT_DATABSE_EREEOR("36000003", "\u63d2\u5165\u6570\u636e\u5e93\u5f02\u5e38"),
EMPTY_USER_ID("36000004", "ID\u4e0d\u80fd\u4e3a\u7a7a"),
PARAM_ERROR("36000005", "\u53c2\u6570\u4e0d\u7b26\u5408\u8981\u6c42"),
SEARCH_INFORMATION_FAILED("36000006", "\u67e5\u8be2\u4fe1\u606f\u5931\u8d25"),
TASK_NAME_EXIST("36000007", "\u5e03\u63a7\u540d\u79f0\u91cd\u590d"),
TASK_TYPE_NAME_EXIST("36000012", "\u5e03\u63a7\u7c7b\u578b\u540d\u79f0\u91cd\u590d"),
DELETE_NOT_EXIST("36000008", "\u88ab\u5220\u9664\u8d44\u6e90\u4e0d\u5b58\u5728"),
CONTROL_TASK_TYPE_HAS_TASK("36000009", "\u5b58\u5728\u5173\u8054\u4efb\u52a1"),
SAVE_TASK_TYPE_ERROR("36000010", "\u4fdd\u5b58\u533a\u63a7\u7c7b\u578b\u5931\u8d25"),
UPDATE_TASK_TYPE_ERROR("36000011", "\u66f4\u65b0\u533a\u63a7\u7c7b\u578b\u5931\u8d25"),
FILE_SIZE_ILLEGAL("3600030", "\u6587\u4ef6\u5927\u5c0f\u8d85\u8fc7"),
WRONG_PARAMETERS("400", "\u53c2\u6570\u9519\u8bef"),
SERVER_EXCEPTION("500", "\u670d\u52a1\u5668\u5f02\u5e38"),
SUCCESS("00000000", "\u6210\u529f"),
CWOS_FEIGN_FAILED("36000007", "\u8c03\u7528cwos\u63a5\u53e3\u5f02\u5e38"),
PAGE_QUERY_FAILED("36000008", "\u5206\u9875\u67e5\u8be2\u5931\u8d25"),
PARAM_REPEAT("36000009", "\u8bc1\u4ef6\u7c7b\u578b+\u8bc1\u4ef6\u53f7\u91cd\u590d"),
CONTROL_TASK_ID_NOT_EXIST("36000010", "\u4efb\u52a1\u7f16\u53f7\u4e0d\u5b58\u5728"),
DEVICE_NOT_EXIST("36000011", "\u56de\u653e\u94fe\u63a5\u5df2\u5931\u6548"),
LABEL_NAME_DUPLICATE_FAILED("10001056", "\u5e93\u540d\u79f0\u91cd\u590d"),
LABEL_NAME_INVALID("10001050", "\u5e93\u540d\u79f0\u65e0\u6548"),
LABEL_QUERY_FAILED("10001051", "\u6807\u7b7e\u67e5\u8be2\u5931\u8d25"),
LABEL_SAVE_FAILED("10001052", "\u6807\u7b7e\u4fdd\u5b58\u5931\u8d25"),
LABEL_UPDATE_FAILED("10001053", "\u6807\u7b7e\u66f4\u65b0\u5931\u8d25"),
LABEL_DELETE_FAILED("10001054", "\u6807\u7b7e\u5220\u9664\u5931\u8d25"),
EMPTY_LABEL_NAME("10001055", "\u6807\u7b7e\u540d\u79f0\u4e3a\u7a7a"),
LABEL_PAGE_FAILED("10001055", "\u5206\u9875\u67e5\u8be2\u6807\u7b7e\u5f02\u5e38"),
LABEL_LIST_FAILED("10001057", "\u5217\u8868\u67e5\u8be2\u6807\u7b7e\u5f02\u5e38"),
LABEL_BRAND_FAILED("10001060", "\u67e5\u8be2\u8f66\u8f86\u54c1\u724c\u5f02\u5e38"),
VEHICLE_TYPE_FAILED("10001061", "\u67e5\u8be2\u8f66\u8f86\u7c7b\u578b\u5f02\u5e38"),
VEHICLE_DETAIL_ERROR("10001062", "\u8f66\u8f86\u8be6\u60c5\u67e5\u8be2\u5931\u8d25"),
CODE_QUERY_ERROR("10001063", "\u67e5\u8be2\u5931\u8d25"),
LABEL_SIZE_FAILED("10001067", "\u5e93\u540d\u79f0\u8d85\u8fc7\u6700\u5927\u957f\u5ea6"),
PLATE_NO_DUPLICATE("10001070", "\u8f66\u724c\u53f7\u91cd\u590d\u6dfb\u52a0"),
VEHICLE_ADD_ERROR("10001071", "\u8f66\u8f86\u6dfb\u52a0\u5931\u8d25"),
VEHICLE_PROPERTY_UNQUALIFIED("10001087", "\u8f66\u8f86\u5c5e\u6027\u4e0d\u5408\u683c"),
PLATE_NO_INVALID("10005202", "\u8f66\u724c\u53f7\u65e0\u6548"),
VEHICLE_TYPE_INVALID("10005203", "\u8f66\u724c\u7c7b\u578b\u65e0\u6548"),
VEHICLE_BRAND_INVALID("10005204", "\u8f66\u8f86\u54c1\u724c\u65e0\u6548"),
VEHICLE_EDIT_FAIL("10001069", "\u8f66\u8f86\u7f16\u8f91\u5931\u8d25"),
VEHICLE_DELETE_ERROR("10001076", "\u8f66\u8f86\u5220\u9664\u5931\u8d25"),
VEHICLE_PAGE_FAILED("10001064", "\u8f66\u8f86\u5206\u9875\u67e5\u8be2\u5931\u8d25"),
VEHICLE_LIST_FAILED("10001065", "\u8f66\u8f86LIST\u67e5\u8be2\u5931\u8d25"),
LABEL_BIND_VEHICLE("10001058", "\u8be5\u6807\u7b7e\u5df2\u88ab\u7ed1\u5b9a\u5177\u4f53\u8f66\u8f86"),
EMPTY_PIC_NAME("10001059", "\u56fe\u7247\u5730\u5740\u4e3a\u7a7a"),
PICTURE_FAILED("10001070", "\u56fe\u7247\u4e0d\u5408\u6cd5"),
LABEL_BIND_PERSON("10002058", "\u8be5\u6807\u7b7e\u5df2\u88ab\u7ed1\u5b9a\u5177\u4f53\u4eba\u5458"),
LABEL_BIND_FIELD("10002059", "\u8be5\u6807\u7b7e\u7ed1\u5b9a\u4eba\u5458\u5931\u8d25"),
PERSON_PROPERTY_UNQUALIFIED("10002087", "\u4eba\u8138\u5c5e\u6027\u4e0d\u5408\u683c"),
PERSON_PIC_UNQUALIFIED("10002088", "\u4eba\u8138\u56fe\u7247\u4e0d\u5408\u683c"),
PERSON_ORG_ADD_FEILD("10002089", "\u4eba\u5458\u7ba1\u7406\u6dfb\u52a0\u4eba\u5458\u5931\u8d25"),
PERSON_ADD_ERROR("10002071", "\u4eba\u5458\u6dfb\u52a0\u5931\u8d25"),
PERSON_DUPLICATE("10002070", "\u4eba\u5458\u91cd\u590d\u6dfb\u52a0"),
PHONE_NO_INVALID("10005205", "\u624b\u673a\u53f7\u65e0\u6548"),
CARD_NO_INVALID("10005206", "\u8eab\u4efd\u8bc1\u65e0\u6548"),
NAME_NO_INVALID("10005207", "\u540d\u79f0\u65e0\u6548"),
CARD_NO_DUPLICATE("10005208", "\u8eab\u4efd\u8bc1\u91cd\u590d\u6dfb\u52a0"),
PERSON_EDIT_FAIL("10002069", "\u4eba\u5458\u7f16\u8f91\u5931\u8d25"),
PERSON_DELETE_ERROR("10002076", "\u4eba\u5458\u5220\u9664\u5931\u8d25"),
PERSON_PAGE_FAILED("10002064", "\u4eba\u5458\u5206\u9875\u67e5\u8be2\u5931\u8d25"),
PERSON_LIST_FAILED("10002065", "\u4eba\u5458LIST\u67e5\u8be2\u5931\u8d25"),
ORGANIZATION_PERSONS_EMPTY("10002066", "\u4eba\u5458\u7ba1\u7406\u4eba\u5458\u4fe1\u606f\u4e3a\u7a7a"),
FILE_TYPE_IS_INVALID("53060429", "\u4e0a\u4f20\u6587\u4ef6\u7c7b\u578b\u4e0d\u5408\u6cd5"),
FILE_MAX_IS_ERROR("53060428", "\u4e0a\u4f20\u6587\u4ef6\u8d85\u8fc7\u6700\u5927\u5927\u5c0f"),
FILE_UPLOAD_CONTROLLER_ERROR("80014013", "\u6a21\u5757\u6587\u4ef6\u4e0a\u4f20\u5f02\u5e38"),
PIC_DELETE_ERROR("10001084", "\u56fe\u7247\u5220\u9664\u5931\u8d25"),
EXPORT_TASK_DOWNLOAD_CENTER_FAILURE("36000008", "\u4e0b\u8f7d\u4e2d\u5fc3\u521b\u5efa\u4e0b\u8f7d\u4efb\u52a1\u5931\u8d25"),
EXPORT_TASK_FAILURE("36000009", "\u6dfb\u52a0\u5bfc\u51fa\u4efb\u52a1\u5931\u8d25"),
EXPORT_TASK_TYPE_ERROR("36000010", "\u5bfc\u51fa\u4efb\u52a1\u7c7b\u578b\u9519\u8bef"),
EXPORT_TASK_OVERLOAD_THRESHOLD("36000011", "\u67e5\u8be2\u5bfc\u51fa\u8bb0\u5f55\u8d85\u8fc7\u8bbe\u5b9a\u9608\u503c");
private String code;
private String message;
private AlarmStateCodeEnum(String code, String message) {
this.code = code;
this.message = message;
}
public String getCode() {
return this.code;
}
public String getMessage() {
return this.message;
}
}
@@ -0,0 +1,36 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.elevator.em;
public enum CompareTypeEnum {
RECOG(1, "1:N\u6bd4\u5bf9"),
PERSON_CARD(2, "\u4eba\u8bc1\u6bd4\u5bf9"),
ACS_BACK_RECOG(3, "\u95e8\u79811:N\u6bd4\u5bf9"),
APP_BACK_RECOG(4, "\u5e94\u7528\u7aef1:N\u6bd4\u5bf9");
private Integer code;
private String message;
private CompareTypeEnum(Integer code, String message) {
this.code = code;
this.message = message;
}
public static CompareTypeEnum getEnumByCode(Integer code) {
for (CompareTypeEnum item : CompareTypeEnum.values()) {
if (!code.equals(item.getCode())) continue;
return item;
}
return null;
}
public Integer getCode() {
return this.code;
}
public String getMessage() {
return this.message;
}
}
@@ -0,0 +1,79 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.elevator.em;
public enum EngineAddressEnum {
PORTAL_USER_PAGE("\u7528\u6237\u67e5\u8be2\u63a5\u53e3", "/portal/user/manage/page"),
PERSON_PROPERTIES_LIST("\u67e5\u8be2\u5546\u6237\u5bf9\u5e94\u7684\u5458\u5de5\u5c5e\u6027", "/component/person/properties/list"),
NINCACOMMON_AREA_GET_ALL_TREE("\u83b7\u53d6\u533a\u57df\u6811\u72b6\u7ed3\u6784", "/sysetting/deviceArea/tree"),
COMMON_VEHICLE_GET_ALL_LABLES("\u83b7\u53d6\u8f66\u8f86\u7ba1\u7406\u6807\u7b7e\u4fe1\u606f", "/vm/label/list"),
COMMON_VEHICLE_VM_VEHICLE_LABELREF("\u83b7\u53d6\u8f66\u8f86\u7ba1\u7406\u8f66\u8f86\u5206\u9875\u4fe1\u606f", "/vm/vehicle/control/labelRef"),
COMMON_VEHICLE_VM_VEHICLE_LIST("\u6279\u91cf\u83b7\u53d6\u8f66\u8f86\u7ba1\u7406\u8f66\u8f86\u4fe1\u606f", "/vm/vehicle/list"),
CWOS_DEVICE_GET("\u8bbe\u5907\u5217\u8868\u67e5\u8be2", "/component/device/list"),
CW0S_DEVICE_DETAIL("\u8bbe\u5907\u8be6\u60c5", "/core/atomic/device/detail"),
CWOS_DEVICE_SETTING("\u4e0b\u53d1\u53c2\u6570\u5230\u8bbe\u5907", "/server/push/55000"),
CWOS_AREA_GET_ALL_TREE("\u83b7\u53d6\u533a\u57df\u6811\u72b6\u7ed3\u6784", "/component/device/area/get/alltree"),
CWOS_QUERY_DEVICE_APPLICATION("\u67e5\u8be2\u8bbe\u5907\u4e0e\u5e94\u7528\u5173\u8054\u5217\u8868", "/component/device/app/list"),
CWOS_BIND_DEVICE_APPLICATION("\u7ed1\u5b9a\u8bbe\u5907\u4e0e\u5e94\u7528", "/component/device/app/add"),
CWOS_SPLIT_DEVICE_APPLICATION("\u89e3\u7ed1\u8bbe\u5907\u4e0e\u5e94\u7528", "/component/device/app/delete"),
CWOS_QUERY_APPLICATION_ID("\u67e5\u8be2\u5e94\u7528ID", "/res/application/instance/query"),
CWOS_BIND_DEVICE_IMAGESTORE("\u7ed1\u5b9a\u56fe\u5e93\u4e0e\u8bbe\u5907", "/component/device/imagestore/add"),
CWOS_SPLIT_DEVICE_IMAGESTORE("\u89e3\u9664\u7ed1\u5b9a\u56fe\u5e93\u4e0e\u8bbe\u5907", "/component/device/imagestore/delete"),
CWOS_BIND_IMAGESTORE_APPLICATION("\u7ed1\u5b9a\u56fe\u5e93\u4e0e\u5e94\u7528", "/core/application/group/add"),
CWOS_SPLIT_IMAGESTORE_APPLICATION("\u89e3\u7ed1\u56fe\u5e93\u4e0e\u5e94\u7528", "/core/application/group/delete"),
CWOS_ORGANIZATION_TREE("\u67e5\u8be2\u673a\u6784\u6811\u578b\u7ed3\u6784", "/component/organization/tree"),
CWOS_BIOLOGY_IMAGE_COMPARE("\u5355\u5e93\u6216\u591a\u5e93\u6bd4\u5bf9", "/component/biology/tool/feature/query"),
CWOS_BIOLOGY_PERSON_DETAIL("\u67e5\u8be2\u4eba\u5458\u4fe1\u606f\u8be6\u60c5", "/component/person/detail"),
CWOS_BIOLOGY_PERSON_LIST("\u67e5\u8be2\u4eba\u5458\u4fe1\u606f", "/component/person/listPerson"),
CWOS_BIOLOGY_IMAGESTORE_ADD("\u65b0\u589e\u56fe\u5e93", "/component/imagestore/add"),
CWOS_BIOLOGY_IMAGESTORE_EDIT("\u7f16\u8f91\u56fe\u5e93", "/component/imagestore/edit"),
CWOS_BIOLOGY_IMAGESTORE_LIST("\u67e5\u8be2\u56fe\u5e93", "/component/imagestore/list"),
COWS_BIOLOGY_IMAGESTORE_DELETE("\u5220\u9664\u56fe\u5e93", "/component/imagestore/delete"),
CWOS_BIOLOGY_IMAGESTORE_DETAIL("\u56fe\u5e93\u8be6\u60c5", "/component/imagestore/detail"),
CWOS_BIOLOGY_PERSON_PAGE("\u5206\u9875\u67e5\u8be2\u4eba\u5458", "/component/person/page"),
CWOS_BIOLOGY_PERSON_ADD("\u65b0\u589e\u4eba\u5458", "/component/person/add"),
CWOS_BIOLOGY_PERSON_EDIT("\u7f16\u8f91\u4eba\u5458", "/component/person/edit"),
CWOS_BIOLOGY_PERSON_DELETE("\u5220\u9664\u4eba\u5458", "/component/person/delete"),
CWOS_BIOLOGY_LABEL_GETALLLABELS("\u67e5\u8be2\u6807\u7b7e\u5217\u8868", "/biology/label/getAllLabels"),
CWOS_BIOLOGY_LABLE_ADD("\u65b0\u589e\u6807\u7b7e", "/biology/label/add"),
CWOS_BIOLOGY_LABLE_EDIT("\u7f16\u8f91\u6807\u7b7e", "/biology/label/edit"),
CWOS_BIOLOGY_LABLE_DELETE("\u5220\u9664\u6807\u7b7e", "/biology/label/delete"),
CWOS_BIOLOGY_LABLE_PERSONS_ADD("\u6807\u7b7e\u4eba\u5458\u65b0\u589e", "/biology/label/personsAdd"),
CWOS_BIOLOGY_LABLE_PERSONS_DEL("\u6807\u7b7e\u4eba\u5458\u5220\u9664", "/biology/label/personsDel"),
CWOS_FILE_UPLOAD("\u6587\u4ef6\u4e0a\u4f20", "/portal/fileManager/{moduleCategory}/fileUpload"),
CWOS_FILE_DELETE("\u6587\u4ef6\u5220\u9664", "/portal/fileManager/remove/images"),
CWOS_FILE_PART_INIT("\u5206\u7247\u4e0a\u4f20\u6587\u4ef6\u521d\u59cb\u5316", "/portal/file/part/init"),
CWOS_FILE_PART_FINISH("\u5206\u7247\u4e0a\u4f20\u6587\u4ef6\u7ed3\u675f", "/portal/file/part/finish"),
CWOS_FILE_APPEND("\u6587\u4ef6\u8ffd\u52a0", "/portal/file/part/append"),
PINEAPPLE_FACE_FEATURE_GET("\u4eba\u8138\u7279\u5f81\u63d0\u53d6", "staticdb/search/feature"),
PINEAPPLE_FACE_SEARCH_MULTIPLE("\u591a\u5e93\u4eba\u8138\u68c0\u7d22", "staticdb/search/multiple"),
PINEAPPLE_STRUCTURE_ATTRIBUTE("\u5168\u7ed3\u6784\u5316\u5c5e\u6027", "structure/recognize"),
PINEAPPLE_CLUSTER_FACE_ADD("\u7279\u5f81\u5165\u5e93", "api/cluster/feature/add"),
PINEAPPLE_CLUSTER_START_DEVICE("\u6309groupId\u805a\u7c7b", "api/cluster/doClusterByDeviceId"),
PINEAPPLE_CLUSTER_GET_TASK_INFO("\u83b7\u53d6\u805a\u7c7b\u4efb\u52a1\u4fe1\u606f", "api/cluster/getAllTaskInfo"),
PINEAPPLE_CLUSTER_STOP("\u505c\u6b62\u805a\u7c7b", "api/cluster/stopIncreCluster"),
PINEAPPLE_CLUSTER_GROUP_REMOVE("\u5220\u9664\u805a\u7c7b\u5e93", "api/cluster/group/base/remove"),
PINEAPPLE_ENGINE_PAGE_INFO("\u5f15\u64ce\u5206\u9875\u67e5\u8be2", "gateway/config/server/getbypage"),
SEND_MESSAGE_TO_MQTT("\u53d1\u9001\u6570\u636e\u5230mqtt", "mqtt/publish"),
GET_ALIVE_CLIENTS_OF_MQTT("\u83b7\u5f97\u6240\u6709\u5b58\u6d3b\u7684\u5ba2\u6237\u7aef", "mqtt/getClients"),
ALARM_OCCUR("\u58f0\u5149\u62a5\u8b66\u5668\u89e6\u53d1", "mqtt/publish"),
VISITOR_QUERY("\u67e5\u8be2\u8bc6\u522b\u8bb0\u5f55\u8be6\u60c5", "/intelligent/visitor/record/query");
private final String api;
private final String address;
private EngineAddressEnum(String api, String address) {
this.api = api;
this.address = address;
}
public String getApi() {
return this.api;
}
public String getAddress() {
return this.address;
}
}
@@ -0,0 +1,50 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.elevator.em;
public enum OpenDoorTypeEnum {
FACE("FACE", "\u4eba\u8138\u5f00\u95e8"),
APP("APP", "\u8fdc\u7a0b\u5f00\u95e8"),
GUARD_CARD("GUARD_CARD", "\u95e8\u7981\u5361\u5f00\u95e8"),
PASSWORD("PASSWORD", "\u5bc6\u7801\u5f00\u95e8"),
ID_CARD("ID_CARD", "\u8eab\u4efd\u8bc1\u5f00\u95e8"),
FACE_GUARD_CARD("FACE_GUARD_CARD", "\u4eba\u8138\u95e8\u7981\u5361\u5f00\u95e8"),
INTERCOM("INTERCOM", "\u5ba4\u5185\u673a\u5f00\u95e8"),
ONE("01", "\u4eba\u8138\u5f00\u95e8"),
TWO("02", "\u95e8\u7981\u5361\u5f00\u95e8"),
THREE("03", "\u4e8c\u7ef4\u7801\u5f00\u95e8");
private String code;
private String remark;
public String getCode() {
return this.code;
}
public String getRemark() {
return this.remark;
}
private OpenDoorTypeEnum(String code, String remark) {
this.code = code;
this.remark = remark;
}
public static String getEnumByCode(String code) {
for (OpenDoorTypeEnum item : OpenDoorTypeEnum.values()) {
if (!code.equals(item.code) && !code.toUpperCase().equals(item.code)) continue;
return item.remark;
}
return code;
}
public static OpenDoorTypeEnum getOpenDoorTypeEnumByCode(String code) {
for (OpenDoorTypeEnum item : OpenDoorTypeEnum.values()) {
if (!code.equals(item.code) && !code.toUpperCase().equals(item.code)) continue;
return item;
}
return null;
}
}
@@ -0,0 +1,34 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.elevator.em;
public enum YesNoTypeEnum {
N(0, "\u5426"),
Y(1, "\u662f");
private Integer code;
private String message;
private YesNoTypeEnum(Integer code, String message) {
this.code = code;
this.message = message;
}
public static YesNoTypeEnum getEnumByCode(Integer code) {
for (YesNoTypeEnum item : YesNoTypeEnum.values()) {
if (!code.equals(item.getCode())) continue;
return item;
}
return null;
}
public Integer getCode() {
return this.code;
}
public String getMessage() {
return this.message;
}
}
@@ -0,0 +1,519 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.client.davinci.portal.file.param.part.FilePartAppendParam
* cn.cloudwalk.client.davinci.portal.file.param.part.FilePartFinishParam
* cn.cloudwalk.client.davinci.portal.file.param.part.FilePartInitParam
* cn.cloudwalk.client.davinci.portal.file.result.FilePartResult
* cn.cloudwalk.cloud.context.CloudwalkCallContext
* cn.cloudwalk.cloud.exception.ServiceException
* cn.cloudwalk.cloud.page.CloudwalkPageAble
* cn.cloudwalk.cloud.page.CloudwalkPageInfo
* cn.cloudwalk.cloud.result.CloudwalkResult
* cn.cloudwalk.elevator.config.FeignThreadLocalUtil
* cn.cloudwalk.elevator.util.CollectionUtils
* cn.cloudwalk.elevator.util.DateUtils
* cn.cloudwalk.elevator.util.StringUtils
* cn.cloudwalk.intelligent.davinci.common.exception.DavinciServiceException
* cn.cloudwalk.intelligent.davinci.storage.bean.file.dto.FileRemoveDTO
* cn.cloudwalk.intelligent.davinci.storage.manager.FileStorageManager
* cn.cloudwalk.intelligent.lock.annotation.RequiredLock
* com.github.pagehelper.PageInfo
* com.google.common.collect.Lists
* org.apache.commons.lang3.StringUtils
* org.apache.poi.hssf.usermodel.HSSFCell
* org.apache.poi.hssf.usermodel.HSSFCellStyle
* org.apache.poi.hssf.usermodel.HSSFClientAnchor
* org.apache.poi.hssf.usermodel.HSSFFont
* org.apache.poi.hssf.usermodel.HSSFPatriarch
* org.apache.poi.hssf.usermodel.HSSFRichTextString
* org.apache.poi.hssf.usermodel.HSSFRow
* org.apache.poi.hssf.usermodel.HSSFSheet
* org.apache.poi.hssf.usermodel.HSSFWorkbook
* org.apache.poi.ss.usermodel.Font
* org.apache.poi.ss.usermodel.HorizontalAlignment
* org.apache.poi.ss.usermodel.RichTextString
* org.apache.poi.ss.usermodel.VerticalAlignment
* org.slf4j.Logger
* org.slf4j.LoggerFactory
* org.springframework.beans.factory.annotation.Autowired
* org.springframework.beans.factory.annotation.Value
* org.springframework.data.redis.core.RedisTemplate
* org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor
*/
package cn.cloudwalk.elevator.export;
import cn.cloudwalk.client.davinci.portal.file.param.part.FilePartAppendParam;
import cn.cloudwalk.client.davinci.portal.file.param.part.FilePartFinishParam;
import cn.cloudwalk.client.davinci.portal.file.param.part.FilePartInitParam;
import cn.cloudwalk.client.davinci.portal.file.result.FilePartResult;
import cn.cloudwalk.cloud.context.CloudwalkCallContext;
import cn.cloudwalk.cloud.exception.ServiceException;
import cn.cloudwalk.cloud.page.CloudwalkPageAble;
import cn.cloudwalk.cloud.page.CloudwalkPageInfo;
import cn.cloudwalk.cloud.result.CloudwalkResult;
import cn.cloudwalk.elevator.common.AbstractCloudwalkService;
import cn.cloudwalk.elevator.config.FeignThreadLocalUtil;
import cn.cloudwalk.elevator.downloadcenter.AcsDownloadCenterService;
import cn.cloudwalk.elevator.downloadcenter.param.AcsFileFinishParam;
import cn.cloudwalk.elevator.export.AcsFileStatusEnum;
import cn.cloudwalk.elevator.export.ExcelAttribute;
import cn.cloudwalk.elevator.export.ExcelCallback;
import cn.cloudwalk.elevator.export.utils.ExcelUtil;
import cn.cloudwalk.elevator.storage.AcsFileStorageService;
import cn.cloudwalk.elevator.util.CollectionUtils;
import cn.cloudwalk.elevator.util.DateUtils;
import cn.cloudwalk.elevator.util.StringUtils;
import cn.cloudwalk.intelligent.davinci.common.exception.DavinciServiceException;
import cn.cloudwalk.intelligent.davinci.storage.bean.file.dto.FileRemoveDTO;
import cn.cloudwalk.intelligent.davinci.storage.manager.FileStorageManager;
import cn.cloudwalk.intelligent.lock.annotation.RequiredLock;
import com.github.pagehelper.PageInfo;
import com.google.common.collect.Lists;
import java.io.ByteArrayOutputStream;
import java.io.OutputStream;
import java.lang.reflect.Field;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Date;
import java.util.List;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.CompletionException;
import java.util.concurrent.RejectedExecutionHandler;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;
import javax.annotation.Resource;
import org.apache.poi.hssf.usermodel.HSSFCell;
import org.apache.poi.hssf.usermodel.HSSFCellStyle;
import org.apache.poi.hssf.usermodel.HSSFClientAnchor;
import org.apache.poi.hssf.usermodel.HSSFFont;
import org.apache.poi.hssf.usermodel.HSSFPatriarch;
import org.apache.poi.hssf.usermodel.HSSFRichTextString;
import org.apache.poi.hssf.usermodel.HSSFRow;
import org.apache.poi.hssf.usermodel.HSSFSheet;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.apache.poi.ss.usermodel.Font;
import org.apache.poi.ss.usermodel.HorizontalAlignment;
import org.apache.poi.ss.usermodel.RichTextString;
import org.apache.poi.ss.usermodel.VerticalAlignment;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor;
public abstract class AcsAbstractExportAsyncService<T, R>
extends AbstractCloudwalkService {
protected static final Logger LOGGER = LoggerFactory.getLogger(AcsAbstractExportAsyncService.class);
private static final Integer FILE_PART_BATCH_SIZE = 0x500001;
@Value(value="${cloudwalk.access-control.export-max-record:1000}")
private long EXPORT_MAX_RECORD;
@Autowired
private AcsFileStorageService acsFileStorageService;
@Autowired
private AcsDownloadCenterService acsDownloadCenterService;
@Resource
private RedisTemplate<String, Object> redisTemplate;
@Autowired
private FileStorageManager fileStorageManager;
@RequiredLock(name="T(cn.cloudwalk.elevator.config.AcsLockConstants).LOCK_EXPORT_BUSINESSID_PREFIX.concat(#context.company.companyId)", lockWaitTime=5000L)
public CloudwalkResult<Boolean> startExportTask(T param, Class<R> clazz, String fileName, CloudwalkCallContext context) throws ServiceException {
String cacheKey = "acs_export_prefix:#" + context.getCompany().getCompanyId();
try {
String taskId = (String)this.redisTemplate.opsForValue().get((Object)cacheKey);
if (StringUtils.isNotBlank((String)taskId)) {
return CloudwalkResult.fail((String)"76260308", (String)this.getMessage("76260308"));
}
String exportFileName = StringUtils.isNotBlank((String)fileName) ? fileName : this.getDefaultFileName();
ExportRecordContext.Builder builder = new ExportRecordContext.Builder();
ExportRecordContext exportRecordContext = builder.withFileName(exportFileName).withTaskStatus(AcsFileStatusEnum.PRODUCING.getCode()).build();
((CompletableFuture)CompletableFuture.runAsync(() -> {
try {
String fileId = this.acsDownloadCenterService.createDownload(exportFileName, context);
this.redisTemplate.opsForValue().set((Object)cacheKey, (Object)fileId, 5L, TimeUnit.MINUTES);
exportRecordContext.setFileId(fileId);
}
catch (Exception e) {
LOGGER.info("\u5bfc\u51fa\u65f6\uff0c\u521d\u59cb\u5316\u5bfc\u51fa\u4efb\u52a1\u5931\u8d25\uff0c\u539f\u56e0\uff1a", (Throwable)e);
this.redisTemplate.delete((Object)cacheKey);
throw new CompletionException(e);
}
}).thenAccept(n -> {
try {
this.export(param, clazz, exportRecordContext, null, context);
}
catch (Exception e) {
LOGGER.info("\u5bfc\u51fa\u65f6\u5f02\u5e38\uff0c\u539f\u56e0=[{}]", (Object)e.getMessage(), (Object)e);
throw new CompletionException(e);
}
finally {
FeignThreadLocalUtil.remove();
this.redisTemplate.delete((Object)cacheKey);
}
})).whenComplete((n, e) -> {
if (null != e) {
LOGGER.error("\u5f02\u6b65\u5bfc\u51fa\u4efb\u52a1\u8fd0\u884c\u5931\u8d25\uff0c\u539f\u56e0\uff1a", e);
AcsFileFinishParam fileFinishParam = new AcsFileFinishParam();
if (e.getCause() instanceof ServiceException) {
ServiceException serviceException = (ServiceException)e.getCause();
fileFinishParam.setErrorCode(serviceException.getCode());
fileFinishParam.setErrorMessage(serviceException.getMessage());
} else {
fileFinishParam.setErrorCode("76260000");
fileFinishParam.setErrorMessage(this.getMessage("76260000"));
}
fileFinishParam.setFileId(exportRecordContext.getFileId());
fileFinishParam.setFileStatus(AcsFileStatusEnum.FAIL.getCode());
this.acsDownloadCenterService.finishDownload(fileFinishParam, context);
} else if (AcsFileStatusEnum.CANCELED.getCode().intValue() != exportRecordContext.getTaskStatus()) {
LOGGER.info("\u5f02\u6b65\u5bfc\u51fa\u6210\u529f\u3002[{}]", (Object)exportRecordContext.toString());
AcsFileFinishParam fileFinishParam = new AcsFileFinishParam();
fileFinishParam.setFileId(exportRecordContext.getFileId());
fileFinishParam.setFilePath(exportRecordContext.getFilePath());
fileFinishParam.setFileSize(exportRecordContext.getFileSize());
fileFinishParam.setFileStatus(AcsFileStatusEnum.FINISH.getCode());
this.acsDownloadCenterService.finishDownload(fileFinishParam, context);
} else if (StringUtils.isNotBlank((String)exportRecordContext.getFilePath())) {
FileRemoveDTO fileRemoveDTO = new FileRemoveDTO();
fileRemoveDTO.setFileList((List)Lists.newArrayList((Object[])new String[]{exportRecordContext.getFilePath()}));
try {
this.fileStorageManager.remove(fileRemoveDTO);
}
catch (DavinciServiceException e1) {
this.logger.error("\u5220\u9664\u6587\u4ef6\u5931\u8d25\uff0cfileId=[{}]\uff0c\u539f\u56e0\uff1a", (Object)exportRecordContext.getFileId(), (Object)e1);
}
}
});
return CloudwalkResult.success((Object)true);
}
catch (Exception e2) {
this.logger.error("\u5f02\u6b65\u5bfc\u51fa\u4efb\u52a1\u5f02\u5e38\uff0c\u539f\u56e0\uff1a", (Throwable)e2);
throw new ServiceException((Throwable)e2);
}
}
private void export(T param, Class<R> clazz, ExportRecordContext exportRecordContext, ExcelCallback callback, CloudwalkCallContext context) throws Exception {
ByteArrayOutputStream output = new ByteArrayOutputStream();
String sheetName = exportRecordContext.getFileName();
FeignThreadLocalUtil.setRequestHeader((CloudwalkCallContext)context);
int startPage = 1;
int pageSize = 100;
long maxPageSize = this.EXPORT_MAX_RECORD / 100L;
PageInfo pageInfo = new PageInfo();
ArrayList<Object> list = this.getList(param, context, startPage, 100, pageInfo);
Long totalRows = pageInfo.getTotal();
Long totalPages = pageInfo.getPages();
try (HSSFWorkbook workbook = new HSSFWorkbook();){
int sheetSize = 65536;
Field[] allFields = clazz.getDeclaredFields();
ArrayList<Field> fields = new ArrayList<Field>();
for (Field field : allFields) {
ExcelAttribute attr = field.getAnnotation(ExcelAttribute.class);
if (attr == null || !attr.isExport()) continue;
fields.add(field);
}
long listSize = this.EXPORT_MAX_RECORD < totalRows ? this.EXPORT_MAX_RECORD : totalRows;
int startRow = 0;
int sheetNo = (int)listSize / sheetSize;
block15: for (int index = 0; index <= sheetNo; ++index) {
HSSFSheet sheet = workbook.createSheet();
workbook.setSheetName(index, sheetName + index);
ExcelUtil.createRowHeard(sheet, fields, workbook, startRow);
while (true) {
if (this.isCancelDownload(exportRecordContext, context)) {
output.close();
return;
}
if (CollectionUtils.isEmpty(list)) {
list = this.getList(param, context, startPage, 100, pageInfo);
}
this.createRowContent(sheet, fields, workbook, list, (startPage - 1) * 100, (startPage - 1) * 100 + list.size(), startRow + 1);
if (null != callback) {
callback.call(workbook, sheet);
}
if ((long)(++startPage) > totalPages || (long)startPage > maxPageSize) continue block15;
list = new ArrayList();
}
}
output.flush();
workbook.write((OutputStream)output);
output.close();
byte[] fileByte = output.toByteArray();
exportRecordContext.setFileSize(Long.valueOf(fileByte.length));
String filePath = this.fileStore(exportRecordContext.getFileName() + ".xls", fileByte, exportRecordContext, context);
exportRecordContext.setFilePath(filePath);
}
catch (Exception e) {
throw new Exception("\u5c06list\u6570\u636e\u6e90\u7684\u6570\u636e\u5bfc\u5165\u5230excel\u8868\u5355\u5f02\u5e38!", e);
}
}
private boolean isCancelDownload(ExportRecordContext exportRecordContext, CloudwalkCallContext context) {
int taskStatus = this.acsDownloadCenterService.queryDownloadStatus(exportRecordContext.getFileId(), context);
if (AcsFileStatusEnum.CANCELED.getCode() == taskStatus) {
this.logger.info("\u5bfc\u51fa\u4efb\u52a1\u5df2\u53d6\u6d88\uff0cfileID=[{}]", (Object)exportRecordContext.getFileId());
exportRecordContext.setTaskStatus(taskStatus);
return true;
}
return false;
}
private ArrayList<R> getList(T param, CloudwalkCallContext context, int startPage, int pageSize, PageInfo pageInfo) throws ServiceException {
CloudwalkPageInfo cloudwalkPageInfo = new CloudwalkPageInfo(startPage, pageSize);
CloudwalkPageAble<R> dataPage = this.queryPage(param, cloudwalkPageInfo, context);
pageInfo.setTotal(dataPage.getTotalRows());
pageInfo.setPages((int)dataPage.getTotalPages());
return Lists.newArrayList((Iterable)dataPage.getDatas());
}
private int getColumnSize(Class clazz) {
Field[] allFields = clazz.getDeclaredFields();
int size = 0;
for (Field field : allFields) {
ExcelAttribute attr = field.getAnnotation(ExcelAttribute.class);
if (attr == null || !attr.isExport()) continue;
++size;
}
return size;
}
private void setRow1(HSSFWorkbook workBook, HSSFSheet sheet, String row1Str) {
HSSFCellStyle cellStyle1 = workBook.createCellStyle();
HSSFFont font1 = workBook.createFont();
font1.setFontHeightInPoints((short)15);
font1.setBold(Boolean.TRUE.booleanValue());
cellStyle1.setAlignment(HorizontalAlignment.LEFT);
cellStyle1.setVerticalAlignment(VerticalAlignment.CENTER);
HSSFRichTextString row1String = new HSSFRichTextString(row1Str);
row1String.applyFont(0, row1Str.length(), (Font)font1);
sheet.getRow(0).getCell(0).setCellValue((RichTextString)row1String);
sheet.getRow(0).getCell(0).setCellStyle(cellStyle1);
}
private String fileStore(String fileName, byte[] bytes, ExportRecordContext exportRecordContext, CloudwalkCallContext context) throws ServiceException {
int size = bytes.length;
LOGGER.info("\u6587\u4ef6\u5927\u5c0f\u4e3a: {}", (Object)size);
FilePartInitParam param = new FilePartInitParam();
param.setFileName(fileName);
LOGGER.info("\u6587\u4ef6\u5206\u7247\u521d\u59cb\u5316\u5f00\u59cb");
CloudwalkResult<FilePartResult> result = this.acsFileStorageService.filePartInit(param);
if (result.isSuccess()) {
CloudwalkResult<String> finishResult;
LOGGER.info("\u6587\u4ef6\u5206\u7247\u521d\u59cb\u5316\u7ed3\u675f\uff0cuploadId = {}, filePath = {}", (Object)((FilePartResult)result.getData()).getUploadId(), (Object)((FilePartResult)result.getData()).getFilePath());
FilePartResult filePartResult = (FilePartResult)result.getData();
int times = 0;
while (true) {
int start;
if (this.isCancelDownload(exportRecordContext, context)) {
return ((FilePartResult)result.getData()).getFilePath();
}
int end = (start = times++ * FILE_PART_BATCH_SIZE) + FILE_PART_BATCH_SIZE > size ? size : start + FILE_PART_BATCH_SIZE;
byte[] trunk = Arrays.copyOfRange(bytes, start, end);
LOGGER.info("\u7b2c{}\u4e2a\u5206\u7247\u5f00\u59cb\u8ffd\u52a0\uff0cuploadId = {}, filePath = {}, size ; {}", new Object[]{times, filePartResult.getUploadId(), filePartResult.getFilePath(), trunk.length});
FilePartAppendParam appendParam = new FilePartAppendParam();
appendParam.setFilePath(filePartResult.getFilePath());
appendParam.setPartNumber(Integer.valueOf(times));
appendParam.setUploadId(filePartResult.getUploadId());
appendParam.setContent((Object)trunk);
this.acsFileStorageService.filePartAppend(appendParam);
LOGGER.info("\u7b2c{}\u4e2a\u5206\u7247\u5b8c\u6210\u8ffd\u52a0\uff0cuploadId = {}, filePath = {}", new Object[]{times, filePartResult.getUploadId(), filePartResult.getFilePath()});
if (end < size) continue;
LOGGER.info("\u8ffd\u52a0\u5b8c\u6210\uff0c\u51c6\u5907\u7ed3\u675f\uff0cuploadId = {}, filePath = {}", (Object)filePartResult.getUploadId(), (Object)filePartResult.getFilePath());
FilePartFinishParam finishParam = new FilePartFinishParam();
finishParam.setFilePath(filePartResult.getFilePath());
finishParam.setUploadId(filePartResult.getUploadId());
finishParam.setFileSize(Long.valueOf(size));
finishParam.setReturnType(Integer.valueOf(1));
finishResult = this.acsFileStorageService.filePartFinish(finishParam);
LOGGER.info("\u7ed3\u675f\u5b8c\u6210\uff0cuploadId = {}, filePath = {}, finishFilePath = {}", new Object[]{filePartResult.getUploadId(), filePartResult.getFilePath(), finishResult.getData()});
if (finishResult.isSuccess()) break;
}
return ((String)finishResult.getData()).split("=")[1];
}
throw new ServiceException(result.getCode(), result.getMessage());
}
protected abstract CloudwalkPageAble<R> queryPage(T var1, CloudwalkPageInfo var2, CloudwalkCallContext var3) throws ServiceException;
protected abstract CloudwalkResult<String> createLocalFile(T var1, String var2, CloudwalkCallContext var3) throws ServiceException;
protected abstract String getDefaultFileName();
protected abstract String getDefaultFileTitleName();
protected ThreadPoolTaskExecutor getExportExecutor() {
ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor();
executor.setCorePoolSize(5);
executor.setMaxPoolSize(30);
executor.setThreadNamePrefix("Export-Pool-Executor");
executor.setQueueCapacity(25);
executor.initialize();
executor.setRejectedExecutionHandler((RejectedExecutionHandler)new ThreadPoolExecutor.AbortPolicy());
return executor;
}
private <T> void createRowContent(HSSFSheet sheet, List<Field> fields, HSSFWorkbook workbook, List<T> list, int startNo, int endNo, int rowIndex) throws Exception {
String value = null;
int hwPicType = 0;
byte[] picByte = null;
int listIndex = 0;
for (int i = startNo; i < endNo; ++i) {
HSSFRow row = sheet.createRow(i + 1);
T vo = list.get(listIndex);
++listIndex;
for (int j = 0; j < fields.size(); ++j) {
Field field = fields.get(j);
field.setAccessible(true);
ExcelAttribute attr = field.getAnnotation(ExcelAttribute.class);
int col = j;
if (org.apache.commons.lang3.StringUtils.isNotBlank((CharSequence)attr.column())) {
col = ExcelUtil.getExcelCol(attr.column());
}
if (!attr.isExport()) continue;
HSSFCell cell = row.createCell(col);
Class<Comparable<Date>> classType = field.getType();
if (field.get(vo) == null) continue;
value = null;
if (classType.isAssignableFrom(Date.class)) {
value = DateUtils.formatDate((Date)((Date)field.get(vo)), (String)"yyyy-MM-dd HH:mm:ss");
}
if (classType.isAssignableFrom(Long.class) && attr.isDate()) {
value = DateUtils.formatDate((Date)new Date((Long)field.get(vo)), (String)"yyyy-MM-dd HH:mm:ss");
}
if (attr.isPic()) {
try {
if (field.getType().equals(String.class)) {
picByte = ExcelUtil.getBytesByUrl((String)field.get(vo));
}
picByte = (byte[])field.get(vo);
}
catch (Exception exception) {
// empty catch block
}
hwPicType = 5;
HSSFPatriarch patriarch = sheet.createDrawingPatriarch();
HSSFClientAnchor anchor = new HSSFClientAnchor(0, 0, 1020, 250, (short)col, row.getRowNum(), (short)col, row.getRowNum());
patriarch.createPicture(anchor, workbook.addPicture(picByte, hwPicType));
row.setHeight((short)1000);
continue;
}
cell.setCellValue(field.get(vo) == null ? "" : (value == null ? String.valueOf(field.get(vo)) : value));
}
}
}
public CloudwalkResult<Long> exportCount() throws ServiceException {
try {
return CloudwalkResult.success((Object)this.EXPORT_MAX_RECORD);
}
catch (Exception e) {
this.logger.error("\u83b7\u53d6\u6700\u5927\u5bfc\u51fa\u8bb0\u5f55\u5931\u8d25", (Throwable)e);
throw new ServiceException((Throwable)e);
}
}
private static class ExportRecordContext {
private String fileId;
private String filePath;
private String fileName;
private Long fileSize;
private int taskStatus;
private ExportRecordContext() {
}
public int getTaskStatus() {
return this.taskStatus;
}
public void setTaskStatus(int taskStatus) {
this.taskStatus = taskStatus;
}
public String getFileId() {
return this.fileId;
}
public void setFileId(String fileId) {
this.fileId = fileId;
}
public String getFilePath() {
return this.filePath;
}
public void setFilePath(String filePath) {
this.filePath = filePath;
}
public String getFileName() {
return this.fileName;
}
public void setFileName(String fileName) {
this.fileName = fileName;
}
public Long getFileSize() {
return this.fileSize;
}
public void setFileSize(Long fileSize) {
this.fileSize = fileSize;
}
public String toString() {
return "ExportRecordContext{fileId='" + this.fileId + '\'' + ", filePath='" + this.filePath + '\'' + ", fileName='" + this.fileName + '\'' + ", fileSize=" + this.fileSize + ", taskStatus=" + this.taskStatus + '}';
}
private static class Builder {
private String fileId;
private String filePath;
private String fileName;
private Long fileSize;
private int taskStatus;
private Builder() {
}
public Builder withTaskStatus(int taskStatus) {
this.taskStatus = taskStatus;
return this;
}
public Builder withFileId(String fileId) {
this.fileId = fileId;
return this;
}
public Builder withFilePath(String filePath) {
this.filePath = filePath;
return this;
}
public Builder withFileName(String fileName) {
this.fileName = fileName;
return this;
}
public Builder withFileSize(Long fileSize) {
this.fileSize = fileSize;
return this;
}
public ExportRecordContext build() {
ExportRecordContext context = new ExportRecordContext();
context.setFileId(this.fileId);
context.setFileSize(this.fileSize);
context.setFilePath(this.filePath);
context.setFileName(this.fileName);
context.setTaskStatus(this.taskStatus);
return context;
}
}
}
}

Some files were not shown because too many files have changed in this diff Show More