mirror of
https://github.com/hpd840321/starRiverProperty.git
synced 2026-06-10 08:50:29 +08:00
chore(v0.11): 全路径纳入版本库与走查整改
- .gitignore:显式放行全部 maven-*、scripts、dev-support、frontend、反1、artifacts、历史导出目录 - 新增跟踪:device-manager/device-sdk/legacy-public、davinci-manager、cwos-*、cwos-resource 等源码与附属资源 - davinci FileStorageManagerImpl:Feign Response 关闭、绝对 URL 拉流 SSRF 校验(协议/主机/解析地址) - davinci OuterCallFeignClient:补充契约说明 - cwos-common-aks AksConstant:final 类 + 私有构造防误实例化 - device-manager DeviceConstant:沿用 DEFAULT_APPLICATIONID 拼写修正 Made-with: Cursor
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
Manifest-Version: 1.0
|
||||
Implementation-Title: cw-elevator-application-service
|
||||
Implementation-Version: 1.0-SNAPSHOT
|
||||
Archiver-Version: Plexus Archiver
|
||||
Built-By: YCWB0304
|
||||
Implementation-Vendor-Id: cn.cloudwalk.elevator
|
||||
Created-By: Apache Maven 3.6.1
|
||||
Build-Jdk: 1.8.0_144
|
||||
Implementation-URL: http://projects.spring.io/spring-boot/cw-elevator-
|
||||
application/cw-elevator-application-service/
|
||||
Implementation-Vendor: Pivotal Software, Inc.
|
||||
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
#Generated by Apache Maven
|
||||
#Mon Mar 25 18:21:13 CST 2024
|
||||
version=1.0-SNAPSHOT
|
||||
groupId=cn.cloudwalk.elevator
|
||||
artifactId=cw-elevator-application-service
|
||||
+85
@@ -0,0 +1,85 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<parent>
|
||||
<artifactId>cw-elevator-application</artifactId>
|
||||
<groupId>cn.cloudwalk.elevator</groupId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>cw-elevator-application-service</artifactId>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>cn.cloudwalk.cloud</groupId>
|
||||
<artifactId>cloudwalk-common-service</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework</groupId>
|
||||
<artifactId>spring-tx</artifactId>
|
||||
</dependency>
|
||||
|
||||
|
||||
<dependency>
|
||||
<groupId>cn.cloudwalk.cloud</groupId>
|
||||
<artifactId>cloudwalk-common-serial</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>javax.el</groupId>
|
||||
<artifactId>javax.el-api</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.glassfish</groupId>
|
||||
<artifactId>javax.el</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
|
||||
<!--<dependency>-->
|
||||
<!--<groupId>io.github.openfeign.form</groupId>-->
|
||||
<!--<artifactId>feign-form-spring</artifactId>-->
|
||||
<!--<version>3.8.0</version>-->
|
||||
<!--<scope>compile</scope>-->
|
||||
<!--</dependency>-->
|
||||
|
||||
<dependency>
|
||||
<groupId>cn.cloudwalk</groupId>
|
||||
<artifactId>cwos-java-sdk-resource</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.fasterxml.jackson.datatype</groupId>
|
||||
<artifactId>jackson-datatype-jsr310</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- 分布式锁 -->
|
||||
<dependency>
|
||||
<groupId>cn.cloudwalk.intelligent</groupId>
|
||||
<artifactId>cloudwalk-intelligent-component-lock</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>cn.cloudwalk.cloud</groupId>
|
||||
<artifactId>cloudwalk-common-event</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>cn.cloudwalk.elevator</groupId>
|
||||
<artifactId>cw-elevator-application-data</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>cn.cloudwalk.intelligent</groupId>
|
||||
<artifactId>davinci-manager-storage</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>cn.cloudwalk.intelligent</groupId>
|
||||
<artifactId>intelligent-cwoscomponent-rest</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
</project>
|
||||
+92
@@ -0,0 +1,92 @@
|
||||
/* */ 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.Collection;
|
||||
/* */ 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
|
||||
/* */ {
|
||||
/* 33 */ protected final Logger logger = LoggerFactory.getLogger(AcsFeignConfiguration.class);
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ @Autowired
|
||||
/* */ private CloudwalkSessionContextHolder cloudwalkSessionContextHolder;
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public void apply(RequestTemplate requestTemplate) {
|
||||
/* 43 */ Map<String, String> map = FeignThreadLocalUtil.get();
|
||||
/* 44 */ if (map != null && !map.isEmpty()) {
|
||||
/* 45 */ requestTemplate.header("platformuserid", new String[] { map.get("platformuserid") });
|
||||
/* 46 */ requestTemplate.header("loginid", new String[] { map.get("loginid") });
|
||||
/* 47 */ requestTemplate.header("businessid", new String[] { map.get("businessid") });
|
||||
/* 48 */ requestTemplate.header("username", new String[] { map.get("username") });
|
||||
/* 49 */ requestTemplate.header("applicationid", new String[] { map.get("applicationid") });
|
||||
/* 50 */ requestTemplate.header("authorization", new String[] { map.get("authorization") });
|
||||
/* 51 */ this.logger.info("feign调用配置header参数, businessId={}, threadId={}", requestTemplate
|
||||
/* 52 */ .headers().get("businessid"), Long.valueOf(Thread.currentThread().getId()));
|
||||
/* */ } else {
|
||||
/* 54 */ Map<String, Collection<String>> headerMap = requestTemplate.headers();
|
||||
/* 55 */ ServletRequestAttributes attributes = (ServletRequestAttributes)RequestContextHolder.getRequestAttributes();
|
||||
/* 56 */ if (null != attributes) {
|
||||
/* 57 */ HttpServletRequest request = attributes.getRequest();
|
||||
/* 58 */ if (!headerMap.containsKey("platformuserid")) {
|
||||
/* 59 */ requestTemplate.header("platformuserid", new String[] { request.getHeader("platformuserid") });
|
||||
/* */ }
|
||||
/* 61 */ if (!headerMap.containsKey("loginid")) {
|
||||
/* 62 */ requestTemplate.header("loginid", new String[] { request.getHeader("loginid") });
|
||||
/* */ }
|
||||
/* 64 */ if (!headerMap.containsKey("businessid")) {
|
||||
/* 65 */ requestTemplate.header("businessid", new String[] { request.getHeader("businessid") });
|
||||
/* */ }
|
||||
/* 67 */ if (!headerMap.containsKey("username")) {
|
||||
/* 68 */ requestTemplate.header("username", new String[] { request.getHeader("username") });
|
||||
/* */ }
|
||||
/* 70 */ if (!headerMap.containsKey("applicationid")) {
|
||||
/* 71 */ requestTemplate.header("applicationid", new String[] { request.getHeader("applicationid") });
|
||||
/* */ }
|
||||
/* 73 */ if (!headerMap.containsKey("authorization")) {
|
||||
/* 74 */ requestTemplate.header("authorization", new String[] { request.getHeader("authorization") });
|
||||
/* */ }
|
||||
/* */
|
||||
/* 77 */ CloudwalkSessionObject session = this.cloudwalkSessionContextHolder.getSession();
|
||||
/* 78 */ if (StringUtils.isBlank(request.getHeader("businessid")) && session != null) {
|
||||
/* 79 */ requestTemplate.header("businessid", new String[] { session.getCompany().getCompanyId() });
|
||||
/* */ }
|
||||
/* 81 */ if (StringUtils.isBlank(request.getHeader("applicationid")) && session != null)
|
||||
/* 82 */ requestTemplate.header("applicationid", new String[] { session.getApplicationId() });
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-service-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\AcsFeignConfiguration.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+40
@@ -0,0 +1,40 @@
|
||||
/* */ 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) {
|
||||
/* 32 */ return this.sysettingAreaService.tree(param, context);
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-service-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\cacheable\AcsAreaTreeCacheableService.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+108
@@ -0,0 +1,108 @@
|
||||
/* */ 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;
|
||||
/* 40 */ protected final Logger logger = LoggerFactory.getLogger(getClass());
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public Integer insertNew(AcsElevatorCodeParam param) throws ServiceException {
|
||||
/* 51 */ AcsElevatorCodeDTO dto = (AcsElevatorCodeDTO)BeanCopyUtils.copyProperties(param, AcsElevatorCodeDTO.class);
|
||||
/* 52 */ Long createTime = Long.valueOf(System.currentTimeMillis());
|
||||
/* 53 */ dto.setCreateTime(createTime);
|
||||
/* 54 */ dto.setLastUpdateTime(createTime);
|
||||
/* 55 */ return this.acsElevatorCodeDao.insertNew(dto);
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public Integer updateOld(AcsElevatorCodeParam param) throws ServiceException {
|
||||
/* 66 */ AcsElevatorCodeDTO dto = (AcsElevatorCodeDTO)BeanCopyUtils.copyProperties(param, AcsElevatorCodeDTO.class);
|
||||
/* 67 */ Long nowTime = Long.valueOf(System.currentTimeMillis());
|
||||
/* 68 */ dto.setLastUpdateTime(nowTime);
|
||||
/* 69 */ return this.acsElevatorCodeDao.updateOld(dto);
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public AcsElevatorCodeResultDTO get(AcsElevatorCodeParam param) throws ServiceException {
|
||||
/* 81 */ AcsElevatorCodeDTO dto = (AcsElevatorCodeDTO)BeanCopyUtils.copyProperties(param, AcsElevatorCodeDTO.class);
|
||||
/* */
|
||||
/* 83 */ AcsElevatorCodeResultDTO result = this.acsElevatorCodeDao.get(dto);
|
||||
/* */
|
||||
/* 85 */ if (!ObjectUtils.isEmpty(result)) {
|
||||
/* 86 */ return result;
|
||||
/* */ }
|
||||
/* */
|
||||
/* 89 */ return null;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public AcsElevatorCodeResultDTO getFirstByParentId(String parentId) throws ServiceException {
|
||||
/* 100 */ return this.acsElevatorCodeDao.getFirstByParentId(parentId);
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-service-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\codeElevatorArea\impl\AcsElevatorCodeServiceImpl.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+74
@@ -0,0 +1,74 @@
|
||||
/* */ 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() {
|
||||
/* 38 */ return this.zoneId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setZoneId(String zoneId) {
|
||||
/* 42 */ this.zoneId = zoneId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getParentId() {
|
||||
/* 46 */ return this.parentId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setParentId(String parentId) {
|
||||
/* 50 */ this.parentId = parentId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getCode() {
|
||||
/* 54 */ return this.code;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setCode(String code) {
|
||||
/* 58 */ this.code = code;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public Integer getIsFirst() {
|
||||
/* 62 */ return this.isFirst;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setIsFirst(Integer isFirst) {
|
||||
/* 66 */ this.isFirst = isFirst;
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-service-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\codeElevatorArea\param\AcsElevatorCodeParam.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+53
@@ -0,0 +1,53 @@
|
||||
/* */ package cn.cloudwalk.elevator.codeElevatorArea.result;
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public class AcsElevatorCodeResult
|
||||
/* */ {
|
||||
/* */ private String zoneId;
|
||||
/* */ private String code;
|
||||
/* */ private Integer isFirst;
|
||||
/* */
|
||||
/* */ public String getZoneId() {
|
||||
/* 25 */ return this.zoneId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setZoneId(String zoneId) {
|
||||
/* 29 */ this.zoneId = zoneId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getCode() {
|
||||
/* 33 */ return this.code;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setCode(String code) {
|
||||
/* 37 */ this.code = code;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public Integer getIsFirst() {
|
||||
/* 41 */ return this.isFirst;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setIsFirst(Integer isFirst) {
|
||||
/* 45 */ this.isFirst = isFirst;
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-service-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\codeElevatorArea\result\AcsElevatorCodeResult.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
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 {
|
||||
Integer insertNew(AcsElevatorCodeParam paramAcsElevatorCodeParam) throws ServiceException;
|
||||
|
||||
Integer updateOld(AcsElevatorCodeParam paramAcsElevatorCodeParam) throws ServiceException;
|
||||
|
||||
AcsElevatorCodeResultDTO get(AcsElevatorCodeParam paramAcsElevatorCodeParam) throws ServiceException;
|
||||
|
||||
AcsElevatorCodeResultDTO getFirstByParentId(String paramString) throws ServiceException;
|
||||
}
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-service-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\codeElevatorArea\service\AcsElevatorCodeService.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+61
@@ -0,0 +1,61 @@
|
||||
/* */ 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.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) {
|
||||
/* 26 */ for (AreaTreeResult areaTree : areaTreeResultList) {
|
||||
/* 27 */ areaMap.put(areaTree.getId(), areaTree.getName());
|
||||
/* 28 */ if (areaTree.getChildren() != null) {
|
||||
/* 29 */ getAreaMap(areaTree.getChildren(), areaMap);
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public CloudwalkCallContext getCloudwalkContext(String businessId) {
|
||||
/* 38 */ CloudwalkCallContext context = new CloudwalkCallContext();
|
||||
/* 39 */ CompanyContext companyContext = new CompanyContext();
|
||||
/* 40 */ companyContext.setCompanyId(businessId);
|
||||
/* 41 */ context.setCompany(companyContext);
|
||||
/* 42 */ UserContext userContext = new UserContext();
|
||||
/* 43 */ userContext.setCaller("defaultUserId");
|
||||
/* 44 */ userContext.setCallerName("defaultUserName");
|
||||
/* 45 */ context.setUser(userContext);
|
||||
/* 46 */ context.setCallTime(CloudwalkDateUtils.getCurrentDate());
|
||||
/* */
|
||||
/* 48 */ Map<String, String> feignThreadLoaclMap = new HashMap<>(3);
|
||||
/* 49 */ feignThreadLoaclMap.put("businessid", businessId);
|
||||
/* 50 */ feignThreadLoaclMap.put("platformuserid", "defaultUserId");
|
||||
/* 51 */ feignThreadLoaclMap.put("username", "defaultUserName");
|
||||
/* 52 */ FeignThreadLocalUtil.set(feignThreadLoaclMap);
|
||||
/* 53 */ return context;
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-service-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\common\AbstractAcsDeviceService.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+88
@@ -0,0 +1,88 @@
|
||||
/* */ 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;
|
||||
/* 27 */ protected final Logger logger = LoggerFactory.getLogger(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) {
|
||||
/* 59 */ return this.messageSource.getMessage(code, null, "", LocaleContextHolder.getLocale());
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public String createGeneralCode() {
|
||||
/* 68 */ return this.generalCode.generalCode(CloudwalkDateUtils.getDate8YMD(), Integer.valueOf(8));
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public String genUUID() {
|
||||
/* 77 */ if (null != this.uuidSerial) {
|
||||
/* 78 */ return this.uuidSerial.uuid();
|
||||
/* */ }
|
||||
/* 80 */ return CloudwalkDateUtils.getUUID();
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-service-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\common\AbstractCloudwalkService.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+60
@@ -0,0 +1,60 @@
|
||||
/* */ 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
|
||||
/* */ {
|
||||
/* 30 */ private static final Logger logger = LoggerFactory.getLogger(AcsApplicationServiceImpl.class);
|
||||
/* */
|
||||
/* */
|
||||
/* */ @Resource
|
||||
/* */ private ApplicationService applicationService;
|
||||
/* */
|
||||
/* */
|
||||
/* */ @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 {
|
||||
/* 39 */ ApplicationQueryParam param = new ApplicationQueryParam();
|
||||
/* 40 */ param.setBusinessId(businessId);
|
||||
/* 41 */ param.setServiceCode("elevator-app");
|
||||
/* 42 */ CloudwalkResult<List<ApplicationResult>> cloudwalkResult = this.applicationService.query(param);
|
||||
/* 43 */ if (cloudwalkResult.isSuccess()) {
|
||||
/* 44 */ if (CollectionUtils.isNotEmpty((Collection)cloudwalkResult.getData())) {
|
||||
/* 45 */ return ((ApplicationResult)((List<ApplicationResult>)cloudwalkResult.getData()).get(0)).getId();
|
||||
/* */ }
|
||||
/* 47 */ logger.info("未查到applicationId");
|
||||
/* 48 */ throw new ServiceException("76260005", "未查到applicationId");
|
||||
/* */ }
|
||||
/* */
|
||||
/* 51 */ logger.info("查询applicationId失败");
|
||||
/* 52 */ throw new ServiceException("76260006", "查询applicationId失败");
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-service-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\common\AcsApplicationServiceImpl.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+64
@@ -0,0 +1,64 @@
|
||||
/* */ 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
|
||||
/* */ {
|
||||
/* 13 */ private int corePoolSize = 3;
|
||||
/* 14 */ private int maxPoolSize = 5;
|
||||
/* 15 */ private int keepAliveSeconds = 150;
|
||||
/* 16 */ private int queueCapacity = 100;
|
||||
/* */ private boolean allowCoreThreadTimeOut = true;
|
||||
/* */
|
||||
/* */ public int getCorePoolSize() {
|
||||
/* 20 */ return this.corePoolSize;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setCorePoolSize(int corePoolSize) {
|
||||
/* 24 */ this.corePoolSize = corePoolSize;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public int getMaxPoolSize() {
|
||||
/* 28 */ return this.maxPoolSize;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setMaxPoolSize(int maxPoolSize) {
|
||||
/* 32 */ this.maxPoolSize = maxPoolSize;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public int getKeepAliveSeconds() {
|
||||
/* 36 */ return this.keepAliveSeconds;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setKeepAliveSeconds(int keepAliveSeconds) {
|
||||
/* 40 */ this.keepAliveSeconds = keepAliveSeconds;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public int getQueueCapacity() {
|
||||
/* 44 */ return this.queueCapacity;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setQueueCapacity(int queueCapacity) {
|
||||
/* 48 */ this.queueCapacity = queueCapacity;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public boolean isAllowCoreThreadTimeOut() {
|
||||
/* 52 */ return this.allowCoreThreadTimeOut;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setAllowCoreThreadTimeOut(boolean allowCoreThreadTimeOut) {
|
||||
/* 56 */ this.allowCoreThreadTimeOut = allowCoreThreadTimeOut;
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-service-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\common\UpdateFloorsPoolProperties.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+44
@@ -0,0 +1,44 @@
|
||||
/* */ package cn.cloudwalk.elevator.common;
|
||||
/* */
|
||||
/* */ 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() {
|
||||
/* 21 */ ThreadPoolTaskExecutor threadPoolTaskExecutor = new ThreadPoolTaskExecutor();
|
||||
/* */
|
||||
/* 23 */ threadPoolTaskExecutor.setCorePoolSize(this.updateFloorsPoolProperties.getCorePoolSize());
|
||||
/* */
|
||||
/* 25 */ threadPoolTaskExecutor.setAllowCoreThreadTimeOut(this.updateFloorsPoolProperties.isAllowCoreThreadTimeOut());
|
||||
/* */
|
||||
/* 27 */ threadPoolTaskExecutor.setMaxPoolSize(this.updateFloorsPoolProperties.getMaxPoolSize());
|
||||
/* */
|
||||
/* 29 */ threadPoolTaskExecutor.setQueueCapacity(this.updateFloorsPoolProperties.getQueueCapacity());
|
||||
/* */
|
||||
/* 31 */ threadPoolTaskExecutor.setThreadNamePrefix("update-floors-pool-");
|
||||
/* */
|
||||
/* 33 */ threadPoolTaskExecutor.setRejectedExecutionHandler(new ThreadPoolExecutor.AbortPolicy());
|
||||
/* */
|
||||
/* 35 */ threadPoolTaskExecutor.initialize();
|
||||
/* 36 */ return threadPoolTaskExecutor;
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-service-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\common\UpdateFloorsTaskExecutor.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
package cn.cloudwalk.elevator.common.service;
|
||||
|
||||
import cn.cloudwalk.cloud.exception.ServiceException;
|
||||
|
||||
public interface AcsApplicationService {
|
||||
String getApplicationId(String paramString) throws ServiceException;
|
||||
}
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-service-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\common\service\AcsApplicationService.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+178
@@ -0,0 +1,178 @@
|
||||
/* */ 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 java.util.Map;
|
||||
/* */ 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;
|
||||
/* */
|
||||
/* */ @Async("updateFloorsExecutor")
|
||||
/* */ public void updateFloors(AcsRestructureBindingParam param, List<AcsPassRuleImageResultDto> addFloors, List<String> delFloorIds, CloudwalkCallContext context) throws ServiceException {
|
||||
/* */ try {
|
||||
/* 71 */ if (!CollectionUtils.isEmpty(addFloors)) {
|
||||
/* 72 */ for (AcsPassRuleImageResultDto addFloor : addFloors) {
|
||||
/* */
|
||||
/* 74 */ AcsDeviceTaskDTO task = this.acsDeviceTaskDao.getById(param.getTaskId());
|
||||
/* 75 */ if (task.getIsStop().intValue() == 0) {
|
||||
/* */
|
||||
/* 77 */ if (!ObjectUtils.isEmpty(param.getPersonId())) {
|
||||
/* */
|
||||
/* 79 */ AcsPersonAddParam addParam = new AcsPersonAddParam();
|
||||
/* 80 */ addParam.setPersonIds(Collections.singletonList(param.getPersonId()));
|
||||
/* 81 */ addParam.setParentId(param.getParentId());
|
||||
/* 82 */ addParam.setZoneId(addFloor.getZoneId());
|
||||
/* 83 */ addParam.setZoneName(addFloor.getZoneName());
|
||||
/* 84 */ this.personRuleService.add(addParam, context);
|
||||
/* */ } else {
|
||||
/* */
|
||||
/* 87 */ AcsPassRuleNewParam ruleParam = new AcsPassRuleNewParam();
|
||||
/* 88 */ ruleParam.setParentId(param.getParentId());
|
||||
/* 89 */ ruleParam.setZoneId(addFloor.getZoneId());
|
||||
/* 90 */ ruleParam.setZoneName(addFloor.getZoneName());
|
||||
/* 91 */ if (!ObjectUtils.isEmpty(param.getLabelId())) {
|
||||
/* 92 */ ruleParam.setIncludeLabels(Collections.singletonList(param.getLabelId()));
|
||||
/* 93 */ ruleParam.setRuleName(addFloor.getZoneName() + param.getLabelName());
|
||||
/* */ }
|
||||
/* 95 */ if (!ObjectUtils.isEmpty(param.getOrgId())) {
|
||||
/* 96 */ ruleParam.setIncludeOrganizations(Collections.singletonList(param.getOrgId()));
|
||||
/* 97 */ ruleParam.setRuleName(addFloor.getZoneName() + param.getOrgName());
|
||||
/* */ }
|
||||
/* */
|
||||
/* 100 */ this.imageRuleRefService.addOnlyRule(ruleParam, context);
|
||||
/* */ }
|
||||
/* */
|
||||
/* 103 */ AcsDeviceTaskAddDto addDto = new AcsDeviceTaskAddDto();
|
||||
/* 104 */ addDto.setId(task.getId());
|
||||
/* 105 */ addDto.setBindDevices(Integer.valueOf(task.getBindDevices().intValue() + 1));
|
||||
/* 106 */ this.acsDeviceTaskDao.updateBingDevices(addDto);
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* 113 */ if (!CollectionUtils.isEmpty(delFloorIds)) {
|
||||
/* */
|
||||
/* 115 */ List<AcsPassRuleImageResultDto> ruleList = this.imageRuleRefDao.listZoneInfoByIds(delFloorIds);
|
||||
/* 116 */ Map<String, String> ruleMap = new HashMap<>();
|
||||
/* 117 */ ruleList.forEach(rule -> (String)ruleMap.put(rule.getZoneId(), rule.getZoneName()));
|
||||
/* 118 */ for (String delFloorId : delFloorIds)
|
||||
/* */ {
|
||||
/* 120 */ AcsDeviceTaskDTO task = this.acsDeviceTaskDao.getById(param.getTaskId());
|
||||
/* 121 */ if (task.getIsStop().intValue() == 0) {
|
||||
/* 122 */ if (!ObjectUtils.isEmpty(param.getPersonId())) {
|
||||
/* */
|
||||
/* 124 */ AcsPersonDeleteParam delParam = new AcsPersonDeleteParam();
|
||||
/* 125 */ delParam.setParentId(param.getParentId());
|
||||
/* 126 */ delParam.setZoneId(delFloorId);
|
||||
/* 127 */ delParam.setPersonIds(Collections.singletonList(param.getPersonId()));
|
||||
/* 128 */ this.personRuleService.delete(delParam, context);
|
||||
/* */ }
|
||||
/* */ else {
|
||||
/* */
|
||||
/* 132 */ String ruleName = "";
|
||||
/* 133 */ if (!ObjectUtils.isEmpty(param.getLabelName())) {
|
||||
/* 134 */ ruleName = (String)ruleMap.get(delFloorId) + param.getLabelName();
|
||||
/* */ }
|
||||
/* 136 */ if (!ObjectUtils.isEmpty(param.getOrgName())) {
|
||||
/* 137 */ ruleName = (String)ruleMap.get(delFloorId) + param.getOrgName();
|
||||
/* */ }
|
||||
/* 139 */ String ruleId = this.imageRuleRefDao.getByRuleName(ruleName, delFloorId);
|
||||
/* 140 */ if (!ObjectUtils.isEmpty(ruleId)) {
|
||||
/* */
|
||||
/* 142 */ AcsPassRuleDeleteParam deleteParam = new AcsPassRuleDeleteParam();
|
||||
/* 143 */ deleteParam.setIds(Collections.singletonList(ruleId));
|
||||
/* 144 */ deleteParam.setZoneId(delFloorId);
|
||||
/* 145 */ deleteParam.setParentId(param.getParentId());
|
||||
/* */
|
||||
/* 147 */ this.imageRuleRefService.delete(deleteParam, context);
|
||||
/* */ } else {
|
||||
/* */
|
||||
/* 150 */ AcsPassRuleDeleteDto dto = new AcsPassRuleDeleteDto();
|
||||
/* 151 */ dto.setZoneId(delFloorId);
|
||||
/* 152 */ dto.setLabelId(param.getLabelId());
|
||||
/* 153 */ dto.setOrgId(param.getOrgId());
|
||||
/* 154 */ this.imageRuleRefDao.deleteByOrgAndLabel(dto);
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* */
|
||||
/* 158 */ AcsDeviceTaskAddDto addDto = new AcsDeviceTaskAddDto();
|
||||
/* 159 */ addDto.setId(task.getId());
|
||||
/* 160 */ addDto.setBindDevices(Integer.valueOf(task.getBindDevices().intValue() + 1));
|
||||
/* 161 */ this.acsDeviceTaskDao.updateBingDevices(addDto);
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ }
|
||||
/* 167 */ } catch (Exception e) {
|
||||
/* 168 */ this.logger.error("处理设备任务失败,失败原因:{}", e);
|
||||
/* 169 */ throw new ServiceException(e.getMessage());
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-service-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\device\impl\AcsDeviceTaskServiceImpl.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+1280
File diff suppressed because it is too large
Load Diff
+51
@@ -0,0 +1,51 @@
|
||||
/* */ 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() {
|
||||
/* 23 */ return this.deviceName;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setDeviceName(String deviceName) {
|
||||
/* 27 */ this.deviceName = deviceName;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getDeviceCategoryId() {
|
||||
/* 31 */ return this.deviceCategoryId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setDeviceCategoryId(String deviceCategoryId) {
|
||||
/* 35 */ this.deviceCategoryId = deviceCategoryId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getAreaId() {
|
||||
/* 39 */ return this.areaId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setAreaId(String areaId) {
|
||||
/* 43 */ this.areaId = areaId;
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-service-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\device\param\AcsDeviceQueryParam.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+31
@@ -0,0 +1,31 @@
|
||||
/* */ 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 toString() {
|
||||
/* 15 */ return "AcsDeviceRestructureTaskParam(taskId=" + getTaskId() + ")"; } public int hashCode() { int PRIME = 59; result = 1; Object $taskId = getTaskId(); return result * 59 + (($taskId == null) ? 43 : $taskId.hashCode()); } protected boolean canEqual(Object other) { return other instanceof AcsDeviceRestructureTaskParam; } 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; Object this$taskId = getTaskId(), other$taskId = other.getTaskId(); return !((this$taskId == null) ? (other$taskId != null) : !this$taskId.equals(other$taskId)); } public void setTaskId(String taskId) { this.taskId = taskId; }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public String getTaskId() {
|
||||
/* 23 */ return this.taskId;
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-service-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\device\param\AcsDeviceRestructureTaskParam.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+235
@@ -0,0 +1,235 @@
|
||||
/* */ 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() {
|
||||
/* 104 */ return this.elevatorFloorIdList;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setElevatorFloorIdList(String elevatorFloorIdList) {
|
||||
/* 108 */ this.elevatorFloorIdList = elevatorFloorIdList;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */ public String getAreaId() {
|
||||
/* 113 */ return this.areaId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setAreaId(String areaId) {
|
||||
/* 117 */ this.areaId = areaId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */ public String getBusinessId() {
|
||||
/* 122 */ return this.businessId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setBusinessId(String businessId) {
|
||||
/* 126 */ this.businessId = businessId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getDeviceId() {
|
||||
/* 130 */ return this.deviceId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setDeviceId(String deviceId) {
|
||||
/* 134 */ this.deviceId = deviceId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getDeviceCode() {
|
||||
/* 138 */ return this.deviceCode;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setDeviceCode(String deviceCode) {
|
||||
/* 142 */ this.deviceCode = deviceCode;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getDeviceName() {
|
||||
/* 146 */ return this.deviceName;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setDeviceName(String deviceName) {
|
||||
/* 150 */ this.deviceName = deviceName;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getDeviceTypeName() {
|
||||
/* 154 */ return this.deviceTypeName;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setDeviceTypeName(String deviceTypeName) {
|
||||
/* 158 */ this.deviceTypeName = deviceTypeName;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getElevatorFloorList() {
|
||||
/* 162 */ return this.elevatorFloorList;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setElevatorFloorList(String elevatorFloorList) {
|
||||
/* 166 */ this.elevatorFloorList = elevatorFloorList;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getCurrentFloorId() {
|
||||
/* 170 */ return this.currentFloorId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setCurrentFloorId(String currentFloorId) {
|
||||
/* 174 */ this.currentFloorId = currentFloorId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getCurrentFloor() {
|
||||
/* 178 */ return this.currentFloor;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setCurrentFloor(String currentFloor) {
|
||||
/* 182 */ this.currentFloor = currentFloor;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getCurrentBuilding() {
|
||||
/* 186 */ return this.currentBuilding;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setCurrentBuilding(String currentBuilding) {
|
||||
/* 190 */ this.currentBuilding = currentBuilding;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getAreaName() {
|
||||
/* 194 */ return this.areaName;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setAreaName(String areaName) {
|
||||
/* 198 */ this.areaName = areaName;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public Integer getStatus() {
|
||||
/* 202 */ return this.status;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setStatus(Integer status) {
|
||||
/* 206 */ this.status = status;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public Integer getDeleteFlag() {
|
||||
/* 210 */ return this.deleteFlag;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setDeleteFlag(Integer deleteFlag) {
|
||||
/* 214 */ this.deleteFlag = deleteFlag;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getCurrentBuildingId() {
|
||||
/* 218 */ return this.currentBuildingId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setCurrentBuildingId(String currentBuildingId) {
|
||||
/* 222 */ this.currentBuildingId = currentBuildingId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */ public String toString() {
|
||||
/* 227 */ 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 + '}';
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-service-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\device\param\AcsElevatorDeviceAddParam.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+185
@@ -0,0 +1,185 @@
|
||||
/* */ 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() {
|
||||
/* 80 */ return this.businessId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setBusinessId(String businessId) {
|
||||
/* 84 */ this.businessId = businessId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getDeviceId() {
|
||||
/* 88 */ return this.deviceId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setDeviceId(String deviceId) {
|
||||
/* 92 */ this.deviceId = deviceId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getDeviceCode() {
|
||||
/* 96 */ return this.deviceCode;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setDeviceCode(String deviceCode) {
|
||||
/* 100 */ this.deviceCode = deviceCode;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getDeviceName() {
|
||||
/* 104 */ return this.deviceName;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setDeviceName(String deviceName) {
|
||||
/* 108 */ this.deviceName = deviceName;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getDeviceTypeName() {
|
||||
/* 112 */ return this.deviceTypeName;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setDeviceTypeName(String deviceTypeName) {
|
||||
/* 116 */ this.deviceTypeName = deviceTypeName;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getElevatorFloorIdList() {
|
||||
/* 120 */ return this.elevatorFloorIdList;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setElevatorFloorIdList(String elevatorFloorIdList) {
|
||||
/* 124 */ this.elevatorFloorIdList = elevatorFloorIdList;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getAreaId() {
|
||||
/* 128 */ return this.areaId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setAreaId(String areaId) {
|
||||
/* 132 */ this.areaId = areaId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getElevatorFloorList() {
|
||||
/* 136 */ return this.elevatorFloorList;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setElevatorFloorList(String elevatorFloorList) {
|
||||
/* 140 */ this.elevatorFloorList = elevatorFloorList;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getCurrentFloorId() {
|
||||
/* 144 */ return this.currentFloorId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setCurrentFloorId(String currentFloorId) {
|
||||
/* 148 */ this.currentFloorId = currentFloorId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getCurrentFloor() {
|
||||
/* 152 */ return this.currentFloor;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setCurrentFloor(String currentFloor) {
|
||||
/* 156 */ this.currentFloor = currentFloor;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getCurrentBuilding() {
|
||||
/* 160 */ return this.currentBuilding;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setCurrentBuilding(String currentBuilding) {
|
||||
/* 164 */ this.currentBuilding = currentBuilding;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getCurrentBuildingId() {
|
||||
/* 168 */ return this.currentBuildingId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setCurrentBuildingId(String currentBuildingId) {
|
||||
/* 172 */ this.currentBuildingId = currentBuildingId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */ public String toString() {
|
||||
/* 177 */ return "AcsElevatorDeviceAddDTO{, elevatorFloorList='" + this.elevatorFloorList + '\'' + ", currentFloorId='" + this.currentFloorId + '\'' + ", currentFloor='" + this.currentFloor + '\'' + ", currentBuilding='" + this.currentBuilding + '\'' + '}';
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-service-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\device\param\AcsElevatorDeviceEditParam.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+50
@@ -0,0 +1,50 @@
|
||||
/* */ 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() {
|
||||
/* 30 */ return this.businessId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setBusinessId(String businessId) {
|
||||
/* 34 */ this.businessId = businessId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getCurrentFloorId() {
|
||||
/* 38 */ return this.currentFloorId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setCurrentFloorId(String currentFloorId) {
|
||||
/* 42 */ this.currentFloorId = currentFloorId;
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-service-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\device\param\AcsElevatorDeviceListParam.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+35
@@ -0,0 +1,35 @@
|
||||
/* */ 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() {
|
||||
/* 22 */ return this.id;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */ public void setId(String id) {
|
||||
/* 27 */ this.id = id;
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-service-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\device\param\AcsElevatorDeviceQueryByIdParam.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+136
@@ -0,0 +1,136 @@
|
||||
/* */ 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() {
|
||||
/* 57 */ return this.status;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setStatus(Integer status) {
|
||||
/* 61 */ this.status = status;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public Integer getOnlineStatus() {
|
||||
/* 65 */ return this.onlineStatus;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setOnlineStatus(Integer onlineStatus) {
|
||||
/* 69 */ this.onlineStatus = onlineStatus;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public String getIp() {
|
||||
/* 75 */ return this.ip;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setIp(String ip) {
|
||||
/* 79 */ this.ip = ip;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getDeviceId() {
|
||||
/* 83 */ return this.deviceId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setDeviceId(String deviceId) {
|
||||
/* 87 */ this.deviceId = deviceId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public List<String> getAreaIds() {
|
||||
/* 91 */ return this.areaIds;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setAreaIds(List<String> areaIds) {
|
||||
/* 95 */ this.areaIds = areaIds;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */ public String getDeviceName() {
|
||||
/* 100 */ return this.deviceName;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setDeviceName(String deviceName) {
|
||||
/* 104 */ this.deviceName = deviceName;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getDeviceTypeName() {
|
||||
/* 108 */ return this.deviceTypeName;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setDeviceTypeName(String deviceTypeName) {
|
||||
/* 112 */ this.deviceTypeName = deviceTypeName;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getAreaName() {
|
||||
/* 116 */ return this.areaName;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setAreaName(String areaName) {
|
||||
/* 120 */ this.areaName = areaName;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getDeviceCode() {
|
||||
/* 124 */ return this.deviceCode;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setDeviceCode(String deviceCode) {
|
||||
/* 128 */ this.deviceCode = deviceCode;
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-service-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\device\param\AcsElevatorDeviceQueryParam.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+65
@@ -0,0 +1,65 @@
|
||||
/* */ 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;
|
||||
/* */
|
||||
/* 16 */ 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; Object this$parentId = getParentId(), other$parentId = other.getParentId(); if ((this$parentId == null) ? (other$parentId != null) : !this$parentId.equals(other$parentId)) return false; Object this$orgId = getOrgId(), other$orgId = other.getOrgId(); if ((this$orgId == null) ? (other$orgId != null) : !this$orgId.equals(other$orgId)) return false; Object this$orgName = getOrgName(), other$orgName = other.getOrgName(); if ((this$orgName == null) ? (other$orgName != null) : !this$orgName.equals(other$orgName)) return false; Object this$labelId = getLabelId(), other$labelId = other.getLabelId(); if ((this$labelId == null) ? (other$labelId != null) : !this$labelId.equals(other$labelId)) return false; Object this$labelName = getLabelName(), other$labelName = other.getLabelName(); if ((this$labelName == null) ? (other$labelName != null) : !this$labelName.equals(other$labelName)) return false; Object this$personId = getPersonId(), other$personId = other.getPersonId(); if ((this$personId == null) ? (other$personId != null) : !this$personId.equals(other$personId)) return false; Object<String> this$zoneIds = (Object<String>)getZoneIds(), other$zoneIds = (Object<String>)other.getZoneIds(); if ((this$zoneIds == null) ? (other$zoneIds != null) : !this$zoneIds.equals(other$zoneIds)) return false; Object this$taskId = getTaskId(), other$taskId = other.getTaskId(); return !((this$taskId == null) ? (other$taskId != null) : !this$taskId.equals(other$taskId)); } protected boolean canEqual(Object other) { return other instanceof AcsRestructureBindingParam; } public int hashCode() { int PRIME = 59; result = 1; Object $parentId = getParentId(); result = result * 59 + (($parentId == null) ? 43 : $parentId.hashCode()); Object $orgId = getOrgId(); result = result * 59 + (($orgId == null) ? 43 : $orgId.hashCode()); Object $orgName = getOrgName(); result = result * 59 + (($orgName == null) ? 43 : $orgName.hashCode()); Object $labelId = getLabelId(); result = result * 59 + (($labelId == null) ? 43 : $labelId.hashCode()); Object $labelName = getLabelName(); result = result * 59 + (($labelName == null) ? 43 : $labelName.hashCode()); Object $personId = getPersonId(); result = result * 59 + (($personId == null) ? 43 : $personId.hashCode()); Object<String> $zoneIds = (Object<String>)getZoneIds(); result = result * 59 + (($zoneIds == null) ? 43 : $zoneIds.hashCode()); Object $taskId = getTaskId(); return result * 59 + (($taskId == null) ? 43 : $taskId.hashCode()); } public String toString() { return "AcsRestructureBindingParam(parentId=" + getParentId() + ", orgId=" + getOrgId() + ", orgName=" + getOrgName() + ", labelId=" + getLabelId() + ", labelName=" + getLabelName() + ", personId=" + getPersonId() + ", zoneIds=" + getZoneIds() + ", taskId=" + getTaskId() + ")"; }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public String getParentId() {
|
||||
/* 22 */ return this.parentId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */ public String getOrgId() {
|
||||
/* 27 */ return this.orgId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */ public String getOrgName() {
|
||||
/* 32 */ return this.orgName;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */ public String getLabelId() {
|
||||
/* 37 */ return this.labelId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */ public String getLabelName() {
|
||||
/* 42 */ return this.labelName;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */ public String getPersonId() {
|
||||
/* 47 */ return this.personId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */ public List<String> getZoneIds() {
|
||||
/* 52 */ return this.zoneIds;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */ public String getTaskId() {
|
||||
/* 57 */ return this.taskId;
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-service-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\device\param\AcsRestructureBindingParam.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+55
@@ -0,0 +1,55 @@
|
||||
/* */ 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 void setOrgId(String orgId) {
|
||||
/* 16 */ 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; Object this$orgId = getOrgId(), other$orgId = other.getOrgId(); if ((this$orgId == null) ? (other$orgId != null) : !this$orgId.equals(other$orgId)) return false; Object this$labelId = getLabelId(), other$labelId = other.getLabelId(); if ((this$labelId == null) ? (other$labelId != null) : !this$labelId.equals(other$labelId)) return false; Object<String> this$labelIds = (Object<String>)getLabelIds(), other$labelIds = (Object<String>)other.getLabelIds(); if ((this$labelIds == null) ? (other$labelIds != null) : !this$labelIds.equals(other$labelIds)) return false; Object this$personId = getPersonId(), other$personId = other.getPersonId(); if ((this$personId == null) ? (other$personId != null) : !this$personId.equals(other$personId)) return false; Object this$zoneId = getZoneId(), other$zoneId = other.getZoneId(); if ((this$zoneId == null) ? (other$zoneId != null) : !this$zoneId.equals(other$zoneId)) return false; Object this$businessId = getBusinessId(), other$businessId = other.getBusinessId(); return !((this$businessId == null) ? (other$businessId != null) : !this$businessId.equals(other$businessId)); } protected boolean canEqual(Object other) { return other instanceof AcsRestructureQueryParam; } public int hashCode() { int PRIME = 59; result = 1; Object $orgId = getOrgId(); result = result * 59 + (($orgId == null) ? 43 : $orgId.hashCode()); Object $labelId = getLabelId(); result = result * 59 + (($labelId == null) ? 43 : $labelId.hashCode()); Object<String> $labelIds = (Object<String>)getLabelIds(); result = result * 59 + (($labelIds == null) ? 43 : $labelIds.hashCode()); Object $personId = getPersonId(); result = result * 59 + (($personId == null) ? 43 : $personId.hashCode()); Object $zoneId = getZoneId(); result = result * 59 + (($zoneId == null) ? 43 : $zoneId.hashCode()); Object $businessId = getBusinessId(); return result * 59 + (($businessId == null) ? 43 : $businessId.hashCode()); } public String toString() { return "AcsRestructureQueryParam(orgId=" + getOrgId() + ", labelId=" + getLabelId() + ", labelIds=" + getLabelIds() + ", personId=" + getPersonId() + ", zoneId=" + getZoneId() + ", businessId=" + getBusinessId() + ")"; }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public String getOrgId() {
|
||||
/* 22 */ return this.orgId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */ public String getLabelId() {
|
||||
/* 27 */ return this.labelId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */ public List<String> getLabelIds() {
|
||||
/* 32 */ return this.labelIds;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */ public String getPersonId() {
|
||||
/* 37 */ return this.personId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */ public String getZoneId() {
|
||||
/* 42 */ return this.zoneId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */ public String getBusinessId() {
|
||||
/* 47 */ return this.businessId;
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-service-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\device\param\AcsRestructureQueryParam.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+270
@@ -0,0 +1,270 @@
|
||||
/* */ 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() {
|
||||
/* 114 */ return this.id;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setId(String id) {
|
||||
/* 118 */ this.id = id;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getAreaId() {
|
||||
/* 122 */ return this.areaId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setAreaId(String areaId) {
|
||||
/* 126 */ this.areaId = areaId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getAreaName() {
|
||||
/* 130 */ return this.areaName;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setAreaName(String areaName) {
|
||||
/* 134 */ this.areaName = areaName;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getDeviceId() {
|
||||
/* 138 */ return this.deviceId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setDeviceId(String deviceId) {
|
||||
/* 142 */ this.deviceId = deviceId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getDeviceName() {
|
||||
/* 146 */ return this.deviceName;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setDeviceName(String deviceName) {
|
||||
/* 150 */ this.deviceName = deviceName;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getDeviceCode() {
|
||||
/* 154 */ return this.deviceCode;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setDeviceCode(String deviceCode) {
|
||||
/* 158 */ this.deviceCode = deviceCode;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getDeviceTypeId() {
|
||||
/* 162 */ return this.deviceTypeId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setDeviceTypeId(String deviceTypeId) {
|
||||
/* 166 */ this.deviceTypeId = deviceTypeId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getDeviceTypeCode() {
|
||||
/* 170 */ return this.deviceTypeCode;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setDeviceTypeCode(String deviceTypeCode) {
|
||||
/* 174 */ this.deviceTypeCode = deviceTypeCode;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getDeviceTypeName() {
|
||||
/* 178 */ return this.deviceTypeName;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setDeviceTypeName(String deviceTypeName) {
|
||||
/* 182 */ this.deviceTypeName = deviceTypeName;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public Integer getDeviceStatus() {
|
||||
/* 186 */ return this.deviceStatus;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setDeviceStatus(Integer deviceStatus) {
|
||||
/* 190 */ this.deviceStatus = deviceStatus;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public Integer getDeviceOnlineStatus() {
|
||||
/* 194 */ return this.deviceOnlineStatus;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setDeviceOnlineStatus(Integer deviceOnlineStatus) {
|
||||
/* 198 */ this.deviceOnlineStatus = deviceOnlineStatus;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getAddress() {
|
||||
/* 202 */ return this.address;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setAddress(String address) {
|
||||
/* 206 */ this.address = address;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getImageStoreId() {
|
||||
/* 210 */ return this.imageStoreId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setImageStoreId(String imageStoreId) {
|
||||
/* 214 */ this.imageStoreId = imageStoreId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public int getIdentifyType() {
|
||||
/* 218 */ return this.identifyType;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setIdentifyType(int identifyType) {
|
||||
/* 222 */ this.identifyType = identifyType;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public Long getLastHeartbeatTime() {
|
||||
/* 226 */ return this.lastHeartbeatTime;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setLastHeartbeatTime(Long lastHeartbeatTime) {
|
||||
/* 230 */ this.lastHeartbeatTime = lastHeartbeatTime;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public Integer getDeviceOpenStatus() {
|
||||
/* 234 */ return this.deviceOpenStatus;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setDeviceOpenStatus(Integer deviceOpenStatus) {
|
||||
/* 238 */ this.deviceOpenStatus = deviceOpenStatus;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getDeviceTypeCategoryId() {
|
||||
/* 242 */ return this.deviceTypeCategoryId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setDeviceTypeCategoryId(String deviceTypeCategoryId) {
|
||||
/* 246 */ this.deviceTypeCategoryId = deviceTypeCategoryId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getStatus() {
|
||||
/* 250 */ return this.status;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setStatus(String status) {
|
||||
/* 254 */ this.status = status;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getOnlineStatus() {
|
||||
/* 258 */ return this.onlineStatus;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setOnlineStatus(String onlineStatus) {
|
||||
/* 262 */ this.onlineStatus = onlineStatus;
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-service-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\device\result\AcsDeviceNewResult.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+48
@@ -0,0 +1,48 @@
|
||||
/* */ 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 void setParentId(String parentId) {
|
||||
/* 14 */ 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; Object this$parentId = getParentId(), other$parentId = other.getParentId(); if ((this$parentId == null) ? (other$parentId != null) : !this$parentId.equals(other$parentId)) return false; Object this$zoneId = getZoneId(), other$zoneId = other.getZoneId(); if ((this$zoneId == null) ? (other$zoneId != null) : !this$zoneId.equals(other$zoneId)) return false; Object this$zoneName = getZoneName(), other$zoneName = other.getZoneName(); if ((this$zoneName == null) ? (other$zoneName != null) : !this$zoneName.equals(other$zoneName)) return false; Object this$onlineDevices = getOnlineDevices(), other$onlineDevices = other.getOnlineDevices(); if ((this$onlineDevices == null) ? (other$onlineDevices != null) : !this$onlineDevices.equals(other$onlineDevices)) return false; Object this$offlineDevices = getOfflineDevices(), 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; result = 1; Object $parentId = getParentId(); result = result * 59 + (($parentId == null) ? 43 : $parentId.hashCode()); Object $zoneId = getZoneId(); result = result * 59 + (($zoneId == null) ? 43 : $zoneId.hashCode()); Object $zoneName = getZoneName(); result = result * 59 + (($zoneName == null) ? 43 : $zoneName.hashCode()); Object $onlineDevices = getOnlineDevices(); result = result * 59 + (($onlineDevices == null) ? 43 : $onlineDevices.hashCode()); Object $offlineDevices = getOfflineDevices(); return result * 59 + (($offlineDevices == null) ? 43 : $offlineDevices.hashCode()); } public String toString() { return "AcsDeviceRestructureResult(parentId=" + getParentId() + ", zoneId=" + getZoneId() + ", zoneName=" + getZoneName() + ", onlineDevices=" + getOnlineDevices() + ", offlineDevices=" + getOfflineDevices() + ")"; }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public String getParentId() {
|
||||
/* 20 */ return this.parentId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */ public String getZoneId() {
|
||||
/* 25 */ return this.zoneId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */ public String getZoneName() {
|
||||
/* 30 */ return this.zoneName;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */ public String getOnlineDevices() {
|
||||
/* 35 */ return this.onlineDevices;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */ public String getOfflineDevices() {
|
||||
/* 40 */ return this.offlineDevices;
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-service-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\device\result\AcsDeviceRestructureResult.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+86
File diff suppressed because one or more lines are too long
+180
@@ -0,0 +1,180 @@
|
||||
/* */ 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() {
|
||||
/* 80 */ return this.businessId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setBusinessId(String businessId) {
|
||||
/* 84 */ this.businessId = businessId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getDeviceId() {
|
||||
/* 88 */ return this.deviceId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setDeviceId(String deviceId) {
|
||||
/* 92 */ this.deviceId = deviceId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getDeviceCode() {
|
||||
/* 96 */ return this.deviceCode;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setDeviceCode(String deviceCode) {
|
||||
/* 100 */ this.deviceCode = deviceCode;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getElevatorFloorList() {
|
||||
/* 104 */ return this.elevatorFloorList;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setElevatorFloorList(String elevatorFloorList) {
|
||||
/* 108 */ this.elevatorFloorList = elevatorFloorList;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getCurrentFloorId() {
|
||||
/* 112 */ return this.currentFloorId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setCurrentFloorId(String currentFloorId) {
|
||||
/* 116 */ this.currentFloorId = currentFloorId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getCurrentFloor() {
|
||||
/* 120 */ return this.currentFloor;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setCurrentFloor(String currentFloor) {
|
||||
/* 124 */ this.currentFloor = currentFloor;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getCurrentBuilding() {
|
||||
/* 128 */ return this.currentBuilding;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setCurrentBuilding(String currentBuilding) {
|
||||
/* 132 */ this.currentBuilding = currentBuilding;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getCurrentBuildingId() {
|
||||
/* 136 */ return this.currentBuildingId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setCurrentBuildingId(String currentBuildingId) {
|
||||
/* 140 */ this.currentBuildingId = currentBuildingId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public Integer getStatus() {
|
||||
/* 144 */ return this.status;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setStatus(Integer status) {
|
||||
/* 148 */ this.status = status;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getDeviceName() {
|
||||
/* 152 */ return this.deviceName;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setDeviceName(String deviceName) {
|
||||
/* 156 */ this.deviceName = deviceName;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getDeviceTypeName() {
|
||||
/* 160 */ return this.deviceTypeName;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setDeviceTypeName(String deviceTypeName) {
|
||||
/* 164 */ this.deviceTypeName = deviceTypeName;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getAreaName() {
|
||||
/* 168 */ return this.areaName;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setAreaName(String areaName) {
|
||||
/* 172 */ this.areaName = areaName;
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-service-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\device\result\AcsElevatorDeviceResult.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+36
@@ -0,0 +1,36 @@
|
||||
/* */ 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 void setLabelId(String labelId) {
|
||||
/* 16 */ 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; Object this$labelId = getLabelId(), other$labelId = other.getLabelId(); if ((this$labelId == null) ? (other$labelId != null) : !this$labelId.equals(other$labelId)) return false; Object<AcsPassRuleLabelResultDto> this$details = (Object<AcsPassRuleLabelResultDto>)getDetails(), other$details = (Object<AcsPassRuleLabelResultDto>)other.getDetails(); return !((this$details == null) ? (other$details != null) : !this$details.equals(other$details)); } protected boolean canEqual(Object other) { return other instanceof AcsLabelElevatorResult; } public int hashCode() { int PRIME = 59; result = 1; Object $labelId = getLabelId(); result = result * 59 + (($labelId == null) ? 43 : $labelId.hashCode()); Object<AcsPassRuleLabelResultDto> $details = (Object<AcsPassRuleLabelResultDto>)getDetails(); return result * 59 + (($details == null) ? 43 : $details.hashCode()); } public String toString() { return "AcsLabelElevatorResult(labelId=" + getLabelId() + ", details=" + getDetails() + ")"; }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public String getLabelId() {
|
||||
/* 23 */ return this.labelId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */ public List<AcsPassRuleLabelResultDto> getDetails() {
|
||||
/* 28 */ return this.details;
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-service-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\device\result\AcsLabelElevatorResult.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+36
@@ -0,0 +1,36 @@
|
||||
/* */ package cn.cloudwalk.elevator.device.result;
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public class KeyValueResult
|
||||
/* */ {
|
||||
/* */ private String key;
|
||||
/* */ private Long time;
|
||||
/* */ private String keyA;
|
||||
/* */
|
||||
/* */ public void setKey(String key) {
|
||||
/* 12 */ 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; Object this$key = getKey(), other$key = other.getKey(); if ((this$key == null) ? (other$key != null) : !this$key.equals(other$key)) return false; Object this$time = getTime(), other$time = other.getTime(); if ((this$time == null) ? (other$time != null) : !this$time.equals(other$time)) return false; Object this$keyA = getKeyA(), 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; result = 1; Object $key = getKey(); result = result * 59 + (($key == null) ? 43 : $key.hashCode()); Object $time = getTime(); result = result * 59 + (($time == null) ? 43 : $time.hashCode()); Object $keyA = getKeyA(); return result * 59 + (($keyA == null) ? 43 : $keyA.hashCode()); } public String toString() { return "KeyValueResult(key=" + getKey() + ", time=" + getTime() + ", keyA=" + getKeyA() + ")"; }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public String getKey() {
|
||||
/* 18 */ return this.key;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */ public Long getTime() {
|
||||
/* 23 */ return this.time;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */ public String getKeyA() {
|
||||
/* 28 */ return this.keyA;
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-service-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\device\result\KeyValueResult.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
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 {
|
||||
void updateFloors(AcsRestructureBindingParam paramAcsRestructureBindingParam, List<AcsPassRuleImageResultDto> paramList, List<String> paramList1, CloudwalkCallContext paramCloudwalkCallContext) throws ServiceException;
|
||||
}
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-service-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\device\service\AcsDeviceTaskService.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+64
@@ -0,0 +1,64 @@
|
||||
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 {
|
||||
Integer add(AcsElevatorDeviceAddParam paramAcsElevatorDeviceAddParam, CloudwalkCallContext paramCloudwalkCallContext) throws ServiceException;
|
||||
|
||||
Integer edit(AcsElevatorDeviceEditParam paramAcsElevatorDeviceEditParam, CloudwalkCallContext paramCloudwalkCallContext) throws ServiceException;
|
||||
|
||||
Integer delete(List<String> paramList, CloudwalkCallContext paramCloudwalkCallContext) throws ServiceException;
|
||||
|
||||
String getBuildingId(AcsElevatorDeviceQueryParam paramAcsElevatorDeviceQueryParam) throws ServiceException;
|
||||
|
||||
String getBusinessId(AcsElevatorDeviceQueryParam paramAcsElevatorDeviceQueryParam) throws ServiceException;
|
||||
|
||||
CloudwalkResult<CloudwalkPageAble<AcsElevatorDeviceResultDTO>> get(AcsElevatorDeviceQueryParam paramAcsElevatorDeviceQueryParam, CloudwalkCallContext paramCloudwalkCallContext) throws ServiceException;
|
||||
|
||||
CloudwalkResult<CloudwalkPageAble<DeviceResult>> devicePage(AcsDeviceQueryParam paramAcsDeviceQueryParam, CloudwalkPageInfo paramCloudwalkPageInfo, CloudwalkCallContext paramCloudwalkCallContext) throws ServiceException;
|
||||
|
||||
List<AcsElevatorDeviceQueryFoDTO> getFo(AcsElevatorDeviceQueryParam paramAcsElevatorDeviceQueryParam) throws ServiceException;
|
||||
|
||||
AcsElevatorDeviceResultDTO getById(AcsElevatorDeviceQueryByIdParam paramAcsElevatorDeviceQueryByIdParam, CloudwalkCallContext paramCloudwalkCallContext) throws ServiceException;
|
||||
|
||||
AcsElevatorDeviceResultDTO getByDeciveCode(String paramString) throws ServiceException;
|
||||
|
||||
CloudwalkResult listUnbindFloors(AcsRestructureQueryParam paramAcsRestructureQueryParam, CloudwalkCallContext paramCloudwalkCallContext) throws ServiceException;
|
||||
|
||||
CloudwalkResult listFloors(AcsRestructureQueryParam paramAcsRestructureQueryParam, CloudwalkCallContext paramCloudwalkCallContext) throws ServiceException;
|
||||
|
||||
CloudwalkResult listCondition(AcsRestructureQueryParam paramAcsRestructureQueryParam, CloudwalkCallContext paramCloudwalkCallContext) throws ServiceException;
|
||||
|
||||
CloudwalkResult listConditionByLabelIds(AcsRestructureQueryParam paramAcsRestructureQueryParam, CloudwalkCallContext paramCloudwalkCallContext) throws ServiceException;
|
||||
|
||||
CloudwalkResult<String> bindingFloors(AcsRestructureBindingParam paramAcsRestructureBindingParam, CloudwalkCallContext paramCloudwalkCallContext) throws ServiceException;
|
||||
|
||||
CloudwalkResult<String> bindingPerson(AcsRestructureBindingParam paramAcsRestructureBindingParam, CloudwalkCallContext paramCloudwalkCallContext) throws ServiceException;
|
||||
|
||||
CloudwalkResult<AcsDeviceTaskDTO> getTask(AcsDeviceRestructureTaskParam paramAcsDeviceRestructureTaskParam, CloudwalkCallContext paramCloudwalkCallContext) throws ServiceException;
|
||||
|
||||
CloudwalkResult<Boolean> setTaskStop(AcsDeviceRestructureTaskParam paramAcsDeviceRestructureTaskParam, CloudwalkCallContext paramCloudwalkCallContext) throws ServiceException;
|
||||
}
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-service-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\device\service\AcsElevatorDeviceService.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+258
@@ -0,0 +1,258 @@
|
||||
/* */ 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;
|
||||
/* */
|
||||
/* */ public CloudwalkResult<Boolean> bindAppImageStoreDevice(DeviceImageStoreAppBindParam param, CloudwalkCallContext context) throws ServiceException {
|
||||
/* 53 */ bindApplicationImageStore(param, context);
|
||||
/* 54 */ return CloudwalkResult.success(Boolean.valueOf(true));
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public CloudwalkResult<Boolean> bindDeviceAndImageStore(DeviceImageStoreAppBindParam param, CloudwalkCallContext context) throws ServiceException {
|
||||
/* */ try {
|
||||
/* 63 */ bindDeviceImageStore(param, context);
|
||||
/* 64 */ } catch (ServiceException e) {
|
||||
/* 65 */ this.logger.error("设备图库关联失败,图库id={},原因:{}", param.getImageStoreId(), e.getMessage());
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* 69 */ throw new ServiceException("设备图库关联失败");
|
||||
/* */ }
|
||||
/* 71 */ return CloudwalkResult.success(Boolean.valueOf(true));
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ private void bindApplicationImageStore(DeviceImageStoreAppBindParam param, CloudwalkCallContext context) throws ServiceException {
|
||||
/* 83 */ ApplicationImageStoreAddParam applicationImageStoreAddParam = new ApplicationImageStoreAddParam();
|
||||
/* 84 */ applicationImageStoreAddParam.setApplicationId(param.getApplicationId());
|
||||
/* 85 */ applicationImageStoreAddParam.setImageStoreId(param.getImageStoreId());
|
||||
/* */
|
||||
/* 87 */ CloudwalkResult<Boolean> applicationImageStoreAddResult = this.applicationImageStoreService.add(applicationImageStoreAddParam, context);
|
||||
/* 88 */ if (!applicationImageStoreAddResult.isSuccess()) {
|
||||
/* 89 */ this.logger.error("添加应用图库关联失败,原因:{}", applicationImageStoreAddResult.getMessage());
|
||||
/* 90 */ throw new ServiceException(applicationImageStoreAddResult.getCode(), "添加应用图库关联失败,原因:" + applicationImageStoreAddResult
|
||||
/* 91 */ .getMessage());
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ private void bindDeviceImageStore(DeviceImageStoreAppBindParam param, CloudwalkCallContext context) throws ServiceException {
|
||||
/* 105 */ DeviceImageStoreParam imageStoreSaveParam = new DeviceImageStoreParam();
|
||||
/* 106 */ imageStoreSaveParam.setDeviceId(param.getDeviceId());
|
||||
/* 107 */ imageStoreSaveParam.setImageStoreId(param.getImageStoreId());
|
||||
/* 108 */ CloudwalkResult<Boolean> saveDeviceResult = this.deviceImageStoreService.add(imageStoreSaveParam, context);
|
||||
/* 109 */ if (!saveDeviceResult.isSuccess()) {
|
||||
/* 110 */ this.logger.error("绑定设备与图库失败,设备id={},图库id={},原因:{}", new Object[] { param
|
||||
/* 111 */ .getDeviceId(), param.getImageStoreId(), saveDeviceResult.getMessage() });
|
||||
/* 112 */ throw new ServiceException("绑定设备与图库失败");
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public CloudwalkResult<Boolean> unbindAppImageStoreDevice(DeviceImageStoreAppUnbindParam param, CloudwalkCallContext context) throws ServiceException {
|
||||
/* 120 */ deviceUnBindImageStore(context, param.getDeviceId(), param
|
||||
/* 121 */ .getImageStoreId(), param.getDeviceCode());
|
||||
/* */
|
||||
/* 123 */ applicationUnBindImageStore(param.getApplicationId(), param.getImageStoreId(), context);
|
||||
/* */
|
||||
/* */
|
||||
/* 126 */ List<ImageStoreListResult> imageStoreList = getImageStoreResult(param.getImageStoreId(), param.getDeviceCode(), context);
|
||||
/* 127 */ if (!CollectionUtils.isEmpty(imageStoreList))
|
||||
/* */ {
|
||||
/* 129 */ deleteImageStore(param.getImageStoreId(), context);
|
||||
/* */ }
|
||||
/* */
|
||||
/* 132 */ return CloudwalkResult.success(Boolean.valueOf(true));
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public CloudwalkResult<Boolean> deleteImageStore(DeviceImageStoreAppUnbindParam param, CloudwalkCallContext context) throws ServiceException {
|
||||
/* 139 */ applicationUnBindImageStore(param.getApplicationId(), param.getImageStoreId(), context);
|
||||
/* */
|
||||
/* 141 */ deleteImageStore(param.getImageStoreId(), context);
|
||||
/* 142 */ return CloudwalkResult.success(Boolean.valueOf(true));
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public CloudwalkResult<Boolean> unbindAppImageStoreDeviceNotDeleteImage(DeviceImageStoreAppUnbindParam param, CloudwalkCallContext context) throws ServiceException {
|
||||
/* 149 */ deviceUnBindImageStore(context, param.getDeviceId(), param
|
||||
/* 150 */ .getImageStoreId(), param.getDeviceCode());
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* 154 */ return CloudwalkResult.success(Boolean.valueOf(true));
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ private List<ImageStoreListResult> getImageStoreResult(String imageStoreId, String deviceCode, CloudwalkCallContext context) throws ServiceException {
|
||||
/* 169 */ ImageStoreQueryParam imageStoreQueryParam = new ImageStoreQueryParam();
|
||||
/* 170 */ imageStoreQueryParam.setIds(Collections.singletonList(imageStoreId));
|
||||
/* 171 */ imageStoreQueryParam.setBusinessId(context.getCompany().getCompanyId());
|
||||
/* */
|
||||
/* 173 */ CloudwalkResult<List<ImageStoreListResult>> imageStoreList = this.imageStoreService.list(imageStoreQueryParam, context);
|
||||
/* */
|
||||
/* 175 */ if (!imageStoreList.isSuccess()) {
|
||||
/* 176 */ this.logger.error("查询设备图库失败,设备编号:{},图库id:{},原因:{}", new Object[] { deviceCode, imageStoreId, imageStoreList
|
||||
/* 177 */ .getMessage() });
|
||||
/* 178 */ throw new ServiceException("查询设备图库失败,设备编号:{}" + deviceCode);
|
||||
/* */ }
|
||||
/* 180 */ return (List<ImageStoreListResult>)imageStoreList.getData();
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ private void deviceUnBindImageStore(CloudwalkCallContext context, String deviceId, String imageStoreId, String deviceCode) throws ServiceException {
|
||||
/* 196 */ DeviceImageStoreParam deviceImageStoreParam = new DeviceImageStoreParam();
|
||||
/* 197 */ deviceImageStoreParam.setDeviceId(deviceId);
|
||||
/* 198 */ deviceImageStoreParam.setImageStoreId(imageStoreId);
|
||||
/* */
|
||||
/* 200 */ CloudwalkResult<Boolean> deleteDeviceImageStoreResult = this.deviceImageStoreService.delete(deviceImageStoreParam, context);
|
||||
/* 201 */ this.logger.info("删除设备图库关联:图库id={},结果:{}", imageStoreId, deleteDeviceImageStoreResult.getMessage());
|
||||
/* 202 */ if (!deleteDeviceImageStoreResult.isSuccess()) {
|
||||
/* 203 */ this.logger.error("删除设备图库关联失败,设备编号:{},图库id:{},原因:{}", new Object[] { deviceCode, imageStoreId, deleteDeviceImageStoreResult
|
||||
/* 204 */ .getMessage() });
|
||||
/* 205 */ throw new ServiceException("删除设备图库关联失败,设备编号:" + deviceCode);
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ private void deleteImageStore(String imageStoreId, CloudwalkCallContext context) throws ServiceException {
|
||||
/* 217 */ ImageStoreDelParam imageStoreDelParam = new ImageStoreDelParam();
|
||||
/* 218 */ imageStoreDelParam.setId(imageStoreId);
|
||||
/* 219 */ imageStoreDelParam.setBusinessId(context.getCompany().getCompanyId());
|
||||
/* 220 */ CloudwalkResult<Boolean> deleteImageStoreResult = this.imageStoreService.delete(imageStoreDelParam, context);
|
||||
/* 221 */ if (!deleteImageStoreResult.isSuccess()) {
|
||||
/* 222 */ this.logger.error("删除图库失败,图库id:{},原因:{}", imageStoreId, deleteImageStoreResult
|
||||
/* 223 */ .getMessage());
|
||||
/* 224 */ throw new ServiceException("删除图库失败");
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public void applicationUnBindImageStore(String applicationId, String imageStoreId, CloudwalkCallContext context) throws ServiceException {
|
||||
/* 239 */ ApplicationImageStoreDelParam applicationImageStoreDelParam = new ApplicationImageStoreDelParam();
|
||||
/* 240 */ applicationImageStoreDelParam.setApplicationId(applicationId);
|
||||
/* 241 */ applicationImageStoreDelParam.setImageStoreId(imageStoreId);
|
||||
/* */
|
||||
/* 243 */ CloudwalkResult<Boolean> deleteApplicationImageStoreResult = this.applicationImageStoreService.delete(applicationImageStoreDelParam, context);
|
||||
/* 244 */ this.logger.info("删除应用图库关联:图库id={},应用id={},结果:{}", new Object[] { imageStoreId, applicationId, deleteApplicationImageStoreResult
|
||||
/* 245 */ .getMessage() });
|
||||
/* 246 */ if (!deleteApplicationImageStoreResult.isSuccess()) {
|
||||
/* 247 */ this.logger.error("应用与图库解绑失败,应用id:{},图库id:{},原因:{}", new Object[] { applicationId, imageStoreId, deleteApplicationImageStoreResult
|
||||
/* 248 */ .getMessage() });
|
||||
/* 249 */ throw new ServiceException("应用与图库解绑失败");
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-service-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\device\setting\impl\AcsDeviceImageStoreAppBindServiceImpl.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+99
@@ -0,0 +1,99 @@
|
||||
/* */ 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;
|
||||
/* */
|
||||
/* */ public CloudwalkResult<AcsDeviceSettingResult> getTemperatureSetting(AcsDeviceTemperatureSettingParam param, CloudwalkCallContext context) throws ServiceException {
|
||||
/* 49 */ AcsDeviceSettingResult result = new AcsDeviceSettingResult();
|
||||
/* 50 */ result.setDeviceId(param.getDeviceId());
|
||||
/* 51 */ DeviceSettingQueryParam deviceSettingQueryParam = new DeviceSettingQueryParam();
|
||||
/* 52 */ deviceSettingQueryParam.setDeviceIds(Lists.newArrayList((Object[])new String[] { param.getDeviceId() }));
|
||||
/* 53 */ deviceSettingQueryParam.setHasDefault(Short.valueOf((short)0));
|
||||
/* 54 */ CloudwalkResult<List<DeviceSettingResult>> deviceSettingQueryResult = this.deviceSettingService.query(deviceSettingQueryParam);
|
||||
/* 55 */ if (deviceSettingQueryResult.isSuccess()) {
|
||||
/* 56 */ if (CollectionUtils.isNotEmpty((Collection)deviceSettingQueryResult.getData())) {
|
||||
/* 57 */ DeviceSettingResult deviceSettingResult = ((List<DeviceSettingResult>)deviceSettingQueryResult.getData()).get(0);
|
||||
/* 58 */ List<DeviceSettingResult.DeviceSettings> settingResult = deviceSettingResult.getSettings();
|
||||
/* 59 */ if (CollectionUtils.isNotEmpty(settingResult)) {
|
||||
/* 60 */ List<AcsSettingAttr> acsSettingAttrs = new ArrayList<>();
|
||||
/* 61 */ recursionSettingAttr(acsSettingAttrs, settingResult);
|
||||
/* 62 */ List<AcsSettingAttr> attrs = (List<AcsSettingAttr>)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());
|
||||
/* 63 */ result.setAttrs(attrs);
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* 66 */ return CloudwalkResult.success(result);
|
||||
/* */ }
|
||||
/* 68 */ return CloudwalkResult.fail(deviceSettingQueryResult.getCode(), deviceSettingQueryResult.getMessage());
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ private void recursionSettingAttr(List<AcsSettingAttr> acsSettingAttrs, List<DeviceSettingResult.DeviceSettings> deviceSettings) {
|
||||
/* 80 */ if (CollectionUtils.isNotEmpty(deviceSettings))
|
||||
/* 81 */ for (DeviceSettingResult.DeviceSettings deviceSetting : deviceSettings) {
|
||||
/* 82 */ AcsSettingAttr acsSettingAttr = new AcsSettingAttr();
|
||||
/* 83 */ acsSettingAttr.setName(deviceSetting.getSettingAttrName());
|
||||
/* 84 */ acsSettingAttr.setValue(deviceSetting.getSettingAttrValue());
|
||||
/* 85 */ acsSettingAttr.setRemark(deviceSetting.getSettingAttrRemark());
|
||||
/* 86 */ acsSettingAttr.setCode(deviceSetting.getSettingAttrCode());
|
||||
/* 87 */ acsSettingAttr.setId(deviceSetting.getId());
|
||||
/* 88 */ acsSettingAttr.setParentId(deviceSetting.getSettingParentId());
|
||||
/* 89 */ acsSettingAttrs.add(acsSettingAttr);
|
||||
/* 90 */ recursionSettingAttr(acsSettingAttrs, deviceSetting.getChild());
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-service-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\device\setting\impl\AcsDeviceSettingServiceImpl.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
/* */ 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() {
|
||||
/* 25 */ return this.deviceId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setDeviceId(String deviceId) {
|
||||
/* 29 */ this.deviceId = deviceId;
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-service-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\device\setting\param\AcsDeviceTemperatureSettingParam.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+61
@@ -0,0 +1,61 @@
|
||||
/* */ 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() {
|
||||
/* 33 */ return this.applicationId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setApplicationId(String applicationId) {
|
||||
/* 37 */ this.applicationId = applicationId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getImageStoreId() {
|
||||
/* 41 */ return this.imageStoreId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setImageStoreId(String imageStoreId) {
|
||||
/* 45 */ this.imageStoreId = imageStoreId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getDeviceId() {
|
||||
/* 49 */ return this.deviceId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setDeviceId(String deviceId) {
|
||||
/* 53 */ this.deviceId = deviceId;
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-service-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\device\setting\param\DeviceImageStoreAppBindParam.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+72
@@ -0,0 +1,72 @@
|
||||
/* */ 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() {
|
||||
/* 36 */ return this.applicationId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setApplicationId(String applicationId) {
|
||||
/* 40 */ this.applicationId = applicationId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getImageStoreId() {
|
||||
/* 44 */ return this.imageStoreId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setImageStoreId(String imageStoreId) {
|
||||
/* 48 */ this.imageStoreId = imageStoreId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getDeviceId() {
|
||||
/* 52 */ return this.deviceId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setDeviceId(String deviceId) {
|
||||
/* 56 */ this.deviceId = deviceId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getDeviceCode() {
|
||||
/* 60 */ return this.deviceCode;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setDeviceCode(String deviceCode) {
|
||||
/* 64 */ this.deviceCode = deviceCode;
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-service-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\device\setting\param\DeviceImageStoreAppUnbindParam.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+49
@@ -0,0 +1,49 @@
|
||||
/* */ package cn.cloudwalk.elevator.device.setting.result;
|
||||
/* */
|
||||
/* */ 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() {
|
||||
/* 29 */ return this.deviceId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setDeviceId(String deviceId) {
|
||||
/* 33 */ this.deviceId = deviceId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public List<AcsSettingAttr> getAttrs() {
|
||||
/* 37 */ return this.attrs;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setAttrs(List<AcsSettingAttr> attrs) {
|
||||
/* 41 */ this.attrs = attrs;
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-service-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\device\setting\result\AcsDeviceSettingResult.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+97
@@ -0,0 +1,97 @@
|
||||
/* */ 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() {
|
||||
/* 45 */ return this.parentId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setParentId(String parentId) {
|
||||
/* 49 */ this.parentId = parentId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getId() {
|
||||
/* 53 */ return this.id;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setId(String id) {
|
||||
/* 57 */ this.id = id;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getName() {
|
||||
/* 61 */ return this.name;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setName(String name) {
|
||||
/* 65 */ this.name = name;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getValue() {
|
||||
/* 69 */ return this.value;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setValue(String value) {
|
||||
/* 73 */ this.value = value;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getRemark() {
|
||||
/* 77 */ return this.remark;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setRemark(String remark) {
|
||||
/* 81 */ this.remark = remark;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getCode() {
|
||||
/* 85 */ return this.code;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setCode(String code) {
|
||||
/* 89 */ this.code = code;
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-service-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\device\setting\result\AcsSettingAttr.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+25
@@ -0,0 +1,25 @@
|
||||
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 {
|
||||
CloudwalkResult<Boolean> bindAppImageStoreDevice(DeviceImageStoreAppBindParam paramDeviceImageStoreAppBindParam, CloudwalkCallContext paramCloudwalkCallContext) throws ServiceException;
|
||||
|
||||
CloudwalkResult<Boolean> bindDeviceAndImageStore(DeviceImageStoreAppBindParam paramDeviceImageStoreAppBindParam, CloudwalkCallContext paramCloudwalkCallContext) throws ServiceException;
|
||||
|
||||
CloudwalkResult<Boolean> unbindAppImageStoreDevice(DeviceImageStoreAppUnbindParam paramDeviceImageStoreAppUnbindParam, CloudwalkCallContext paramCloudwalkCallContext) throws ServiceException;
|
||||
|
||||
CloudwalkResult<Boolean> deleteImageStore(DeviceImageStoreAppUnbindParam paramDeviceImageStoreAppUnbindParam, CloudwalkCallContext paramCloudwalkCallContext) throws ServiceException;
|
||||
|
||||
CloudwalkResult<Boolean> unbindAppImageStoreDeviceNotDeleteImage(DeviceImageStoreAppUnbindParam paramDeviceImageStoreAppUnbindParam, CloudwalkCallContext paramCloudwalkCallContext) throws ServiceException;
|
||||
}
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-service-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\device\setting\service\AcsDeviceImageStoreAppBindService.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
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 {
|
||||
CloudwalkResult<AcsDeviceSettingResult> getTemperatureSetting(AcsDeviceTemperatureSettingParam paramAcsDeviceTemperatureSettingParam, CloudwalkCallContext paramCloudwalkCallContext) throws ServiceException;
|
||||
}
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-service-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\device\setting\service\AcsDeviceSettingService.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
package cn.cloudwalk.elevator.downloadcenter;
|
||||
|
||||
import cn.cloudwalk.cloud.context.CloudwalkCallContext;
|
||||
import cn.cloudwalk.elevator.downloadcenter.param.AcsFileFinishParam;
|
||||
|
||||
public interface AcsDownloadCenterService {
|
||||
String createDownload(String paramString, CloudwalkCallContext paramCloudwalkCallContext);
|
||||
|
||||
boolean finishDownload(AcsFileFinishParam paramAcsFileFinishParam, CloudwalkCallContext paramCloudwalkCallContext);
|
||||
|
||||
int queryDownloadStatus(String paramString, CloudwalkCallContext paramCloudwalkCallContext);
|
||||
}
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-service-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\downloadcenter\AcsDownloadCenterService.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+107
@@ -0,0 +1,107 @@
|
||||
/* */ 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;
|
||||
/* */
|
||||
/* */ public String createDownload(String fileName, CloudwalkCallContext context) {
|
||||
/* */ try {
|
||||
/* 41 */ FileInitParam fileInitParam = new FileInitParam();
|
||||
/* 42 */ fileInitParam.setFileName(fileName);
|
||||
/* 43 */ context.setApplicationId(this.acsApplicationService.getApplicationId(context.getCompany().getCompanyId()));
|
||||
/* 44 */ fileInitParam.setApplicationId(context.getApplicationId());
|
||||
/* */
|
||||
/* 46 */ FeignThreadLocalUtil.setRequestHeader(context);
|
||||
/* 47 */ CloudwalkResult<String> result = this.fileService.init(fileInitParam, context);
|
||||
/* 48 */ if ("00000000".equals(result.getCode())) {
|
||||
/* 49 */ return (String)result.getData();
|
||||
/* */ }
|
||||
/* 51 */ this.logger.error("下载任务初始化失败:code={},message={}", result.getCode(), result.getMessage());
|
||||
/* 52 */ throw new RuntimeException("下载任务创建失败!");
|
||||
/* */ }
|
||||
/* 54 */ catch (ServiceException e) {
|
||||
/* 55 */ this.logger.error("下载任务初始化接口错误", (Throwable)e);
|
||||
/* 56 */ throw new RuntimeException("下载任务创建失败!");
|
||||
/* */ } finally {
|
||||
/* 58 */ FeignThreadLocalUtil.remove();
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */ public boolean finishDownload(AcsFileFinishParam param, CloudwalkCallContext context) {
|
||||
/* */ try {
|
||||
/* 65 */ FeignThreadLocalUtil.setRequestHeader(context);
|
||||
/* 66 */ FileFinishParam fileFinishParam = (FileFinishParam)BeanCopyUtils.copyProperties(param, FileFinishParam.class);
|
||||
/* 67 */ CloudwalkResult<Boolean> result = this.fileService.finish(fileFinishParam, context);
|
||||
/* 68 */ if ("00000000".equals(result.getCode())) {
|
||||
/* 69 */ return true;
|
||||
/* */ }
|
||||
/* 71 */ this.logger.error("下载任务完成失败:code={},message={}", result.getCode(), result.getMessage());
|
||||
/* */ }
|
||||
/* 73 */ catch (ServiceException e) {
|
||||
/* 74 */ this.logger.error("下载任务完成接口错误", (Throwable)e);
|
||||
/* */ } finally {
|
||||
/* 76 */ FeignThreadLocalUtil.remove();
|
||||
/* */ }
|
||||
/* 78 */ return false;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public int queryDownloadStatus(String fileId, CloudwalkCallContext context) {
|
||||
/* */ try {
|
||||
/* 87 */ FileGetParam fileGetParam = new FileGetParam();
|
||||
/* 88 */ fileGetParam.setFileId(fileId);
|
||||
/* 89 */ CloudwalkResult<FileDetail> result = this.fileService.get(fileGetParam, context);
|
||||
/* 90 */ if ("00000000".equals(result.getCode()))
|
||||
/* */ {
|
||||
/* 92 */ return ((FileDetail)result.getData()).getStatus().intValue();
|
||||
/* */ }
|
||||
/* 94 */ this.logger.error("下载任务初始化失败:code={},message={}", result.getCode(), result.getMessage());
|
||||
/* */ }
|
||||
/* 96 */ catch (ServiceException e) {
|
||||
/* 97 */ this.logger.error("下载任务完成接口错误", (Throwable)e);
|
||||
/* */ }
|
||||
/* 99 */ return AcsFileStatusEnum.PRODUCING.getCode().intValue();
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-service-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\downloadcenter\impl\AcsDownloadCenterServiceImpl.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+98
@@ -0,0 +1,98 @@
|
||||
/* */ 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() {
|
||||
/* 46 */ return this.fileId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setFileId(String fileId) {
|
||||
/* 50 */ this.fileId = fileId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public Long getFileSize() {
|
||||
/* 54 */ return this.fileSize;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setFileSize(Long fileSize) {
|
||||
/* 58 */ this.fileSize = fileSize;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getFilePath() {
|
||||
/* 62 */ return this.filePath;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setFilePath(String filePath) {
|
||||
/* 66 */ this.filePath = filePath;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public Integer getFileStatus() {
|
||||
/* 70 */ return this.fileStatus;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setFileStatus(Integer fileStatus) {
|
||||
/* 74 */ this.fileStatus = fileStatus;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getErrorCode() {
|
||||
/* 78 */ return this.errorCode;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setErrorCode(String errorCode) {
|
||||
/* 82 */ this.errorCode = errorCode;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getErrorMessage() {
|
||||
/* 86 */ return this.errorMessage;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setErrorMessage(String errorMessage) {
|
||||
/* 90 */ this.errorMessage = errorMessage;
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-service-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\downloadcenter\param\AcsFileFinishParam.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+668
@@ -0,0 +1,668 @@
|
||||
/* */ 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.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.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.ThreadPoolExecutor;
|
||||
/* */ import java.util.concurrent.TimeUnit;
|
||||
/* */ import javax.annotation.Resource;
|
||||
/* */ import org.apache.commons.lang3.StringUtils;
|
||||
/* */ 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
|
||||
/* */ {
|
||||
/* 69 */ protected static final Logger LOGGER = LoggerFactory.getLogger(AcsAbstractExportAsyncService.class);
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* 74 */ private static final Integer FILE_PART_BATCH_SIZE = Integer.valueOf(5242881);
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ @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 {
|
||||
/* 107 */ String cacheKey = "acs_export_prefix:#" + context.getCompany().getCompanyId();
|
||||
/* */ try {
|
||||
/* 109 */ String taskId = (String)this.redisTemplate.opsForValue().get(cacheKey);
|
||||
/* 110 */ if (StringUtils.isNotBlank(taskId)) {
|
||||
/* 111 */ return CloudwalkResult.fail("76260308", getMessage("76260308"));
|
||||
/* */ }
|
||||
/* 113 */ String exportFileName = StringUtils.isNotBlank(fileName) ? fileName : getDefaultFileName();
|
||||
/* 114 */ ExportRecordContext.Builder builder = new ExportRecordContext.Builder();
|
||||
/* 115 */ ExportRecordContext exportRecordContext = builder.withFileName(exportFileName).withTaskStatus(AcsFileStatusEnum.PRODUCING.getCode().intValue()).build();
|
||||
/* 116 */ CompletableFuture.runAsync(() -> {
|
||||
/* */ try {
|
||||
/* */ String fileId = this.acsDownloadCenterService.createDownload(exportFileName, context);
|
||||
/* */
|
||||
/* */ this.redisTemplate.opsForValue().set(cacheKey, fileId, 5L, TimeUnit.MINUTES);
|
||||
/* */ exportRecordContext.setFileId(fileId);
|
||||
/* 122 */ } catch (Exception e) {
|
||||
/* */ LOGGER.info("导出时,初始化导出任务失败,原因:", e);
|
||||
/* */ this.redisTemplate.delete(cacheKey);
|
||||
/* */ throw new CompletionException(e);
|
||||
/* */ }
|
||||
/* 127 */ }).thenAccept(n -> {
|
||||
/* */ try {
|
||||
/* */ export((T)param, clazz, exportRecordContext, (ExcelCallback)null, context);
|
||||
/* 130 */ } catch (Exception e) {
|
||||
/* */ LOGGER.info("导出时异常,原因=[{}]", e.getMessage(), e);
|
||||
/* */ throw new CompletionException(e);
|
||||
/* */ } finally {
|
||||
/* */ FeignThreadLocalUtil.remove();
|
||||
/* */ this.redisTemplate.delete(cacheKey);
|
||||
/* */ }
|
||||
/* 137 */ }).whenComplete((n, e) -> {
|
||||
/* */ if (null != e) {
|
||||
/* */ LOGGER.error("异步导出任务运行失败,原因:", 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(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("异步导出成功。[{}]", 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(exportRecordContext.getFilePath())) {
|
||||
/* */ FileRemoveDTO fileRemoveDTO = new FileRemoveDTO();
|
||||
/* */ fileRemoveDTO.setFileList(Lists.newArrayList((Object[])new String[] { exportRecordContext.getFilePath() }));
|
||||
/* */ try {
|
||||
/* */ this.fileStorageManager.remove(fileRemoveDTO);
|
||||
/* 168 */ } catch (DavinciServiceException e1) {
|
||||
/* */ this.logger.error("删除文件失败,fileId=[{}],原因:", exportRecordContext.getFileId(), e1);
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* */ });
|
||||
/* */
|
||||
/* 174 */ return CloudwalkResult.success(Boolean.valueOf(true));
|
||||
/* */ }
|
||||
/* 176 */ catch (Exception e) {
|
||||
/* 177 */ this.logger.error("异步导出任务异常,原因:", e);
|
||||
/* 178 */ throw new ServiceException(e);
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */ private void export(T param, Class<R> clazz, ExportRecordContext exportRecordContext, ExcelCallback callback, CloudwalkCallContext context) throws Exception {
|
||||
/* 184 */ ByteArrayOutputStream output = new ByteArrayOutputStream();
|
||||
/* 185 */ String sheetName = exportRecordContext.getFileName();
|
||||
/* 186 */ FeignThreadLocalUtil.setRequestHeader(context);
|
||||
/* */
|
||||
/* 188 */ int startPage = 1;
|
||||
/* 189 */ int pageSize = 100;
|
||||
/* 190 */ long maxPageSize = this.EXPORT_MAX_RECORD / 100L;
|
||||
/* 191 */ PageInfo pageInfo = new PageInfo();
|
||||
/* 192 */ List<R> list = getList(param, context, startPage, 100, pageInfo);
|
||||
/* 193 */ Long totalRows = Long.valueOf(pageInfo.getTotal());
|
||||
/* 194 */ Long totalPages = Long.valueOf(pageInfo.getPages());
|
||||
/* 195 */ try (HSSFWorkbook workbook = new HSSFWorkbook()) {
|
||||
/* */
|
||||
/* 197 */ int sheetSize = 65536;
|
||||
/* */
|
||||
/* 199 */ Field[] allFields = clazz.getDeclaredFields();
|
||||
/* 200 */ List<Field> fields = new ArrayList<>();
|
||||
/* */
|
||||
/* 202 */ for (Field field : allFields) {
|
||||
/* 203 */ ExcelAttribute attr = field.<ExcelAttribute>getAnnotation(ExcelAttribute.class);
|
||||
/* 204 */ if (attr != null && attr.isExport())
|
||||
/* */ {
|
||||
/* */
|
||||
/* 207 */ fields.add(field);
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* 210 */ long listSize = (this.EXPORT_MAX_RECORD < totalRows.longValue()) ? this.EXPORT_MAX_RECORD : totalRows.longValue();
|
||||
/* 211 */ int startRow = 0;
|
||||
/* 212 */ int sheetNo = (int)listSize / sheetSize;
|
||||
/* 213 */ for (int index = 0; index <= sheetNo; index++) {
|
||||
/* */
|
||||
/* 215 */ HSSFSheet sheet = workbook.createSheet();
|
||||
/* */
|
||||
/* 217 */ workbook.setSheetName(index, sheetName + index);
|
||||
/* */
|
||||
/* 219 */ ExcelUtil.createRowHeard(sheet, fields, workbook, startRow);
|
||||
/* */
|
||||
/* */
|
||||
/* */ while (true) {
|
||||
/* 223 */ if (isCancelDownload(exportRecordContext, context)) {
|
||||
/* 224 */ output.close();
|
||||
/* */ return;
|
||||
/* */ }
|
||||
/* 227 */ if (CollectionUtils.isEmpty(list)) {
|
||||
/* 228 */ list = getList(param, context, startPage, 100, pageInfo);
|
||||
/* */ }
|
||||
/* */
|
||||
/* 231 */ createRowContent(sheet, fields, workbook, list, (startPage - 1) * 100, (startPage - 1) * 100 + list.size(), startRow + 1);
|
||||
/* 232 */ if (null != callback) {
|
||||
/* 233 */ callback.call(workbook, sheet);
|
||||
/* */ }
|
||||
/* 235 */ startPage++;
|
||||
/* 236 */ if (startPage > totalPages.longValue() || startPage > maxPageSize) {
|
||||
/* */ break;
|
||||
/* */ }
|
||||
/* 239 */ list = new ArrayList<>();
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* 242 */ output.flush();
|
||||
/* 243 */ workbook.write(output);
|
||||
/* 244 */ output.close();
|
||||
/* 245 */ byte[] fileByte = output.toByteArray();
|
||||
/* 246 */ exportRecordContext.setFileSize(Long.valueOf(fileByte.length));
|
||||
/* 247 */ String filePath = fileStore(exportRecordContext.getFileName() + ".xls", fileByte, exportRecordContext, context);
|
||||
/* */
|
||||
/* 249 */ exportRecordContext.setFilePath(filePath);
|
||||
/* 250 */ } catch (Exception e) {
|
||||
/* 251 */ throw new Exception("将list数据源的数据导入到excel表单异常!", e);
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ private boolean isCancelDownload(ExportRecordContext exportRecordContext, CloudwalkCallContext context) {
|
||||
/* 259 */ int taskStatus = this.acsDownloadCenterService.queryDownloadStatus(exportRecordContext.getFileId(), context);
|
||||
/* 260 */ if (AcsFileStatusEnum.CANCELED.getCode().intValue() == taskStatus) {
|
||||
/* 261 */ this.logger.info("导出任务已取消,fileID=[{}]", exportRecordContext.getFileId());
|
||||
/* 262 */ exportRecordContext.setTaskStatus(taskStatus);
|
||||
/* 263 */ return true;
|
||||
/* */ }
|
||||
/* 265 */ return false;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ private ArrayList<R> getList(T param, CloudwalkCallContext context, int startPage, int pageSize, PageInfo pageInfo) throws ServiceException {
|
||||
/* 271 */ CloudwalkPageInfo cloudwalkPageInfo = new CloudwalkPageInfo(startPage, pageSize);
|
||||
/* 272 */ CloudwalkPageAble<R> dataPage = queryPage(param, cloudwalkPageInfo, context);
|
||||
/* 273 */ pageInfo.setTotal(dataPage.getTotalRows());
|
||||
/* 274 */ pageInfo.setPages((int)dataPage.getTotalPages());
|
||||
/* 275 */ return Lists.newArrayList(dataPage.getDatas());
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */ private int getColumnSize(Class clazz) {
|
||||
/* 280 */ Field[] allFields = clazz.getDeclaredFields();
|
||||
/* 281 */ int size = 0;
|
||||
/* 282 */ for (Field field : allFields) {
|
||||
/* 283 */ ExcelAttribute attr = field.<ExcelAttribute>getAnnotation(ExcelAttribute.class);
|
||||
/* 284 */ if (attr != null && attr.isExport())
|
||||
/* */ {
|
||||
/* */
|
||||
/* 287 */ size++; }
|
||||
/* */ }
|
||||
/* 289 */ return size;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ private void setRow1(HSSFWorkbook workBook, HSSFSheet sheet, String row1Str) {
|
||||
/* 295 */ HSSFCellStyle cellStyle1 = workBook.createCellStyle();
|
||||
/* 296 */ HSSFFont font1 = workBook.createFont();
|
||||
/* */
|
||||
/* 298 */ font1.setFontHeightInPoints((short)15);
|
||||
/* 299 */ font1.setBold(Boolean.TRUE.booleanValue());
|
||||
/* */
|
||||
/* 301 */ cellStyle1.setAlignment(HorizontalAlignment.LEFT);
|
||||
/* */
|
||||
/* 303 */ cellStyle1.setVerticalAlignment(VerticalAlignment.CENTER);
|
||||
/* 304 */ HSSFRichTextString row1String = new HSSFRichTextString(row1Str);
|
||||
/* 305 */ row1String.applyFont(0, row1Str.length(), (Font)font1);
|
||||
/* 306 */ sheet.getRow(0).getCell(0).setCellValue((RichTextString)row1String);
|
||||
/* 307 */ sheet.getRow(0).getCell(0).setCellStyle(cellStyle1);
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ private String fileStore(String fileName, byte[] bytes, ExportRecordContext exportRecordContext, CloudwalkCallContext context) throws ServiceException {
|
||||
/* 317 */ int size = bytes.length;
|
||||
/* */
|
||||
/* 319 */ LOGGER.info("文件大小为: {}", Integer.valueOf(size));
|
||||
/* */
|
||||
/* 321 */ FilePartInitParam param = new FilePartInitParam();
|
||||
/* 322 */ param.setFileName(fileName);
|
||||
/* 323 */ LOGGER.info("文件分片初始化开始");
|
||||
/* 324 */ CloudwalkResult<FilePartResult> result = this.acsFileStorageService.filePartInit(param);
|
||||
/* */
|
||||
/* 326 */ if (result.isSuccess()) {
|
||||
/* 327 */ LOGGER.info("文件分片初始化结束,uploadId = {}, filePath = {}", ((FilePartResult)result.getData()).getUploadId(), ((FilePartResult)result
|
||||
/* 328 */ .getData()).getFilePath());
|
||||
/* */
|
||||
/* 330 */ FilePartResult filePartResult = (FilePartResult)result.getData();
|
||||
/* 331 */ int times = 0;
|
||||
/* */
|
||||
/* */ while (true) {
|
||||
/* 334 */ if (isCancelDownload(exportRecordContext, context)) {
|
||||
/* 335 */ return ((FilePartResult)result.getData()).getFilePath();
|
||||
/* */ }
|
||||
/* */
|
||||
/* 338 */ int start = times++ * FILE_PART_BATCH_SIZE.intValue();
|
||||
/* 339 */ int end = (start + FILE_PART_BATCH_SIZE.intValue() > size) ? size : (start + FILE_PART_BATCH_SIZE.intValue());
|
||||
/* 340 */ byte[] trunk = Arrays.copyOfRange(bytes, start, end);
|
||||
/* */
|
||||
/* 342 */ LOGGER.info("第{}个分片开始追加,uploadId = {}, filePath = {}, size ; {}", new Object[] { Integer.valueOf(times), filePartResult
|
||||
/* 343 */ .getUploadId(), filePartResult
|
||||
/* 344 */ .getFilePath(), Integer.valueOf(trunk.length) });
|
||||
/* */
|
||||
/* 346 */ FilePartAppendParam<byte[]> appendParam = new FilePartAppendParam();
|
||||
/* 347 */ appendParam.setFilePath(filePartResult.getFilePath());
|
||||
/* 348 */ appendParam.setPartNumber(Integer.valueOf(times));
|
||||
/* 349 */ appendParam.setUploadId(filePartResult.getUploadId());
|
||||
/* 350 */ appendParam.setContent(trunk);
|
||||
/* 351 */ this.acsFileStorageService.filePartAppend(appendParam);
|
||||
/* */
|
||||
/* 353 */ LOGGER.info("第{}个分片完成追加,uploadId = {}, filePath = {}", new Object[] { Integer.valueOf(times), filePartResult.getUploadId(), filePartResult
|
||||
/* 354 */ .getFilePath() });
|
||||
/* */
|
||||
/* 356 */ if (end >= size) {
|
||||
/* */
|
||||
/* 358 */ LOGGER.info("追加完成,准备结束,uploadId = {}, filePath = {}", filePartResult.getUploadId(), filePartResult
|
||||
/* 359 */ .getFilePath());
|
||||
/* */
|
||||
/* 361 */ FilePartFinishParam finishParam = new FilePartFinishParam();
|
||||
/* 362 */ finishParam.setFilePath(filePartResult.getFilePath());
|
||||
/* 363 */ finishParam.setUploadId(filePartResult.getUploadId());
|
||||
/* 364 */ finishParam.setFileSize(Long.valueOf(size));
|
||||
/* */
|
||||
/* 366 */ finishParam.setReturnType(Integer.valueOf(1));
|
||||
/* 367 */ CloudwalkResult<String> finishResult = this.acsFileStorageService.filePartFinish(finishParam);
|
||||
/* */
|
||||
/* 369 */ LOGGER.info("结束完成,uploadId = {}, filePath = {}, finishFilePath = {}", new Object[] { filePartResult
|
||||
/* 370 */ .getUploadId(), filePartResult.getFilePath(), finishResult.getData() });
|
||||
/* */
|
||||
/* 372 */ if (finishResult.isSuccess()) {
|
||||
/* 373 */ return ((String)finishResult.getData()).split("=")[1];
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* */
|
||||
/* 379 */ throw new ServiceException(result.getCode(), result.getMessage());
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ protected ThreadPoolTaskExecutor getExportExecutor() {
|
||||
/* 408 */ ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor();
|
||||
/* 409 */ executor.setCorePoolSize(5);
|
||||
/* 410 */ executor.setMaxPoolSize(30);
|
||||
/* 411 */ executor.setThreadNamePrefix("Export-Pool-Executor");
|
||||
/* 412 */ executor.setQueueCapacity(25);
|
||||
/* 413 */ executor.initialize();
|
||||
/* 414 */ executor.setRejectedExecutionHandler(new ThreadPoolExecutor.AbortPolicy());
|
||||
/* 415 */ return executor;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ private static class ExportRecordContext
|
||||
/* */ {
|
||||
/* */ private String fileId;
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ private String filePath;
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ private String fileName;
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ private Long fileSize;
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ private int taskStatus;
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ private ExportRecordContext() {}
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public int getTaskStatus() {
|
||||
/* 451 */ return this.taskStatus;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setTaskStatus(int taskStatus) {
|
||||
/* 455 */ this.taskStatus = taskStatus;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getFileId() {
|
||||
/* 459 */ return this.fileId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setFileId(String fileId) {
|
||||
/* 463 */ this.fileId = fileId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getFilePath() {
|
||||
/* 467 */ return this.filePath;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setFilePath(String filePath) {
|
||||
/* 471 */ this.filePath = filePath;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getFileName() {
|
||||
/* 475 */ return this.fileName;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setFileName(String fileName) {
|
||||
/* 479 */ this.fileName = fileName;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public Long getFileSize() {
|
||||
/* 483 */ return this.fileSize;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setFileSize(Long fileSize) {
|
||||
/* 487 */ this.fileSize = fileSize;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */ public String toString() {
|
||||
/* 492 */ 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) {
|
||||
/* 531 */ this.taskStatus = taskStatus;
|
||||
/* 532 */ return this;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public Builder withFileId(String fileId) {
|
||||
/* 536 */ this.fileId = fileId;
|
||||
/* 537 */ return this;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */ public Builder withFilePath(String filePath) {
|
||||
/* 542 */ this.filePath = filePath;
|
||||
/* 543 */ return this;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */ public Builder withFileName(String fileName) {
|
||||
/* 548 */ this.fileName = fileName;
|
||||
/* 549 */ return this;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public Builder withFileSize(Long fileSize) {
|
||||
/* 553 */ this.fileSize = fileSize;
|
||||
/* 554 */ return this;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public AcsAbstractExportAsyncService.ExportRecordContext build() {
|
||||
/* 558 */ AcsAbstractExportAsyncService.ExportRecordContext context = new AcsAbstractExportAsyncService.ExportRecordContext();
|
||||
/* 559 */ context.setFileId(this.fileId);
|
||||
/* 560 */ context.setFileSize(this.fileSize);
|
||||
/* 561 */ context.setFilePath(this.filePath);
|
||||
/* 562 */ context.setFileName(this.fileName);
|
||||
/* 563 */ context.setTaskStatus(this.taskStatus);
|
||||
/* 564 */ return context; } } } private static class Builder { private String fileId; private String filePath; public AcsAbstractExportAsyncService.ExportRecordContext build() { AcsAbstractExportAsyncService.ExportRecordContext context = new AcsAbstractExportAsyncService.ExportRecordContext(); context.setFileId(this.fileId); context.setFileSize(this.fileSize); context.setFilePath(this.filePath); context.setFileName(this.fileName); context.setTaskStatus(this.taskStatus); return context; }
|
||||
/* */ 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;
|
||||
/* */ } }
|
||||
/* */ private <T> void createRowContent(HSSFSheet sheet, List<Field> fields, HSSFWorkbook workbook, List<T> list, int startNo, int endNo, int rowIndex) throws Exception {
|
||||
/* 577 */ String value = null;
|
||||
/* */
|
||||
/* */
|
||||
/* 580 */ int hwPicType = 0;
|
||||
/* 581 */ byte[] picByte = null;
|
||||
/* 582 */ int listIndex = 0;
|
||||
/* 583 */ for (int i = startNo; i < endNo; i++) {
|
||||
/* 584 */ HSSFRow row = sheet.createRow(i + 1);
|
||||
/* */
|
||||
/* 586 */ T vo = list.get(listIndex);
|
||||
/* 587 */ listIndex++;
|
||||
/* 588 */ for (int j = 0; j < fields.size(); j++) {
|
||||
/* */
|
||||
/* 590 */ Field field = fields.get(j);
|
||||
/* */
|
||||
/* 592 */ field.setAccessible(true);
|
||||
/* 593 */ ExcelAttribute attr = field.<ExcelAttribute>getAnnotation(ExcelAttribute.class);
|
||||
/* 594 */ int col = j;
|
||||
/* */
|
||||
/* 596 */ if (StringUtils.isNotBlank(attr.column())) {
|
||||
/* 597 */ col = ExcelUtil.getExcelCol(attr.column());
|
||||
/* */ }
|
||||
/* */
|
||||
/* 600 */ if (attr.isExport()) {
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* 604 */ HSSFCell cell = row.createCell(col);
|
||||
/* */
|
||||
/* 606 */ Class<?> classType = field.getType();
|
||||
/* 607 */ if (field.get(vo) != null) {
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* 611 */ value = null;
|
||||
/* 612 */ if (classType.isAssignableFrom(Date.class)) {
|
||||
/* 613 */ value = DateUtils.formatDate((Date)field.get(vo), "yyyy-MM-dd HH:mm:ss");
|
||||
/* */ }
|
||||
/* 615 */ if (classType.isAssignableFrom(Long.class) && attr.isDate()) {
|
||||
/* 616 */ value = DateUtils.formatDate(new Date(((Long)field.get(vo)).longValue()), "yyyy-MM-dd HH:mm:ss");
|
||||
/* */ }
|
||||
/* */
|
||||
/* 619 */ if (attr.isPic()) {
|
||||
/* */ try {
|
||||
/* 621 */ if (field.getType().equals(String.class)) {
|
||||
/* 622 */ picByte = ExcelUtil.getBytesByUrl((String)field.get(vo));
|
||||
/* */ }
|
||||
/* 624 */ picByte = (byte[])field.get(vo);
|
||||
/* 625 */ } catch (Exception exception) {}
|
||||
/* */
|
||||
/* */
|
||||
/* 628 */ hwPicType = 5;
|
||||
/* 629 */ HSSFPatriarch patriarch = sheet.createDrawingPatriarch();
|
||||
/* */
|
||||
/* 631 */ HSSFClientAnchor anchor = new HSSFClientAnchor(0, 0, 1020, 250, (short)col, row.getRowNum(), (short)col, row.getRowNum());
|
||||
/* 632 */ patriarch.createPicture(anchor, workbook.addPicture(picByte, hwPicType));
|
||||
/* 633 */ row.setHeight((short)1000);
|
||||
/* */ } else {
|
||||
/* 635 */ cell.setCellValue((field.get(vo) == null) ? "" : ((value == null) ? String.valueOf(field.get(vo)) : value));
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public CloudwalkResult<Long> exportCount() throws ServiceException {
|
||||
/* */ try {
|
||||
/* 648 */ return CloudwalkResult.success(Long.valueOf(this.EXPORT_MAX_RECORD));
|
||||
/* 649 */ } catch (Exception e) {
|
||||
/* 650 */ this.logger.error("获取最大导出记录失败", e);
|
||||
/* 651 */ throw new ServiceException(e);
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ protected abstract CloudwalkPageAble<R> queryPage(T paramT, CloudwalkPageInfo paramCloudwalkPageInfo, CloudwalkCallContext paramCloudwalkCallContext) throws ServiceException;
|
||||
/* */
|
||||
/* */ protected abstract CloudwalkResult<String> createLocalFile(T paramT, String paramString, CloudwalkCallContext paramCloudwalkCallContext) throws ServiceException;
|
||||
/* */
|
||||
/* */ protected abstract String getDefaultFileName();
|
||||
/* */
|
||||
/* */ protected abstract String getDefaultFileTitleName();
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-service-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\export\AcsAbstractExportAsyncService.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+74
@@ -0,0 +1,74 @@
|
||||
/* */ package cn.cloudwalk.elevator.export;
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public enum AcsFileStatusEnum
|
||||
/* */ {
|
||||
/* 16 */ FINISH(Integer.valueOf(0), "已完成"),
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* 20 */ PRODUCING(Integer.valueOf(1), "生成中"),
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* 25 */ DELETED(Integer.valueOf(2), "已删除"),
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* 30 */ CANCELED(Integer.valueOf(3), "已取消"),
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* 34 */ EXPIRED(Integer.valueOf(4), "已过期"),
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* 39 */ FAIL(Integer.valueOf(5), "失败");
|
||||
/* */
|
||||
/* */
|
||||
/* */ private Integer code;
|
||||
/* */
|
||||
/* */ private String message;
|
||||
/* */
|
||||
/* */
|
||||
/* */ AcsFileStatusEnum(Integer code, String message) {
|
||||
/* 48 */ this.code = code;
|
||||
/* 49 */ this.message = message;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public static AcsFileStatusEnum getEnumByCode(Integer code) {
|
||||
/* 53 */ for (AcsFileStatusEnum item : values()) {
|
||||
/* 54 */ if (code.equals(item.getCode())) {
|
||||
/* 55 */ return item;
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* 58 */ return null;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public Integer getCode() {
|
||||
/* 62 */ return this.code;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getMessage() {
|
||||
/* 66 */ return this.message;
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-service-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\export\AcsFileStatusEnum.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+30
@@ -0,0 +1,30 @@
|
||||
package cn.cloudwalk.elevator.export;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Target({ElementType.FIELD})
|
||||
public @interface ExcelAttribute {
|
||||
String name();
|
||||
|
||||
String column() default "";
|
||||
|
||||
String[] combo() default {};
|
||||
|
||||
boolean isExport() default true;
|
||||
|
||||
boolean isMark() default false;
|
||||
|
||||
boolean isDate() default false;
|
||||
|
||||
boolean isPic() default false;
|
||||
}
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-service-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\export\ExcelAttribute.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
package cn.cloudwalk.elevator.export;
|
||||
|
||||
import cn.cloudwalk.cloud.exception.ServiceException;
|
||||
import org.apache.poi.hssf.usermodel.HSSFSheet;
|
||||
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
|
||||
|
||||
public interface ExcelCallback {
|
||||
void call(HSSFWorkbook paramHSSFWorkbook, HSSFSheet paramHSSFSheet) throws ServiceException;
|
||||
}
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-service-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\export\ExcelCallback.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+72
@@ -0,0 +1,72 @@
|
||||
/* */ package cn.cloudwalk.elevator.export.impl;
|
||||
/* */
|
||||
/* */ 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.device.dto.AcsElevatorDeviceResultDTO;
|
||||
/* */ import cn.cloudwalk.elevator.device.param.AcsElevatorDeviceQueryParam;
|
||||
/* */ import cn.cloudwalk.elevator.device.service.AcsElevatorDeviceService;
|
||||
/* */ import cn.cloudwalk.elevator.export.AcsAbstractExportAsyncService;
|
||||
/* */ import cn.cloudwalk.elevator.export.result.ElevatorDeviceRecordExcelResult;
|
||||
/* */ import cn.cloudwalk.elevator.util.CollectionUtils;
|
||||
/* */ import cn.cloudwalk.elevator.util.DateUtils;
|
||||
/* */ import java.util.Date;
|
||||
/* */ import java.util.List;
|
||||
/* */ import java.util.Objects;
|
||||
/* */ import javax.annotation.Resource;
|
||||
/* */ import org.springframework.stereotype.Service;
|
||||
/* */
|
||||
/* */ @Service
|
||||
/* */ public class ElevatorDeviceExportService
|
||||
/* */ extends AcsAbstractExportAsyncService<AcsElevatorDeviceQueryParam, ElevatorDeviceRecordExcelResult>
|
||||
/* */ {
|
||||
/* */ @Resource
|
||||
/* */ private AcsElevatorDeviceService elevatorDeviceService;
|
||||
/* */
|
||||
/* */ protected CloudwalkPageAble<ElevatorDeviceRecordExcelResult> queryPage(AcsElevatorDeviceQueryParam param, CloudwalkPageInfo pageInfo, CloudwalkCallContext context) throws ServiceException {
|
||||
/* 30 */ param.setCurrentPage(pageInfo.getCurrentPage());
|
||||
/* 31 */ param.setRowsOfPage(pageInfo.getPageSize());
|
||||
/* 32 */ CloudwalkResult<CloudwalkPageAble<AcsElevatorDeviceResultDTO>> result = this.elevatorDeviceService.get(param, context);
|
||||
/* 33 */ if (result.isSuccess()) {
|
||||
/* 34 */ CloudwalkPageAble<AcsElevatorDeviceResultDTO> data = (CloudwalkPageAble<AcsElevatorDeviceResultDTO>)result.getData();
|
||||
/* 35 */ if (CollectionUtils.isNotEmpty(data.getDatas())) {
|
||||
/* 36 */ List<ElevatorDeviceRecordExcelResult> targetList = BeanCopyUtils.copy(data.getDatas(), ElevatorDeviceRecordExcelResult.class);
|
||||
/* 37 */ for (ElevatorDeviceRecordExcelResult item : targetList) {
|
||||
/* 38 */ if (Objects.equals(item.getStatus(), Integer.valueOf(1))) {
|
||||
/* 39 */ item.setDeviceOnlineStatus("禁用"); continue;
|
||||
/* 40 */ } if (Objects.equals(item.getOnlineStatus(), Integer.valueOf(2))) {
|
||||
/* 41 */ item.setDeviceOnlineStatus("在线"); continue;
|
||||
/* 42 */ } if (Objects.equals(item.getOnlineStatus(), Integer.valueOf(3))) {
|
||||
/* 43 */ item.setDeviceOnlineStatus("离线");
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* 46 */ return new CloudwalkPageAble(targetList, pageInfo, ((CloudwalkPageAble)result.getData()).getTotalRows());
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* 49 */ throw new ServiceException(result.getCode(), result.getMessage());
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */ protected CloudwalkResult<String> createLocalFile(AcsElevatorDeviceQueryParam param, String fileName, CloudwalkCallContext context) throws ServiceException {
|
||||
/* 54 */ return null;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */ protected String getDefaultFileName() {
|
||||
/* 59 */ return "派梯设备导出" + DateUtils.formatDate(new Date(), "yyyyMMddHHmmss");
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */ protected String getDefaultFileTitleName() {
|
||||
/* 64 */ return "派梯设备";
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-service-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\export\impl\ElevatorDeviceExportService.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+76
File diff suppressed because one or more lines are too long
+691
@@ -0,0 +1,691 @@
|
||||
/* */ package cn.cloudwalk.elevator.export.utils;
|
||||
/* */
|
||||
/* */ import cn.cloudwalk.elevator.export.ExcelAttribute;
|
||||
/* */ import cn.cloudwalk.elevator.export.ExcelCallback;
|
||||
/* */ import cn.cloudwalk.elevator.util.DateUtils;
|
||||
/* */ import java.io.BufferedInputStream;
|
||||
/* */ import java.io.ByteArrayOutputStream;
|
||||
/* */ import java.io.IOException;
|
||||
/* */ import java.io.InputStream;
|
||||
/* */ import java.io.OutputStream;
|
||||
/* */ import java.lang.reflect.Field;
|
||||
/* */ import java.lang.reflect.InvocationHandler;
|
||||
/* */ import java.lang.reflect.Proxy;
|
||||
/* */ import java.math.BigDecimal;
|
||||
/* */ import java.net.HttpURLConnection;
|
||||
/* */ import java.net.URL;
|
||||
/* */ import java.util.ArrayList;
|
||||
/* */ import java.util.Date;
|
||||
/* */ import java.util.HashMap;
|
||||
/* */ import java.util.Iterator;
|
||||
/* */ import java.util.List;
|
||||
/* */ import java.util.Map;
|
||||
/* */ import org.apache.commons.io.IOUtils;
|
||||
/* */ import org.apache.commons.lang3.StringUtils;
|
||||
/* */ import org.apache.poi.hssf.usermodel.DVConstraint;
|
||||
/* */ import org.apache.poi.hssf.usermodel.HSSFCell;
|
||||
/* */ import org.apache.poi.hssf.usermodel.HSSFCellStyle;
|
||||
/* */ import org.apache.poi.hssf.usermodel.HSSFClientAnchor;
|
||||
/* */ import org.apache.poi.hssf.usermodel.HSSFDataValidation;
|
||||
/* */ import org.apache.poi.hssf.usermodel.HSSFFont;
|
||||
/* */ import org.apache.poi.hssf.usermodel.HSSFPatriarch;
|
||||
/* */ import org.apache.poi.hssf.usermodel.HSSFRow;
|
||||
/* */ import org.apache.poi.hssf.usermodel.HSSFSheet;
|
||||
/* */ import org.apache.poi.hssf.usermodel.HSSFWorkbook;
|
||||
/* */ import org.apache.poi.ss.usermodel.Cell;
|
||||
/* */ import org.apache.poi.ss.usermodel.DataValidation;
|
||||
/* */ import org.apache.poi.ss.usermodel.DataValidationConstraint;
|
||||
/* */ import org.apache.poi.ss.usermodel.Row;
|
||||
/* */ import org.apache.poi.ss.usermodel.Sheet;
|
||||
/* */ import org.apache.poi.ss.usermodel.Workbook;
|
||||
/* */ import org.apache.poi.ss.usermodel.WorkbookFactory;
|
||||
/* */ import org.apache.poi.ss.util.CellRangeAddressList;
|
||||
/* */ import org.slf4j.Logger;
|
||||
/* */ import org.slf4j.LoggerFactory;
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public class ExcelUtil
|
||||
/* */ {
|
||||
/* */ public static final String FONT_CODE = "1";
|
||||
/* */ private static final int BUF_SIZE = 8096;
|
||||
/* 57 */ private static Logger logger = LoggerFactory.getLogger(ExcelUtil.class);
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* 61 */ private static String EXPORT_KEY = "isExport";
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* 66 */ private static String ANNOTATION_FIELD = "memberValues";
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static <T> List<T> getExcelToList(String sheetName, Integer startNo, InputStream input, Class<T> clazz) throws Exception {
|
||||
/* 74 */ List<T> list = new ArrayList<>();
|
||||
/* 75 */ try (Workbook book = WorkbookFactory.create(input)) {
|
||||
/* */
|
||||
/* 77 */ Sheet sheet = null;
|
||||
/* */
|
||||
/* */
|
||||
/* 80 */ if (StringUtils.isNotBlank(sheetName)) {
|
||||
/* 81 */ sheet = book.getSheet(sheetName);
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* 85 */ if (sheet == null) {
|
||||
/* 86 */ sheet = book.getSheetAt(0);
|
||||
/* */ }
|
||||
/* */
|
||||
/* 89 */ int rows = sheet.getLastRowNum();
|
||||
/* */
|
||||
/* */
|
||||
/* 92 */ int startLine = 1;
|
||||
/* 93 */ if (null != startNo && startNo.intValue() >= 0) {
|
||||
/* 94 */ startLine = startNo.intValue();
|
||||
/* */ }
|
||||
/* */
|
||||
/* 97 */ if (rows > 0) {
|
||||
/* */
|
||||
/* 99 */ Field[] allFields = clazz.getDeclaredFields();
|
||||
/* */
|
||||
/* 101 */ Map<String, Field> fieldsMap = getStringFieldMap(allFields);
|
||||
/* 102 */ Row firstRow = sheet.getRow(sheet.getFirstRowNum() + startLine - 1);
|
||||
/* */
|
||||
/* 104 */ for (int i = sheet.getFirstRowNum() + startLine; i <= rows; i++) {
|
||||
/* */
|
||||
/* 106 */ Row row = sheet.getRow(i);
|
||||
/* 107 */ if (row != null) {
|
||||
/* */
|
||||
/* */
|
||||
/* 110 */ Iterator<Cell> cells = row.cellIterator();
|
||||
/* 111 */ T entity = null;
|
||||
/* 112 */ boolean isNull = true;
|
||||
/* 113 */ while (cells.hasNext()) {
|
||||
/* 114 */ Cell cell = cells.next();
|
||||
/* 115 */ String fieldName = firstRow.getCell(cell.getColumnIndex()).getStringCellValue();
|
||||
/* 116 */ if (!fieldsMap.containsKey(fieldName)) {
|
||||
/* */ continue;
|
||||
/* */ }
|
||||
/* */
|
||||
/* 120 */ cell.setCellType(1);
|
||||
/* 121 */ String c = cell.getStringCellValue();
|
||||
/* 122 */ if (StringUtils.isNotEmpty(c)) {
|
||||
/* 123 */ isNull = false;
|
||||
/* */ }
|
||||
/* */
|
||||
/* 126 */ entity = (entity == null) ? clazz.newInstance() : entity;
|
||||
/* */
|
||||
/* 128 */ Field field = fieldsMap.get(fieldName);
|
||||
/* */
|
||||
/* */
|
||||
/* 131 */ Class<?> fieldType = field.getType();
|
||||
/* 132 */ if (fieldType == null) {
|
||||
/* */ continue;
|
||||
/* */ }
|
||||
/* 135 */ setValue(entity, c, field, fieldType);
|
||||
/* */ }
|
||||
/* 137 */ if (entity != null && !isNull)
|
||||
/* 138 */ list.add(entity);
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* 142 */ } catch (Exception e) {
|
||||
/* 143 */ throw new Exception("将excel表单数据源的数据导入到list异常!", e);
|
||||
/* */ }
|
||||
/* 145 */ return list;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ private static <T> void setValue(T entity, String c, Field field, Class<?> fieldType) throws IllegalAccessException {
|
||||
/* 149 */ if (String.class == fieldType) {
|
||||
/* 150 */ field.set(entity, String.valueOf(c));
|
||||
/* 151 */ } else if (BigDecimal.class == fieldType) {
|
||||
/* 152 */ field.set(entity, BigDecimal.valueOf(Double.valueOf(c).doubleValue()));
|
||||
/* 153 */ } else if (int.class == fieldType || Integer.class == fieldType) {
|
||||
/* 154 */ field.set(entity, Integer.valueOf(Integer.parseInt(c)));
|
||||
/* 155 */ } else if (long.class == fieldType || Long.class == fieldType) {
|
||||
/* 156 */ field.set(entity, Long.valueOf(c));
|
||||
/* 157 */ } else if (float.class == fieldType || Float.class == fieldType) {
|
||||
/* 158 */ field.set(entity, Float.valueOf(c));
|
||||
/* 159 */ } else if (short.class == fieldType || Short.class == fieldType) {
|
||||
/* 160 */ field.set(entity, Short.valueOf(c));
|
||||
/* 161 */ } else if (double.class == fieldType || Double.class == fieldType) {
|
||||
/* 162 */ field.set(entity, Double.valueOf(c));
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ private static Map<String, Field> getStringFieldMap(Field[] allFields) {
|
||||
/* 167 */ Map<String, Field> fieldsMap = new HashMap<>(allFields.length);
|
||||
/* 168 */ for (Field field : allFields) {
|
||||
/* */
|
||||
/* 170 */ if (field.isAnnotationPresent((Class)ExcelAttribute.class)) {
|
||||
/* 171 */ ExcelAttribute attribute = field.<ExcelAttribute>getAnnotation(ExcelAttribute.class);
|
||||
/* */
|
||||
/* 173 */ if (!StringUtils.isBlank(attribute.name())) {
|
||||
/* */
|
||||
/* 175 */ field.setAccessible(true);
|
||||
/* 176 */ fieldsMap.put(attribute.name(), field);
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* 180 */ return fieldsMap;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static <T> boolean matchExcel(String sheetName, InputStream input, Class<T> clazz) throws Exception {
|
||||
/* */ try {
|
||||
/* 188 */ HSSFWorkbook book = new HSSFWorkbook(input);
|
||||
/* 189 */ HSSFSheet sheet = null;
|
||||
/* */
|
||||
/* 191 */ if (StringUtils.isNotBlank(sheetName)) {
|
||||
/* 192 */ sheet = book.getSheet(sheetName);
|
||||
/* */ }
|
||||
/* */
|
||||
/* 195 */ if (sheet == null) {
|
||||
/* 196 */ sheet = book.getSheetAt(0);
|
||||
/* */ }
|
||||
/* */
|
||||
/* 199 */ int rows = sheet.getLastRowNum();
|
||||
/* */
|
||||
/* 201 */ if (rows > 0) {
|
||||
/* */
|
||||
/* 203 */ Field[] allFields = clazz.getDeclaredFields();
|
||||
/* */
|
||||
/* 205 */ Map<String, Field> fieldsMap = getStringFieldMap(allFields);
|
||||
/* */
|
||||
/* 207 */ HSSFRow firstRow = sheet.getRow(sheet.getFirstRowNum());
|
||||
/* 208 */ Iterator<Cell> cells = firstRow.cellIterator();
|
||||
/* 209 */ while (cells.hasNext()) {
|
||||
/* 210 */ Cell cell = cells.next();
|
||||
/* 211 */ String fieldName = firstRow.getCell(cell.getColumnIndex()).getStringCellValue();
|
||||
/* 212 */ if (!fieldsMap.containsKey(fieldName)) {
|
||||
/* 213 */ return false;
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* */ } else {
|
||||
/* 217 */ return false;
|
||||
/* */ }
|
||||
/* 219 */ } catch (Exception e) {
|
||||
/* 220 */ throw new Exception("将excel表单数据源的数据导入到list异常!", e);
|
||||
/* */ }
|
||||
/* 222 */ return true;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static <T> boolean getListToExcel(List<T> list, List<T> listHead, String sheetName, OutputStream output, Class<T> clazz) throws Exception {
|
||||
/* 235 */ try (HSSFWorkbook workbook = new HSSFWorkbook()) {
|
||||
/* */
|
||||
/* */
|
||||
/* 238 */ Field[] allFields = clazz.getDeclaredFields();
|
||||
/* 239 */ List<Field> fields = new ArrayList<>();
|
||||
/* */
|
||||
/* 241 */ for (Field field : allFields) {
|
||||
/* 242 */ if (field.isAnnotationPresent((Class)ExcelAttribute.class)) {
|
||||
/* 243 */ fields.add(field);
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* */
|
||||
/* 247 */ HSSFSheet sheet = workbook.createSheet();
|
||||
/* */
|
||||
/* 249 */ workbook.setSheetName(0, sheetName);
|
||||
/* 250 */ createRowContent(sheet, fields, workbook, listHead, 0, listHead.size(), 0);
|
||||
/* */
|
||||
/* 252 */ createRowHeard(sheet, fields, workbook, 1);
|
||||
/* */
|
||||
/* */
|
||||
/* 255 */ createRowContent(sheet, fields, workbook, list, 0, list.size(), 2);
|
||||
/* 256 */ output.flush();
|
||||
/* 257 */ workbook.write(output);
|
||||
/* 258 */ output.close();
|
||||
/* 259 */ return Boolean.TRUE.booleanValue();
|
||||
/* 260 */ } catch (Exception e) {
|
||||
/* 261 */ throw new Exception("将list数据源的数据导入到excel表单异常!", e);
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static <T> boolean getListToExcel(List<T> list, String sheetName, OutputStream output, Class<T> clazz) throws Exception {
|
||||
/* 274 */ try (HSSFWorkbook workbook = new HSSFWorkbook()) {
|
||||
/* */
|
||||
/* 276 */ int sheetSize = 65536;
|
||||
/* */
|
||||
/* 278 */ Field[] allFields = clazz.getDeclaredFields();
|
||||
/* 279 */ List<Field> fields = new ArrayList<>();
|
||||
/* */
|
||||
/* 281 */ for (Field field : allFields) {
|
||||
/* 282 */ ExcelAttribute attr = field.<ExcelAttribute>getAnnotation(ExcelAttribute.class);
|
||||
/* 283 */ if (attr != null && attr.isExport())
|
||||
/* */ {
|
||||
/* */
|
||||
/* 286 */ fields.add(field);
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* 289 */ int listSize = 0;
|
||||
/* 290 */ if (list != null && list.size() > 0) {
|
||||
/* 291 */ listSize = list.size();
|
||||
/* */ }
|
||||
/* 293 */ int sheetNo = listSize / sheetSize;
|
||||
/* 294 */ for (int index = 0; index <= sheetNo; index++) {
|
||||
/* */
|
||||
/* 296 */ HSSFSheet sheet = workbook.createSheet();
|
||||
/* */
|
||||
/* */
|
||||
/* 299 */ workbook.setSheetName(index, sheetName + index);
|
||||
/* */
|
||||
/* 301 */ createRowHeard(sheet, fields, workbook, 2);
|
||||
/* */
|
||||
/* 303 */ int startNo = index * sheetSize;
|
||||
/* 304 */ int endNo = Math.min(startNo + sheetSize, listSize);
|
||||
/* */
|
||||
/* 306 */ createRowContent(sheet, fields, workbook, list, startNo, endNo, 3);
|
||||
/* */ }
|
||||
/* 308 */ output.flush();
|
||||
/* 309 */ workbook.write(output);
|
||||
/* 310 */ output.close();
|
||||
/* 311 */ return Boolean.TRUE.booleanValue();
|
||||
/* 312 */ } catch (Exception e) {
|
||||
/* 313 */ throw new Exception("将list数据源的数据导入到excel表单异常!", e);
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static <T> boolean getListToExcel(List<T> list, String sheetName, OutputStream output, Class<T> clazz, Integer startRow, ExcelCallback callback) throws Exception {
|
||||
/* 328 */ try (HSSFWorkbook workbook = new HSSFWorkbook()) {
|
||||
/* */
|
||||
/* 330 */ int sheetSize = 65536;
|
||||
/* */
|
||||
/* 332 */ Field[] allFields = clazz.getDeclaredFields();
|
||||
/* 333 */ List<Field> fields = new ArrayList<>();
|
||||
/* */
|
||||
/* 335 */ for (Field field : allFields) {
|
||||
/* 336 */ ExcelAttribute attr = field.<ExcelAttribute>getAnnotation(ExcelAttribute.class);
|
||||
/* 337 */ if (attr != null && attr.isExport())
|
||||
/* */ {
|
||||
/* */
|
||||
/* 340 */ fields.add(field);
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* 343 */ int listSize = 0;
|
||||
/* 344 */ if (list != null && list.size() > 0) {
|
||||
/* 345 */ listSize = list.size();
|
||||
/* */ }
|
||||
/* 347 */ int sheetNo = listSize / sheetSize;
|
||||
/* 348 */ for (int index = 0; index <= sheetNo; index++) {
|
||||
/* */
|
||||
/* 350 */ HSSFSheet sheet = workbook.createSheet();
|
||||
/* */
|
||||
/* */
|
||||
/* 353 */ workbook.setSheetName(index, sheetName + index);
|
||||
/* */
|
||||
/* 355 */ createRowHeard(sheet, fields, workbook, startRow.intValue());
|
||||
/* */
|
||||
/* 357 */ int startNo = index * sheetSize;
|
||||
/* 358 */ int endNo = Math.min(startNo + sheetSize, listSize);
|
||||
/* */
|
||||
/* 360 */ createRowContent(sheet, fields, workbook, list, startNo, endNo, startRow.intValue() + 1);
|
||||
/* 361 */ if (null != callback) {
|
||||
/* 362 */ callback.call(workbook, sheet);
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* 365 */ output.flush();
|
||||
/* 366 */ workbook.write(output);
|
||||
/* 367 */ output.close();
|
||||
/* 368 */ return Boolean.TRUE.booleanValue();
|
||||
/* 369 */ } catch (Exception e) {
|
||||
/* 370 */ throw new Exception("将list数据源的数据导入到excel表单异常!", e);
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ private static <T> void createRowContent(HSSFSheet sheet, List<Field> fields, HSSFWorkbook workbook, List<T> list, int startNo, int endNo, int rowIndex) throws Exception {
|
||||
/* 382 */ String value = null;
|
||||
/* */
|
||||
/* */
|
||||
/* 385 */ int hwPicType = 0;
|
||||
/* 386 */ byte[] picByte = null;
|
||||
/* 387 */ for (int i = startNo; i < endNo; i++) {
|
||||
/* 388 */ HSSFRow row = sheet.createRow(i - startNo + rowIndex);
|
||||
/* */
|
||||
/* 390 */ T vo = list.get(i);
|
||||
/* 391 */ for (int j = 0; j < fields.size(); j++) {
|
||||
/* */
|
||||
/* 393 */ Field field = fields.get(j);
|
||||
/* */
|
||||
/* 395 */ field.setAccessible(true);
|
||||
/* 396 */ ExcelAttribute attr = field.<ExcelAttribute>getAnnotation(ExcelAttribute.class);
|
||||
/* 397 */ int col = j;
|
||||
/* */
|
||||
/* 399 */ if (StringUtils.isNotBlank(attr.column())) {
|
||||
/* 400 */ col = getExcelCol(attr.column());
|
||||
/* */ }
|
||||
/* */
|
||||
/* 403 */ if (attr.isExport()) {
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* 407 */ HSSFCell cell = row.createCell(col);
|
||||
/* */
|
||||
/* 409 */ Class<?> classType = field.getType();
|
||||
/* 410 */ if (field.get(vo) != null) {
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* 414 */ value = null;
|
||||
/* 415 */ if (classType.isAssignableFrom(Date.class)) {
|
||||
/* 416 */ value = DateUtils.formatDate((Date)field.get(vo), "yyyy-MM-dd HH:mm:ss");
|
||||
/* */ }
|
||||
/* 418 */ if (classType.isAssignableFrom(Long.class) && attr.isDate()) {
|
||||
/* 419 */ value = DateUtils.formatDate(new Date(((Long)field.get(vo)).longValue()), "yyyy-MM-dd HH:mm:ss");
|
||||
/* */ }
|
||||
/* */
|
||||
/* 422 */ if (attr.isPic()) {
|
||||
/* */ try {
|
||||
/* 424 */ if (field.getType().equals(String.class)) {
|
||||
/* 425 */ picByte = getBytesByUrl((String)field.get(vo));
|
||||
/* */ }
|
||||
/* 427 */ picByte = (byte[])field.get(vo);
|
||||
/* 428 */ } catch (Exception exception) {}
|
||||
/* */
|
||||
/* */
|
||||
/* 431 */ hwPicType = 5;
|
||||
/* 432 */ HSSFPatriarch patriarch = sheet.createDrawingPatriarch();
|
||||
/* */
|
||||
/* 434 */ HSSFClientAnchor anchor = new HSSFClientAnchor(0, 0, 1020, 250, (short)col, row.getRowNum(), (short)col, row.getRowNum());
|
||||
/* 435 */ patriarch.createPicture(anchor, workbook.addPicture(picByte, hwPicType));
|
||||
/* 436 */ row.setHeight((short)1000);
|
||||
/* */ } else {
|
||||
/* 438 */ cell.setCellValue((field.get(vo) == null) ? "" : ((value == null) ? String.valueOf(field.get(vo)) : value));
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static void createRowHeard(HSSFSheet sheet, List<Field> fields, HSSFWorkbook workbook, int index) {
|
||||
/* 450 */ HSSFRow row = sheet.createRow(index);
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* 457 */ for (int i = 0; i < fields.size(); i++) {
|
||||
/* 458 */ int col = i;
|
||||
/* 459 */ Field field = fields.get(i);
|
||||
/* 460 */ ExcelAttribute attr = field.<ExcelAttribute>getAnnotation(ExcelAttribute.class);
|
||||
/* */
|
||||
/* 462 */ if (StringUtils.isNotBlank(attr.column())) {
|
||||
/* 463 */ col = getExcelCol(attr.column());
|
||||
/* */ }
|
||||
/* */
|
||||
/* 466 */ HSSFCell cell = row.createCell(col);
|
||||
/* */
|
||||
/* 468 */ HSSFCellStyle cellStyle = createCellStyle(workbook, attr.isMark() ? "2" : "1");
|
||||
/* 469 */ cell.setCellStyle(cellStyle);
|
||||
/* */
|
||||
/* 471 */ sheet.setColumnWidth(i, (int)((((attr.name().getBytes()).length <= 4) ? 6 : (attr.name().getBytes()).length) * 1.5D * 256.0D));
|
||||
/* */
|
||||
/* */
|
||||
/* 474 */ cell.setCellType(1);
|
||||
/* */
|
||||
/* 476 */ cell.setCellValue(attr.name());
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ private static HSSFCellStyle createCellStyle(HSSFWorkbook workbook, String type) {
|
||||
/* 484 */ HSSFFont font = workbook.createFont();
|
||||
/* 485 */ HSSFCellStyle cellStyle = workbook.createCellStyle();
|
||||
/* */
|
||||
/* 487 */ font.setFontName("Arail narrow");
|
||||
/* */
|
||||
/* 489 */ font.setBoldweight((short)700);
|
||||
/* 490 */ if ("1".equals(type)) {
|
||||
/* */
|
||||
/* 492 */ font.setColor('翿');
|
||||
/* 493 */ cellStyle.setFont(font);
|
||||
/* */ } else {
|
||||
/* */
|
||||
/* 496 */ font.setColor((short)10);
|
||||
/* 497 */ cellStyle.setFont(font);
|
||||
/* */ }
|
||||
/* 499 */ return cellStyle;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static int getExcelCol(String col) {
|
||||
/* 507 */ col = col.toUpperCase();
|
||||
/* */
|
||||
/* 509 */ int count = -1;
|
||||
/* 510 */ char[] cs = col.toCharArray();
|
||||
/* 511 */ for (int i = 0; i < cs.length; i++) {
|
||||
/* 512 */ count = (int)(count + (cs[i] - 64) * Math.pow(26.0D, cs.length - 1.0D - i));
|
||||
/* */ }
|
||||
/* 514 */ return count;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static HSSFSheet setHSSFPrompt(HSSFSheet sheet, String promptTitle, String promptContent, int firstRow, int endRow, int firstCol, int endCol) {
|
||||
/* 533 */ DVConstraint constraint = DVConstraint.createCustomFormulaConstraint("DD1");
|
||||
/* */
|
||||
/* 535 */ CellRangeAddressList regions = new CellRangeAddressList(firstRow, endRow, firstCol, endCol);
|
||||
/* */
|
||||
/* 537 */ HSSFDataValidation dataValidationView = new HSSFDataValidation(regions, (DataValidationConstraint)constraint);
|
||||
/* 538 */ dataValidationView.createPromptBox(promptTitle, promptContent);
|
||||
/* 539 */ sheet.addValidationData((DataValidation)dataValidationView);
|
||||
/* 540 */ return sheet;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static HSSFSheet setHSSFValidation(HSSFSheet sheet, String[] textlist, int firstRow, int endRow, int firstCol, int endCol) {
|
||||
/* 557 */ DVConstraint constraint = DVConstraint.createExplicitListConstraint(textlist);
|
||||
/* */
|
||||
/* 559 */ CellRangeAddressList regions = new CellRangeAddressList(firstRow, endRow, firstCol, endCol);
|
||||
/* */
|
||||
/* 561 */ HSSFDataValidation dataValidationList = new HSSFDataValidation(regions, (DataValidationConstraint)constraint);
|
||||
/* 562 */ sheet.addValidationData((DataValidation)dataValidationList);
|
||||
/* 563 */ return sheet;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static byte[] getBytesByUrl(String imgUrl) throws Exception {
|
||||
/* 570 */ if (StringUtils.isEmpty(imgUrl)) {
|
||||
/* 571 */ return null;
|
||||
/* */ }
|
||||
/* 573 */ BufferedInputStream bis = null;
|
||||
/* 574 */ ByteArrayOutputStream bos = null;
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ try {
|
||||
/* 579 */ URL url = new URL(imgUrl);
|
||||
/* 580 */ HttpURLConnection http = (HttpURLConnection)url.openConnection();
|
||||
/* 581 */ http.setConnectTimeout(3000);
|
||||
/* */
|
||||
/* 583 */ http.connect();
|
||||
/* */
|
||||
/* 585 */ bis = new BufferedInputStream(http.getInputStream());
|
||||
/* 586 */ bos = new ByteArrayOutputStream();
|
||||
/* 587 */ byte[] buf = new byte[8096];
|
||||
/* */ int size;
|
||||
/* 589 */ while ((size = bis.read(buf)) != -1) {
|
||||
/* 590 */ bos.write(buf, 0, size);
|
||||
/* */ }
|
||||
/* */
|
||||
/* 593 */ http.disconnect();
|
||||
/* */
|
||||
/* 595 */ return bos.toByteArray();
|
||||
/* */ } finally {
|
||||
/* 597 */ if (bis != null) {
|
||||
/* */ try {
|
||||
/* 599 */ bis.close();
|
||||
/* 600 */ } catch (IOException e) {
|
||||
/* 601 */ logger.error("流关闭失败,原因:" + e.getMessage(), e);
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* 604 */ if (bos != null) {
|
||||
/* */ try {
|
||||
/* 606 */ bos.close();
|
||||
/* 607 */ } catch (IOException e) {
|
||||
/* 608 */ logger.error("流关闭失败,原因:" + e.getMessage(), e);
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static void setExcelAttribute(ExcelAttribute excelAttribute, String key, Object obj, boolean isExport) {
|
||||
/* 620 */ if (excelAttribute == null) {
|
||||
/* */ return;
|
||||
/* */ }
|
||||
/* */
|
||||
/* 624 */ InvocationHandler invocationHandler = Proxy.getInvocationHandler(excelAttribute);
|
||||
/* 625 */ Field value = null;
|
||||
/* */ try {
|
||||
/* 627 */ value = invocationHandler.getClass().getDeclaredField(ANNOTATION_FIELD);
|
||||
/* 628 */ } catch (Exception e) {
|
||||
/* 629 */ logger.warn("反射获取ExcelAttribute注解的成员字段异常", e);
|
||||
/* */ }
|
||||
/* 631 */ if (value == null) {
|
||||
/* */ return;
|
||||
/* */ }
|
||||
/* */
|
||||
/* 635 */ value.setAccessible(true);
|
||||
/* 636 */ Map<String, Object> memberValues = null;
|
||||
/* */ try {
|
||||
/* 638 */ memberValues = (Map<String, Object>)value.get(invocationHandler);
|
||||
/* 639 */ } catch (Exception e) {
|
||||
/* 640 */ logger.warn("反射获取ExcelAttribute注解的成员值异常", e);
|
||||
/* */ }
|
||||
/* 642 */ if (memberValues == null) {
|
||||
/* */ return;
|
||||
/* */ }
|
||||
/* */
|
||||
/* 646 */ if (obj != null) {
|
||||
/* 647 */ memberValues.put(key, obj);
|
||||
/* */ }
|
||||
/* 649 */ if (!isExport) {
|
||||
/* 650 */ memberValues.put(EXPORT_KEY, Boolean.valueOf(isExport));
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static <T> boolean appendListToExcel(InputStream inputStream, List<T> list, int sheetIndex, OutputStream output, Class<T> clazz, Integer startRow) throws Exception {
|
||||
/* 659 */ try (HSSFWorkbook workbook = new HSSFWorkbook(inputStream)) {
|
||||
/* */
|
||||
/* 661 */ Field[] allFields = clazz.getDeclaredFields();
|
||||
/* 662 */ List<Field> fields = new ArrayList<>();
|
||||
/* */
|
||||
/* 664 */ for (Field field : allFields) {
|
||||
/* 665 */ ExcelAttribute attr = field.<ExcelAttribute>getAnnotation(ExcelAttribute.class);
|
||||
/* 666 */ if (attr != null && attr.isExport())
|
||||
/* */ {
|
||||
/* */
|
||||
/* 669 */ fields.add(field);
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* 672 */ HSSFSheet sheet = workbook.getSheetAt(sheetIndex);
|
||||
/* */
|
||||
/* */
|
||||
/* 675 */ createRowContent(sheet, fields, workbook, list, 0, list.size(), startRow.intValue());
|
||||
/* 676 */ output.flush();
|
||||
/* 677 */ workbook.write(IOUtils.buffer(output));
|
||||
/* 678 */ return Boolean.TRUE.booleanValue();
|
||||
/* 679 */ } catch (IOException e) {
|
||||
/* 680 */ throw new Exception("将list数据源的数据导入到excel表单异常!", e);
|
||||
/* */ } finally {
|
||||
/* 682 */ output.close();
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-service-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\expor\\utils\ExcelUtil.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+57
@@ -0,0 +1,57 @@
|
||||
/* */ package cn.cloudwalk.elevator.export.utils;
|
||||
/* */
|
||||
/* */ import java.io.File;
|
||||
/* */ import org.slf4j.Logger;
|
||||
/* */ import org.slf4j.LoggerFactory;
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public class FolderUtils
|
||||
/* */ {
|
||||
/* 16 */ private static Logger logger = LoggerFactory.getLogger(FolderUtils.class);
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static void deleteFolder(String path) {
|
||||
/* 22 */ File file = new File(path);
|
||||
/* 23 */ if (file.exists()) {
|
||||
/* 24 */ File[] files = file.listFiles();
|
||||
/* 25 */ int len = files.length;
|
||||
/* 26 */ for (int i = 0; i < len; i++) {
|
||||
/* 27 */ if (files[i].isDirectory()) {
|
||||
/* 28 */ deleteFolder(files[i].getPath());
|
||||
/* */ } else {
|
||||
/* 30 */ doDelete(files[i]);
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* 33 */ doDelete(file);
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public static void deleteFile(String path) {
|
||||
/* 41 */ File file = new File(path);
|
||||
/* 42 */ if (file.exists()) {
|
||||
/* 43 */ doDelete(file);
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public static void doDelete(File file) {
|
||||
/* 48 */ if (file.exists() && !file.delete())
|
||||
/* 49 */ logger.error("文件删除失败");
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-service-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\expor\\utils\FolderUtils.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
package cn.cloudwalk.elevator.mqtt.client;
|
||||
|
||||
import cn.cloudwalk.cloud.exception.ServiceException;
|
||||
import cn.cloudwalk.cloud.result.CloudwalkResult;
|
||||
import cn.cloudwalk.elevator.mqtt.fallback.MqttFeignClientFallback;
|
||||
import cn.cloudwalk.elevator.mqtt.param.MqttSendMessageParam;
|
||||
import org.springframework.cloud.netflix.feign.FeignClient;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMethod;
|
||||
|
||||
@FeignClient(name = "${feign.mqtt.name:cloudwalk-device-thirdparty}", path = "/mqtt", fallback = MqttFeignClientFallback.class)
|
||||
public interface MqttFeignClient {
|
||||
@RequestMapping(value = {"/publish"}, method = {RequestMethod.POST})
|
||||
CloudwalkResult<Boolean> publish(MqttSendMessageParam paramMqttSendMessageParam) throws ServiceException;
|
||||
}
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-service-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\mqtt\client\MqttFeignClient.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
/* */ package cn.cloudwalk.elevator.mqtt.fallback;
|
||||
/* */
|
||||
/* */ import cn.cloudwalk.cloud.exception.ServiceException;
|
||||
/* */ import cn.cloudwalk.cloud.result.CloudwalkResult;
|
||||
/* */ import cn.cloudwalk.elevator.mqtt.client.MqttFeignClient;
|
||||
/* */ import cn.cloudwalk.elevator.mqtt.param.MqttSendMessageParam;
|
||||
/* */ import org.springframework.stereotype.Component;
|
||||
/* */
|
||||
/* */ @Component
|
||||
/* */ public class MqttFeignClientFallback
|
||||
/* */ implements MqttFeignClient
|
||||
/* */ {
|
||||
/* */ public CloudwalkResult<Boolean> publish(MqttSendMessageParam param) throws ServiceException {
|
||||
/* 14 */ throw new RuntimeException("mqtt发送数据失败");
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-service-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\mqtt\fallback\MqttFeignClientFallback.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+92
@@ -0,0 +1,92 @@
|
||||
/* */ package cn.cloudwalk.elevator.mqtt.impl;
|
||||
/* */
|
||||
/* */ import cn.cloudwalk.cloud.exception.ServiceException;
|
||||
/* */ import cn.cloudwalk.cloud.result.CloudwalkResult;
|
||||
/* */ import cn.cloudwalk.cloud.utils.BeanCopyUtils;
|
||||
/* */ import cn.cloudwalk.elevator.common.AbstractAcsDeviceService;
|
||||
/* */ import cn.cloudwalk.elevator.mqtt.client.MqttFeignClient;
|
||||
/* */ import cn.cloudwalk.elevator.mqtt.param.AcsElevatorRecordMqttParam;
|
||||
/* */ import cn.cloudwalk.elevator.mqtt.param.MqttSendMessageParam;
|
||||
/* */ import cn.cloudwalk.elevator.mqtt.service.MqttService;
|
||||
/* */ import cn.cloudwalk.elevator.record.dao.AcsRecogRecordDao;
|
||||
/* */ import cn.cloudwalk.elevator.record.dto.AcsElevatorRecordAddDTO;
|
||||
/* */ import cn.cloudwalk.elevator.record.dto.AcsRecogRecordPageDTO;
|
||||
/* */ import cn.cloudwalk.elevator.record.dto.AcsRecogRecordResultDTO;
|
||||
/* */ import cn.cloudwalk.elevator.util.DateUtils;
|
||||
/* */ import com.alibaba.fastjson.JSON;
|
||||
/* */ import java.util.List;
|
||||
/* */ import java.util.concurrent.TimeUnit;
|
||||
/* */ import javax.annotation.Resource;
|
||||
/* */ import org.apache.commons.collections4.CollectionUtils;
|
||||
/* */ import org.apache.commons.lang3.StringUtils;
|
||||
/* */ import org.springframework.beans.factory.annotation.Qualifier;
|
||||
/* */ import org.springframework.scheduling.annotation.Async;
|
||||
/* */ import org.springframework.stereotype.Component;
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ @Component
|
||||
/* */ public class MqttServiceImpl
|
||||
/* */ extends AbstractAcsDeviceService
|
||||
/* */ implements MqttService
|
||||
/* */ {
|
||||
/* */ private static final String VISITOR_LABEL_CODE = "1";
|
||||
/* */ private static final String VISITOR_LABEL_NAME = "访客";
|
||||
/* */ private static final String ELEVATOR_RECORD_SUFFIX = "_elevator_record";
|
||||
/* */ @Qualifier("cn.cloudwalk.elevator.mqtt.client.MqttFeignClient")
|
||||
/* */ @Resource
|
||||
/* */ private MqttFeignClient mqttFeignClient;
|
||||
/* */ @Resource
|
||||
/* */ private AcsRecogRecordDao acsRecogRecordDao;
|
||||
/* */
|
||||
/* */ @Async
|
||||
/* */ public void sendInfoToOne(AcsElevatorRecordAddDTO addDTO) throws ServiceException {
|
||||
/* 48 */ this.logger.info("防止人员识别记录未入库即开始推送消息,休眠10秒");
|
||||
/* */ try {
|
||||
/* 50 */ TimeUnit.SECONDS.sleep(10L);
|
||||
/* 51 */ } catch (InterruptedException e) {
|
||||
/* 52 */ this.logger.error("休眠失败,失败原因:{}", e.getMessage());
|
||||
/* 53 */ throw new ServiceException(e.getMessage());
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ try {
|
||||
/* 57 */ AcsRecogRecordPageDTO recordPageDTO = new AcsRecogRecordPageDTO();
|
||||
/* 58 */ recordPageDTO.setLogId(addDTO.getRecognitionFaceId());
|
||||
/* 59 */ recordPageDTO.setStartTime(DateUtils.todayStart());
|
||||
/* 60 */ recordPageDTO.setEndTime(DateUtils.todayEnd());
|
||||
/* 61 */ List<AcsRecogRecordResultDTO> recogRecordResultDTOS = this.acsRecogRecordDao.page(recordPageDTO);
|
||||
/* 62 */ if (!CollectionUtils.isEmpty(recogRecordResultDTOS)) {
|
||||
/* 63 */ AcsRecogRecordResultDTO acsRecogRecordResultDTO = recogRecordResultDTOS.get(0);
|
||||
/* 64 */ AcsElevatorRecordMqttParam acsElevatorRecordMqttParam = (AcsElevatorRecordMqttParam)BeanCopyUtils.copyProperties(addDTO, AcsElevatorRecordMqttParam.class);
|
||||
/* 65 */ acsElevatorRecordMqttParam.setOpenDoorId(addDTO.getId());
|
||||
/* 66 */ acsElevatorRecordMqttParam.setPersonName(acsRecogRecordResultDTO.getPersonName());
|
||||
/* 67 */ if (StringUtils.isNotBlank(acsRecogRecordResultDTO.getPersonLabelIds()) && acsRecogRecordResultDTO.getPersonLabelIds().contains("1")) {
|
||||
/* 68 */ acsElevatorRecordMqttParam.setIsVisitor(Boolean.TRUE);
|
||||
/* */ }
|
||||
/* 70 */ CloudwalkResult<Boolean> publish = this.mqttFeignClient.publish(
|
||||
/* 71 */ MqttSendMessageParam.builder()
|
||||
/* 72 */ .topic(addDTO.getBusinessId() + "_elevator_record")
|
||||
/* 73 */ .data(JSON.toJSONString(acsElevatorRecordMqttParam))
|
||||
/* 74 */ .build());
|
||||
/* 75 */ if (publish.isSuccess()) {
|
||||
/* 76 */ this.logger.info("推送数据成功!!!,数据,{}", JSON.toJSONString(acsElevatorRecordMqttParam));
|
||||
/* */ } else {
|
||||
/* 78 */ this.logger.debug("推送数据失败!!!");
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ }
|
||||
/* 82 */ } catch (Exception e) {
|
||||
/* 83 */ this.logger.error("发送消息失败 param:{} {}", addDTO, e.getMessage());
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-service-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\mqtt\impl\MqttServiceImpl.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+56
@@ -0,0 +1,56 @@
|
||||
/* */ package cn.cloudwalk.elevator.mqtt.param;
|
||||
/* */ public class AcsElevatorRecordMqttParam {
|
||||
/* */ private String openDoorId;
|
||||
/* */ private String openDoorType;
|
||||
/* */ private String srcFloor;
|
||||
/* */
|
||||
/* 7 */ public void setOpenDoorId(String openDoorId) { this.openDoorId = openDoorId; } private String destFloor; private String dispatchElevatorNo; private Long dispatchElevatorTime; private String personName; public void setOpenDoorType(String openDoorType) { this.openDoorType = openDoorType; } public void setSrcFloor(String srcFloor) { this.srcFloor = srcFloor; } public void setDestFloor(String destFloor) { this.destFloor = destFloor; } public void setDispatchElevatorNo(String dispatchElevatorNo) { this.dispatchElevatorNo = dispatchElevatorNo; } public void setDispatchElevatorTime(Long dispatchElevatorTime) { this.dispatchElevatorTime = dispatchElevatorTime; } public void setPersonName(String personName) { this.personName = personName; } public void setIsVisitor(Boolean isVisitor) { this.isVisitor = isVisitor; }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public String getOpenDoorId() {
|
||||
/* 13 */ return this.openDoorId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */ public String getOpenDoorType() {
|
||||
/* 18 */ return this.openDoorType;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */ public String getSrcFloor() {
|
||||
/* 23 */ return this.srcFloor;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */ public String getDestFloor() {
|
||||
/* 28 */ return this.destFloor;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */ public String getDispatchElevatorNo() {
|
||||
/* 33 */ return this.dispatchElevatorNo;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */ public Long getDispatchElevatorTime() {
|
||||
/* 38 */ return this.dispatchElevatorTime;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */ public String getPersonName() {
|
||||
/* 43 */ return this.personName;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* 48 */ private Boolean isVisitor = Boolean.valueOf(false); public Boolean getIsVisitor() { return this.isVisitor; }
|
||||
/* */
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-service-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\mqtt\param\AcsElevatorRecordMqttParam.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+28
@@ -0,0 +1,28 @@
|
||||
/* */ package cn.cloudwalk.elevator.mqtt.param;
|
||||
/* */
|
||||
/* */ public class MqttSendMessageParam {
|
||||
/* */ private String topic;
|
||||
/* */ private String data;
|
||||
/* */
|
||||
/* */ @ConstructorProperties({"topic", "data"})
|
||||
/* 8 */ MqttSendMessageParam(String topic, String data) { this.topic = topic; this.data = data; } public static MqttSendMessageParamBuilder builder() { return new MqttSendMessageParamBuilder(); } public static class MqttSendMessageParamBuilder { private String topic; public MqttSendMessageParamBuilder topic(String topic) { this.topic = topic; return this; } private String data; public MqttSendMessageParamBuilder data(String data) { this.data = data; return this; } public MqttSendMessageParam build() { return new MqttSendMessageParam(this.topic, this.data); } public String toString() { return "MqttSendMessageParam.MqttSendMessageParamBuilder(topic=" + this.topic + ", data=" + this.data + ")"; }
|
||||
/* */ }
|
||||
/* 10 */ public void setTopic(String topic) { this.topic = topic; } public void setData(String data) { this.data = data; }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public String getTopic() {
|
||||
/* 16 */ return this.topic;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getData() {
|
||||
/* 20 */ return this.data;
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-service-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\mqtt\param\MqttSendMessageParam.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
package cn.cloudwalk.elevator.mqtt.service;
|
||||
|
||||
import cn.cloudwalk.cloud.exception.ServiceException;
|
||||
import cn.cloudwalk.elevator.record.dto.AcsElevatorRecordAddDTO;
|
||||
|
||||
public interface MqttService {
|
||||
void sendInfoToOne(AcsElevatorRecordAddDTO paramAcsElevatorRecordAddDTO) throws ServiceException;
|
||||
}
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-service-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\mqtt\service\MqttService.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+103
@@ -0,0 +1,103 @@
|
||||
/* */ package cn.cloudwalk.elevator.passrule.impl;
|
||||
/* */
|
||||
/* */ import cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.param.ImageStoreEditParam;
|
||||
/* */ import cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.param.ImageStorePersonData;
|
||||
/* */ import cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.param.ImageStoreQueryParam;
|
||||
/* */ import cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.result.ImageStoreDetailResult;
|
||||
/* */ import cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.result.ImgStorePersonResult;
|
||||
/* */ import cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.service.ImageStoreService;
|
||||
/* */ import cn.cloudwalk.client.cwoscomponent.intelligent.label.result.LabelResult;
|
||||
/* */ import cn.cloudwalk.client.cwoscomponent.intelligent.organization.result.OrganizationResult;
|
||||
/* */ 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 java.util.ArrayList;
|
||||
/* */ import java.util.List;
|
||||
/* */ import java.util.stream.Collectors;
|
||||
/* */ import javax.annotation.Resource;
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public class AbstractAcsPassService
|
||||
/* */ extends AbstractCloudwalkService
|
||||
/* */ {
|
||||
/* */ @Resource
|
||||
/* */ private ImageStoreService imageStoreService;
|
||||
/* */
|
||||
/* */ protected ImageStoreDetailResult getImageStoreDetail(String imageStoreId, CloudwalkCallContext context) throws ServiceException {
|
||||
/* 47 */ ImageStoreQueryParam param = new ImageStoreQueryParam();
|
||||
/* 48 */ param.setId(imageStoreId);
|
||||
/* 49 */ param.setBusinessId(context.getCompany().getCompanyId());
|
||||
/* */
|
||||
/* */
|
||||
/* 52 */ CloudwalkResult<ImageStoreDetailResult> imageStoreDetail = this.imageStoreService.detail(param, context);
|
||||
/* 53 */ if (!imageStoreDetail.isSuccess()) {
|
||||
/* 54 */ this.logger.error("远程调用查询图库详情失败,原因:" + imageStoreDetail.getMessage());
|
||||
/* 55 */ throw new ServiceException("远程调用查询图库详情失败");
|
||||
/* */ }
|
||||
/* 57 */ return (ImageStoreDetailResult)imageStoreDetail.getData();
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ protected ImageStoreEditParam getEditParamByImageStore(ImageStoreDetailResult imageStoreDetail) {
|
||||
/* 67 */ ImageStoreEditParam param = new ImageStoreEditParam();
|
||||
/* 68 */ BeanCopyUtils.copyProperties(imageStoreDetail, param);
|
||||
/* 69 */ param.setIncludeOrganizations((List)imageStoreDetail.getIncludeOrganizations()
|
||||
/* 70 */ .stream().map(OrganizationResult::getId).collect(Collectors.toList()));
|
||||
/* 71 */ param.setIncludeLabels((List)imageStoreDetail.getIncludeLabels()
|
||||
/* 72 */ .stream().map(LabelResult::getId).collect(Collectors.toList()));
|
||||
/* 73 */ param.setIncludePersons(getImageStorePersonData(imageStoreDetail.getIncludePersons()));
|
||||
/* 74 */ param.setExcludeLabels((List)imageStoreDetail.getExcludeLabels().stream()
|
||||
/* 75 */ .map(LabelResult::getId).collect(Collectors.toList()));
|
||||
/* 76 */ param.setExcludePersons((List)imageStoreDetail.getExcludePersons().stream()
|
||||
/* 77 */ .map(ImgStorePersonResult::getId).collect(Collectors.toList()));
|
||||
/* 78 */ return param;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ private List<ImageStorePersonData> getImageStorePersonData(List<ImgStorePersonResult> imgStorePersonResults) {
|
||||
/* 88 */ List<ImageStorePersonData> personDataList = new ArrayList<>();
|
||||
/* 89 */ for (ImgStorePersonResult personResult : imgStorePersonResults) {
|
||||
/* 90 */ ImageStorePersonData personData = new ImageStorePersonData();
|
||||
/* 91 */ BeanCopyUtils.copyProperties(personResult, personData);
|
||||
/* 92 */ personData.setObjectId(personResult.getId());
|
||||
/* 93 */ personDataList.add(personData);
|
||||
/* */ }
|
||||
/* 95 */ return personDataList;
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-service-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\passrule\impl\AbstractAcsPassService.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+733
@@ -0,0 +1,733 @@
|
||||
/* */ package cn.cloudwalk.elevator.passrule.impl;
|
||||
/* */
|
||||
/* */ 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.param.ImageStoreEditParam;
|
||||
/* */ import cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.param.ImageStoreQueryParam;
|
||||
/* */ import cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.result.ImageStoreDetailResult;
|
||||
/* */ import cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.result.ImageStoreListResult;
|
||||
/* */ import cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.service.ImageStorePersonService;
|
||||
/* */ import cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.service.ImageStoreService;
|
||||
/* */ import cn.cloudwalk.client.cwoscomponent.intelligent.person.service.PersonService;
|
||||
/* */ import cn.cloudwalk.cloud.annotation.CloudwalkParamsValidate;
|
||||
/* */ import cn.cloudwalk.cloud.context.CloudwalkCallContext;
|
||||
/* */ 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.result.CloudwalkResult;
|
||||
/* */ import cn.cloudwalk.cloud.utils.BeanCopyUtils;
|
||||
/* */ import cn.cloudwalk.elevator.common.service.AcsApplicationService;
|
||||
/* */ import cn.cloudwalk.elevator.device.dao.AcsElevatorDeviceDao;
|
||||
/* */ import cn.cloudwalk.elevator.device.dto.AcsElevatorDeviceListDto;
|
||||
/* */ import cn.cloudwalk.elevator.device.dto.AcsElevatorDeviceResultDTO;
|
||||
/* */ 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.em.AcsPassTypeEnum;
|
||||
/* */ import cn.cloudwalk.elevator.passrule.dao.AcsPassRuleDao;
|
||||
/* */ import cn.cloudwalk.elevator.passrule.dto.AcsPassRuleAddDto;
|
||||
/* */ import cn.cloudwalk.elevator.passrule.dto.AcsPassRuleDeleteDto;
|
||||
/* */ import cn.cloudwalk.elevator.passrule.dto.AcsPassRuleEditDto;
|
||||
/* */ import cn.cloudwalk.elevator.passrule.dto.AcsPassRuleImageDto;
|
||||
/* */ import cn.cloudwalk.elevator.passrule.dto.AcsPassRuleImageResultDto;
|
||||
/* */ import cn.cloudwalk.elevator.passrule.dto.AcsPassRuleIsDefaultDto;
|
||||
/* */ import cn.cloudwalk.elevator.passrule.dto.AcsPassRuleQueryDto;
|
||||
/* */ import cn.cloudwalk.elevator.passrule.dto.AcsPassRuleResultDto;
|
||||
/* */ import cn.cloudwalk.elevator.passrule.param.AcsPassRuleDeleteParam;
|
||||
/* */ import cn.cloudwalk.elevator.passrule.param.AcsPassRuleEditParam;
|
||||
/* */ import cn.cloudwalk.elevator.passrule.param.AcsPassRuleFloorParam;
|
||||
/* */ import cn.cloudwalk.elevator.passrule.param.AcsPassRuleImageParam;
|
||||
/* */ import cn.cloudwalk.elevator.passrule.param.AcsPassRuleIsDefaultParam;
|
||||
/* */ import cn.cloudwalk.elevator.passrule.param.AcsPassRuleNewParam;
|
||||
/* */ import cn.cloudwalk.elevator.passrule.param.AcsPassRuleQueryParam;
|
||||
/* */ import cn.cloudwalk.elevator.passrule.param.AcsPassTimeCycleParam;
|
||||
/* */ import cn.cloudwalk.elevator.passrule.result.AcsPassRuleDetailResult;
|
||||
/* */ import cn.cloudwalk.elevator.passrule.result.AcsPassRuleFloorResult;
|
||||
/* */ import cn.cloudwalk.elevator.passrule.result.AcsPassRuleResult;
|
||||
/* */ import cn.cloudwalk.elevator.passrule.service.AcsPassRuleService;
|
||||
/* */ import cn.cloudwalk.elevator.person.param.AcsPersonQueryParam;
|
||||
/* */ import cn.cloudwalk.elevator.person.result.AcsPersonResult;
|
||||
/* */ import cn.cloudwalk.elevator.person.service.AcsPersonService;
|
||||
/* */ import cn.cloudwalk.elevator.util.CollectionUtils;
|
||||
/* */ import cn.cloudwalk.elevator.zone.param.ZoneNextTreeParam;
|
||||
/* */ import cn.cloudwalk.elevator.zone.result.ZoneTreeResult;
|
||||
/* */ import cn.cloudwalk.elevator.zone.service.ZoneService;
|
||||
/* */ import com.alibaba.fastjson.JSONObject;
|
||||
/* */ import java.util.ArrayList;
|
||||
/* */ import java.util.Collection;
|
||||
/* */ import java.util.Collections;
|
||||
/* */ import java.util.List;
|
||||
/* */ import java.util.Map;
|
||||
/* */ import java.util.stream.Collectors;
|
||||
/* */ import javax.annotation.Resource;
|
||||
/* */ import org.springframework.beans.factory.annotation.Autowired;
|
||||
/* */ import org.springframework.stereotype.Service;
|
||||
/* */ import org.springframework.transaction.annotation.Propagation;
|
||||
/* */ import org.springframework.transaction.annotation.Transactional;
|
||||
/* */ import org.springframework.util.ObjectUtils;
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ @Service
|
||||
/* */ public class AcsPassRuleServiceImpl
|
||||
/* */ extends AbstractAcsPassService
|
||||
/* */ implements AcsPassRuleService
|
||||
/* */ {
|
||||
/* */ @Resource
|
||||
/* */ private ImageStoreService imageStoreService;
|
||||
/* */ @Resource
|
||||
/* */ private ImageStorePersonService imageStorePersonService;
|
||||
/* */ @Resource
|
||||
/* */ private PersonService personService;
|
||||
/* */ @Resource
|
||||
/* */ private ZoneService zoneService;
|
||||
/* */ @Autowired
|
||||
/* */ private AcsApplicationService acsApplicationService;
|
||||
/* */ @Autowired
|
||||
/* */ private AcsPersonService acsPersonService;
|
||||
/* */ @Resource
|
||||
/* */ private AcsPassRuleDao acsPassRuleDao;
|
||||
/* */ @Resource
|
||||
/* */ private AcsDeviceImageStoreAppBindService acsDeviceImageStoreAppBindService;
|
||||
/* */ @Resource
|
||||
/* */ private AcsElevatorDeviceDao acsElevatorDeviceDao;
|
||||
/* */
|
||||
/* */ public CloudwalkResult<List<AcsPassRuleFloorResult>> listFloor(AcsPassRuleFloorParam param, CloudwalkCallContext context) throws ServiceException {
|
||||
/* 112 */ ZoneNextTreeParam treeParam = new ZoneNextTreeParam();
|
||||
/* 113 */ treeParam.setParentId(param.getZoneId());
|
||||
/* 114 */ CloudwalkResult<List<ZoneTreeResult>> zoneTree = this.zoneService.tree(treeParam, context);
|
||||
/* 115 */ if (!zoneTree.isSuccess()) {
|
||||
/* 116 */ this.logger.info("远程调用查询区域树状图失败,原因:" + zoneTree.getMessage());
|
||||
/* 117 */ throw new ServiceException(zoneTree.getCode(), zoneTree.getMessage());
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ try {
|
||||
/* 121 */ List<AcsPassRuleFloorResult> passRuleResults = new ArrayList<>();
|
||||
/* 122 */ if (!CollectionUtils.isEmpty((Collection)zoneTree.getData())) {
|
||||
/* 123 */ for (ZoneTreeResult zoneTreeResult : zoneTree.getData()) {
|
||||
/* 124 */ getZoneTypeIsThree(zoneTreeResult, passRuleResults);
|
||||
/* */ }
|
||||
/* */ } else {
|
||||
/* 127 */ return CloudwalkResult.success(passRuleResults);
|
||||
/* */ }
|
||||
/* 129 */ for (AcsPassRuleFloorResult passRuleResult : passRuleResults) {
|
||||
/* */
|
||||
/* 131 */ AcsElevatorDeviceListDto dto = new AcsElevatorDeviceListDto();
|
||||
/* 132 */ dto.setBusinessId(context.getCompany().getCompanyId());
|
||||
/* 133 */ dto.setCurrentFloorId(passRuleResult.getId());
|
||||
/* 134 */ List<AcsElevatorDeviceResultDTO> deviceList = this.acsElevatorDeviceDao.listByZoneId(dto);
|
||||
/* 135 */ passRuleResult.setDeviceNumber(Integer.valueOf(deviceList.size()));
|
||||
/* */
|
||||
/* 137 */ AcsPersonQueryParam personParam = new AcsPersonQueryParam();
|
||||
/* 138 */ personParam.setZoneId(passRuleResult.getId());
|
||||
/* 139 */ CloudwalkPageInfo pageInfo = new CloudwalkPageInfo(1, 10);
|
||||
/* 140 */ CloudwalkResult<CloudwalkPageAble<AcsPersonResult>> page = this.acsPersonService.page(personParam, pageInfo, context);
|
||||
/* 141 */ passRuleResult.setPersonNumber(Long.valueOf(((CloudwalkPageAble)page.getData()).getTotalRows()));
|
||||
/* */ }
|
||||
/* 143 */ return CloudwalkResult.success(passRuleResults);
|
||||
/* 144 */ } catch (DataAccessException e) {
|
||||
/* 145 */ this.logger.error("查询所有楼层信息失败");
|
||||
/* 146 */ throw new ServiceException("76260520", getMessage("76260520"));
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public CloudwalkResult<String> getIsDefaultByZoneId(AcsPassRuleIsDefaultParam param, CloudwalkCallContext context) throws ServiceException {
|
||||
/* */ try {
|
||||
/* 154 */ AcsPassRuleIsDefaultDto dto = new AcsPassRuleIsDefaultDto();
|
||||
/* 155 */ dto.setZoneId(param.getZoneId());
|
||||
/* 156 */ dto.setBusinessId(context.getCompany().getCompanyId());
|
||||
/* 157 */ return CloudwalkResult.success(this.acsPassRuleDao.getIsDefaultByZoneId(dto));
|
||||
/* 158 */ } catch (DataAccessException e) {
|
||||
/* 159 */ this.logger.error("根据楼层id获取默认图库id失败");
|
||||
/* 160 */ throw new ServiceException("76260524", getMessage("76260524"));
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ @CloudwalkParamsValidate(argsIndexs = {0, 1})
|
||||
/* */ @Transactional(propagation = Propagation.REQUIRED, rollbackFor = {Exception.class})
|
||||
/* */ public CloudwalkResult<String> add(AcsPassRuleNewParam param, CloudwalkCallContext context) throws ServiceException {
|
||||
/* 180 */ String imageStoreId = addImageStore(param, context);
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* 226 */ AcsPassRuleAddDto dto = new AcsPassRuleAddDto();
|
||||
/* 227 */ dto.setId(genUUID());
|
||||
/* 228 */ dto.setBusinessId(context.getCompany().getCompanyId());
|
||||
/* 229 */ dto.setName(param.getRuleName());
|
||||
/* 230 */ dto.setImageStoreId(imageStoreId);
|
||||
/* 231 */ dto.setZoneId(param.getZoneId());
|
||||
/* 232 */ dto.setZoneName(param.getZoneName());
|
||||
/* 233 */ dto.setBeginDate(param.getStartTime());
|
||||
/* 234 */ dto.setEndDate(param.getEndTime());
|
||||
/* 235 */ dto.setIsDefault(param.getIsDefault());
|
||||
/* */ try {
|
||||
/* 237 */ this.acsPassRuleDao.insert(dto);
|
||||
/* 238 */ return CloudwalkResult.success(imageStoreId);
|
||||
/* 239 */ } catch (DataAccessException e) {
|
||||
/* 240 */ this.logger.error("添加通行规则失败");
|
||||
/* 241 */ throw new ServiceException("76260505", getMessage("76260505"));
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ private String addImageStore(AcsPassRuleNewParam param, CloudwalkCallContext context) throws ServiceException {
|
||||
/* 254 */ ImageStoreAddParam imageStoreAddParam = new ImageStoreAddParam();
|
||||
/* 255 */ String applicationId = this.acsApplicationService.getApplicationId(context.getCompany().getCompanyId());
|
||||
/* 256 */ BeanCopyUtils.copyProperties(param, imageStoreAddParam);
|
||||
/* 257 */ imageStoreAddParam.setExpiryBeginDate(param.getStartTime());
|
||||
/* 258 */ imageStoreAddParam.setExpiryEndDate(param.getEndTime());
|
||||
/* 259 */ imageStoreAddParam.setName(param.getZoneName() + "-" + param.getRuleName());
|
||||
/* 260 */ imageStoreAddParam.setType(Short.valueOf((short)1));
|
||||
/* 261 */ imageStoreAddParam.setSourceApplicationId(applicationId);
|
||||
/* 262 */ imageStoreAddParam.setBusinessId(context.getCompany().getCompanyId());
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* 266 */ CloudwalkResult<String> imageStoreId = this.imageStoreService.add(imageStoreAddParam, context);
|
||||
/* 267 */ if (!imageStoreId.isSuccess()) {
|
||||
/* 268 */ this.logger.info("远程调用新增图库失败,原因:" + imageStoreId.getMessage());
|
||||
/* 269 */ throw new ServiceException(imageStoreId.getCode(), imageStoreId.getMessage());
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* 273 */ AcsElevatorDeviceListDto dto = new AcsElevatorDeviceListDto();
|
||||
/* 274 */ dto.setBusinessId(context.getCompany().getCompanyId());
|
||||
/* 275 */ dto.setCurrentFloorId(param.getZoneId());
|
||||
/* 276 */ List<AcsElevatorDeviceResultDTO> deviceList = null;
|
||||
/* */ try {
|
||||
/* 278 */ deviceList = this.acsElevatorDeviceDao.listByZoneId(dto);
|
||||
/* 279 */ } catch (DataAccessException e) {
|
||||
/* 280 */ this.logger.error("根据楼层id获取设备信息失败,原因是:{}", e.getMessage());
|
||||
/* */ }
|
||||
/* 282 */ DeviceImageStoreAppBindParam appBindParam = new DeviceImageStoreAppBindParam();
|
||||
/* 283 */ appBindParam.setImageStoreId((String)imageStoreId.getData());
|
||||
/* 284 */ appBindParam.setApplicationId(applicationId);
|
||||
/* 285 */ this.acsDeviceImageStoreAppBindService.bindAppImageStoreDevice(appBindParam, context);
|
||||
/* 286 */ if (!CollectionUtils.isEmpty(deviceList)) {
|
||||
/* 287 */ for (AcsElevatorDeviceResultDTO device : deviceList) {
|
||||
/* */ try {
|
||||
/* 289 */ DeviceImageStoreAppBindParam bindParam = new DeviceImageStoreAppBindParam();
|
||||
/* 290 */ bindParam.setImageStoreId((String)imageStoreId.getData());
|
||||
/* 291 */ bindParam.setDeviceId(device.getDeviceId());
|
||||
/* 292 */ bindParam.setApplicationId(applicationId);
|
||||
/* 293 */ this.acsDeviceImageStoreAppBindService.bindDeviceAndImageStore(bindParam, context);
|
||||
/* 294 */ } catch (ServiceException e) {
|
||||
/* 295 */ this.logger.error("图库关联失败,图库id={},原因:{}", imageStoreId.getData(), e.getMessage());
|
||||
/* */
|
||||
/* 297 */ ImageStoreDelParam delParam = new ImageStoreDelParam();
|
||||
/* 298 */ delParam.setId((String)imageStoreId.getData());
|
||||
/* 299 */ delParam.setBusinessId(context.getCompany().getCompanyId());
|
||||
/* 300 */ this.logger.info("回滚删除图库开始,delParam={},context={}", JSONObject.toJSON(delParam), JSONObject.toJSON(context));
|
||||
/* 301 */ CloudwalkResult<Boolean> deleteResult = this.imageStoreService.delete(delParam, context);
|
||||
/* 302 */ this.logger.info("删除图库:图库id={},结果:{}", imageStoreId, deleteResult.getMessage());
|
||||
/* 303 */ throw new ServiceException(e.getCode(), e.getMessage());
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* 307 */ return (String)imageStoreId.getData();
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ @CloudwalkParamsValidate(argsIndexs = {0, 1})
|
||||
/* */ @Transactional(propagation = Propagation.REQUIRED, rollbackFor = {Exception.class})
|
||||
/* */ public CloudwalkResult<Boolean> update(AcsPassRuleEditParam param, CloudwalkCallContext context) throws ServiceException {
|
||||
/* 325 */ checkDefaultRule(Collections.singletonList(param.getId()), context);
|
||||
/* */
|
||||
/* 327 */ AcsPassRuleEditDto dto = new AcsPassRuleEditDto();
|
||||
/* 328 */ BeanCopyUtils.copyProperties(param, context, dto);
|
||||
/* 329 */ dto.setValidDateCron(null);
|
||||
/* 330 */ dto.setValidDateJson(null);
|
||||
/* 331 */ dto.setBeginDate(param.getStartTime());
|
||||
/* 332 */ dto.setEndDate(param.getEndTime());
|
||||
/* 333 */ dto.setBusinessId(context.getCompany().getCompanyId());
|
||||
/* 334 */ dto.setName(param.getRuleName());
|
||||
/* */ try {
|
||||
/* 336 */ this.acsPassRuleDao.update(dto);
|
||||
/* */
|
||||
/* 338 */ List<AcsPassRuleResultDto> ruleList = getRuleByIds(Collections.singletonList(dto.getId()), context);
|
||||
/* 339 */ updateImageStore(param, ruleList.get(0), context);
|
||||
/* 340 */ return CloudwalkResult.success(Boolean.valueOf(true));
|
||||
/* 341 */ } catch (DataAccessException e) {
|
||||
/* 342 */ this.logger.error("编辑通行规则编辑失败");
|
||||
/* 343 */ throw new ServiceException("76260506", getMessage("76260506"));
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ private List<AcsPassRuleResultDto> checkDefaultRule(List<String> ruleIds, CloudwalkCallContext context) throws ServiceException {
|
||||
/* 348 */ List<AcsPassRuleResultDto> resultDtoList = getRuleByIds(ruleIds, context);
|
||||
/* 349 */ for (AcsPassRuleResultDto resultDto : resultDtoList) {
|
||||
/* 350 */ if (!ObjectUtils.isEmpty(resultDto.getIsDefault()) && resultDto.getIsDefault().intValue() == 1) {
|
||||
/* 351 */ throw new ServiceException("门禁默认规则不可编辑和删除");
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* 354 */ return resultDtoList;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ private void updateImageStore(AcsPassRuleEditParam param, AcsPassRuleResultDto ruleResultDto, CloudwalkCallContext context) throws ServiceException {
|
||||
/* 368 */ ImageStoreDetailResult imageStoreDetail = getImageStoreDetail(ruleResultDto.getImageStoreId(), context);
|
||||
/* */
|
||||
/* 370 */ ImageStoreEditParam imageStoreEditParam = getEditParamByImageStore(imageStoreDetail);
|
||||
/* */
|
||||
/* 372 */ BeanCopyUtils.copyProperties(ruleResultDto, imageStoreEditParam);
|
||||
/* 373 */ BeanCopyUtils.copyProperties(param, imageStoreEditParam);
|
||||
/* 374 */ imageStoreEditParam.setName(param.getZoneName() + "-" + param.getRuleName());
|
||||
/* 375 */ imageStoreEditParam.setExpiryBeginDate(param.getStartTime());
|
||||
/* 376 */ imageStoreEditParam.setExpiryEndDate(param.getEndTime());
|
||||
/* 377 */ imageStoreEditParam.setValidDateCron(null);
|
||||
/* 378 */ imageStoreEditParam.setBusinessId(context.getCompany().getCompanyId());
|
||||
/* */
|
||||
/* */
|
||||
/* 381 */ CloudwalkResult<Boolean> result = this.imageStoreService.edit(imageStoreEditParam, context);
|
||||
/* 382 */ if (!result.isSuccess()) {
|
||||
/* 383 */ this.logger.info("远程调用编辑图库失败:原因:" + result.getMessage());
|
||||
/* 384 */ throw new ServiceException(result.getCode(), result.getMessage());
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ private List<AcsPassRuleResultDto> getRuleByIds(List<String> ruleIds, CloudwalkCallContext context) throws ServiceException {
|
||||
/* 398 */ AcsPassRuleQueryDto dto = new AcsPassRuleQueryDto();
|
||||
/* 399 */ dto.setIds(ruleIds);
|
||||
/* 400 */ dto.setBusinessId(context.getCompany().getCompanyId());
|
||||
/* */ try {
|
||||
/* 402 */ return this.acsPassRuleDao.list(dto);
|
||||
/* 403 */ } catch (DataAccessException e) {
|
||||
/* 404 */ this.logger.error("通行规则查询失败");
|
||||
/* 405 */ throw new ServiceException("通行规则查询失败");
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ @CloudwalkParamsValidate(argsIndexs = {0, 1})
|
||||
/* */ @Transactional(propagation = Propagation.REQUIRED, rollbackFor = {Exception.class})
|
||||
/* */ public CloudwalkResult<Boolean> delete(AcsPassRuleDeleteParam param, CloudwalkCallContext context) throws ServiceException {
|
||||
/* 424 */ List<AcsPassRuleResultDto> resultDtos = checkDefaultRule(param.getIds(), context);
|
||||
/* 425 */ String applicationId = this.acsApplicationService.getApplicationId(context.getCompany().getCompanyId());
|
||||
/* */
|
||||
/* 427 */ AcsElevatorDeviceListDto deviceListDto = new AcsElevatorDeviceListDto();
|
||||
/* 428 */ deviceListDto.setBusinessId(context.getCompany().getCompanyId());
|
||||
/* 429 */ deviceListDto.setCurrentFloorId(param.getZoneId());
|
||||
/* 430 */ List<AcsElevatorDeviceResultDTO> deviceList = null;
|
||||
/* */ try {
|
||||
/* 432 */ deviceList = this.acsElevatorDeviceDao.listByZoneId(deviceListDto);
|
||||
/* 433 */ } catch (DataAccessException e) {
|
||||
/* 434 */ this.logger.error("根据楼层id获取设备信息失败,原因是:{}", e.getMessage());
|
||||
/* */ }
|
||||
/* 436 */ for (AcsPassRuleResultDto acsPassRuleResultDto : resultDtos) {
|
||||
/* 437 */ if (!CollectionUtils.isEmpty(deviceList)) {
|
||||
/* 438 */ for (AcsElevatorDeviceResultDTO device : deviceList) {
|
||||
/* 439 */ DeviceImageStoreAppUnbindParam deviceImageStoreAppUnbindParam = new DeviceImageStoreAppUnbindParam();
|
||||
/* 440 */ deviceImageStoreAppUnbindParam.setApplicationId(applicationId);
|
||||
/* 441 */ deviceImageStoreAppUnbindParam.setDeviceId(device.getDeviceId());
|
||||
/* 442 */ deviceImageStoreAppUnbindParam.setDeviceCode(device.getDeviceCode());
|
||||
/* 443 */ deviceImageStoreAppUnbindParam.setImageStoreId(acsPassRuleResultDto.getImageStoreId());
|
||||
/* 444 */ this.acsDeviceImageStoreAppBindService.unbindAppImageStoreDevice(deviceImageStoreAppUnbindParam, context);
|
||||
/* */ } continue;
|
||||
/* */ }
|
||||
/* 447 */ DeviceImageStoreAppUnbindParam unbindParam = new DeviceImageStoreAppUnbindParam();
|
||||
/* 448 */ unbindParam.setApplicationId(applicationId);
|
||||
/* 449 */ unbindParam.setImageStoreId(acsPassRuleResultDto.getImageStoreId());
|
||||
/* 450 */ this.acsDeviceImageStoreAppBindService.deleteImageStore(unbindParam, context);
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* 511 */ AcsPassRuleDeleteDto dto = new AcsPassRuleDeleteDto();
|
||||
/* 512 */ dto.setBusinessId(context.getCompany().getCompanyId());
|
||||
/* 513 */ dto.setIds(param.getIds());
|
||||
/* */ try {
|
||||
/* 515 */ this.acsPassRuleDao.delete(dto);
|
||||
/* 516 */ return CloudwalkResult.success(Boolean.valueOf(true));
|
||||
/* 517 */ } catch (DataAccessException e) {
|
||||
/* 518 */ this.logger.error("通行规则删除失败");
|
||||
/* 519 */ throw new ServiceException("76260507", getMessage("76260507"));
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ @CloudwalkParamsValidate(argsIndexs = {0, 1})
|
||||
/* */ public CloudwalkResult<AcsPassRuleDetailResult> detail(AcsPassRuleQueryParam param, CloudwalkCallContext context) throws ServiceException {
|
||||
/* */ try {
|
||||
/* 539 */ AcsPassRuleQueryDto dto = new AcsPassRuleQueryDto();
|
||||
/* 540 */ BeanCopyUtils.copyProperties(param, dto);
|
||||
/* 541 */ dto.setBusinessId(context.getCompany().getCompanyId());
|
||||
/* 542 */ List<AcsPassRuleResultDto> passRuleResult = this.acsPassRuleDao.list(dto);
|
||||
/* 543 */ if (CollectionUtils.isEmpty(passRuleResult)) {
|
||||
/* 544 */ return CloudwalkResult.fail("76260517", getMessage("76260517"));
|
||||
/* */ }
|
||||
/* 546 */ AcsPassRuleDetailResult result = coverRuleDetailResult(passRuleResult.get(0), context);
|
||||
/* 547 */ return CloudwalkResult.success(result);
|
||||
/* 548 */ } catch (DataAccessException e) {
|
||||
/* 549 */ this.logger.error("查询通行规则详情失败");
|
||||
/* 550 */ throw new ServiceException("76260508", getMessage("76260508"));
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ private List<AcsPassRuleResult> coverRulePageResult(List<AcsPassRuleResultDto> passRuleResultDtos, CloudwalkCallContext context, boolean needDetail) throws ServiceException {
|
||||
/* 559 */ List<AcsPassRuleResult> results = new ArrayList<>();
|
||||
/* 560 */ Map<String, ImageStoreListResult> imageStoreResultMap = null;
|
||||
/* 561 */ if (needDetail) {
|
||||
/* */
|
||||
/* 563 */ List<String> imageStoreIds = (List<String>)passRuleResultDtos.stream().map(AcsPassRuleResultDto::getImageStoreId).collect(Collectors.toList());
|
||||
/* 564 */ List<ImageStoreListResult> imageStoreListResult = getImageStorePageResult(imageStoreIds, context);
|
||||
/* */
|
||||
/* 566 */ imageStoreResultMap = (Map<String, ImageStoreListResult>)imageStoreListResult.stream().collect(Collectors.toMap(ImageStoreListResult::getId, imageStoreListResult -> imageStoreListResult));
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* 570 */ for (AcsPassRuleResultDto dto : passRuleResultDtos) {
|
||||
/* 571 */ AcsPassRuleResult result = new AcsPassRuleResult();
|
||||
/* 572 */ BeanCopyUtils.copyProperties(dto, result);
|
||||
/* 573 */ result.setRuleName(dto.getName());
|
||||
/* 574 */ result.setPassType(AcsPassTypeEnum.LONG_TIME.getCode());
|
||||
/* 575 */ if (dto.getBeginDate() != null || dto.getEndDate() != null) {
|
||||
/* 576 */ result.setPassType(AcsPassTypeEnum.AUTO_PASS.getCode());
|
||||
/* */ }
|
||||
/* 578 */ if (needDetail && imageStoreResultMap.containsKey(dto.getImageStoreId())) {
|
||||
/* 579 */ ImageStoreListResult imageStoreListResult = imageStoreResultMap.get(dto.getImageStoreId());
|
||||
/* 580 */ result.setPersonSum(imageStoreListResult.getPersonNum().intValue());
|
||||
/* 581 */ result.setIncludeOrganizations(imageStoreListResult.getIncludeOrganizations());
|
||||
/* 582 */ result.setIncludeLabels(imageStoreListResult.getIncludeLabels());
|
||||
/* 583 */ result.setExcludeLabels(imageStoreListResult.getExcludeLabels());
|
||||
/* */ }
|
||||
/* */
|
||||
/* 586 */ results.add(result);
|
||||
/* */ }
|
||||
/* 588 */ return results;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */ private List<ImageStoreListResult> getImageStorePageResult(List<String> imageStoreIds, CloudwalkCallContext context) throws ServiceException {
|
||||
/* 593 */ ImageStoreQueryParam param = new ImageStoreQueryParam();
|
||||
/* 594 */ param.setIds(imageStoreIds);
|
||||
/* 595 */ param.setBusinessId(context.getCompany().getCompanyId());
|
||||
/* 596 */ CloudwalkResult<List<ImageStoreListResult>> imageStoreResult = this.imageStoreService.list(param, context);
|
||||
/* 597 */ if (!imageStoreResult.isSuccess()) {
|
||||
/* 598 */ this.logger.info("远程调用分页查询图库失败,原因:" + imageStoreResult.getMessage());
|
||||
/* 599 */ throw new ServiceException(imageStoreResult.getCode(), imageStoreResult.getMessage());
|
||||
/* */ }
|
||||
/* 601 */ return (List<ImageStoreListResult>)imageStoreResult.getData();
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */ private AcsPassRuleDetailResult coverRuleDetailResult(AcsPassRuleResultDto dto, CloudwalkCallContext context) throws ServiceException {
|
||||
/* 606 */ AcsPassRuleDetailResult result = new AcsPassRuleDetailResult();
|
||||
/* 607 */ BeanCopyUtils.copyProperties(dto, result);
|
||||
/* 608 */ result.setRuleName(dto.getName());
|
||||
/* */
|
||||
/* 610 */ ImageStoreDetailResult imageStoreDetailResult = getImageStoreDetail(dto.getImageStoreId(), context);
|
||||
/* 611 */ result.setIncludeOrganizations(imageStoreDetailResult.getIncludeOrganizations());
|
||||
/* 612 */ result.setIncludeLabels(imageStoreDetailResult.getIncludeLabels());
|
||||
/* 613 */ result.setExcludeLabels(imageStoreDetailResult.getExcludeLabels());
|
||||
/* */
|
||||
/* 615 */ List<AcsPassTimeCycleParam> timeCycleParams = JSONObject.parseArray(dto.getValidDateJson(), AcsPassTimeCycleParam.class);
|
||||
/* 616 */ result.setPassableCycle(timeCycleParams);
|
||||
/* 617 */ result.setPassType(AcsPassTypeEnum.LONG_TIME.getCode());
|
||||
/* 618 */ if (dto.getBeginDate() != null || dto.getEndDate() != null) {
|
||||
/* 619 */ result.setPassType(AcsPassTypeEnum.AUTO_PASS.getCode());
|
||||
/* */ }
|
||||
/* 621 */ return result;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ @CloudwalkParamsValidate(argsIndexs = {0, 1})
|
||||
/* */ public CloudwalkResult<CloudwalkPageAble<AcsPassRuleResult>> page(AcsPassRuleQueryParam param, CloudwalkPageInfo page, CloudwalkCallContext context) throws ServiceException {
|
||||
/* */ try {
|
||||
/* 640 */ AcsPassRuleQueryDto dto = new AcsPassRuleQueryDto();
|
||||
/* 641 */ dto.setZoneId(param.getZoneId());
|
||||
/* 642 */ dto.setBusinessId(context.getCompany().getCompanyId());
|
||||
/* 643 */ CloudwalkPageAble<AcsPassRuleResultDto> passRuleResult = this.acsPassRuleDao.page(dto, page);
|
||||
/* */
|
||||
/* 645 */ if (CollectionUtils.isEmpty(passRuleResult.getDatas()) && ObjectUtils.isEmpty(param.getIsDefault())) {
|
||||
/* 646 */ AcsPassRuleNewParam ruleNewParam = new AcsPassRuleNewParam();
|
||||
/* 647 */ ruleNewParam.setZoneId(param.getZoneId());
|
||||
/* 648 */ ruleNewParam.setZoneName(param.getZoneName());
|
||||
/* 649 */ ruleNewParam.setRuleName("默认规则");
|
||||
/* 650 */ ruleNewParam.setIsDefault(Integer.valueOf(1));
|
||||
/* 651 */ add(ruleNewParam, context);
|
||||
/* 652 */ passRuleResult = this.acsPassRuleDao.page(dto, page);
|
||||
/* */ }
|
||||
/* */
|
||||
/* 655 */ List<AcsPassRuleResult> results = coverRulePageResult((List<AcsPassRuleResultDto>)passRuleResult.getDatas(), context, true);
|
||||
/* 656 */ return CloudwalkResult.success(new CloudwalkPageAble(results, page, passRuleResult.getTotalRows()));
|
||||
/* 657 */ } catch (DataAccessException e) {
|
||||
/* 658 */ this.logger.error("分页查询通行规则失败");
|
||||
/* 659 */ throw new ServiceException("76260508", getMessage("76260508"));
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public CloudwalkResult<List<AcsPassRuleResult>> list(AcsPassRuleQueryParam param, CloudwalkCallContext context) throws ServiceException {
|
||||
/* */ try {
|
||||
/* 677 */ AcsPassRuleQueryDto dto = new AcsPassRuleQueryDto();
|
||||
/* 678 */ BeanCopyUtils.copyProperties(param, dto);
|
||||
/* 679 */ dto.setBusinessId(context.getCompany().getCompanyId());
|
||||
/* 680 */ List<AcsPassRuleResultDto> passRuleResult = this.acsPassRuleDao.list(dto);
|
||||
/* 681 */ return CloudwalkResult.success(coverRulePageResult(passRuleResult, context, false));
|
||||
/* 682 */ } catch (DataAccessException e) {
|
||||
/* 683 */ this.logger.error("查询通行规则失败");
|
||||
/* 684 */ throw new ServiceException("76260508", getMessage("76260508"));
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public CloudwalkResult<List<AcsPassRuleImageResultDto>> listByImageId(AcsPassRuleImageParam param, CloudwalkCallContext context) throws ServiceException {
|
||||
/* */ try {
|
||||
/* 701 */ AcsPassRuleImageDto dto = new AcsPassRuleImageDto();
|
||||
/* 702 */ BeanCopyUtils.copyProperties(param, dto);
|
||||
/* 703 */ List<AcsPassRuleImageResultDto> resultDtos = this.acsPassRuleDao.listByImageId(dto);
|
||||
/* 704 */ return CloudwalkResult.success(resultDtos);
|
||||
/* 705 */ } catch (DataAccessException e) {
|
||||
/* 706 */ this.logger.error("根据图库id集合查询对应楼层信息失败");
|
||||
/* 707 */ throw new ServiceException("76260526", getMessage("76260526"));
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ private void getZoneTypeIsThree(ZoneTreeResult zoneTreeResult, List<AcsPassRuleFloorResult> passRuleResults) {
|
||||
/* 715 */ if ("FLOOR".equals(zoneTreeResult.getType())) {
|
||||
/* 716 */ AcsPassRuleFloorResult result = new AcsPassRuleFloorResult();
|
||||
/* 717 */ result.setId(zoneTreeResult.getId());
|
||||
/* 718 */ result.setName(zoneTreeResult.getName());
|
||||
/* 719 */ result.setUnitNumber(zoneTreeResult.getUnitCount());
|
||||
/* 720 */ passRuleResults.add(result);
|
||||
/* */ }
|
||||
/* 722 */ else if (!CollectionUtils.isEmpty(zoneTreeResult.getChildren())) {
|
||||
/* 723 */ for (ZoneTreeResult treeResult : zoneTreeResult.getChildren())
|
||||
/* 724 */ getZoneTypeIsThree(treeResult, passRuleResults);
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-service-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\passrule\impl\AcsPassRuleServiceImpl.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+1024
File diff suppressed because it is too large
Load Diff
+63
@@ -0,0 +1,63 @@
|
||||
/* */ package cn.cloudwalk.elevator.passrule.param;
|
||||
/* */
|
||||
/* */ import java.io.Serializable;
|
||||
/* */ import java.util.List;
|
||||
/* */ import org.hibernate.validator.constraints.NotEmpty;
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public class AcsPassRuleDeleteParam
|
||||
/* */ implements Serializable
|
||||
/* */ {
|
||||
/* */ private static final long serialVersionUID = -40026518356914854L;
|
||||
/* */ @NotEmpty(message = "76260515")
|
||||
/* */ private List<String> ids;
|
||||
/* */ private String zoneId;
|
||||
/* */ private String parentId;
|
||||
/* */
|
||||
/* */ public List<String> getIds() {
|
||||
/* 35 */ return this.ids;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setIds(List<String> ids) {
|
||||
/* 39 */ this.ids = ids;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getZoneId() {
|
||||
/* 43 */ return this.zoneId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setZoneId(String zoneId) {
|
||||
/* 47 */ this.zoneId = zoneId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getParentId() {
|
||||
/* 51 */ return this.parentId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setParentId(String parentId) {
|
||||
/* 55 */ this.parentId = parentId;
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-service-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\passrule\param\AcsPassRuleDeleteParam.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+168
@@ -0,0 +1,168 @@
|
||||
/* */ package cn.cloudwalk.elevator.passrule.param;
|
||||
/* */
|
||||
/* */ import java.io.Serializable;
|
||||
/* */ import java.util.List;
|
||||
/* */ import javax.validation.constraints.Size;
|
||||
/* */ import org.hibernate.validator.constraints.NotBlank;
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public class AcsPassRuleEditParam
|
||||
/* */ implements Serializable
|
||||
/* */ {
|
||||
/* */ private static final long serialVersionUID = 924203126937866288L;
|
||||
/* */ @NotBlank(message = "76260515")
|
||||
/* */ private String id;
|
||||
/* */ private String parentId;
|
||||
/* */ private String zoneId;
|
||||
/* */ private String zoneName;
|
||||
/* */ @NotBlank(message = "76260514")
|
||||
/* */ @Size(min = 1, max = 32, message = "76260518")
|
||||
/* */ private String ruleName;
|
||||
/* */ private String oldName;
|
||||
/* */ private List<String> includeOrganizations;
|
||||
/* */ private List<String> includeLabels;
|
||||
/* */ private List<String> excludeLabels;
|
||||
/* */ private Long startTime;
|
||||
/* */ private Long endTime;
|
||||
/* */
|
||||
/* */ public String getParentId() {
|
||||
/* 76 */ return this.parentId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setParentId(String parentId) {
|
||||
/* 80 */ this.parentId = parentId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getOldName() {
|
||||
/* 84 */ return this.oldName;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setOldName(String oldName) {
|
||||
/* 88 */ this.oldName = oldName;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getId() {
|
||||
/* 92 */ return this.id;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setId(String id) {
|
||||
/* 96 */ this.id = id;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getZoneId() {
|
||||
/* 100 */ return this.zoneId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setZoneId(String zoneId) {
|
||||
/* 104 */ this.zoneId = zoneId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getZoneName() {
|
||||
/* 108 */ return this.zoneName;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setZoneName(String zoneName) {
|
||||
/* 112 */ this.zoneName = zoneName;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getRuleName() {
|
||||
/* 116 */ return this.ruleName;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setRuleName(String ruleName) {
|
||||
/* 120 */ this.ruleName = ruleName;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public List<String> getIncludeOrganizations() {
|
||||
/* 124 */ return this.includeOrganizations;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setIncludeOrganizations(List<String> includeOrganizations) {
|
||||
/* 128 */ this.includeOrganizations = includeOrganizations;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public List<String> getIncludeLabels() {
|
||||
/* 132 */ return this.includeLabels;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setIncludeLabels(List<String> includeLabels) {
|
||||
/* 136 */ this.includeLabels = includeLabels;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public List<String> getExcludeLabels() {
|
||||
/* 140 */ return this.excludeLabels;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setExcludeLabels(List<String> excludeLabels) {
|
||||
/* 144 */ this.excludeLabels = excludeLabels;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public Long getStartTime() {
|
||||
/* 148 */ return this.startTime;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setStartTime(Long startTime) {
|
||||
/* 152 */ this.startTime = startTime;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public Long getEndTime() {
|
||||
/* 156 */ return this.endTime;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setEndTime(Long endTime) {
|
||||
/* 160 */ this.endTime = endTime;
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-service-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\passrule\param\AcsPassRuleEditParam.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+33
@@ -0,0 +1,33 @@
|
||||
/* */ package cn.cloudwalk.elevator.passrule.param;
|
||||
/* */
|
||||
/* */ import cn.cloudwalk.cloud.page.CloudwalkBasePageForm;
|
||||
/* */ import java.io.Serializable;
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public class AcsPassRuleFloorParam
|
||||
/* */ extends CloudwalkBasePageForm
|
||||
/* */ implements Serializable
|
||||
/* */ {
|
||||
/* */ private static final long serialVersionUID = 137892620174267456L;
|
||||
/* */ private String zoneId;
|
||||
/* */
|
||||
/* */ public String getZoneId() {
|
||||
/* 21 */ return this.zoneId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setZoneId(String zoneId) {
|
||||
/* 25 */ this.zoneId = zoneId;
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-service-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\passrule\param\AcsPassRuleFloorParam.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+85
@@ -0,0 +1,85 @@
|
||||
/* */ package cn.cloudwalk.elevator.passrule.param;
|
||||
/* */
|
||||
/* */ import java.io.Serializable;
|
||||
/* */ import java.util.List;
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public class AcsPassRuleImageParam
|
||||
/* */ implements Serializable
|
||||
/* */ {
|
||||
/* */ private static final long serialVersionUID = -52687427633888290L;
|
||||
/* */ private List<String> imageStoreIds;
|
||||
/* */ private String businessId;
|
||||
/* */ private String personId;
|
||||
/* */ private List<String> includeOrganizations;
|
||||
/* */ private List<String> includeLabels;
|
||||
/* */
|
||||
/* */ public List<String> getImageStoreIds() {
|
||||
/* 41 */ return this.imageStoreIds;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setImageStoreIds(List<String> imageStoreIds) {
|
||||
/* 45 */ this.imageStoreIds = imageStoreIds;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getBusinessId() {
|
||||
/* 49 */ return this.businessId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setBusinessId(String businessId) {
|
||||
/* 53 */ this.businessId = businessId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getPersonId() {
|
||||
/* 57 */ return this.personId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setPersonId(String personId) {
|
||||
/* 61 */ this.personId = personId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public List<String> getIncludeOrganizations() {
|
||||
/* 65 */ return this.includeOrganizations;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setIncludeOrganizations(List<String> includeOrganizations) {
|
||||
/* 69 */ this.includeOrganizations = includeOrganizations;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public List<String> getIncludeLabels() {
|
||||
/* 73 */ return this.includeLabels;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setIncludeLabels(List<String> includeLabels) {
|
||||
/* 77 */ this.includeLabels = includeLabels;
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-service-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\passrule\param\AcsPassRuleImageParam.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+35
@@ -0,0 +1,35 @@
|
||||
/* */ package cn.cloudwalk.elevator.passrule.param;
|
||||
/* */
|
||||
/* */ import java.io.Serializable;
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public class AcsPassRuleIsDefaultParam
|
||||
/* */ implements Serializable
|
||||
/* */ {
|
||||
/* */ private static final long serialVersionUID = 137892620174267456L;
|
||||
/* */ private String zoneId;
|
||||
/* */
|
||||
/* */ public String getZoneId() {
|
||||
/* 23 */ return this.zoneId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setZoneId(String zoneId) {
|
||||
/* 27 */ this.zoneId = zoneId;
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-service-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\passrule\param\AcsPassRuleIsDefaultParam.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+154
@@ -0,0 +1,154 @@
|
||||
/* */ package cn.cloudwalk.elevator.passrule.param;
|
||||
/* */
|
||||
/* */ import java.io.Serializable;
|
||||
/* */ import java.util.List;
|
||||
/* */ import javax.validation.constraints.Size;
|
||||
/* */ import org.hibernate.validator.constraints.NotBlank;
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public class AcsPassRuleNewParam
|
||||
/* */ implements Serializable
|
||||
/* */ {
|
||||
/* */ private static final long serialVersionUID = 137892620174267456L;
|
||||
/* */ private String parentId;
|
||||
/* */ private String zoneId;
|
||||
/* */ private String zoneName;
|
||||
/* */ @NotBlank(message = "76260514")
|
||||
/* */ @Size(min = 1, max = 32, message = "76260518")
|
||||
/* */ private String ruleName;
|
||||
/* */ private List<String> includeLabels;
|
||||
/* */ private List<String> includeOrganizations;
|
||||
/* */ private List<String> excludeLabels;
|
||||
/* */ private Long startTime;
|
||||
/* */ private Long endTime;
|
||||
/* */ private Integer isDefault;
|
||||
/* */
|
||||
/* */ public String getParentId() {
|
||||
/* 70 */ return this.parentId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setParentId(String parentId) {
|
||||
/* 74 */ this.parentId = parentId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getZoneId() {
|
||||
/* 78 */ return this.zoneId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setZoneId(String zoneId) {
|
||||
/* 82 */ this.zoneId = zoneId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getZoneName() {
|
||||
/* 86 */ return this.zoneName;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setZoneName(String zoneName) {
|
||||
/* 90 */ this.zoneName = zoneName;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getRuleName() {
|
||||
/* 94 */ return this.ruleName;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setRuleName(String ruleName) {
|
||||
/* 98 */ this.ruleName = ruleName;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public List<String> getIncludeLabels() {
|
||||
/* 102 */ return this.includeLabels;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setIncludeLabels(List<String> includeLabels) {
|
||||
/* 106 */ this.includeLabels = includeLabels;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public List<String> getIncludeOrganizations() {
|
||||
/* 110 */ return this.includeOrganizations;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setIncludeOrganizations(List<String> includeOrganizations) {
|
||||
/* 114 */ this.includeOrganizations = includeOrganizations;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public List<String> getExcludeLabels() {
|
||||
/* 118 */ return this.excludeLabels;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setExcludeLabels(List<String> excludeLabels) {
|
||||
/* 122 */ this.excludeLabels = excludeLabels;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public Long getStartTime() {
|
||||
/* 126 */ return this.startTime;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setStartTime(Long startTime) {
|
||||
/* 130 */ this.startTime = startTime;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public Long getEndTime() {
|
||||
/* 134 */ return this.endTime;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setEndTime(Long endTime) {
|
||||
/* 138 */ this.endTime = endTime;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public Integer getIsDefault() {
|
||||
/* 142 */ return this.isDefault;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setIsDefault(Integer isDefault) {
|
||||
/* 146 */ this.isDefault = isDefault;
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-service-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\passrule\param\AcsPassRuleNewParam.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+34
@@ -0,0 +1,34 @@
|
||||
/* */ package cn.cloudwalk.elevator.passrule.param;
|
||||
/* */
|
||||
/* */ import cn.cloudwalk.cloud.page.CloudwalkBasePageForm;
|
||||
/* */ import java.io.Serializable;
|
||||
/* */ import java.util.List;
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public class AcsPassRulePersonListParam
|
||||
/* */ extends CloudwalkBasePageForm
|
||||
/* */ implements Serializable
|
||||
/* */ {
|
||||
/* */ private static final long serialVersionUID = -52687427633888290L;
|
||||
/* */ private List<AcsPassRuleImageParam> personList;
|
||||
/* */
|
||||
/* */ public List<AcsPassRuleImageParam> getPersonList() {
|
||||
/* 22 */ return this.personList;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setPersonList(List<AcsPassRuleImageParam> personList) {
|
||||
/* 26 */ this.personList = personList;
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-service-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\passrule\param\AcsPassRulePersonListParam.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+96
@@ -0,0 +1,96 @@
|
||||
/* */ package cn.cloudwalk.elevator.passrule.param;
|
||||
/* */
|
||||
/* */ import java.io.Serializable;
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public class AcsPassRuleQueryParam
|
||||
/* */ implements Serializable
|
||||
/* */ {
|
||||
/* */ private static final long serialVersionUID = -31004388036379268L;
|
||||
/* */ private String id;
|
||||
/* */ private String parentId;
|
||||
/* */ private String zoneId;
|
||||
/* */ private String zoneName;
|
||||
/* */ private String imageStoreId;
|
||||
/* */ private Integer isDefault;
|
||||
/* */
|
||||
/* */ public String getId() {
|
||||
/* 44 */ return this.id;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setId(String id) {
|
||||
/* 48 */ this.id = id;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getParentId() {
|
||||
/* 52 */ return this.parentId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setParentId(String parentId) {
|
||||
/* 56 */ this.parentId = parentId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getZoneId() {
|
||||
/* 60 */ return this.zoneId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setZoneId(String zoneId) {
|
||||
/* 64 */ this.zoneId = zoneId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getImageStoreId() {
|
||||
/* 68 */ return this.imageStoreId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setImageStoreId(String imageStoreId) {
|
||||
/* 72 */ this.imageStoreId = imageStoreId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getZoneName() {
|
||||
/* 76 */ return this.zoneName;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setZoneName(String zoneName) {
|
||||
/* 80 */ this.zoneName = zoneName;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public Integer getIsDefault() {
|
||||
/* 84 */ return this.isDefault;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setIsDefault(Integer isDefault) {
|
||||
/* 88 */ this.isDefault = isDefault;
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-service-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\passrule\param\AcsPassRuleQueryParam.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+79
@@ -0,0 +1,79 @@
|
||||
/* */ package cn.cloudwalk.elevator.passrule.param;
|
||||
/* */
|
||||
/* */ import java.io.Serializable;
|
||||
/* */ import java.util.List;
|
||||
/* */ import javax.validation.constraints.Size;
|
||||
/* */ import org.hibernate.validator.constraints.NotBlank;
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public class AcsPassTimeAddParam
|
||||
/* */ implements Serializable
|
||||
/* */ {
|
||||
/* */ private static final long serialVersionUID = 8600793178515359164L;
|
||||
/* */ @NotBlank(message = "76260512")
|
||||
/* */ @Size(min = 1, max = 64, message = "76260519")
|
||||
/* */ private String passableTimeName;
|
||||
/* */ private Long beginDate;
|
||||
/* */ private Long endDate;
|
||||
/* */ private List<AcsPassTimeCycleParam> passableCycle;
|
||||
/* */
|
||||
/* */ public String getPassableTimeName() {
|
||||
/* 43 */ return this.passableTimeName;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setPassableTimeName(String passableTimeName) {
|
||||
/* 47 */ this.passableTimeName = passableTimeName;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public Long getBeginDate() {
|
||||
/* 51 */ return this.beginDate;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setBeginDate(Long beginDate) {
|
||||
/* 55 */ this.beginDate = beginDate;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public Long getEndDate() {
|
||||
/* 59 */ return this.endDate;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setEndDate(Long endDate) {
|
||||
/* 63 */ this.endDate = endDate;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public List<AcsPassTimeCycleParam> getPassableCycle() {
|
||||
/* 67 */ return this.passableCycle;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setPassableCycle(List<AcsPassTimeCycleParam> passableCycle) {
|
||||
/* 71 */ this.passableCycle = passableCycle;
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-service-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\passrule\param\AcsPassTimeAddParam.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+49
@@ -0,0 +1,49 @@
|
||||
/* */ package cn.cloudwalk.elevator.passrule.param;
|
||||
/* */
|
||||
/* */ import java.io.Serializable;
|
||||
/* */ import java.util.List;
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public class AcsPassTimeCycleParam
|
||||
/* */ implements Serializable
|
||||
/* */ {
|
||||
/* */ private static final long serialVersionUID = 9084516985152275888L;
|
||||
/* */ private int weekday;
|
||||
/* */ private List<AcsPassTimeParam> time;
|
||||
/* */
|
||||
/* */ public int getWeekday() {
|
||||
/* 29 */ return this.weekday;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setWeekday(int weekday) {
|
||||
/* 33 */ this.weekday = weekday;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public List<AcsPassTimeParam> getTime() {
|
||||
/* 37 */ return this.time;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setTime(List<AcsPassTimeParam> time) {
|
||||
/* 41 */ this.time = time;
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-service-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\passrule\param\AcsPassTimeCycleParam.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+38
@@ -0,0 +1,38 @@
|
||||
/* */ package cn.cloudwalk.elevator.passrule.param;
|
||||
/* */
|
||||
/* */ import java.io.Serializable;
|
||||
/* */ import java.util.List;
|
||||
/* */ import org.hibernate.validator.constraints.NotEmpty;
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public class AcsPassTimeDeleteParam
|
||||
/* */ implements Serializable
|
||||
/* */ {
|
||||
/* */ private static final long serialVersionUID = -1142611457619464538L;
|
||||
/* */ @NotEmpty(message = "76260513")
|
||||
/* */ private List<String> ids;
|
||||
/* */
|
||||
/* */ public List<String> getIds() {
|
||||
/* 26 */ return this.ids;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setIds(List<String> ids) {
|
||||
/* 30 */ this.ids = ids;
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-service-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\passrule\param\AcsPassTimeDeleteParam.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+93
@@ -0,0 +1,93 @@
|
||||
/* */ package cn.cloudwalk.elevator.passrule.param;
|
||||
/* */
|
||||
/* */ import java.io.Serializable;
|
||||
/* */ import java.util.List;
|
||||
/* */ import javax.validation.constraints.Size;
|
||||
/* */ import org.hibernate.validator.constraints.NotBlank;
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public class AcsPassTimeEditParam
|
||||
/* */ implements Serializable
|
||||
/* */ {
|
||||
/* */ private static final long serialVersionUID = -8271994630899900554L;
|
||||
/* */ @NotBlank(message = "76260513")
|
||||
/* */ private String id;
|
||||
/* */ @NotBlank(message = "76260512")
|
||||
/* */ @Size(min = 1, max = 64, message = "76260519")
|
||||
/* */ private String passableTimeName;
|
||||
/* */ private Long beginDate;
|
||||
/* */ private Long endDate;
|
||||
/* */ private List<AcsPassTimeCycleParam> passableCycle;
|
||||
/* */
|
||||
/* */ public String getId() {
|
||||
/* 49 */ return this.id;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setId(String id) {
|
||||
/* 53 */ this.id = id;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getPassableTimeName() {
|
||||
/* 57 */ return this.passableTimeName;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setPassableTimeName(String passableTimeName) {
|
||||
/* 61 */ this.passableTimeName = passableTimeName;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public Long getBeginDate() {
|
||||
/* 65 */ return this.beginDate;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setBeginDate(Long beginDate) {
|
||||
/* 69 */ this.beginDate = beginDate;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public Long getEndDate() {
|
||||
/* 73 */ return this.endDate;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setEndDate(Long endDate) {
|
||||
/* 77 */ this.endDate = endDate;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public List<AcsPassTimeCycleParam> getPassableCycle() {
|
||||
/* 81 */ return this.passableCycle;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setPassableCycle(List<AcsPassTimeCycleParam> passableCycle) {
|
||||
/* 85 */ this.passableCycle = passableCycle;
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-service-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\passrule\param\AcsPassTimeEditParam.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+48
@@ -0,0 +1,48 @@
|
||||
/* */ package cn.cloudwalk.elevator.passrule.param;
|
||||
/* */
|
||||
/* */ import java.io.Serializable;
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public class AcsPassTimeParam
|
||||
/* */ implements Serializable
|
||||
/* */ {
|
||||
/* */ private static final long serialVersionUID = 7496987389322298594L;
|
||||
/* */ private String beginTime;
|
||||
/* */ private String endTime;
|
||||
/* */
|
||||
/* */ public String getBeginTime() {
|
||||
/* 28 */ return this.beginTime;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setBeginTime(String beginTime) {
|
||||
/* 32 */ this.beginTime = beginTime;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getEndTime() {
|
||||
/* 36 */ return this.endTime;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setEndTime(String endTime) {
|
||||
/* 40 */ this.endTime = endTime;
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-service-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\passrule\param\AcsPassTimeParam.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
/* */ package cn.cloudwalk.elevator.passrule.param;
|
||||
/* */
|
||||
/* */ import java.io.Serializable;
|
||||
/* */ import org.hibernate.validator.constraints.NotBlank;
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public class AcsPassTimeQueryParam
|
||||
/* */ implements Serializable
|
||||
/* */ {
|
||||
/* */ private static final long serialVersionUID = 7311660131290856391L;
|
||||
/* */ @NotBlank(message = "76260513")
|
||||
/* */ private String id;
|
||||
/* */
|
||||
/* */ public String getId() {
|
||||
/* 25 */ return this.id;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setId(String id) {
|
||||
/* 29 */ this.id = id;
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-service-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\passrule\param\AcsPassTimeQueryParam.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+207
@@ -0,0 +1,207 @@
|
||||
/* */ package cn.cloudwalk.elevator.passrule.result;
|
||||
/* */
|
||||
/* */ import cn.cloudwalk.client.cwoscomponent.intelligent.label.result.LabelResult;
|
||||
/* */ import cn.cloudwalk.client.cwoscomponent.intelligent.organization.result.OrganizationResult;
|
||||
/* */ import cn.cloudwalk.elevator.passrule.param.AcsPassTimeCycleParam;
|
||||
/* */ import java.util.List;
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public class AcsPassRuleDetailResult
|
||||
/* */ {
|
||||
/* */ private static final long serialVersionUID = -90554404684210529L;
|
||||
/* */ private String id;
|
||||
/* */ private String ruleName;
|
||||
/* */ private String imageStoreId;
|
||||
/* */ private String zoneId;
|
||||
/* */ private String zoneName;
|
||||
/* */ private Long beginDate;
|
||||
/* */ private Long endDate;
|
||||
/* */ private String validDateCron;
|
||||
/* */ private String validDateJson;
|
||||
/* */ private List<LabelResult> excludeLabels;
|
||||
/* */ private List<OrganizationResult> includeOrganizations;
|
||||
/* */ private List<LabelResult> includeLabels;
|
||||
/* */ private List<AcsPassTimeCycleParam> passableCycle;
|
||||
/* */ private Integer passType;
|
||||
/* */
|
||||
/* */ public String getRuleName() {
|
||||
/* 91 */ return this.ruleName;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setRuleName(String ruleName) {
|
||||
/* 95 */ this.ruleName = ruleName;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getId() {
|
||||
/* 99 */ return this.id;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setId(String id) {
|
||||
/* 103 */ this.id = id;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getImageStoreId() {
|
||||
/* 107 */ return this.imageStoreId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setImageStoreId(String imageStoreId) {
|
||||
/* 111 */ this.imageStoreId = imageStoreId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public Long getBeginDate() {
|
||||
/* 115 */ return this.beginDate;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setBeginDate(Long beginDate) {
|
||||
/* 119 */ this.beginDate = beginDate;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public Long getEndDate() {
|
||||
/* 123 */ return this.endDate;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setEndDate(Long endDate) {
|
||||
/* 127 */ this.endDate = endDate;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getValidDateCron() {
|
||||
/* 131 */ return this.validDateCron;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setValidDateCron(String validDateCron) {
|
||||
/* 135 */ this.validDateCron = validDateCron;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getValidDateJson() {
|
||||
/* 139 */ return this.validDateJson;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setValidDateJson(String validDateJson) {
|
||||
/* 143 */ this.validDateJson = validDateJson;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public List<LabelResult> getExcludeLabels() {
|
||||
/* 147 */ return this.excludeLabels;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setExcludeLabels(List<LabelResult> excludeLabels) {
|
||||
/* 151 */ this.excludeLabels = excludeLabels;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public List<OrganizationResult> getIncludeOrganizations() {
|
||||
/* 155 */ return this.includeOrganizations;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setIncludeOrganizations(List<OrganizationResult> includeOrganizations) {
|
||||
/* 159 */ this.includeOrganizations = includeOrganizations;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public List<LabelResult> getIncludeLabels() {
|
||||
/* 163 */ return this.includeLabels;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setIncludeLabels(List<LabelResult> includeLabels) {
|
||||
/* 167 */ this.includeLabels = includeLabels;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public List<AcsPassTimeCycleParam> getPassableCycle() {
|
||||
/* 171 */ return this.passableCycle;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setPassableCycle(List<AcsPassTimeCycleParam> passableCycle) {
|
||||
/* 175 */ this.passableCycle = passableCycle;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public Integer getPassType() {
|
||||
/* 179 */ return this.passType;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setPassType(Integer passType) {
|
||||
/* 183 */ this.passType = passType;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getZoneId() {
|
||||
/* 187 */ return this.zoneId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setZoneId(String zoneId) {
|
||||
/* 191 */ this.zoneId = zoneId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getZoneName() {
|
||||
/* 195 */ return this.zoneName;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setZoneName(String zoneName) {
|
||||
/* 199 */ this.zoneName = zoneName;
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-service-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\passrule\result\AcsPassRuleDetailResult.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+51
@@ -0,0 +1,51 @@
|
||||
/* */ package cn.cloudwalk.elevator.passrule.result;
|
||||
/* */
|
||||
/* */ import java.io.Serializable;
|
||||
/* */
|
||||
/* */ public class AcsPassRuleFloorResult
|
||||
/* */ implements Serializable
|
||||
/* */ {
|
||||
/* */ private static final long serialVersionUID = -90554404684210529L;
|
||||
/* */ private String id;
|
||||
/* */ private String name;
|
||||
/* */ private Integer deviceNumber;
|
||||
/* */ private Integer unitNumber;
|
||||
/* */ private Long personNumber;
|
||||
/* */
|
||||
/* */ public void setId(String id) {
|
||||
/* 16 */ this.id = id; } public void setName(String name) { this.name = name; } public void setDeviceNumber(Integer deviceNumber) { this.deviceNumber = deviceNumber; } public void setUnitNumber(Integer unitNumber) { this.unitNumber = unitNumber; } public void setPersonNumber(Long personNumber) { this.personNumber = personNumber; } public boolean equals(Object o) { if (o == this) return true; if (!(o instanceof AcsPassRuleFloorResult)) return false; AcsPassRuleFloorResult other = (AcsPassRuleFloorResult)o; if (!other.canEqual(this)) return false; Object this$id = getId(), other$id = other.getId(); if ((this$id == null) ? (other$id != null) : !this$id.equals(other$id)) return false; Object this$name = getName(), other$name = other.getName(); if ((this$name == null) ? (other$name != null) : !this$name.equals(other$name)) return false; Object this$deviceNumber = getDeviceNumber(), other$deviceNumber = other.getDeviceNumber(); if ((this$deviceNumber == null) ? (other$deviceNumber != null) : !this$deviceNumber.equals(other$deviceNumber)) return false; Object this$unitNumber = getUnitNumber(), other$unitNumber = other.getUnitNumber(); if ((this$unitNumber == null) ? (other$unitNumber != null) : !this$unitNumber.equals(other$unitNumber)) return false; Object this$personNumber = getPersonNumber(), other$personNumber = other.getPersonNumber(); return !((this$personNumber == null) ? (other$personNumber != null) : !this$personNumber.equals(other$personNumber)); } protected boolean canEqual(Object other) { return other instanceof AcsPassRuleFloorResult; } public int hashCode() { int PRIME = 59; result = 1; Object $id = getId(); result = result * 59 + (($id == null) ? 43 : $id.hashCode()); Object $name = getName(); result = result * 59 + (($name == null) ? 43 : $name.hashCode()); Object $deviceNumber = getDeviceNumber(); result = result * 59 + (($deviceNumber == null) ? 43 : $deviceNumber.hashCode()); Object $unitNumber = getUnitNumber(); result = result * 59 + (($unitNumber == null) ? 43 : $unitNumber.hashCode()); Object $personNumber = getPersonNumber(); return result * 59 + (($personNumber == null) ? 43 : $personNumber.hashCode()); } public String toString() { return "AcsPassRuleFloorResult(id=" + getId() + ", name=" + getName() + ", deviceNumber=" + getDeviceNumber() + ", unitNumber=" + getUnitNumber() + ", personNumber=" + getPersonNumber() + ")"; }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public String getId() {
|
||||
/* 23 */ return this.id;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */ public String getName() {
|
||||
/* 28 */ return this.name;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */ public Integer getDeviceNumber() {
|
||||
/* 33 */ return this.deviceNumber;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */ public Integer getUnitNumber() {
|
||||
/* 38 */ return this.unitNumber;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */ public Long getPersonNumber() {
|
||||
/* 43 */ return this.personNumber;
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-service-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\passrule\result\AcsPassRuleFloorResult.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+235
@@ -0,0 +1,235 @@
|
||||
/* */ package cn.cloudwalk.elevator.passrule.result;
|
||||
/* */
|
||||
/* */ import cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.result.ImgStorePersonResult;
|
||||
/* */ import cn.cloudwalk.client.cwoscomponent.intelligent.label.result.LabelResult;
|
||||
/* */ import cn.cloudwalk.client.cwoscomponent.intelligent.organization.result.OrganizationResult;
|
||||
/* */ import java.io.Serializable;
|
||||
/* */ import java.util.List;
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public class AcsPassRuleResult
|
||||
/* */ implements Serializable
|
||||
/* */ {
|
||||
/* */ private static final long serialVersionUID = -90554404684210529L;
|
||||
/* */ private String id;
|
||||
/* */ private String ruleName;
|
||||
/* */ private int personSum;
|
||||
/* */ private String imageStoreId;
|
||||
/* */ private String passableTimeName;
|
||||
/* */ private String zoneId;
|
||||
/* */ private Long beginDate;
|
||||
/* */ private Long endDate;
|
||||
/* */ private String validDateCron;
|
||||
/* */ private String validDateJson;
|
||||
/* */ private List<LabelResult> excludeLabels;
|
||||
/* */ private List<OrganizationResult> includeOrganizations;
|
||||
/* */ private List<LabelResult> includeLabels;
|
||||
/* */ private List<ImgStorePersonResult> includePersons;
|
||||
/* */ private Integer passType;
|
||||
/* */ private Integer isDefault;
|
||||
/* */
|
||||
/* */ public String getRuleName() {
|
||||
/* 103 */ return this.ruleName;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setRuleName(String ruleName) {
|
||||
/* 107 */ this.ruleName = ruleName;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public int getPersonSum() {
|
||||
/* 111 */ return this.personSum;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setPersonSum(int personSum) {
|
||||
/* 115 */ this.personSum = personSum;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getId() {
|
||||
/* 119 */ return this.id;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setId(String id) {
|
||||
/* 123 */ this.id = id;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getImageStoreId() {
|
||||
/* 127 */ return this.imageStoreId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setImageStoreId(String imageStoreId) {
|
||||
/* 131 */ this.imageStoreId = imageStoreId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getZoneId() {
|
||||
/* 135 */ return this.zoneId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setZoneId(String zoneId) {
|
||||
/* 139 */ this.zoneId = zoneId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public Long getBeginDate() {
|
||||
/* 143 */ return this.beginDate;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setBeginDate(Long beginDate) {
|
||||
/* 147 */ this.beginDate = beginDate;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public Long getEndDate() {
|
||||
/* 151 */ return this.endDate;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setEndDate(Long endDate) {
|
||||
/* 155 */ this.endDate = endDate;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getValidDateCron() {
|
||||
/* 159 */ return this.validDateCron;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setValidDateCron(String validDateCron) {
|
||||
/* 163 */ this.validDateCron = validDateCron;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getValidDateJson() {
|
||||
/* 167 */ return this.validDateJson;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setValidDateJson(String validDateJson) {
|
||||
/* 171 */ this.validDateJson = validDateJson;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public List<LabelResult> getExcludeLabels() {
|
||||
/* 175 */ return this.excludeLabels;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setExcludeLabels(List<LabelResult> excludeLabels) {
|
||||
/* 179 */ this.excludeLabels = excludeLabels;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public List<OrganizationResult> getIncludeOrganizations() {
|
||||
/* 183 */ return this.includeOrganizations;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setIncludeOrganizations(List<OrganizationResult> includeOrganizations) {
|
||||
/* 187 */ this.includeOrganizations = includeOrganizations;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public List<LabelResult> getIncludeLabels() {
|
||||
/* 191 */ return this.includeLabels;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setIncludeLabels(List<LabelResult> includeLabels) {
|
||||
/* 195 */ this.includeLabels = includeLabels;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getPassableTimeName() {
|
||||
/* 199 */ return this.passableTimeName;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setPassableTimeName(String passableTimeName) {
|
||||
/* 203 */ this.passableTimeName = passableTimeName;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public List<ImgStorePersonResult> getIncludePersons() {
|
||||
/* 207 */ return this.includePersons;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setIncludePersons(List<ImgStorePersonResult> includePersons) {
|
||||
/* 211 */ this.includePersons = includePersons;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public Integer getPassType() {
|
||||
/* 215 */ return this.passType;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setPassType(Integer passType) {
|
||||
/* 219 */ this.passType = passType;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public Integer getIsDefault() {
|
||||
/* 223 */ return this.isDefault;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setIsDefault(Integer isDefault) {
|
||||
/* 227 */ this.isDefault = isDefault;
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-service-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\passrule\result\AcsPassRuleResult.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+207
@@ -0,0 +1,207 @@
|
||||
/* */ package cn.cloudwalk.elevator.passrule.result;
|
||||
/* */
|
||||
/* */ import cn.cloudwalk.client.cwoscomponent.intelligent.label.result.LabelDetailResult;
|
||||
/* */ import cn.cloudwalk.client.cwoscomponent.intelligent.organization.result.OrganizationResult;
|
||||
/* */ import cn.cloudwalk.elevator.passrule.param.AcsPassTimeCycleParam;
|
||||
/* */ import java.util.List;
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public class ImageRuleRefDetailResult
|
||||
/* */ {
|
||||
/* */ private static final long serialVersionUID = -90554404684210529L;
|
||||
/* */ private String id;
|
||||
/* */ private String ruleName;
|
||||
/* */ private String imageStoreId;
|
||||
/* */ private String zoneId;
|
||||
/* */ private String zoneName;
|
||||
/* */ private Long beginDate;
|
||||
/* */ private Long endDate;
|
||||
/* */ private String validDateCron;
|
||||
/* */ private String validDateJson;
|
||||
/* */ private List<String> excludeLabels;
|
||||
/* */ private List<OrganizationResult> includeOrganizations;
|
||||
/* */ private List<LabelDetailResult> includeLabels;
|
||||
/* */ private List<AcsPassTimeCycleParam> passableCycle;
|
||||
/* */ private Integer passType;
|
||||
/* */
|
||||
/* */ public String getRuleName() {
|
||||
/* 91 */ return this.ruleName;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setRuleName(String ruleName) {
|
||||
/* 95 */ this.ruleName = ruleName;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getId() {
|
||||
/* 99 */ return this.id;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setId(String id) {
|
||||
/* 103 */ this.id = id;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getImageStoreId() {
|
||||
/* 107 */ return this.imageStoreId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setImageStoreId(String imageStoreId) {
|
||||
/* 111 */ this.imageStoreId = imageStoreId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public Long getBeginDate() {
|
||||
/* 115 */ return this.beginDate;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setBeginDate(Long beginDate) {
|
||||
/* 119 */ this.beginDate = beginDate;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public Long getEndDate() {
|
||||
/* 123 */ return this.endDate;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setEndDate(Long endDate) {
|
||||
/* 127 */ this.endDate = endDate;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getValidDateCron() {
|
||||
/* 131 */ return this.validDateCron;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setValidDateCron(String validDateCron) {
|
||||
/* 135 */ this.validDateCron = validDateCron;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getValidDateJson() {
|
||||
/* 139 */ return this.validDateJson;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setValidDateJson(String validDateJson) {
|
||||
/* 143 */ this.validDateJson = validDateJson;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public List<String> getExcludeLabels() {
|
||||
/* 147 */ return this.excludeLabels;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setExcludeLabels(List<String> excludeLabels) {
|
||||
/* 151 */ this.excludeLabels = excludeLabels;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public List<OrganizationResult> getIncludeOrganizations() {
|
||||
/* 155 */ return this.includeOrganizations;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setIncludeOrganizations(List<OrganizationResult> includeOrganizations) {
|
||||
/* 159 */ this.includeOrganizations = includeOrganizations;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public List<LabelDetailResult> getIncludeLabels() {
|
||||
/* 163 */ return this.includeLabels;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setIncludeLabels(List<LabelDetailResult> includeLabels) {
|
||||
/* 167 */ this.includeLabels = includeLabels;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public List<AcsPassTimeCycleParam> getPassableCycle() {
|
||||
/* 171 */ return this.passableCycle;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setPassableCycle(List<AcsPassTimeCycleParam> passableCycle) {
|
||||
/* 175 */ this.passableCycle = passableCycle;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public Integer getPassType() {
|
||||
/* 179 */ return this.passType;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setPassType(Integer passType) {
|
||||
/* 183 */ this.passType = passType;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getZoneId() {
|
||||
/* 187 */ return this.zoneId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setZoneId(String zoneId) {
|
||||
/* 191 */ this.zoneId = zoneId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getZoneName() {
|
||||
/* 195 */ return this.zoneName;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setZoneName(String zoneName) {
|
||||
/* 199 */ this.zoneName = zoneName;
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-service-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\passrule\result\ImageRuleRefDetailResult.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+235
@@ -0,0 +1,235 @@
|
||||
/* */ package cn.cloudwalk.elevator.passrule.result;
|
||||
/* */
|
||||
/* */ import cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.result.ImgStorePersonResult;
|
||||
/* */ import cn.cloudwalk.client.cwoscomponent.intelligent.label.result.LabelDetailResult;
|
||||
/* */ import cn.cloudwalk.client.cwoscomponent.intelligent.organization.result.OrganizationResult;
|
||||
/* */ import java.util.List;
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public class ImageRuleRefPageResult
|
||||
/* */ {
|
||||
/* */ private static final long serialVersionUID = -90554404684210529L;
|
||||
/* */ private String id;
|
||||
/* */ private String ruleName;
|
||||
/* */ private int personSum;
|
||||
/* */ private String imageStoreId;
|
||||
/* */ private String passableTimeName;
|
||||
/* */ private String zoneId;
|
||||
/* */ private Long beginDate;
|
||||
/* */ private Long endDate;
|
||||
/* */ private String validDateCron;
|
||||
/* */ private String validDateJson;
|
||||
/* */ private List<String> excludeLabels;
|
||||
/* */ private List<OrganizationResult> includeOrganizations;
|
||||
/* */ private List<LabelDetailResult> includeLabels;
|
||||
/* */ private List<ImgStorePersonResult> includePersons;
|
||||
/* */ private Integer passType;
|
||||
/* */ private Integer isDefault;
|
||||
/* */
|
||||
/* */ public String getRuleName() {
|
||||
/* 103 */ return this.ruleName;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setRuleName(String ruleName) {
|
||||
/* 107 */ this.ruleName = ruleName;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public int getPersonSum() {
|
||||
/* 111 */ return this.personSum;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setPersonSum(int personSum) {
|
||||
/* 115 */ this.personSum = personSum;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getId() {
|
||||
/* 119 */ return this.id;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setId(String id) {
|
||||
/* 123 */ this.id = id;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getImageStoreId() {
|
||||
/* 127 */ return this.imageStoreId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setImageStoreId(String imageStoreId) {
|
||||
/* 131 */ this.imageStoreId = imageStoreId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getZoneId() {
|
||||
/* 135 */ return this.zoneId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setZoneId(String zoneId) {
|
||||
/* 139 */ this.zoneId = zoneId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public Long getBeginDate() {
|
||||
/* 143 */ return this.beginDate;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setBeginDate(Long beginDate) {
|
||||
/* 147 */ this.beginDate = beginDate;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public Long getEndDate() {
|
||||
/* 151 */ return this.endDate;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setEndDate(Long endDate) {
|
||||
/* 155 */ this.endDate = endDate;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getValidDateCron() {
|
||||
/* 159 */ return this.validDateCron;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setValidDateCron(String validDateCron) {
|
||||
/* 163 */ this.validDateCron = validDateCron;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getValidDateJson() {
|
||||
/* 167 */ return this.validDateJson;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setValidDateJson(String validDateJson) {
|
||||
/* 171 */ this.validDateJson = validDateJson;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public List<String> getExcludeLabels() {
|
||||
/* 175 */ return this.excludeLabels;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setExcludeLabels(List<String> excludeLabels) {
|
||||
/* 179 */ this.excludeLabels = excludeLabels;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public List<OrganizationResult> getIncludeOrganizations() {
|
||||
/* 183 */ return this.includeOrganizations;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setIncludeOrganizations(List<OrganizationResult> includeOrganizations) {
|
||||
/* 187 */ this.includeOrganizations = includeOrganizations;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public List<LabelDetailResult> getIncludeLabels() {
|
||||
/* 191 */ return this.includeLabels;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setIncludeLabels(List<LabelDetailResult> includeLabels) {
|
||||
/* 195 */ this.includeLabels = includeLabels;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getPassableTimeName() {
|
||||
/* 199 */ return this.passableTimeName;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setPassableTimeName(String passableTimeName) {
|
||||
/* 203 */ this.passableTimeName = passableTimeName;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public List<ImgStorePersonResult> getIncludePersons() {
|
||||
/* 207 */ return this.includePersons;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setIncludePersons(List<ImgStorePersonResult> includePersons) {
|
||||
/* 211 */ this.includePersons = includePersons;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public Integer getPassType() {
|
||||
/* 215 */ return this.passType;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setPassType(Integer passType) {
|
||||
/* 219 */ this.passType = passType;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public Integer getIsDefault() {
|
||||
/* 223 */ return this.isDefault;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setIsDefault(Integer isDefault) {
|
||||
/* 227 */ this.isDefault = isDefault;
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-service-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\passrule\result\ImageRuleRefPageResult.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+45
@@ -0,0 +1,45 @@
|
||||
package cn.cloudwalk.elevator.passrule.service;
|
||||
|
||||
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.passrule.dto.AcsPassRuleImageResultDto;
|
||||
import cn.cloudwalk.elevator.passrule.param.AcsPassRuleDeleteParam;
|
||||
import cn.cloudwalk.elevator.passrule.param.AcsPassRuleEditParam;
|
||||
import cn.cloudwalk.elevator.passrule.param.AcsPassRuleFloorParam;
|
||||
import cn.cloudwalk.elevator.passrule.param.AcsPassRuleImageParam;
|
||||
import cn.cloudwalk.elevator.passrule.param.AcsPassRuleIsDefaultParam;
|
||||
import cn.cloudwalk.elevator.passrule.param.AcsPassRuleNewParam;
|
||||
import cn.cloudwalk.elevator.passrule.param.AcsPassRuleQueryParam;
|
||||
import cn.cloudwalk.elevator.passrule.result.AcsPassRuleDetailResult;
|
||||
import cn.cloudwalk.elevator.passrule.result.AcsPassRuleFloorResult;
|
||||
import cn.cloudwalk.elevator.passrule.result.AcsPassRuleResult;
|
||||
import java.util.List;
|
||||
|
||||
public interface AcsPassRuleService {
|
||||
CloudwalkResult<List<AcsPassRuleFloorResult>> listFloor(AcsPassRuleFloorParam paramAcsPassRuleFloorParam, CloudwalkCallContext paramCloudwalkCallContext) throws ServiceException;
|
||||
|
||||
CloudwalkResult<String> getIsDefaultByZoneId(AcsPassRuleIsDefaultParam paramAcsPassRuleIsDefaultParam, CloudwalkCallContext paramCloudwalkCallContext) throws ServiceException;
|
||||
|
||||
CloudwalkResult<String> add(AcsPassRuleNewParam paramAcsPassRuleNewParam, CloudwalkCallContext paramCloudwalkCallContext) throws ServiceException;
|
||||
|
||||
CloudwalkResult<Boolean> update(AcsPassRuleEditParam paramAcsPassRuleEditParam, CloudwalkCallContext paramCloudwalkCallContext) throws ServiceException;
|
||||
|
||||
CloudwalkResult<Boolean> delete(AcsPassRuleDeleteParam paramAcsPassRuleDeleteParam, CloudwalkCallContext paramCloudwalkCallContext) throws ServiceException;
|
||||
|
||||
CloudwalkResult<AcsPassRuleDetailResult> detail(AcsPassRuleQueryParam paramAcsPassRuleQueryParam, CloudwalkCallContext paramCloudwalkCallContext) throws ServiceException;
|
||||
|
||||
CloudwalkResult<CloudwalkPageAble<AcsPassRuleResult>> page(AcsPassRuleQueryParam paramAcsPassRuleQueryParam, CloudwalkPageInfo paramCloudwalkPageInfo, CloudwalkCallContext paramCloudwalkCallContext) throws ServiceException;
|
||||
|
||||
CloudwalkResult<List<AcsPassRuleResult>> list(AcsPassRuleQueryParam paramAcsPassRuleQueryParam, CloudwalkCallContext paramCloudwalkCallContext) throws ServiceException;
|
||||
|
||||
CloudwalkResult<List<AcsPassRuleImageResultDto>> listByImageId(AcsPassRuleImageParam paramAcsPassRuleImageParam, CloudwalkCallContext paramCloudwalkCallContext) throws ServiceException;
|
||||
}
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-service-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\passrule\service\AcsPassRuleService.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+44
@@ -0,0 +1,44 @@
|
||||
package cn.cloudwalk.elevator.passrule.service;
|
||||
|
||||
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.passrule.dto.AcsPassRuleImageResultDto;
|
||||
import cn.cloudwalk.elevator.passrule.dto.AcsPassRulePersonListResultDto;
|
||||
import cn.cloudwalk.elevator.passrule.param.AcsPassRuleDeleteParam;
|
||||
import cn.cloudwalk.elevator.passrule.param.AcsPassRuleEditParam;
|
||||
import cn.cloudwalk.elevator.passrule.param.AcsPassRuleFloorParam;
|
||||
import cn.cloudwalk.elevator.passrule.param.AcsPassRuleImageParam;
|
||||
import cn.cloudwalk.elevator.passrule.param.AcsPassRuleNewParam;
|
||||
import cn.cloudwalk.elevator.passrule.param.AcsPassRulePersonListParam;
|
||||
import cn.cloudwalk.elevator.passrule.param.AcsPassRuleQueryParam;
|
||||
import cn.cloudwalk.elevator.passrule.result.AcsPassRuleFloorResult;
|
||||
import cn.cloudwalk.elevator.passrule.result.ImageRuleRefDetailResult;
|
||||
import cn.cloudwalk.elevator.passrule.result.ImageRuleRefPageResult;
|
||||
import java.util.List;
|
||||
|
||||
public interface ImageRuleRefService {
|
||||
CloudwalkResult<CloudwalkPageAble<ImageRuleRefPageResult>> page(AcsPassRuleQueryParam paramAcsPassRuleQueryParam, CloudwalkPageInfo paramCloudwalkPageInfo, CloudwalkCallContext paramCloudwalkCallContext) throws ServiceException;
|
||||
|
||||
CloudwalkResult<CloudwalkPageAble<AcsPassRuleFloorResult>> listFloor(AcsPassRuleFloorParam paramAcsPassRuleFloorParam, CloudwalkCallContext paramCloudwalkCallContext) throws ServiceException;
|
||||
|
||||
CloudwalkResult<List<AcsPassRuleImageResultDto>> listByPersonInfo(AcsPassRuleImageParam paramAcsPassRuleImageParam, CloudwalkCallContext paramCloudwalkCallContext) throws ServiceException;
|
||||
|
||||
CloudwalkResult<List<AcsPassRulePersonListResultDto>> listByPersonList(AcsPassRulePersonListParam paramAcsPassRulePersonListParam, CloudwalkCallContext paramCloudwalkCallContext) throws ServiceException;
|
||||
|
||||
CloudwalkResult<ImageRuleRefDetailResult> detail(AcsPassRuleQueryParam paramAcsPassRuleQueryParam, CloudwalkCallContext paramCloudwalkCallContext) throws ServiceException;
|
||||
|
||||
CloudwalkResult<Boolean> addOnlyRule(AcsPassRuleNewParam paramAcsPassRuleNewParam, CloudwalkCallContext paramCloudwalkCallContext) throws ServiceException;
|
||||
|
||||
CloudwalkResult<Boolean> update(AcsPassRuleEditParam paramAcsPassRuleEditParam, CloudwalkCallContext paramCloudwalkCallContext) throws ServiceException;
|
||||
|
||||
CloudwalkResult<Boolean> delete(AcsPassRuleDeleteParam paramAcsPassRuleDeleteParam, CloudwalkCallContext paramCloudwalkCallContext) throws ServiceException;
|
||||
}
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-service-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\passrule\service\ImageRuleRefService.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+797
@@ -0,0 +1,797 @@
|
||||
/* */ package cn.cloudwalk.elevator.person.impl;
|
||||
/* */
|
||||
/* */ import cn.cloudwalk.client.cwoscomponent.intelligent.application.param.ApplicationImageStoreQueryParam;
|
||||
/* */ import cn.cloudwalk.client.cwoscomponent.intelligent.biology.service.BiologyToolService;
|
||||
/* */ import cn.cloudwalk.client.cwoscomponent.intelligent.device.param.DeviceImageStoreQueryParam;
|
||||
/* */ import cn.cloudwalk.client.cwoscomponent.intelligent.device.result.DeviceApplicationResult;
|
||||
/* */ import cn.cloudwalk.client.cwoscomponent.intelligent.device.result.DeviceImageStoreResult;
|
||||
/* */ import cn.cloudwalk.client.cwoscomponent.intelligent.device.service.DeviceApplicationService;
|
||||
/* */ import cn.cloudwalk.client.cwoscomponent.intelligent.device.service.DeviceImageStoreService;
|
||||
/* */ import cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.param.ImageStorePersonBindParam;
|
||||
/* */ import cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.param.ImageStorePersonDelParam;
|
||||
/* */ import cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.param.ImageStorePersonQueryParam;
|
||||
/* */ 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.result.ImageStorePersonResult;
|
||||
/* */ import cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.result.ImgStoreBatchBindPersonResult;
|
||||
/* */ import cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.service.ImageStorePersonService;
|
||||
/* */ import cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.service.ImageStoreService;
|
||||
/* */ import cn.cloudwalk.client.cwoscomponent.intelligent.person.param.PersonAddParam;
|
||||
/* */ import cn.cloudwalk.client.cwoscomponent.intelligent.person.param.PersonQueryParam;
|
||||
/* */ import cn.cloudwalk.client.cwoscomponent.intelligent.person.result.PersonResult;
|
||||
/* */ import cn.cloudwalk.client.cwoscomponent.intelligent.person.service.PersonService;
|
||||
/* */ import cn.cloudwalk.cloud.annotation.CloudwalkParamsValidate;
|
||||
/* */ import cn.cloudwalk.cloud.context.CloudwalkCallContext;
|
||||
/* */ import cn.cloudwalk.cloud.entity.CloudwalkBaseIdentify;
|
||||
/* */ 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.result.CloudwalkResult;
|
||||
/* */ import cn.cloudwalk.cloud.utils.BeanCopyUtils;
|
||||
/* */ import cn.cloudwalk.elevator.em.AcsPassTypeEnum;
|
||||
/* */ import cn.cloudwalk.elevator.passrule.dao.AcsPassRuleDao;
|
||||
/* */ import cn.cloudwalk.elevator.passrule.dto.AcsPassRuleQueryDto;
|
||||
/* */ import cn.cloudwalk.elevator.passrule.dto.AcsPassRuleResultDto;
|
||||
/* */ import cn.cloudwalk.elevator.passrule.impl.AbstractAcsPassService;
|
||||
/* */ import cn.cloudwalk.elevator.passrule.param.AcsPassRuleIsDefaultParam;
|
||||
/* */ import cn.cloudwalk.elevator.passrule.param.AcsPassRuleQueryParam;
|
||||
/* */ import cn.cloudwalk.elevator.passrule.param.AcsPassTimeCycleParam;
|
||||
/* */ import cn.cloudwalk.elevator.passrule.result.AcsPassRuleResult;
|
||||
/* */ import cn.cloudwalk.elevator.passrule.service.AcsPassRuleService;
|
||||
/* */ import cn.cloudwalk.elevator.person.param.AcsPersonAddNewParam;
|
||||
/* */ import cn.cloudwalk.elevator.person.param.AcsPersonAddParam;
|
||||
/* */ import cn.cloudwalk.elevator.person.param.AcsPersonDeleteParam;
|
||||
/* */ import cn.cloudwalk.elevator.person.param.AcsPersonEditParam;
|
||||
/* */ import cn.cloudwalk.elevator.person.param.AcsPersonQueryByAppParam;
|
||||
/* */ import cn.cloudwalk.elevator.person.param.AcsPersonQueryParam;
|
||||
/* */ import cn.cloudwalk.elevator.person.param.AcsPersonTimeDetailParam;
|
||||
/* */ import cn.cloudwalk.elevator.person.result.AcsPersonResult;
|
||||
/* */ import cn.cloudwalk.elevator.person.result.AcsPersonTimeDetailResult;
|
||||
/* */ import cn.cloudwalk.elevator.person.service.AcsPersonService;
|
||||
/* */ import cn.cloudwalk.elevator.util.CollectionUtils;
|
||||
/* */ import cn.cloudwalk.elevator.util.DateUtils;
|
||||
/* */ 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.Date;
|
||||
/* */ import java.util.List;
|
||||
/* */ import java.util.Map;
|
||||
/* */ import java.util.stream.Collectors;
|
||||
/* */ import javax.annotation.Resource;
|
||||
/* */ import org.springframework.beans.factory.annotation.Autowired;
|
||||
/* */ import org.springframework.stereotype.Service;
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ @Service
|
||||
/* */ public class AcsPersonServiceImpl
|
||||
/* */ extends AbstractAcsPassService
|
||||
/* */ implements AcsPersonService
|
||||
/* */ {
|
||||
/* */ private static final int ROWS_OF_PAGE = 1000;
|
||||
/* */ @Autowired
|
||||
/* */ private BiologyToolService biologyToolService;
|
||||
/* */ @Autowired
|
||||
/* */ private DeviceImageStoreService deviceImageStoreService;
|
||||
/* */ @Autowired
|
||||
/* */ private ImageStorePersonService imageStorePersonService;
|
||||
/* */ @Autowired
|
||||
/* */ private DeviceApplicationService deviceApplicationService;
|
||||
/* */ @Autowired
|
||||
/* */ private PersonService personService;
|
||||
/* */ @Autowired
|
||||
/* */ private ImageStoreService imageStoreService;
|
||||
/* */ @Resource
|
||||
/* */ private AcsPassRuleService acsPassRuleService;
|
||||
/* */ @Resource
|
||||
/* */ private AcsPassRuleDao acsPassRuleDao;
|
||||
/* */
|
||||
/* */ @CloudwalkParamsValidate
|
||||
/* */ public CloudwalkResult<Boolean> add(AcsPersonAddParam param, CloudwalkCallContext context) throws ServiceException {
|
||||
/* 100 */ this.logger.info("从现有人员添加通行人员开始,AcsPersonAddParam=[{}], CloudwalkCallContext=[{}]",
|
||||
/* 101 */ JSONObject.toJSONString(param), JSONObject.toJSONString(context));
|
||||
/* */
|
||||
/* 103 */ String acsImageStoreId = getAcsImageStore(param.getZoneId(), context);
|
||||
/* */
|
||||
/* 105 */ ImageStorePersonBindParam imageStorePersonBindParam = new ImageStorePersonBindParam();
|
||||
/* 106 */ imageStorePersonBindParam.setImageStoreId(acsImageStoreId);
|
||||
/* 107 */ imageStorePersonBindParam.setPersonIds(param.getPersonIds());
|
||||
/* 108 */ imageStorePersonBindParam.setNullDateIsLongTerm(Boolean.valueOf(true));
|
||||
/* 109 */ imageStorePersonBindParam.setExpiryBeginDate(param.getStartTime());
|
||||
/* 110 */ imageStorePersonBindParam.setExpiryEndDate(param.getEndTime());
|
||||
/* 111 */ this.logger.info("远程调用绑定人员图库开始,imageStorePersonBindParam=[{}], CloudwalkCallContext=[{}]",
|
||||
/* 112 */ JSONObject.toJSONString(imageStorePersonBindParam), JSONObject.toJSONString(context));
|
||||
/* */
|
||||
/* 114 */ CloudwalkResult<ImgStoreBatchBindPersonResult> bindResult = this.imageStorePersonService.batchBind(imageStorePersonBindParam, context);
|
||||
/* 115 */ if (!bindResult.isSuccess()) {
|
||||
/* 116 */ this.logger.error("远程调用绑定人员图库异常,原因:[{}],失败人员id:[{}]", bindResult
|
||||
/* 117 */ .getMessage(), ((ImgStoreBatchBindPersonResult)bindResult.getData()).getFailPersonIds());
|
||||
/* 118 */ return CloudwalkResult.fail(bindResult.getCode(), bindResult.getMessage());
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* 151 */ return CloudwalkResult.success(Boolean.valueOf(true));
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ private void bindImageStorePerson(String acsImageStoreId, String personId, Long startTime, Long endTime, CloudwalkCallContext context) throws ServiceException {
|
||||
/* 170 */ ImageStorePersonBindParam imageStorePersonBindParam = new ImageStorePersonBindParam();
|
||||
/* 171 */ imageStorePersonBindParam.setImageStoreId(acsImageStoreId);
|
||||
/* 172 */ imageStorePersonBindParam.setNullDateIsLongTerm(Boolean.valueOf(true));
|
||||
/* 173 */ imageStorePersonBindParam.setPersonId(personId);
|
||||
/* 174 */ imageStorePersonBindParam.setExpiryBeginDate(startTime);
|
||||
/* 175 */ imageStorePersonBindParam.setExpiryEndDate(endTime);
|
||||
/* 176 */ this.logger.info("图库人员关系绑定开始,imageStorePersonBindParam:[{}],context:[{}]",
|
||||
/* 177 */ JSONObject.toJSONString(imageStorePersonBindParam), JSONObject.toJSONString(context));
|
||||
/* 178 */ CloudwalkResult<Boolean> bindResult = this.imageStorePersonService.bind(imageStorePersonBindParam, context);
|
||||
/* 179 */ if (!bindResult.isSuccess()) {
|
||||
/* 180 */ this.logger.error("图库人员关系绑定失败,imageStoreId=[{}],personId=[{}],原因:[{}]", new Object[] { acsImageStoreId, personId, bindResult
|
||||
/* 181 */ .getMessage() });
|
||||
/* 182 */ throw new ServiceException(bindResult.getCode(), bindResult.getMessage());
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ private String addPerson(AcsPersonAddNewParam param, CloudwalkCallContext context) throws ServiceException {
|
||||
/* 195 */ PersonAddParam personAddParam = new PersonAddParam();
|
||||
/* 196 */ BeanCopyUtils.copyProperties(param.getPersonProperties(), personAddParam);
|
||||
/* 197 */ CloudwalkResult<String> addPersonResult = this.personService.add(personAddParam, context);
|
||||
/* 198 */ if (!addPersonResult.isSuccess()) {
|
||||
/* 199 */ this.logger.info("新增人员失败,原因:[{}]", addPersonResult.getMessage());
|
||||
/* 200 */ throw new ServiceException(addPersonResult.getCode(), addPersonResult.getMessage());
|
||||
/* */ }
|
||||
/* 202 */ return (String)addPersonResult.getData();
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */ @CloudwalkParamsValidate
|
||||
/* */ public CloudwalkResult<Boolean> edit(AcsPersonEditParam param, CloudwalkCallContext context) throws ServiceException {
|
||||
/* 208 */ this.logger.info("编辑通行人员开始,AcsPersonEditParam=[{}], CloudwalkCallContext=[{}]",
|
||||
/* 209 */ JSONObject.toJSONString(param), JSONObject.toJSONString(context));
|
||||
/* */
|
||||
/* 211 */ checkPersonIdByImageStore(param.getPersonId(), param.getImageStoreId(), context);
|
||||
/* */
|
||||
/* */
|
||||
/* 214 */ ImageStorePersonDelParam delParam = new ImageStorePersonDelParam();
|
||||
/* 215 */ delParam.setImageStoreId(param.getImageStoreId());
|
||||
/* 216 */ delParam.setPersonId(param.getPersonId());
|
||||
/* 217 */ this.logger.info("远程调用解绑图库人员开始,ImageStorePersonDelParam=[{}], CloudwalkCallContext=[{}]",
|
||||
/* 218 */ JSONObject.toJSONString(delParam), JSONObject.toJSONString(context));
|
||||
/* 219 */ CloudwalkResult<Boolean> deleteResult = this.imageStorePersonService.delete(delParam, context);
|
||||
/* 220 */ if (!deleteResult.isSuccess()) {
|
||||
/* 221 */ this.logger.error("图库人员更新之前先解绑失败,原因:[{}]", deleteResult.getMessage());
|
||||
/* 222 */ return CloudwalkResult.fail("76260406", getMessage("76260406") + " " + deleteResult.getMessage());
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* 226 */ bindImageStorePerson(param.getImageStoreId(), param.getPersonId(), param.getStartTime(), param
|
||||
/* 227 */ .getEndTime(), context);
|
||||
/* 228 */ return CloudwalkResult.success(Boolean.valueOf(true));
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ @CloudwalkParamsValidate
|
||||
/* */ public CloudwalkResult<Boolean> delete(AcsPersonDeleteParam param, CloudwalkCallContext context) throws ServiceException {
|
||||
/* 235 */ this.logger.info("删除门禁通行人员开始,AcsPersonDeleteParam=[{}], CloudwalkCallContext=[{}]",
|
||||
/* 236 */ JSONObject.toJSONString(param), JSONObject.toJSONString(context));
|
||||
/* 237 */ for (String personId : param.getPersonIds()) {
|
||||
/* 238 */ ImageStorePersonDelParam imageStorePersonDelParam = new ImageStorePersonDelParam();
|
||||
/* 239 */ imageStorePersonDelParam.setPersonId(personId);
|
||||
/* 240 */ imageStorePersonDelParam.setImageStoreId(param.getImageStoreId());
|
||||
/* */
|
||||
/* 242 */ CloudwalkResult<Boolean> imageStorePersonDeleteResult = this.imageStorePersonService.delete(imageStorePersonDelParam, context);
|
||||
/* 243 */ if (!imageStorePersonDeleteResult.isSuccess()) {
|
||||
/* 244 */ return CloudwalkResult.fail("76260407", getMessage("76260407") + " " + imageStorePersonDeleteResult
|
||||
/* 245 */ .getMessage());
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* 291 */ return CloudwalkResult.success(Boolean.valueOf(true));
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ private List<DeviceApplicationResult> sortedDeviceAppList(CloudwalkResult<List<DeviceApplicationResult>> deviceAppResult) {
|
||||
/* 301 */ List<DeviceApplicationResult> deviceAppList = (List<DeviceApplicationResult>)deviceAppResult.getData();
|
||||
/* 302 */ List<DeviceApplicationResult> sortedDeviceAppList = new ArrayList<>();
|
||||
/* */
|
||||
/* 304 */ List<DeviceApplicationResult> acsAppList = (List<DeviceApplicationResult>)deviceAppList.stream().filter(s -> "elevator-app".equals(s.getServiceCode())).collect(Collectors.toList());
|
||||
/* */
|
||||
/* 306 */ List<DeviceApplicationResult> otherAppList = (List<DeviceApplicationResult>)deviceAppList.stream().filter(s -> !"elevator-app".equals(s.getServiceCode())).collect(Collectors.toList());
|
||||
/* 307 */ sortedDeviceAppList.addAll(acsAppList);
|
||||
/* 308 */ sortedDeviceAppList.addAll(otherAppList);
|
||||
/* 309 */ return sortedDeviceAppList;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ @CloudwalkParamsValidate
|
||||
/* */ public CloudwalkResult<CloudwalkPageAble<AcsPersonResult>> page(AcsPersonQueryParam param, CloudwalkPageInfo pageInfo, CloudwalkCallContext context) throws ServiceException {
|
||||
/* 317 */ this.logger.info("分页查询通行人员开始,AcsPersonQueryParam=[{}], CloudwalkPageInfo=[{}], CloudwalkCallContext=[{}]", new Object[] {
|
||||
/* 318 */ JSONObject.toJSONString(param), JSONObject.toJSONString(pageInfo), JSONObject.toJSONString(context) });
|
||||
/* 319 */ List<AcsPersonResult> result = new ArrayList<>();
|
||||
/* 320 */ List<String> personIds = null;
|
||||
/* */
|
||||
/* 322 */ List<AcsPassRuleResult> ruleResults = getRuleListByZoneId(param.getZoneId(), context);
|
||||
/* 323 */ if (CollectionUtils.isEmpty(ruleResults)) {
|
||||
/* 324 */ return CloudwalkResult.success(new CloudwalkPageAble(result, pageInfo, 0L));
|
||||
/* */ }
|
||||
/* */
|
||||
/* 327 */ List<String> imageStoreIds = (List<String>)ruleResults.stream().map(AcsPassRuleResult::getImageStoreId).collect(Collectors.toList());
|
||||
/* 328 */ if (StringUtils.isNotBlank(param.getImageStoreId()) && !imageStoreIds.contains(param.getImageStoreId())) {
|
||||
/* 329 */ return CloudwalkResult.success(new CloudwalkPageAble(result, pageInfo, 0L));
|
||||
/* */ }
|
||||
/* */
|
||||
/* 332 */ Map<String, AcsPassRuleResult> ruleMap = (Map<String, AcsPassRuleResult>)ruleResults.stream().collect(Collectors.toMap(AcsPassRuleResult::getImageStoreId, r -> r));
|
||||
/* */
|
||||
/* 334 */ if (!StringUtils.isEmpty(param.getPersonName())) {
|
||||
/* 335 */ personIds = getPersonIdsByName(param.getPersonName(), context);
|
||||
/* 336 */ if (CollectionUtils.isEmpty(personIds)) {
|
||||
/* 337 */ return CloudwalkResult.success(new CloudwalkPageAble(result, pageInfo, 0L));
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* */
|
||||
/* 341 */ CloudwalkPageAble<ImageStorePersonResult> pageResult = getImageStorePerson(param, pageInfo, context, personIds, imageStoreIds);
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* 345 */ if (!CollectionUtils.isEmpty(pageResult.getDatas())) {
|
||||
/* 346 */ covertPageResult(result, pageResult.getDatas(), ruleMap, context);
|
||||
/* */ }
|
||||
/* 348 */ return CloudwalkResult.success(new CloudwalkPageAble(result, pageInfo, pageResult.getTotalRows()));
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ private List<ImageStoreListResult> getImageStoreIdsByAppAndDevice(String applicationId, String deviceId, CloudwalkCallContext context) throws ServiceException {
|
||||
/* 354 */ ApplicationImageStoreQueryParam queryParam = new ApplicationImageStoreQueryParam();
|
||||
/* 355 */ queryParam.setApplicationId(applicationId);
|
||||
/* 356 */ List<DeviceImageStoreResult> deviceImageStore = getDeviceImageStore(deviceId, context);
|
||||
/* 357 */ if (deviceImageStore.isEmpty()) {
|
||||
/* 358 */ return new ArrayList<>();
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* 362 */ List<String> imageStoreIdByDevice = (List<String>)deviceImageStore.stream().map(DeviceImageStoreResult::getImageStoreId).collect(Collectors.toList());
|
||||
/* */
|
||||
/* 364 */ ImageStoreQueryParam imageStoreQueryParam = new ImageStoreQueryParam();
|
||||
/* 365 */ imageStoreQueryParam.setBusinessId(context.getCompany().getCompanyId());
|
||||
/* 366 */ imageStoreQueryParam.setApplicationId(applicationId);
|
||||
/* 367 */ imageStoreQueryParam.setIds(imageStoreIdByDevice);
|
||||
/* 368 */ CloudwalkResult<List<ImageStoreListResult>> imageStoreResult = this.imageStoreService.list(imageStoreQueryParam, context);
|
||||
/* 369 */ return (List<ImageStoreListResult>)imageStoreResult.getData();
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ private CloudwalkPageAble<ImageStorePersonResult> getImageStorePerson(AcsPersonQueryParam param, CloudwalkPageInfo pageInfo, CloudwalkCallContext context, List<String> personIds, List<String> imageStoreIds) throws ServiceException {
|
||||
/* 377 */ CloudwalkPageAble<ImageStorePersonResult> results = new CloudwalkPageAble();
|
||||
/* 378 */ ImageStorePersonQueryParam imageStorePersonQueryParam = new ImageStorePersonQueryParam();
|
||||
/* 379 */ imageStorePersonQueryParam.setImageStoreId(param.getImageStoreId());
|
||||
/* 380 */ if (StringUtils.isEmpty(param.getImageStoreId())) {
|
||||
/* 381 */ imageStorePersonQueryParam.setImageStoreIds(imageStoreIds);
|
||||
/* */ }
|
||||
/* 383 */ imageStorePersonQueryParam.setPersonIds(personIds);
|
||||
/* 384 */ imageStorePersonQueryParam.setOrganizationIds(param.getOrganizationIds());
|
||||
/* 385 */ imageStorePersonQueryParam.setLabelIds(param.getLabelIds());
|
||||
/* 386 */ imageStorePersonQueryParam.setCurrentPage(pageInfo.getCurrentPage());
|
||||
/* 387 */ imageStorePersonQueryParam.setRowsOfPage(pageInfo.getPageSize());
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* 391 */ CloudwalkResult<CloudwalkPageAble<ImageStorePersonResult>> pageResult = this.imageStorePersonService.page(imageStorePersonQueryParam, context);
|
||||
/* */
|
||||
/* 393 */ if (!pageResult.isSuccess()) {
|
||||
/* 394 */ this.logger.error("远程调用查询图库人员失败,原因:[{}]", pageResult.getMessage());
|
||||
/* 395 */ throw new ServiceException(pageResult.getCode(), pageResult.getMessage());
|
||||
/* */ }
|
||||
/* 397 */ if (!CollectionUtils.isEmpty(((CloudwalkPageAble)pageResult.getData()).getDatas())) {
|
||||
/* 398 */ results = (CloudwalkPageAble<ImageStorePersonResult>)pageResult.getData();
|
||||
/* */ }
|
||||
/* 400 */ return results;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public CloudwalkResult<AcsPersonTimeDetailResult> timeDetail(AcsPersonTimeDetailParam param, CloudwalkCallContext context) throws ServiceException {
|
||||
/* 407 */ this.logger.info("查询通行人员时间详情开始,AcsPersonTimeDetailParam=[{}], CloudwalkCallContext=[{}]",
|
||||
/* 408 */ JSONObject.toJSONString(param), JSONObject.toJSONString(context));
|
||||
/* 409 */ AcsPersonTimeDetailResult result = new AcsPersonTimeDetailResult();
|
||||
/* 410 */ ImageStorePersonResult imageStorePersonResult = getImageStorePersonResult(param, context);
|
||||
/* 411 */ AcsPassRuleResult rule = getRuleByImageStore(param.getImageStoreId(), context);
|
||||
/* 412 */ result.setBeginDate(imageStorePersonResult.getExpiryBeginDate());
|
||||
/* 413 */ result.setEndDate(imageStorePersonResult.getExpiryEndDate());
|
||||
/* 414 */ result.setPassType(AcsPassTypeEnum.LONG_TIME.getCode());
|
||||
/* */
|
||||
/* 416 */ if (imageStorePersonResult.getExpiryBeginDate() != null || imageStorePersonResult.getExpiryEndDate() != null) {
|
||||
/* 417 */ result.setPassType(AcsPassTypeEnum.AUTO_PASS.getCode());
|
||||
/* */ }
|
||||
/* */
|
||||
/* 420 */ if (!CollectionUtils.isEmpty(imageStorePersonResult.getValidDateCron())) {
|
||||
/* 421 */ BeanCopyUtils.copyProperties(rule, result);
|
||||
/* 422 */ result.setPassableTimeName(rule.getPassableTimeName());
|
||||
/* */
|
||||
/* 424 */ List<AcsPassTimeCycleParam> timeCycleParams = JSONObject.parseArray(rule.getValidDateJson(), AcsPassTimeCycleParam.class);
|
||||
/* 425 */ result.setPassableCycle(timeCycleParams);
|
||||
/* 426 */ result.setPassType(AcsPassTypeEnum.PASS_TIME.getCode());
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* 430 */ ImageStorePersonQueryParam imageStorePersonQueryParam = new ImageStorePersonQueryParam();
|
||||
/* 431 */ imageStorePersonQueryParam.setPersonId(param.getPersonId());
|
||||
/* 432 */ imageStorePersonQueryParam.setRowsOfPage(1000);
|
||||
/* */
|
||||
/* 434 */ CloudwalkResult<CloudwalkPageAble<ImageStorePersonResult>> imageStorePersonPageResult = this.imageStorePersonService.page(imageStorePersonQueryParam, context);
|
||||
/* 435 */ ImageStorePersonResult imageStoreResult = ((CloudwalkPageAble)imageStorePersonPageResult.getData()).getDatas().iterator().next();
|
||||
/* 436 */ result.setComparePicture(imageStoreResult.getComparePicture());
|
||||
/* 437 */ result.setPersonName(imageStoreResult.getName());
|
||||
/* 438 */ result.setPersonId(imageStoreResult.getPersonId());
|
||||
/* 439 */ return CloudwalkResult.success(result);
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ private AcsPassRuleResult getRuleByImageStore(String imageStoreId, CloudwalkCallContext context) throws ServiceException {
|
||||
/* 452 */ AcsPassRuleQueryParam ruleQueryParam = new AcsPassRuleQueryParam();
|
||||
/* 453 */ ruleQueryParam.setImageStoreId(imageStoreId);
|
||||
/* 454 */ CloudwalkResult<List<AcsPassRuleResult>> results = this.acsPassRuleService.list(ruleQueryParam, context);
|
||||
/* 455 */ return ((List<AcsPassRuleResult>)results.getData()).get(0);
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ private ImageStorePersonResult getImageStorePersonResult(AcsPersonTimeDetailParam param, CloudwalkCallContext context) throws ServiceException {
|
||||
/* 467 */ ImageStorePersonQueryParam imageStorePersonQueryParam = new ImageStorePersonQueryParam();
|
||||
/* 468 */ imageStorePersonQueryParam.setImageStoreId(param.getImageStoreId());
|
||||
/* 469 */ imageStorePersonQueryParam.setPersonId(param.getPersonId());
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* 473 */ CloudwalkResult<CloudwalkPageAble<ImageStorePersonResult>> pageResult = this.imageStorePersonService.page(imageStorePersonQueryParam, context);
|
||||
/* 474 */ if (!pageResult.isSuccess() || CollectionUtils.isEmpty(((CloudwalkPageAble)pageResult.getData()).getDatas())) {
|
||||
/* 475 */ this.logger.error("远程调用查询通行人员失败,原因:" + pageResult.getMessage());
|
||||
/* 476 */ throw new ServiceException("远程调用查询通行人员失败");
|
||||
/* */ }
|
||||
/* 478 */ List<ImageStorePersonResult> list = (List<ImageStorePersonResult>)((CloudwalkPageAble)pageResult.getData()).getDatas();
|
||||
/* 479 */ return list.get(0);
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ private List<String> mergeTime(List<ImageStorePersonResult> imageStorePersonList) {
|
||||
/* 489 */ List<String> passIntervals = new ArrayList<>();
|
||||
/* */
|
||||
/* */
|
||||
/* 492 */ List<ImageStorePersonResult> personLongTerm = (List<ImageStorePersonResult>)imageStorePersonList.stream().filter(s -> (s.getExpiryBeginDate() == null && s.getExpiryEndDate() == null)).collect(Collectors.toList());
|
||||
/* 493 */ if (CollectionUtils.isNotEmpty(personLongTerm)) {
|
||||
/* 494 */ passIntervals.add("长期");
|
||||
/* */ } else {
|
||||
/* */
|
||||
/* 497 */ Collections.sort(imageStorePersonList, (t1, t2) -> t1.getExpiryBeginDate().compareTo(t2.getExpiryEndDate()));
|
||||
/* */
|
||||
/* */
|
||||
/* 500 */ for (int i = 0; i < imageStorePersonList.size() - 1; i++) {
|
||||
/* 501 */ int j = i + 1;
|
||||
/* 502 */ if (((ImageStorePersonResult)imageStorePersonList.get(i)).getExpiryEndDate().longValue() >= ((ImageStorePersonResult)imageStorePersonList.get(j)).getExpiryBeginDate().longValue()) {
|
||||
/* */
|
||||
/* 504 */ if (((ImageStorePersonResult)imageStorePersonList.get(i)).getExpiryEndDate().longValue() >= ((ImageStorePersonResult)imageStorePersonList.get(j)).getExpiryEndDate().longValue()) {
|
||||
/* 505 */ imageStorePersonList.set(j, imageStorePersonList.get(i));
|
||||
/* */ } else {
|
||||
/* 507 */ ((ImageStorePersonResult)imageStorePersonList.get(j)).setExpiryBeginDate(((ImageStorePersonResult)imageStorePersonList.get(i)).getExpiryBeginDate());
|
||||
/* */ }
|
||||
/* 509 */ imageStorePersonList.set(i, (ImageStorePersonResult)null);
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* */
|
||||
/* 513 */ List<ImageStorePersonResult> personTimeMergeList = (List<ImageStorePersonResult>)imageStorePersonList.stream().filter(s -> (s != null)).collect(Collectors.toList());
|
||||
/* 514 */ for (ImageStorePersonResult personTimeMerge : personTimeMergeList) {
|
||||
/* 515 */ String beginDate = DateUtils.parseDate(new Date(personTimeMerge.getExpiryBeginDate().longValue()), "yyyy-MM-dd HH:mm:ss");
|
||||
/* 516 */ String endDate = DateUtils.parseDate(new Date(personTimeMerge.getExpiryEndDate().longValue()), "yyyy-MM-dd HH:mm:ss");
|
||||
/* 517 */ passIntervals.add(beginDate + " 至 " + endDate);
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* 520 */ return passIntervals;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ private void covertPageResult(List<AcsPersonResult> result, Collection<ImageStorePersonResult> datas, Map<String, AcsPassRuleResult> ruleMap, CloudwalkCallContext context) throws ServiceException {
|
||||
/* 538 */ List<String> personIds = (List<String>)datas.stream().map(ImageStorePersonResult::getPersonId).collect(Collectors.toList());
|
||||
/* 539 */ Map<String, PersonResult> personIcCardMap = getPersonIcCardByIds(personIds, context);
|
||||
/* 540 */ for (ImageStorePersonResult data : datas) {
|
||||
/* 541 */ AcsPassRuleResult rule = null;
|
||||
/* 542 */ AcsPersonResult acsPersonResult = new AcsPersonResult();
|
||||
/* 543 */ if (ruleMap != null && ruleMap.get(data.getImageStoreId()) != null) {
|
||||
/* 544 */ rule = ruleMap.get(data.getImageStoreId());
|
||||
/* 545 */ acsPersonResult.setRuleName(rule.getRuleName());
|
||||
/* 546 */ acsPersonResult.setRuleId(rule.getId());
|
||||
/* */ }
|
||||
/* 548 */ BeanCopyUtils.copyProperties(data, acsPersonResult);
|
||||
/* 549 */ acsPersonResult.setPersonName(data.getName());
|
||||
/* 550 */ acsPersonResult.setStartTime(data.getExpiryBeginDate());
|
||||
/* 551 */ acsPersonResult.setEndTime(data.getExpiryEndDate());
|
||||
/* */
|
||||
/* */
|
||||
/* 554 */ acsPersonResult.setPassType(AcsPassTypeEnum.LONG_TIME.getCode());
|
||||
/* 555 */ if (data.getExpiryBeginDate() != null || data.getExpiryEndDate() != null) {
|
||||
/* 556 */ acsPersonResult.setPassType(AcsPassTypeEnum.AUTO_PASS.getCode());
|
||||
/* */ }
|
||||
/* */
|
||||
/* 559 */ if (personIcCardMap != null && personIcCardMap.get(data.getPersonId()) != null) {
|
||||
/* 560 */ acsPersonResult.setIcCardNo(((PersonResult)personIcCardMap.get(data.getPersonId())).getIcCardNo());
|
||||
/* */ }
|
||||
/* 562 */ result.add(acsPersonResult);
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */ private Map<String, PersonResult> getPersonIcCardByIds(List<String> personIds, CloudwalkCallContext context) throws ServiceException {
|
||||
/* 568 */ Map<String, PersonResult> personIcCardMap = null;
|
||||
/* 569 */ PersonQueryParam param = new PersonQueryParam();
|
||||
/* 570 */ param.setIds(personIds);
|
||||
/* 571 */ CloudwalkResult<List<PersonResult>> personResult = this.personService.list(param, context);
|
||||
/* 572 */ List<PersonResult> personList = (List<PersonResult>)personResult.getData();
|
||||
/* 573 */ if (personResult.isSuccess() && CollectionUtils.isNotEmpty(personList))
|
||||
/* */ {
|
||||
/* 575 */ personIcCardMap = (Map<String, PersonResult>)personList.stream().collect(Collectors.toMap(CloudwalkBaseIdentify::getId, personResult -> personResult));
|
||||
/* */ }
|
||||
/* 577 */ return personIcCardMap;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ private List<String> getPersonIdsByName(String personName, CloudwalkCallContext context) throws ServiceException {
|
||||
/* 590 */ List<String> personIdsByName = new ArrayList<>();
|
||||
/* 591 */ if (StringUtils.isNotBlank(personName)) {
|
||||
/* 592 */ PersonQueryParam personQueryParam = new PersonQueryParam();
|
||||
/* 593 */ personQueryParam.setName(personName);
|
||||
/* 594 */ CloudwalkResult<List<PersonResult>> personResult = this.personService.list(personQueryParam, context);
|
||||
/* 595 */ List<PersonResult> personList = (List<PersonResult>)personResult.getData();
|
||||
/* 596 */ if (personResult.isSuccess() && CollectionUtils.isNotEmpty(personList)) {
|
||||
/* 597 */ personIdsByName = (List<String>)personList.stream().map(CloudwalkBaseIdentify::getId).collect(Collectors.toList());
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* 600 */ return personIdsByName;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ private List<AcsPassRuleResult> getRuleListByZoneId(String zoneId, CloudwalkCallContext context) throws ServiceException {
|
||||
/* 613 */ AcsPassRuleQueryParam param = new AcsPassRuleQueryParam();
|
||||
/* 614 */ param.setZoneId(zoneId);
|
||||
/* 615 */ CloudwalkResult<List<AcsPassRuleResult>> ruleResult = this.acsPassRuleService.list(param, context);
|
||||
/* 616 */ if (!ruleResult.isSuccess()) {
|
||||
/* 617 */ this.logger.error("查询通行规则失败,原因:[{}]", ruleResult.getMessage());
|
||||
/* 618 */ throw new ServiceException("76260508", ruleResult.getMessage());
|
||||
/* */ }
|
||||
/* 620 */ return (List<AcsPassRuleResult>)ruleResult.getData();
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ private String getAcsImageStore(String zoneId, CloudwalkCallContext context) throws ServiceException {
|
||||
/* 632 */ AcsPassRuleIsDefaultParam param = new AcsPassRuleIsDefaultParam();
|
||||
/* 633 */ param.setZoneId(zoneId);
|
||||
/* 634 */ CloudwalkResult<String> imageStore = this.acsPassRuleService.getIsDefaultByZoneId(param, context);
|
||||
/* 635 */ if (imageStore.isSuccess()) {
|
||||
/* 636 */ if (imageStore.getData() != null) {
|
||||
/* 637 */ return (String)imageStore.getData();
|
||||
/* */ }
|
||||
/* 639 */ throw new ServiceException("默认规则绑定的图库不存在");
|
||||
/* */ }
|
||||
/* */
|
||||
/* 642 */ throw new ServiceException(imageStore.getCode(), imageStore.getMessage());
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ private void checkPersonIdByImageStore(String personId, String acsImageStoreId, CloudwalkCallContext context) throws ServiceException {
|
||||
/* 657 */ ImageStorePersonQueryParam imageStorePersonQueryParam = new ImageStorePersonQueryParam();
|
||||
/* 658 */ imageStorePersonQueryParam.setPersonId(personId);
|
||||
/* 659 */ imageStorePersonQueryParam.setImageStoreId(acsImageStoreId);
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* 663 */ CloudwalkResult<CloudwalkPageAble<ImageStorePersonResult>> imageStorePersonResult = this.imageStorePersonService.page(imageStorePersonQueryParam, context);
|
||||
/* 664 */ if (imageStorePersonResult.isSuccess()) {
|
||||
/* 665 */ if (imageStorePersonResult.getData() == null ||
|
||||
/* 666 */ CollectionUtils.isEmpty(((CloudwalkPageAble)imageStorePersonResult.getData()).getDatas())) {
|
||||
/* 667 */ throw new ServiceException("该人员未绑定门禁图库,人员id为:" + personId);
|
||||
/* */ }
|
||||
/* */ } else {
|
||||
/* 670 */ throw new ServiceException(imageStorePersonResult.getCode(), imageStorePersonResult.getMessage());
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ private List<DeviceImageStoreResult> getDeviceImageStore(String deviceId, CloudwalkCallContext context) throws ServiceException {
|
||||
/* 684 */ DeviceImageStoreQueryParam deviceImageStoreQueryParam = new DeviceImageStoreQueryParam();
|
||||
/* 685 */ deviceImageStoreQueryParam.setDeviceId(deviceId);
|
||||
/* */
|
||||
/* 687 */ CloudwalkResult<List<DeviceImageStoreResult>> imageStoreResult = this.deviceImageStoreService.list(deviceImageStoreQueryParam, context);
|
||||
/* 688 */ if (imageStoreResult.isSuccess()) {
|
||||
/* 689 */ if (CollectionUtils.isNotEmpty((Collection)imageStoreResult.getData())) {
|
||||
/* 690 */ return (List<DeviceImageStoreResult>)imageStoreResult.getData();
|
||||
/* */ }
|
||||
/* */
|
||||
/* 693 */ throw new ServiceException("该设备未绑定图库");
|
||||
/* */ }
|
||||
/* */
|
||||
/* 696 */ throw new ServiceException(imageStoreResult.getCode(), imageStoreResult.getMessage());
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ @CloudwalkParamsValidate
|
||||
/* */ public CloudwalkResult<CloudwalkPageAble<AcsPersonResult>> pageByApp(AcsPersonQueryByAppParam param, CloudwalkPageInfo pageInfo, CloudwalkCallContext context) throws ServiceException {
|
||||
/* 708 */ List<String> personIds = null;
|
||||
/* 709 */ List<AcsPersonResult> result = new ArrayList<>();
|
||||
/* */
|
||||
/* 711 */ List<ImageStoreListResult> imageStoreResult = getImageStoreIdsByAppAndDevice(param.getApplicationId(), param.getDeviceId(), context);
|
||||
/* */
|
||||
/* */
|
||||
/* 714 */ List<String> imageStoreIds = (List<String>)imageStoreResult.stream().map(ImageStoreListResult::getId).collect(Collectors.toList());
|
||||
/* 715 */ if (CollectionUtils.isEmpty(imageStoreIds)) {
|
||||
/* 716 */ return CloudwalkResult.success(new CloudwalkPageAble(result, pageInfo, 0L));
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* 720 */ if (!StringUtils.isEmpty(param.getPersonName())) {
|
||||
/* 721 */ personIds = getPersonIdsByName(param.getPersonName(), context);
|
||||
/* 722 */ if (CollectionUtils.isEmpty(personIds)) {
|
||||
/* 723 */ return CloudwalkResult.success(new CloudwalkPageAble(result, pageInfo, 0L));
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* 728 */ CloudwalkPageAble<ImageStorePersonResult> pageResult = getAppImageStorePerson(imageStoreIds, personIds, pageInfo, context);
|
||||
/* 729 */ if (!CollectionUtils.isEmpty(pageResult.getDatas()))
|
||||
/* */ {
|
||||
/* 731 */ covertPageResult(result, pageResult.getDatas(), (Map<String, AcsPassRuleResult>)null, context);
|
||||
/* */ }
|
||||
/* 733 */ return CloudwalkResult.success(new CloudwalkPageAble(result, pageInfo, pageResult.getTotalRows()));
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ private CloudwalkPageAble<ImageStorePersonResult> getAppImageStorePerson(List<String> imageStoreIds, List<String> personIds, CloudwalkPageInfo pageInfo, CloudwalkCallContext context) throws ServiceException {
|
||||
/* 741 */ ImageStorePersonQueryParam param = new ImageStorePersonQueryParam();
|
||||
/* 742 */ param.setImageStoreIds(imageStoreIds);
|
||||
/* 743 */ param.setPersonIds(personIds);
|
||||
/* 744 */ param.setCurrentPage(pageInfo.getCurrentPage());
|
||||
/* 745 */ param.setRowsOfPage(pageInfo.getPageSize());
|
||||
/* */
|
||||
/* 747 */ CloudwalkResult<CloudwalkPageAble<ImageStorePersonResult>> pageResult = this.imageStorePersonService.page(param, context);
|
||||
/* */
|
||||
/* 749 */ if (!pageResult.isSuccess()) {
|
||||
/* 750 */ this.logger.error("远程调用查询图库人员失败,原因:[{}]", pageResult.getMessage());
|
||||
/* 751 */ throw new ServiceException(pageResult.getCode(), pageResult.getMessage());
|
||||
/* */ }
|
||||
/* 753 */ return (CloudwalkPageAble<ImageStorePersonResult>)pageResult.getData();
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */ private List<AcsPassRuleResultDto> getRuleByImageStoreIds(List<String> imageStoreIds, CloudwalkCallContext context) throws ServiceException {
|
||||
/* */ try {
|
||||
/* 759 */ AcsPassRuleQueryDto dto = new AcsPassRuleQueryDto();
|
||||
/* 760 */ dto.setBusinessId(context.getCompany().getCompanyId());
|
||||
/* 761 */ dto.setImageStoreIds(imageStoreIds);
|
||||
/* 762 */ return this.acsPassRuleDao.list(dto);
|
||||
/* 763 */ } catch (DataAccessException e) {
|
||||
/* 764 */ this.logger.error("查询通行规则失败");
|
||||
/* 765 */ throw new ServiceException("76260508", getMessage("76260508"));
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ private List<ImageStorePersonResult> getPersonImageStore(String personId, List<String> imageStoreIds, CloudwalkCallContext context) throws ServiceException {
|
||||
/* 781 */ ImageStorePersonQueryParam param = new ImageStorePersonQueryParam();
|
||||
/* 782 */ param.setImageStoreIds(imageStoreIds);
|
||||
/* 783 */ param.setPersonId(personId);
|
||||
/* */
|
||||
/* 785 */ CloudwalkResult<CloudwalkPageAble<ImageStorePersonResult>> imageStorePersonResult = this.imageStorePersonService.page(param, context);
|
||||
/* 786 */ if (!imageStorePersonResult.isSuccess()) {
|
||||
/* 787 */ throw new ServiceException(imageStorePersonResult.getCode(), imageStorePersonResult.getMessage());
|
||||
/* */ }
|
||||
/* 789 */ return (List<ImageStorePersonResult>)((CloudwalkPageAble)imageStorePersonResult.getData()).getDatas();
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-service-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\person\impl\AcsPersonServiceImpl.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+635
@@ -0,0 +1,635 @@
|
||||
/* */ package cn.cloudwalk.elevator.person.impl;
|
||||
/* */
|
||||
/* */ import cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.param.ImageStorePersonBindParam;
|
||||
/* */ import cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.param.ImageStorePersonQueryParam;
|
||||
/* */ import cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.param.UpdateGroupPersonRefParam;
|
||||
/* */ import cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.result.ImageStorePersonResult;
|
||||
/* */ import cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.result.ImgStoreBatchBindPersonResult;
|
||||
/* */ import cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.service.ImageStorePersonService;
|
||||
/* */ import cn.cloudwalk.client.cwoscomponent.intelligent.person.param.PersonDetailParam;
|
||||
/* */ import cn.cloudwalk.client.cwoscomponent.intelligent.person.param.PersonQueryParam;
|
||||
/* */ import cn.cloudwalk.client.cwoscomponent.intelligent.person.result.PersonResult;
|
||||
/* */ import cn.cloudwalk.client.cwoscomponent.intelligent.person.service.PersonService;
|
||||
/* */ import cn.cloudwalk.cloud.annotation.CloudwalkParamsValidate;
|
||||
/* */ import cn.cloudwalk.cloud.context.CloudwalkCallContext;
|
||||
/* */ import cn.cloudwalk.cloud.entity.CloudwalkBaseIdentify;
|
||||
/* */ 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.result.CloudwalkResult;
|
||||
/* */ import cn.cloudwalk.cloud.utils.BeanCopyUtils;
|
||||
/* */ import cn.cloudwalk.elevator.device.dao.AcsElevatorDeviceDao;
|
||||
/* */ import cn.cloudwalk.elevator.device.dao.DeviceImageStoreDao;
|
||||
/* */ import cn.cloudwalk.elevator.device.dto.AcsElevatorDeviceListByBuildingIdDto;
|
||||
/* */ import cn.cloudwalk.elevator.device.dto.AcsElevatorDeviceResultDTO;
|
||||
/* */ import cn.cloudwalk.elevator.em.AcsPassTypeEnum;
|
||||
/* */ import cn.cloudwalk.elevator.passrule.dao.ImageRuleRefDao;
|
||||
/* */ import cn.cloudwalk.elevator.passrule.dto.ImageRuleRefAddDto;
|
||||
/* */ import cn.cloudwalk.elevator.passrule.dto.ImageRuleRefResultDto;
|
||||
/* */ import cn.cloudwalk.elevator.passrule.impl.AbstractAcsPassService;
|
||||
/* */ import cn.cloudwalk.elevator.passrule.result.AcsPassRuleResult;
|
||||
/* */ import cn.cloudwalk.elevator.person.param.AcsPersonAddParam;
|
||||
/* */ import cn.cloudwalk.elevator.person.param.AcsPersonAddVisitorParam;
|
||||
/* */ import cn.cloudwalk.elevator.person.param.AcsPersonDeleteParam;
|
||||
/* */ import cn.cloudwalk.elevator.person.param.AcsPersonEditParam;
|
||||
/* */ import cn.cloudwalk.elevator.person.param.AcsPersonQueryByAppParam;
|
||||
/* */ import cn.cloudwalk.elevator.person.param.AcsPersonQueryParam;
|
||||
/* */ import cn.cloudwalk.elevator.person.param.AcsPersonTimeDetailParam;
|
||||
/* */ import cn.cloudwalk.elevator.person.param.PersonDetailQueryParam;
|
||||
/* */ import cn.cloudwalk.elevator.person.result.AcsPersonResult;
|
||||
/* */ import cn.cloudwalk.elevator.person.result.AcsPersonTimeDetailResult;
|
||||
/* */ import cn.cloudwalk.elevator.person.service.PersonRuleService;
|
||||
/* */ import cn.cloudwalk.elevator.util.CollectionUtils;
|
||||
/* */ import cn.cloudwalk.elevator.util.StringUtils;
|
||||
/* */ import cn.cloudwalk.elevator.zone.param.ZoneQueryParam;
|
||||
/* */ import cn.cloudwalk.elevator.zone.result.ZoneResult;
|
||||
/* */ import cn.cloudwalk.elevator.zone.service.ZoneService;
|
||||
/* */ import com.alibaba.fastjson.JSONObject;
|
||||
/* */ import java.util.ArrayList;
|
||||
/* */ import java.util.Collection;
|
||||
/* */ import java.util.Collections;
|
||||
/* */ import java.util.List;
|
||||
/* */ import java.util.Map;
|
||||
/* */ import java.util.stream.Collectors;
|
||||
/* */ import javax.annotation.Resource;
|
||||
/* */ import org.springframework.beans.factory.annotation.Autowired;
|
||||
/* */ import org.springframework.stereotype.Service;
|
||||
/* */ import org.springframework.transaction.annotation.Propagation;
|
||||
/* */ import org.springframework.transaction.annotation.Transactional;
|
||||
/* */ import org.springframework.util.ObjectUtils;
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ @Service
|
||||
/* */ public class PersonRuleServiceImpl
|
||||
/* */ extends AbstractAcsPassService
|
||||
/* */ implements PersonRuleService
|
||||
/* */ {
|
||||
/* */ @Resource
|
||||
/* */ private ImageRuleRefDao imageRuleRefDao;
|
||||
/* */ @Resource
|
||||
/* */ private DeviceImageStoreDao deviceImageStoreDao;
|
||||
/* */ @Autowired
|
||||
/* */ private ImageStorePersonService imageStorePersonService;
|
||||
/* */ @Autowired
|
||||
/* */ private PersonService personService;
|
||||
/* */ @Resource
|
||||
/* */ private AcsElevatorDeviceDao acsElevatorDeviceDao;
|
||||
/* */ @Resource
|
||||
/* */ private ZoneService zoneService;
|
||||
/* */
|
||||
/* */ @CloudwalkParamsValidate
|
||||
/* */ @Transactional(propagation = Propagation.REQUIRED, rollbackFor = {Exception.class})
|
||||
/* */ public CloudwalkResult<Boolean> add(AcsPersonAddParam param, CloudwalkCallContext context) throws ServiceException {
|
||||
/* 94 */ this.logger.info("从现有人员添加通行人员开始,AcsPersonAddParam=[{}], CloudwalkCallContext=[{}]",
|
||||
/* 95 */ JSONObject.toJSONString(param), JSONObject.toJSONString(context));
|
||||
/* */
|
||||
/* */ try {
|
||||
/* 98 */ AcsElevatorDeviceListByBuildingIdDto buildingIdDto = new AcsElevatorDeviceListByBuildingIdDto();
|
||||
/* 99 */ buildingIdDto.setCurrentBuildingId(param.getParentId());
|
||||
/* 100 */ buildingIdDto.setBusinessId(context.getCompany().getCompanyId());
|
||||
/* 101 */ List<AcsElevatorDeviceResultDTO> deviceList = this.acsElevatorDeviceDao.listBuBuildingId(buildingIdDto);
|
||||
/* 102 */ if (CollectionUtils.isEmpty(deviceList)) {
|
||||
/* 103 */ return CloudwalkResult.fail("76260527", getMessage("76260527"));
|
||||
/* */ }
|
||||
/* */
|
||||
/* 106 */ ImageRuleRefResultDto defaultRule = this.imageRuleRefDao.getDefaultByZoneId(param.getZoneId());
|
||||
/* 107 */ if (ObjectUtils.isEmpty(defaultRule)) {
|
||||
/* */
|
||||
/* 109 */ ImageRuleRefAddDto dto = new ImageRuleRefAddDto();
|
||||
/* 110 */ dto.setId(genUUID());
|
||||
/* 111 */ dto.setBusinessId(context.getCompany().getCompanyId());
|
||||
/* 112 */ dto.setName("默认规则");
|
||||
/* 113 */ dto.setZoneId(param.getZoneId());
|
||||
/* 114 */ dto.setZoneName(param.getZoneName());
|
||||
/* 115 */ dto.setIsDefault(Integer.valueOf(1));
|
||||
/* 116 */ dto.setCreateTime(Long.valueOf(System.currentTimeMillis()));
|
||||
/* 117 */ dto.setLastUpdateTime(Long.valueOf(System.currentTimeMillis()));
|
||||
/* 118 */ this.imageRuleRefDao.insert(dto);
|
||||
/* 119 */ defaultRule = this.imageRuleRefDao.getDefaultByZoneId(param.getZoneId());
|
||||
/* */ }
|
||||
/* */
|
||||
/* 122 */ String imageStoreId = this.deviceImageStoreDao.getByBuildingId(param.getParentId());
|
||||
/* */
|
||||
/* 124 */ ImageStorePersonQueryParam queryParam = new ImageStorePersonQueryParam();
|
||||
/* 125 */ queryParam.setImageStoreId(imageStoreId);
|
||||
/* 126 */ queryParam.setPersonIds(param.getPersonIds());
|
||||
/* */
|
||||
/* 128 */ CloudwalkResult<CloudwalkPageAble<ImageStorePersonResult>> personPage = this.imageStorePersonService.page(queryParam, context);
|
||||
/* 129 */ List<String> personPageIds = new ArrayList<>();
|
||||
/* 130 */ if (!CollectionUtils.isEmpty(((CloudwalkPageAble)personPage.getData()).getDatas())) {
|
||||
/* 131 */ for (ImageStorePersonResult personResult : ((CloudwalkPageAble)personPage.getData()).getDatas()) {
|
||||
/* 132 */ personPageIds.add(personResult.getPersonId());
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* */
|
||||
/* 136 */ List<String> bindPersonIds = new ArrayList<>();
|
||||
/* 137 */ for (String personId : param.getPersonIds()) {
|
||||
/* */
|
||||
/* 139 */ if (!personPageIds.contains(personId)) {
|
||||
/* 140 */ bindPersonIds.add(personId);
|
||||
/* */ }
|
||||
/* */
|
||||
/* 143 */ ImageRuleRefResultDto del = this.imageRuleRefDao.getDelByPersonIdAndZoneId(personId, param.getZoneId());
|
||||
/* 144 */ if (ObjectUtils.isEmpty(del)) {
|
||||
/* */
|
||||
/* 146 */ ImageRuleRefAddDto addDto = new ImageRuleRefAddDto();
|
||||
/* 147 */ addDto.setId(genUUID());
|
||||
/* 148 */ addDto.setBusinessId(context.getCompany().getCompanyId());
|
||||
/* 149 */ addDto.setPersonId(personId);
|
||||
/* 150 */ addDto.setParentRule(defaultRule.getId());
|
||||
/* 151 */ addDto.setName(defaultRule.getName());
|
||||
/* 152 */ addDto.setZoneId(param.getZoneId());
|
||||
/* 153 */ addDto.setZoneName(defaultRule.getZoneName());
|
||||
/* 154 */ addDto.setCreateTime(Long.valueOf(System.currentTimeMillis()));
|
||||
/* 155 */ addDto.setLastUpdateTime(Long.valueOf(System.currentTimeMillis()));
|
||||
/* 156 */ addDto.setPersonDelete(Integer.valueOf(0));
|
||||
/* 157 */ this.imageRuleRefDao.insert(addDto);
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* */
|
||||
/* 161 */ this.imageRuleRefDao.deleteByPersonIdsIsDel(param.getPersonIds(), param.getZoneId());
|
||||
/* */
|
||||
/* 163 */ if (!CollectionUtils.isEmpty(bindPersonIds)) {
|
||||
/* 164 */ ImageStorePersonBindParam imageStorePersonBindParam = new ImageStorePersonBindParam();
|
||||
/* 165 */ imageStorePersonBindParam.setImageStoreId(imageStoreId);
|
||||
/* 166 */ imageStorePersonBindParam.setPersonIds(bindPersonIds);
|
||||
/* 167 */ imageStorePersonBindParam.setNullDateIsLongTerm(Boolean.valueOf(true));
|
||||
/* 168 */ this.logger.info("远程调用绑定人员图库开始,imageStorePersonBindParam=[{}], CloudwalkCallContext=[{}]",
|
||||
/* 169 */ JSONObject.toJSONString(imageStorePersonBindParam), JSONObject.toJSONString(context));
|
||||
/* */
|
||||
/* 171 */ CloudwalkResult<ImgStoreBatchBindPersonResult> bindResult = this.imageStorePersonService.batchBind(imageStorePersonBindParam, context);
|
||||
/* 172 */ if (!bindResult.isSuccess()) {
|
||||
/* 173 */ this.logger.error("远程调用绑定人员图库异常,原因:[{}],失败人员id:[{}]", bindResult
|
||||
/* 174 */ .getMessage(), bindPersonIds);
|
||||
/* 175 */ return CloudwalkResult.fail(bindResult.getCode(), bindResult.getMessage());
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* */
|
||||
/* 179 */ UpdateGroupPersonRefParam refParam = new UpdateGroupPersonRefParam();
|
||||
/* 180 */ refParam.setBusinessId(context.getCompany().getCompanyId());
|
||||
/* 181 */ refParam.setPersonIds(param.getPersonIds());
|
||||
/* 182 */ refParam.setImageStoreId(imageStoreId);
|
||||
/* 183 */ this.imageStorePersonService.updateGroupPersonRef(refParam, context);
|
||||
/* 184 */ } catch (DataAccessException e) {
|
||||
/* 185 */ this.logger.error("添加通行人员失败,原因:[{}]", (Throwable)e);
|
||||
/* 186 */ throw new ServiceException("76260521", getMessage("76260521"));
|
||||
/* */ }
|
||||
/* 188 */ return CloudwalkResult.success(Boolean.valueOf(true));
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ @CloudwalkParamsValidate
|
||||
/* */ public CloudwalkResult<Boolean> addVisitor(AcsPersonAddVisitorParam param, CloudwalkCallContext context) throws ServiceException {
|
||||
/* 196 */ this.logger.info("根据被访人添加访客派梯权限开始,AcsPersonAddVisitorParam=[{}], CloudwalkCallContext=[{}]",
|
||||
/* 197 */ JSONObject.toJSONString(param), JSONObject.toJSONString(context));
|
||||
/* */ try {
|
||||
/* 199 */ if (CollectionUtils.isEmpty(param.getFloorIds())) {
|
||||
/* */
|
||||
/* 201 */ PersonDetailParam detailParam = new PersonDetailParam();
|
||||
/* 202 */ detailParam.setId(param.getPersonId());
|
||||
/* 203 */ detailParam.setBusinessId(context.getCompany().getCompanyId());
|
||||
/* */
|
||||
/* 205 */ CloudwalkResult<PersonResult> detail = this.personService.detail(detailParam, context);
|
||||
/* */
|
||||
/* 207 */ param.setFloorIds(((PersonResult)detail.getData()).getFloorList());
|
||||
/* */ }
|
||||
/* */
|
||||
/* 210 */ ZoneQueryParam zoneQueryParam = new ZoneQueryParam();
|
||||
/* 211 */ zoneQueryParam.setId(param.getFloorIds().get(0));
|
||||
/* 212 */ zoneQueryParam.setRowsOfPage(10);
|
||||
/* 213 */ zoneQueryParam.setCurrentPage(1);
|
||||
/* */
|
||||
/* 215 */ CloudwalkResult<CloudwalkPageAble<ZoneResult>> zonePage = this.zoneService.page(zoneQueryParam, context);
|
||||
/* */
|
||||
/* 217 */ List<ZoneResult> zoneResults = (List<ZoneResult>)((CloudwalkPageAble)zonePage.getData()).getDatas();
|
||||
/* */
|
||||
/* 219 */ String imageStoreId = this.deviceImageStoreDao.getByBuildingId(((ZoneResult)zoneResults.get(0)).getParentId());
|
||||
/* 220 */ List<ImageRuleRefAddDto> insertList = new ArrayList<>();
|
||||
/* */
|
||||
/* 222 */ for (String floorId : param.getFloorIds()) {
|
||||
/* */
|
||||
/* 224 */ ImageRuleRefResultDto defaultRule = this.imageRuleRefDao.getDefaultByZoneId(floorId);
|
||||
/* */
|
||||
/* 226 */ ImageRuleRefAddDto addDto = new ImageRuleRefAddDto();
|
||||
/* 227 */ addDto.setId(genUUID());
|
||||
/* 228 */ addDto.setBusinessId(context.getCompany().getCompanyId());
|
||||
/* 229 */ addDto.setPersonId(param.getVisitorId());
|
||||
/* 230 */ addDto.setParentRule(defaultRule.getId());
|
||||
/* 231 */ addDto.setName(defaultRule.getName());
|
||||
/* 232 */ addDto.setZoneId(defaultRule.getZoneId());
|
||||
/* 233 */ addDto.setZoneName(defaultRule.getZoneName());
|
||||
/* 234 */ addDto.setCreateTime(Long.valueOf(System.currentTimeMillis()));
|
||||
/* 235 */ addDto.setLastUpdateTime(Long.valueOf(System.currentTimeMillis()));
|
||||
/* 236 */ addDto.setPersonDelete(Integer.valueOf(0));
|
||||
/* 237 */ insertList.add(addDto);
|
||||
/* */ }
|
||||
/* 239 */ this.logger.info("访客添加派梯权限开始,数据为=[{}]", JSONObject.toJSONString(insertList));
|
||||
/* 240 */ if (!CollectionUtils.isEmpty(insertList)) {
|
||||
/* 241 */ this.imageRuleRefDao.insertList(insertList);
|
||||
/* */ }
|
||||
/* */
|
||||
/* 244 */ ImageStorePersonBindParam imageStorePersonBindParam = new ImageStorePersonBindParam();
|
||||
/* 245 */ imageStorePersonBindParam.setImageStoreId(imageStoreId);
|
||||
/* 246 */ imageStorePersonBindParam.setPersonIds(Collections.singletonList(param.getVisitorId()));
|
||||
/* 247 */ imageStorePersonBindParam.setNullDateIsLongTerm(Boolean.valueOf(true));
|
||||
/* 248 */ imageStorePersonBindParam.setExpiryBeginDate(param.getBegVisitorTime());
|
||||
/* 249 */ imageStorePersonBindParam.setExpiryEndDate(param.getEndVisitorTime());
|
||||
/* 250 */ this.logger.info("远程调用绑定人员图库开始,imageStorePersonBindParam=[{}], CloudwalkCallContext=[{}]",
|
||||
/* 251 */ JSONObject.toJSONString(imageStorePersonBindParam), JSONObject.toJSONString(context));
|
||||
/* */
|
||||
/* 253 */ CloudwalkResult<ImgStoreBatchBindPersonResult> bindResult = this.imageStorePersonService.batchBind(imageStorePersonBindParam, context);
|
||||
/* 254 */ if (!bindResult.isSuccess()) {
|
||||
/* 255 */ this.logger.error("远程调用绑定人员图库异常,原因:[{}],失败人员id:[{}]", bindResult
|
||||
/* 256 */ .getMessage(), param.getVisitorId());
|
||||
/* 257 */ return CloudwalkResult.fail(bindResult.getCode(), bindResult.getMessage());
|
||||
/* */ }
|
||||
/* */
|
||||
/* 260 */ UpdateGroupPersonRefParam refParam = new UpdateGroupPersonRefParam();
|
||||
/* 261 */ refParam.setBusinessId(context.getCompany().getCompanyId());
|
||||
/* 262 */ refParam.setPersonIds(Collections.singletonList(param.getVisitorId()));
|
||||
/* 263 */ refParam.setImageStoreId(imageStoreId);
|
||||
/* 264 */ this.imageStorePersonService.updateGroupPersonRef(refParam, context);
|
||||
/* 265 */ } catch (Exception e) {
|
||||
/* 266 */ this.logger.error("根据被访人添加访客派梯权限失败,原因:[{}]", e);
|
||||
/* 267 */ throw new ServiceException("76260530", getMessage("76260530"));
|
||||
/* */ }
|
||||
/* 269 */ return CloudwalkResult.success(Boolean.valueOf(true));
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public CloudwalkResult<Boolean> edit(AcsPersonEditParam param, CloudwalkCallContext context) throws ServiceException {
|
||||
/* 275 */ return null;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public CloudwalkResult<Boolean> delete(AcsPersonDeleteParam param, CloudwalkCallContext context) throws ServiceException {
|
||||
/* 281 */ this.logger.info("从现有人员删除通行人员开始,AcsPersonDeleteParam=[{}], CloudwalkCallContext=[{}]",
|
||||
/* 282 */ JSONObject.toJSONString(param), JSONObject.toJSONString(context));
|
||||
/* */
|
||||
/* */ try {
|
||||
/* 285 */ String imageStoreId = this.deviceImageStoreDao.getByBuildingId(param.getParentId());
|
||||
/* 286 */ for (String personId : param.getPersonIds()) {
|
||||
/* */
|
||||
/* 288 */ ImageRuleRefResultDto rule = this.imageRuleRefDao.getByPersonIdAndZoneId(Collections.singletonList(personId), param.getZoneId());
|
||||
/* 289 */ if (!ObjectUtils.isEmpty(rule)) {
|
||||
/* 290 */ this.imageRuleRefDao.deleteByPersonId(personId, param.getZoneId());
|
||||
/* */ continue;
|
||||
/* */ }
|
||||
/* 293 */ ImageRuleRefAddDto addDto = new ImageRuleRefAddDto();
|
||||
/* 294 */ addDto.setId(genUUID());
|
||||
/* 295 */ addDto.setBusinessId(context.getCompany().getCompanyId());
|
||||
/* 296 */ addDto.setPersonId(personId);
|
||||
/* 297 */ addDto.setZoneId(param.getZoneId());
|
||||
/* 298 */ addDto.setPersonDelete(Integer.valueOf(1));
|
||||
/* 299 */ addDto.setCreateTime(Long.valueOf(System.currentTimeMillis()));
|
||||
/* 300 */ addDto.setLastUpdateTime(Long.valueOf(System.currentTimeMillis()));
|
||||
/* 301 */ this.imageRuleRefDao.insert(addDto);
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* 305 */ UpdateGroupPersonRefParam refParam = new UpdateGroupPersonRefParam();
|
||||
/* 306 */ refParam.setBusinessId(context.getCompany().getCompanyId());
|
||||
/* 307 */ refParam.setPersonIds(param.getPersonIds());
|
||||
/* 308 */ refParam.setImageStoreId(imageStoreId);
|
||||
/* 309 */ this.imageStorePersonService.updateGroupPersonRef(refParam, context);
|
||||
/* 310 */ } catch (DataAccessException e) {
|
||||
/* 311 */ this.logger.error("删除通行人员失败,原因:[{}]", (Throwable)e);
|
||||
/* 312 */ throw new ServiceException("76260523", getMessage("76260523"));
|
||||
/* */ }
|
||||
/* 314 */ return CloudwalkResult.success(Boolean.valueOf(true));
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public CloudwalkResult<CloudwalkPageAble<AcsPersonResult>> page(AcsPersonQueryParam param, CloudwalkPageInfo pageInfo, CloudwalkCallContext context) throws ServiceException {
|
||||
/* 320 */ this.logger.info("分页查询通行人员开始,AcsPersonQueryParam=[{}], CloudwalkPageInfo=[{}], CloudwalkCallContext=[{}]", new Object[] {
|
||||
/* 321 */ JSONObject.toJSONString(param), JSONObject.toJSONString(pageInfo), JSONObject.toJSONString(context) });
|
||||
/* */ try {
|
||||
/* 323 */ List<AcsPersonResult> result = new ArrayList<>();
|
||||
/* 324 */ List<String> personIds = null;
|
||||
/* */
|
||||
/* 326 */ String imageStoreId = this.deviceImageStoreDao.getByBuildingId(param.getParentId());
|
||||
/* 327 */ if (ObjectUtils.isEmpty(imageStoreId)) {
|
||||
/* 328 */ return CloudwalkResult.success(new CloudwalkPageAble(result, pageInfo, 0L));
|
||||
/* */ }
|
||||
/* 330 */ param.setImageStoreId(imageStoreId);
|
||||
/* */
|
||||
/* */
|
||||
/* 333 */ List<String> parentRuleList = this.imageRuleRefDao.listRuleByZoneIdExtDefault(param.getZoneId());
|
||||
/* */
|
||||
/* 335 */ List<String> personIdList = this.imageRuleRefDao.countPersonIdByZoneId(param.getZoneId());
|
||||
/* 336 */ if (CollectionUtils.isEmpty(parentRuleList) && CollectionUtils.isEmpty(personIdList)) {
|
||||
/* 337 */ return CloudwalkResult.success(new CloudwalkPageAble(result, pageInfo, 0L));
|
||||
/* */ }
|
||||
/* 339 */ param.setPersonIds(personIdList);
|
||||
/* 340 */ if (!CollectionUtils.isEmpty(parentRuleList)) {
|
||||
/* */
|
||||
/* 342 */ List<String> includeLabels = new ArrayList<>();
|
||||
/* 343 */ List<String> includeOrganizations = new ArrayList<>();
|
||||
/* 344 */ List<ImageRuleRefResultDto> child = this.imageRuleRefDao.listByParentRule(parentRuleList);
|
||||
/* 345 */ if (!CollectionUtils.isEmpty(child)) {
|
||||
/* 346 */ for (ImageRuleRefResultDto resultDto : child) {
|
||||
/* 347 */ if (!ObjectUtils.isEmpty(resultDto.getIncludeLabels())) {
|
||||
/* 348 */ includeLabels.add(resultDto.getIncludeLabels()); continue;
|
||||
/* 349 */ } if (!ObjectUtils.isEmpty(resultDto.getIncludeOrganizations())) {
|
||||
/* 350 */ includeOrganizations.add(resultDto.getIncludeOrganizations());
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* */
|
||||
/* 354 */ } else if (CollectionUtils.isEmpty(personIdList)) {
|
||||
/* 355 */ return CloudwalkResult.success(new CloudwalkPageAble(result, pageInfo, 0L));
|
||||
/* */ }
|
||||
/* */
|
||||
/* 358 */ List<String> elevatorIncludeLabels = new ArrayList<>();
|
||||
/* 359 */ List<String> elevatorOrganizations = new ArrayList<>();
|
||||
/* 360 */ if (!CollectionUtils.isEmpty(param.getLabelIds())) {
|
||||
/* 361 */ for (String labelId : param.getLabelIds()) {
|
||||
/* 362 */ if (!includeLabels.contains(labelId)) {
|
||||
/* 363 */ elevatorIncludeLabels.add(labelId);
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* 367 */ if (!CollectionUtils.isEmpty(param.getOrganizationIds())) {
|
||||
/* 368 */ for (String orgId : param.getOrganizationIds()) {
|
||||
/* 369 */ if (!includeOrganizations.contains(orgId)) {
|
||||
/* 370 */ elevatorOrganizations.add(orgId);
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* 374 */ if (!CollectionUtils.isEmpty(elevatorIncludeLabels)) {
|
||||
/* 375 */ param.setElevatorLabelIds(elevatorIncludeLabels);
|
||||
/* */ }
|
||||
/* 377 */ param.setLabelIds(includeLabels);
|
||||
/* 378 */ if (!CollectionUtils.isEmpty(elevatorOrganizations)) {
|
||||
/* 379 */ param.setElevatorOrganizationIds(elevatorOrganizations);
|
||||
/* */ }
|
||||
/* 381 */ param.setOrganizationIds(includeOrganizations);
|
||||
/* */
|
||||
/* */
|
||||
/* 384 */ List<String> delPersonIds = this.imageRuleRefDao.listPersonDelByZoneId(param.getZoneId());
|
||||
/* 385 */ param.setDelPersonIds(delPersonIds);
|
||||
/* */ }
|
||||
/* 387 */ if (!CollectionUtils.isEmpty(param.getElevatorLabelIds()) || !CollectionUtils.isEmpty(param.getElevatorOrganizationIds())) {
|
||||
/* 388 */ param.setIsElevator(Integer.valueOf(0));
|
||||
/* 389 */ } else if (!CollectionUtils.isEmpty(param.getLabelIds()) && !CollectionUtils.isEmpty(param.getOrganizationIds())) {
|
||||
/* 390 */ param.setIsElevator(Integer.valueOf(3));
|
||||
/* 391 */ param.setElevatorLabelIds(param.getLabelIds());
|
||||
/* 392 */ param.setElevatorOrganizationIds(param.getOrganizationIds());
|
||||
/* 393 */ } else if (!CollectionUtils.isEmpty(param.getOrganizationIds())) {
|
||||
/* 394 */ param.setIsElevator(Integer.valueOf(1));
|
||||
/* 395 */ param.setElevatorOrganizationIds(param.getOrganizationIds());
|
||||
/* 396 */ } else if (!CollectionUtils.isEmpty(param.getLabelIds())) {
|
||||
/* 397 */ param.setIsElevator(Integer.valueOf(2));
|
||||
/* 398 */ param.setElevatorLabelIds(param.getLabelIds());
|
||||
/* */ }
|
||||
/* */
|
||||
/* 401 */ if (!StringUtils.isEmpty(param.getPersonName())) {
|
||||
/* 402 */ personIds = getPersonIdsByName(param, context);
|
||||
/* 403 */ if (!CollectionUtils.isEmpty(param.getDelPersonIds()) && !CollectionUtils.isEmpty(personIds)) {
|
||||
/* 404 */ List<String> newPersonIds = new ArrayList<>();
|
||||
/* 405 */ for (int i = 0; i < personIds.size(); i++) {
|
||||
/* 406 */ if (!param.getDelPersonIds().contains(personIds.get(i))) {
|
||||
/* 407 */ newPersonIds.add(personIds.get(i));
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* 410 */ if (CollectionUtils.isEmpty(newPersonIds)) {
|
||||
/* 411 */ return CloudwalkResult.success(new CloudwalkPageAble(result, pageInfo, 0L));
|
||||
/* */ }
|
||||
/* 413 */ personIds.clear();
|
||||
/* 414 */ personIds.addAll(newPersonIds);
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* 418 */ if (CollectionUtils.isEmpty(personIds)) {
|
||||
/* 419 */ return CloudwalkResult.success(new CloudwalkPageAble(result, pageInfo, 0L));
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* */
|
||||
/* 423 */ CloudwalkPageAble<ImageStorePersonResult> pageResult = getImageStorePerson(param, pageInfo, context, imageStoreId, personIds);
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* 427 */ if (!CollectionUtils.isEmpty(pageResult.getDatas())) {
|
||||
/* 428 */ covertPageResult(result, pageResult.getDatas(), context);
|
||||
/* */ }
|
||||
/* 430 */ return CloudwalkResult.success(new CloudwalkPageAble(result, pageInfo, pageResult.getTotalRows()));
|
||||
/* 431 */ } catch (DataAccessException e) {
|
||||
/* 432 */ this.logger.error("分页查询通行人员失败", (Throwable)e);
|
||||
/* 433 */ throw new ServiceException("76260528", getMessage("76260528"));
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public CloudwalkResult<AcsPersonTimeDetailResult> timeDetail(AcsPersonTimeDetailParam param, CloudwalkCallContext context) throws ServiceException {
|
||||
/* 440 */ return null;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public CloudwalkResult<CloudwalkPageAble<AcsPersonResult>> pageByApp(AcsPersonQueryByAppParam param, CloudwalkPageInfo pageInfo, CloudwalkCallContext context) throws ServiceException {
|
||||
/* 446 */ return null;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public CloudwalkResult<CloudwalkPageAble<ImageStorePersonResult>> personDetail(PersonDetailQueryParam param, CloudwalkCallContext context) throws ServiceException {
|
||||
/* 452 */ String imageStoreId = this.deviceImageStoreDao.getByBuildingId(param.getParentId());
|
||||
/* */
|
||||
/* 454 */ List<ImageRuleRefResultDto> resultDtos = this.imageRuleRefDao.listByParentRule(Collections.singletonList(param.getRuleId()));
|
||||
/* */ try {
|
||||
/* 456 */ List<String> delPersonIds = this.imageRuleRefDao.listPersonDelByZoneId(param.getZoneId());
|
||||
/* 457 */ if (CollectionUtils.isEmpty(resultDtos)) {
|
||||
/* 458 */ return CloudwalkResult.success(null);
|
||||
/* */ }
|
||||
/* 460 */ List<String> personIds = new ArrayList<>();
|
||||
/* 461 */ List<String> labelIds = new ArrayList<>();
|
||||
/* 462 */ List<String> orgIds = new ArrayList<>();
|
||||
/* 463 */ for (ImageRuleRefResultDto dto : resultDtos) {
|
||||
/* 464 */ if (!ObjectUtils.isEmpty(dto.getPersonId())) {
|
||||
/* 465 */ personIds.add(dto.getPersonId());
|
||||
/* */ }
|
||||
/* 467 */ if (!ObjectUtils.isEmpty(dto.getIncludeLabels())) {
|
||||
/* 468 */ labelIds.add(dto.getIncludeLabels());
|
||||
/* */ }
|
||||
/* 470 */ if (!ObjectUtils.isEmpty(dto.getIncludeOrganizations())) {
|
||||
/* 471 */ orgIds.add(dto.getIncludeOrganizations());
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* 474 */ ImageStorePersonQueryParam queryParam = new ImageStorePersonQueryParam();
|
||||
/* 475 */ queryParam.setImageStoreId(imageStoreId);
|
||||
/* 476 */ queryParam.setName(param.getPersonName());
|
||||
/* 477 */ queryParam.setPersonIds(personIds);
|
||||
/* 478 */ queryParam.setLabelIds(labelIds);
|
||||
/* 479 */ queryParam.setOrganizationIds(orgIds);
|
||||
/* 480 */ queryParam.setDelPersonIds(delPersonIds);
|
||||
/* 481 */ queryParam.setIsElevator(Integer.valueOf(0));
|
||||
/* 482 */ queryParam.setRowsOfPage(param.getRowsOfPage());
|
||||
/* 483 */ queryParam.setCurrentPage(param.getCurrentPage());
|
||||
/* 484 */ return this.imageStorePersonService.page(queryParam, context);
|
||||
/* */ }
|
||||
/* 486 */ catch (DataAccessException e) {
|
||||
/* 487 */ this.logger.error("分页查询通行人员失败", (Throwable)e);
|
||||
/* 488 */ throw new ServiceException("76260528", getMessage("76260528"));
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ private List<String> getPersonIdsByName(AcsPersonQueryParam param, CloudwalkCallContext context) throws ServiceException {
|
||||
/* 502 */ List<String> personIdsByName = new ArrayList<>();
|
||||
/* 503 */ if (StringUtils.isNotBlank(param.getPersonName())) {
|
||||
/* 504 */ PersonQueryParam personQueryParam = new PersonQueryParam();
|
||||
/* 505 */ personQueryParam.setName(param.getPersonName());
|
||||
/* 506 */ personQueryParam.setIds(param.getPersonIds());
|
||||
/* 507 */ personQueryParam.setLabelIds(param.getElevatorLabelIds());
|
||||
/* 508 */ personQueryParam.setOrganizationIds(param.getElevatorOrganizationIds());
|
||||
/* 509 */ personQueryParam.setIsElevator(param.getIsElevator());
|
||||
/* 510 */ CloudwalkResult<List<PersonResult>> personResult = this.personService.list(personQueryParam, context);
|
||||
/* */
|
||||
/* 512 */ List<PersonResult> personList = (List<PersonResult>)personResult.getData();
|
||||
/* 513 */ if (personResult.isSuccess() && CollectionUtils.isNotEmpty(personList)) {
|
||||
/* 514 */ List<PersonResult> newPersonList = new ArrayList<>();
|
||||
/* 515 */ for (PersonResult result : personList) {
|
||||
/* 516 */ if (param.getPersonIds().contains(result.getId())) {
|
||||
/* 517 */ newPersonList.add(result); continue;
|
||||
/* 518 */ } if (!CollectionUtils.isEmpty(result.getOrganizationIds())) {
|
||||
/* 519 */ for (String orgId : result.getOrganizationIds()) {
|
||||
/* 520 */ if (!CollectionUtils.isEmpty(param.getOrganizationIds()) && param.getOrganizationIds().contains(orgId))
|
||||
/* 521 */ newPersonList.add(result);
|
||||
/* */ } continue;
|
||||
/* */ }
|
||||
/* 524 */ if (!CollectionUtils.isEmpty(result.getLabelIds())) {
|
||||
/* 525 */ for (String labelId : result.getLabelIds()) {
|
||||
/* 526 */ if (!CollectionUtils.isEmpty(param.getLabelIds()) && param.getLabelIds().contains(labelId)) {
|
||||
/* 527 */ newPersonList.add(result);
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* */
|
||||
/* 533 */ if (CollectionUtils.isNotEmpty(newPersonList)) {
|
||||
/* 534 */ personIdsByName = (List<String>)newPersonList.stream().map(CloudwalkBaseIdentify::getId).collect(Collectors.toList());
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* 538 */ return personIdsByName;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ private CloudwalkPageAble<ImageStorePersonResult> getImageStorePerson(AcsPersonQueryParam param, CloudwalkPageInfo pageInfo, CloudwalkCallContext context, String imageStoreId, List<String> personIds) throws ServiceException {
|
||||
/* 545 */ CloudwalkPageAble<ImageStorePersonResult> results = new CloudwalkPageAble();
|
||||
/* 546 */ ImageStorePersonQueryParam imageStorePersonQueryParam = new ImageStorePersonQueryParam();
|
||||
/* 547 */ imageStorePersonQueryParam.setImageStoreId(imageStoreId);
|
||||
/* 548 */ if (!CollectionUtils.isEmpty(personIds)) {
|
||||
/* 549 */ imageStorePersonQueryParam.setPersonIds(personIds);
|
||||
/* 550 */ imageStorePersonQueryParam.setIsElevator(Integer.valueOf(4));
|
||||
/* */ } else {
|
||||
/* 552 */ imageStorePersonQueryParam.setPersonIds(param.getPersonIds());
|
||||
/* 553 */ imageStorePersonQueryParam.setOrganizationIds(param.getElevatorOrganizationIds());
|
||||
/* 554 */ imageStorePersonQueryParam.setLabelIds(param.getElevatorLabelIds());
|
||||
/* 555 */ imageStorePersonQueryParam.setCurrentPage(pageInfo.getCurrentPage());
|
||||
/* 556 */ imageStorePersonQueryParam.setRowsOfPage(pageInfo.getPageSize());
|
||||
/* 557 */ imageStorePersonQueryParam.setIsElevator(param.getIsElevator());
|
||||
/* 558 */ imageStorePersonQueryParam.setDelPersonIds(param.getDelPersonIds());
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* 563 */ CloudwalkResult<CloudwalkPageAble<ImageStorePersonResult>> pageResult = this.imageStorePersonService.page(imageStorePersonQueryParam, context);
|
||||
/* */
|
||||
/* 565 */ if (!pageResult.isSuccess()) {
|
||||
/* 566 */ this.logger.error("远程调用查询图库人员失败,原因:[{}]", pageResult.getMessage());
|
||||
/* 567 */ throw new ServiceException(pageResult.getCode(), pageResult.getMessage());
|
||||
/* */ }
|
||||
/* 569 */ if (!CollectionUtils.isEmpty(((CloudwalkPageAble)pageResult.getData()).getDatas())) {
|
||||
/* 570 */ results = (CloudwalkPageAble<ImageStorePersonResult>)pageResult.getData();
|
||||
/* */ }
|
||||
/* 572 */ return results;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ private void covertPageResult(List<AcsPersonResult> result, Collection<ImageStorePersonResult> datas, CloudwalkCallContext context) throws ServiceException {
|
||||
/* 588 */ List<String> personIds = (List<String>)datas.stream().map(ImageStorePersonResult::getPersonId).collect(Collectors.toList());
|
||||
/* 589 */ Map<String, PersonResult> personIcCardMap = getPersonIcCardByIds(personIds, context);
|
||||
/* 590 */ for (ImageStorePersonResult data : datas) {
|
||||
/* 591 */ AcsPassRuleResult rule = null;
|
||||
/* 592 */ AcsPersonResult acsPersonResult = new AcsPersonResult();
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* 598 */ BeanCopyUtils.copyProperties(data, acsPersonResult);
|
||||
/* 599 */ acsPersonResult.setPersonName(data.getName());
|
||||
/* 600 */ acsPersonResult.setStartTime(data.getExpiryBeginDate());
|
||||
/* 601 */ acsPersonResult.setEndTime(data.getExpiryEndDate());
|
||||
/* */
|
||||
/* */
|
||||
/* 604 */ acsPersonResult.setPassType(AcsPassTypeEnum.LONG_TIME.getCode());
|
||||
/* 605 */ if (data.getExpiryBeginDate() != null || data.getExpiryEndDate() != null) {
|
||||
/* 606 */ acsPersonResult.setPassType(AcsPassTypeEnum.AUTO_PASS.getCode());
|
||||
/* */ }
|
||||
/* */
|
||||
/* 609 */ if (personIcCardMap != null && personIcCardMap.get(data.getPersonId()) != null) {
|
||||
/* 610 */ acsPersonResult.setIcCardNo(((PersonResult)personIcCardMap.get(data.getPersonId())).getIcCardNo());
|
||||
/* */ }
|
||||
/* 612 */ result.add(acsPersonResult);
|
||||
/* */ }
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */ private Map<String, PersonResult> getPersonIcCardByIds(List<String> personIds, CloudwalkCallContext context) throws ServiceException {
|
||||
/* 618 */ Map<String, PersonResult> personIcCardMap = null;
|
||||
/* 619 */ PersonQueryParam param = new PersonQueryParam();
|
||||
/* 620 */ param.setIds(personIds);
|
||||
/* 621 */ CloudwalkResult<List<PersonResult>> personResult = this.personService.list(param, context);
|
||||
/* 622 */ List<PersonResult> personList = (List<PersonResult>)personResult.getData();
|
||||
/* 623 */ if (personResult.isSuccess() && CollectionUtils.isNotEmpty(personList))
|
||||
/* */ {
|
||||
/* 625 */ personIcCardMap = (Map<String, PersonResult>)personList.stream().collect(Collectors.toMap(CloudwalkBaseIdentify::getId, personResult -> personResult));
|
||||
/* */ }
|
||||
/* 627 */ return personIcCardMap;
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-service-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\person\impl\PersonRuleServiceImpl.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+79
@@ -0,0 +1,79 @@
|
||||
/* */ package cn.cloudwalk.elevator.person.param;
|
||||
/* */
|
||||
/* */ import java.io.Serializable;
|
||||
/* */ import javax.validation.Valid;
|
||||
/* */ import javax.validation.constraints.NotNull;
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public class AcsPersonAddNewParam
|
||||
/* */ implements Serializable
|
||||
/* */ {
|
||||
/* */ private static final long serialVersionUID = -943980110684030345L;
|
||||
/* */ private String zoneId;
|
||||
/* */ private Long startTime;
|
||||
/* */ private Long endTime;
|
||||
/* */ @Valid
|
||||
/* */ @NotNull(message = "76260408")
|
||||
/* */ private AcsPersonPropertiesParam personProperties;
|
||||
/* */
|
||||
/* */ public String getZoneId() {
|
||||
/* 43 */ return this.zoneId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setZoneId(String zoneId) {
|
||||
/* 47 */ this.zoneId = zoneId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public Long getStartTime() {
|
||||
/* 51 */ return this.startTime;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setStartTime(Long startTime) {
|
||||
/* 55 */ this.startTime = startTime;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public Long getEndTime() {
|
||||
/* 59 */ return this.endTime;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setEndTime(Long endTime) {
|
||||
/* 63 */ this.endTime = endTime;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public AcsPersonPropertiesParam getPersonProperties() {
|
||||
/* 67 */ return this.personProperties;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setPersonProperties(AcsPersonPropertiesParam personProperties) {
|
||||
/* 71 */ this.personProperties = personProperties;
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-service-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\person\param\AcsPersonAddNewParam.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+104
@@ -0,0 +1,104 @@
|
||||
/* */ package cn.cloudwalk.elevator.person.param;
|
||||
/* */
|
||||
/* */ import java.io.Serializable;
|
||||
/* */ import java.util.List;
|
||||
/* */ import org.hibernate.validator.constraints.NotEmpty;
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public class AcsPersonAddParam
|
||||
/* */ implements Serializable
|
||||
/* */ {
|
||||
/* */ private static final long serialVersionUID = 1742648191193141962L;
|
||||
/* */ private String parentId;
|
||||
/* */ private String zoneId;
|
||||
/* */ private String zoneName;
|
||||
/* */ @NotEmpty(message = "76260405")
|
||||
/* */ private List<String> personIds;
|
||||
/* */ private Long startTime;
|
||||
/* */ private Long endTime;
|
||||
/* */
|
||||
/* */ public String getZoneName() {
|
||||
/* 52 */ return this.zoneName;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setZoneName(String zoneName) {
|
||||
/* 56 */ this.zoneName = zoneName;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getParentId() {
|
||||
/* 60 */ return this.parentId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setParentId(String parentId) {
|
||||
/* 64 */ this.parentId = parentId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getZoneId() {
|
||||
/* 68 */ return this.zoneId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setZoneId(String zoneId) {
|
||||
/* 72 */ this.zoneId = zoneId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public List<String> getPersonIds() {
|
||||
/* 76 */ return this.personIds;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setPersonIds(List<String> personIds) {
|
||||
/* 80 */ this.personIds = personIds;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public Long getStartTime() {
|
||||
/* 84 */ return this.startTime;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setStartTime(Long startTime) {
|
||||
/* 88 */ this.startTime = startTime;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public Long getEndTime() {
|
||||
/* 92 */ return this.endTime;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setEndTime(Long endTime) {
|
||||
/* 96 */ this.endTime = endTime;
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-service-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\person\param\AcsPersonAddParam.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+52
@@ -0,0 +1,52 @@
|
||||
/* */ package cn.cloudwalk.elevator.person.param;
|
||||
/* */
|
||||
/* */ import java.io.Serializable;
|
||||
/* */ import java.util.List;
|
||||
/* */
|
||||
/* */ public class AcsPersonAddVisitorParam
|
||||
/* */ implements Serializable {
|
||||
/* */ private static final long serialVersionUID = 7916140658162290825L;
|
||||
/* */ private String visitorId;
|
||||
/* */ private String personId;
|
||||
/* */ private Long begVisitorTime;
|
||||
/* */ private Long endVisitorTime;
|
||||
/* */ private List<String> floorIds;
|
||||
/* */
|
||||
/* */ public void setVisitorId(String visitorId) {
|
||||
/* 16 */ this.visitorId = visitorId; } public void setPersonId(String personId) { this.personId = personId; } public void setBegVisitorTime(Long begVisitorTime) { this.begVisitorTime = begVisitorTime; } public void setEndVisitorTime(Long endVisitorTime) { this.endVisitorTime = endVisitorTime; } public void setFloorIds(List<String> floorIds) { this.floorIds = floorIds; } public boolean equals(Object o) { if (o == this) return true; if (!(o instanceof AcsPersonAddVisitorParam)) return false; AcsPersonAddVisitorParam other = (AcsPersonAddVisitorParam)o; if (!other.canEqual(this)) return false; Object this$visitorId = getVisitorId(), other$visitorId = other.getVisitorId(); if ((this$visitorId == null) ? (other$visitorId != null) : !this$visitorId.equals(other$visitorId)) return false; Object this$personId = getPersonId(), other$personId = other.getPersonId(); if ((this$personId == null) ? (other$personId != null) : !this$personId.equals(other$personId)) return false; Object this$begVisitorTime = getBegVisitorTime(), other$begVisitorTime = other.getBegVisitorTime(); if ((this$begVisitorTime == null) ? (other$begVisitorTime != null) : !this$begVisitorTime.equals(other$begVisitorTime)) return false; Object this$endVisitorTime = getEndVisitorTime(), other$endVisitorTime = other.getEndVisitorTime(); if ((this$endVisitorTime == null) ? (other$endVisitorTime != null) : !this$endVisitorTime.equals(other$endVisitorTime)) return false; Object<String> this$floorIds = (Object<String>)getFloorIds(), other$floorIds = (Object<String>)other.getFloorIds(); return !((this$floorIds == null) ? (other$floorIds != null) : !this$floorIds.equals(other$floorIds)); } protected boolean canEqual(Object other) { return other instanceof AcsPersonAddVisitorParam; } public int hashCode() { int PRIME = 59; result = 1; Object $visitorId = getVisitorId(); result = result * 59 + (($visitorId == null) ? 43 : $visitorId.hashCode()); Object $personId = getPersonId(); result = result * 59 + (($personId == null) ? 43 : $personId.hashCode()); Object $begVisitorTime = getBegVisitorTime(); result = result * 59 + (($begVisitorTime == null) ? 43 : $begVisitorTime.hashCode()); Object $endVisitorTime = getEndVisitorTime(); result = result * 59 + (($endVisitorTime == null) ? 43 : $endVisitorTime.hashCode()); Object<String> $floorIds = (Object<String>)getFloorIds(); return result * 59 + (($floorIds == null) ? 43 : $floorIds.hashCode()); } public String toString() { return "AcsPersonAddVisitorParam(visitorId=" + getVisitorId() + ", personId=" + getPersonId() + ", begVisitorTime=" + getBegVisitorTime() + ", endVisitorTime=" + getEndVisitorTime() + ", floorIds=" + getFloorIds() + ")"; }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public String getVisitorId() {
|
||||
/* 24 */ return this.visitorId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */ public String getPersonId() {
|
||||
/* 29 */ return this.personId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */ public Long getBegVisitorTime() {
|
||||
/* 34 */ return this.begVisitorTime;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */ public Long getEndVisitorTime() {
|
||||
/* 39 */ return this.endVisitorTime;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */ public List<String> getFloorIds() {
|
||||
/* 44 */ return this.floorIds;
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-service-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\person\param\AcsPersonAddVisitorParam.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+60
@@ -0,0 +1,60 @@
|
||||
/* */ package cn.cloudwalk.elevator.person.param;
|
||||
/* */
|
||||
/* */ import java.io.Serializable;
|
||||
/* */ import java.util.List;
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public class AcsPersonCheckTimeParam
|
||||
/* */ implements Serializable
|
||||
/* */ {
|
||||
/* */ private static final long serialVersionUID = -4963269689428542769L;
|
||||
/* */ private String personId;
|
||||
/* */ private List<String> imageStoreIds;
|
||||
/* */ private Long time;
|
||||
/* */
|
||||
/* */ public String getPersonId() {
|
||||
/* 32 */ return this.personId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setPersonId(String personId) {
|
||||
/* 36 */ this.personId = personId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public List<String> getImageStoreIds() {
|
||||
/* 40 */ return this.imageStoreIds;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setImageStoreIds(List<String> imageStoreIds) {
|
||||
/* 44 */ this.imageStoreIds = imageStoreIds;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public Long getTime() {
|
||||
/* 48 */ return this.time;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setTime(Long time) {
|
||||
/* 52 */ this.time = time;
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-service-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\person\param\AcsPersonCheckTimeParam.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+92
@@ -0,0 +1,92 @@
|
||||
/* */ package cn.cloudwalk.elevator.person.param;
|
||||
/* */
|
||||
/* */ import java.io.Serializable;
|
||||
/* */ import java.util.List;
|
||||
/* */ import org.hibernate.validator.constraints.NotBlank;
|
||||
/* */ import org.hibernate.validator.constraints.NotEmpty;
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public class AcsPersonDeleteParam
|
||||
/* */ implements Serializable
|
||||
/* */ {
|
||||
/* */ private static final long serialVersionUID = 1742648191193141962L;
|
||||
/* */ private String parentId;
|
||||
/* */ private String zoneId;
|
||||
/* */ @NotEmpty(message = "76260405")
|
||||
/* */ private List<String> personIds;
|
||||
/* */ @NotBlank(message = "76260418")
|
||||
/* */ private String imageStoreId;
|
||||
/* */ private String personId;
|
||||
/* */
|
||||
/* */ public String getPersonId() {
|
||||
/* 48 */ return this.personId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setPersonId(String personId) {
|
||||
/* 52 */ this.personId = personId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getParentId() {
|
||||
/* 56 */ return this.parentId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setParentId(String parentId) {
|
||||
/* 60 */ this.parentId = parentId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getZoneId() {
|
||||
/* 64 */ return this.zoneId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setZoneId(String zoneId) {
|
||||
/* 68 */ this.zoneId = zoneId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public List<String> getPersonIds() {
|
||||
/* 72 */ return this.personIds;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setPersonIds(List<String> personIds) {
|
||||
/* 76 */ this.personIds = personIds;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getImageStoreId() {
|
||||
/* 80 */ return this.imageStoreId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setImageStoreId(String imageStoreId) {
|
||||
/* 84 */ this.imageStoreId = imageStoreId;
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-service-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\person\param\AcsPersonDeleteParam.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+50
@@ -0,0 +1,50 @@
|
||||
/* */ package cn.cloudwalk.elevator.person.param;
|
||||
/* */
|
||||
/* */ import java.io.Serializable;
|
||||
/* */ import org.hibernate.validator.constraints.NotBlank;
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public class AcsPersonDetailParam
|
||||
/* */ implements Serializable
|
||||
/* */ {
|
||||
/* */ private static final long serialVersionUID = -4991936524378444365L;
|
||||
/* */ private String zoneId;
|
||||
/* */ @NotBlank(message = "76260405")
|
||||
/* */ private String personId;
|
||||
/* */
|
||||
/* */ public String getZoneId() {
|
||||
/* 30 */ return this.zoneId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setZoneId(String zoneId) {
|
||||
/* 34 */ this.zoneId = zoneId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getPersonId() {
|
||||
/* 38 */ return this.personId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setPersonId(String personId) {
|
||||
/* 42 */ this.personId = personId;
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-service-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\person\param\AcsPersonDetailParam.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+90
@@ -0,0 +1,90 @@
|
||||
/* */ package cn.cloudwalk.elevator.person.param;
|
||||
/* */
|
||||
/* */ import java.io.Serializable;
|
||||
/* */ import org.hibernate.validator.constraints.NotBlank;
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public class AcsPersonEditParam
|
||||
/* */ implements Serializable
|
||||
/* */ {
|
||||
/* */ private static final long serialVersionUID = 1742648191193141962L;
|
||||
/* */ private String zoneId;
|
||||
/* */ @NotBlank(message = "76260405")
|
||||
/* */ private String personId;
|
||||
/* */ private Long startTime;
|
||||
/* */ private Long endTime;
|
||||
/* */ @NotBlank(message = "76260418")
|
||||
/* */ private String imageStoreId;
|
||||
/* */
|
||||
/* */ public String getZoneId() {
|
||||
/* 46 */ return this.zoneId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setZoneId(String zoneId) {
|
||||
/* 50 */ this.zoneId = zoneId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getPersonId() {
|
||||
/* 54 */ return this.personId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setPersonId(String personId) {
|
||||
/* 58 */ this.personId = personId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public Long getStartTime() {
|
||||
/* 62 */ return this.startTime;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setStartTime(Long startTime) {
|
||||
/* 66 */ this.startTime = startTime;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public Long getEndTime() {
|
||||
/* 70 */ return this.endTime;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setEndTime(Long endTime) {
|
||||
/* 74 */ this.endTime = endTime;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getImageStoreId() {
|
||||
/* 78 */ return this.imageStoreId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setImageStoreId(String imageStoreId) {
|
||||
/* 82 */ this.imageStoreId = imageStoreId;
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-service-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\person\param\AcsPersonEditParam.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+51
@@ -0,0 +1,51 @@
|
||||
/* */ package cn.cloudwalk.elevator.person.param;
|
||||
/* */
|
||||
/* */ import java.io.Serializable;
|
||||
/* */ import org.hibernate.validator.constraints.NotBlank;
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public class AcsPersonFaceParam
|
||||
/* */ implements Serializable
|
||||
/* */ {
|
||||
/* */ private static final long serialVersionUID = 1742648191193141962L;
|
||||
/* */ @NotBlank(message = "76260402")
|
||||
/* */ private String deviceId;
|
||||
/* */ @NotBlank(message = "76260403")
|
||||
/* */ private String faceImage;
|
||||
/* */
|
||||
/* */ public String getDeviceId() {
|
||||
/* 31 */ return this.deviceId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setDeviceId(String deviceId) {
|
||||
/* 35 */ this.deviceId = deviceId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getFaceImage() {
|
||||
/* 39 */ return this.faceImage;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setFaceImage(String faceImage) {
|
||||
/* 43 */ this.faceImage = faceImage;
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-service-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\person\param\AcsPersonFaceParam.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+714
@@ -0,0 +1,714 @@
|
||||
/* */ package cn.cloudwalk.elevator.person.param;
|
||||
/* */
|
||||
/* */ import java.io.Serializable;
|
||||
/* */ import java.util.List;
|
||||
/* */ import org.hibernate.validator.constraints.NotBlank;
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public class AcsPersonPropertiesParam
|
||||
/* */ implements Serializable
|
||||
/* */ {
|
||||
/* */ private static final long serialVersionUID = -448990843685123843L;
|
||||
/* */ private String name;
|
||||
/* */ private String userName;
|
||||
/* */ private String personCode;
|
||||
/* */ private String phone;
|
||||
/* */ private String email;
|
||||
/* */ private List<String> organizationIds;
|
||||
/* */ private List<String> labelIds;
|
||||
/* */ private Long expiryBeginDate;
|
||||
/* */ private Long expiryEndDate;
|
||||
/* */ @NotBlank(message = "76260412")
|
||||
/* */ private String comparePicture;
|
||||
/* */ private String ext1;
|
||||
/* */ private String ext2;
|
||||
/* */ private String ext3;
|
||||
/* */ private String ext4;
|
||||
/* */ private String ext5;
|
||||
/* */ private String ext6;
|
||||
/* */ private String ext7;
|
||||
/* */ private String ext8;
|
||||
/* */ private String ext9;
|
||||
/* */ private String ext10;
|
||||
/* */ private String ext11;
|
||||
/* */ private String ext12;
|
||||
/* */ private String ext13;
|
||||
/* */ private String ext14;
|
||||
/* */ private String ext15;
|
||||
/* */ private String ext16;
|
||||
/* */ private String ext17;
|
||||
/* */ private String ext18;
|
||||
/* */ private String ext19;
|
||||
/* */ private String ext20;
|
||||
/* */ private String ext21;
|
||||
/* */ private String ext22;
|
||||
/* */ private String ext23;
|
||||
/* */ private String ext24;
|
||||
/* */ private String ext25;
|
||||
/* */ private String ext26;
|
||||
/* */ private String ext27;
|
||||
/* */ private String ext28;
|
||||
/* */ private String ext29;
|
||||
/* */ private String ext30;
|
||||
/* */ private String ext31;
|
||||
/* */ private String ext32;
|
||||
/* */ private String ext33;
|
||||
/* */ private String ext34;
|
||||
/* */ private String ext35;
|
||||
/* */ private String ext36;
|
||||
/* */ private String ext37;
|
||||
/* */ private String ext38;
|
||||
/* */ private String ext39;
|
||||
/* */ private String ext40;
|
||||
/* */ private Integer createSysAccount;
|
||||
/* */ private String welcome;
|
||||
/* */ private String showPicture;
|
||||
/* */
|
||||
/* */ public String getName() {
|
||||
/* 286 */ return this.name;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setName(String name) {
|
||||
/* 290 */ this.name = name;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getUserName() {
|
||||
/* 294 */ return this.userName;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setUserName(String userName) {
|
||||
/* 298 */ this.userName = userName;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getPersonCode() {
|
||||
/* 302 */ return this.personCode;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setPersonCode(String personCode) {
|
||||
/* 306 */ this.personCode = personCode;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getPhone() {
|
||||
/* 310 */ return this.phone;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setPhone(String phone) {
|
||||
/* 314 */ this.phone = phone;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getEmail() {
|
||||
/* 318 */ return this.email;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setEmail(String email) {
|
||||
/* 322 */ this.email = email;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public List<String> getOrganizationIds() {
|
||||
/* 326 */ return this.organizationIds;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setOrganizationIds(List<String> organizationIds) {
|
||||
/* 330 */ this.organizationIds = organizationIds;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public List<String> getLabelIds() {
|
||||
/* 334 */ return this.labelIds;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setLabelIds(List<String> labelIds) {
|
||||
/* 338 */ this.labelIds = labelIds;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public Long getExpiryBeginDate() {
|
||||
/* 342 */ return this.expiryBeginDate;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setExpiryBeginDate(Long expiryBeginDate) {
|
||||
/* 346 */ this.expiryBeginDate = expiryBeginDate;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public Long getExpiryEndDate() {
|
||||
/* 350 */ return this.expiryEndDate;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setExpiryEndDate(Long expiryEndDate) {
|
||||
/* 354 */ this.expiryEndDate = expiryEndDate;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getComparePicture() {
|
||||
/* 358 */ return this.comparePicture;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setComparePicture(String comparePicture) {
|
||||
/* 362 */ this.comparePicture = comparePicture;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getExt1() {
|
||||
/* 366 */ return this.ext1;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setExt1(String ext1) {
|
||||
/* 370 */ this.ext1 = ext1;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getExt2() {
|
||||
/* 374 */ return this.ext2;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setExt2(String ext2) {
|
||||
/* 378 */ this.ext2 = ext2;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getExt3() {
|
||||
/* 382 */ return this.ext3;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setExt3(String ext3) {
|
||||
/* 386 */ this.ext3 = ext3;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getExt4() {
|
||||
/* 390 */ return this.ext4;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setExt4(String ext4) {
|
||||
/* 394 */ this.ext4 = ext4;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getExt5() {
|
||||
/* 398 */ return this.ext5;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setExt5(String ext5) {
|
||||
/* 402 */ this.ext5 = ext5;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getExt6() {
|
||||
/* 406 */ return this.ext6;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setExt6(String ext6) {
|
||||
/* 410 */ this.ext6 = ext6;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getExt7() {
|
||||
/* 414 */ return this.ext7;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setExt7(String ext7) {
|
||||
/* 418 */ this.ext7 = ext7;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getExt8() {
|
||||
/* 422 */ return this.ext8;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setExt8(String ext8) {
|
||||
/* 426 */ this.ext8 = ext8;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getExt9() {
|
||||
/* 430 */ return this.ext9;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setExt9(String ext9) {
|
||||
/* 434 */ this.ext9 = ext9;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getExt10() {
|
||||
/* 438 */ return this.ext10;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setExt10(String ext10) {
|
||||
/* 442 */ this.ext10 = ext10;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getExt11() {
|
||||
/* 446 */ return this.ext11;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setExt11(String ext11) {
|
||||
/* 450 */ this.ext11 = ext11;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getExt12() {
|
||||
/* 454 */ return this.ext12;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setExt12(String ext12) {
|
||||
/* 458 */ this.ext12 = ext12;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getExt13() {
|
||||
/* 462 */ return this.ext13;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setExt13(String ext13) {
|
||||
/* 466 */ this.ext13 = ext13;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getExt14() {
|
||||
/* 470 */ return this.ext14;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setExt14(String ext14) {
|
||||
/* 474 */ this.ext14 = ext14;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getExt15() {
|
||||
/* 478 */ return this.ext15;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setExt15(String ext15) {
|
||||
/* 482 */ this.ext15 = ext15;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getExt16() {
|
||||
/* 486 */ return this.ext16;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setExt16(String ext16) {
|
||||
/* 490 */ this.ext16 = ext16;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getExt17() {
|
||||
/* 494 */ return this.ext17;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setExt17(String ext17) {
|
||||
/* 498 */ this.ext17 = ext17;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getExt18() {
|
||||
/* 502 */ return this.ext18;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setExt18(String ext18) {
|
||||
/* 506 */ this.ext18 = ext18;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getExt19() {
|
||||
/* 510 */ return this.ext19;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setExt19(String ext19) {
|
||||
/* 514 */ this.ext19 = ext19;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getExt20() {
|
||||
/* 518 */ return this.ext20;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setExt20(String ext20) {
|
||||
/* 522 */ this.ext20 = ext20;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getExt21() {
|
||||
/* 526 */ return this.ext21;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setExt21(String ext21) {
|
||||
/* 530 */ this.ext21 = ext21;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getExt22() {
|
||||
/* 534 */ return this.ext22;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setExt22(String ext22) {
|
||||
/* 538 */ this.ext22 = ext22;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getExt23() {
|
||||
/* 542 */ return this.ext23;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setExt23(String ext23) {
|
||||
/* 546 */ this.ext23 = ext23;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getExt24() {
|
||||
/* 550 */ return this.ext24;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setExt24(String ext24) {
|
||||
/* 554 */ this.ext24 = ext24;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getExt25() {
|
||||
/* 558 */ return this.ext25;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setExt25(String ext25) {
|
||||
/* 562 */ this.ext25 = ext25;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getExt26() {
|
||||
/* 566 */ return this.ext26;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setExt26(String ext26) {
|
||||
/* 570 */ this.ext26 = ext26;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getExt27() {
|
||||
/* 574 */ return this.ext27;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setExt27(String ext27) {
|
||||
/* 578 */ this.ext27 = ext27;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getExt28() {
|
||||
/* 582 */ return this.ext28;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setExt28(String ext28) {
|
||||
/* 586 */ this.ext28 = ext28;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getExt29() {
|
||||
/* 590 */ return this.ext29;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setExt29(String ext29) {
|
||||
/* 594 */ this.ext29 = ext29;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getExt30() {
|
||||
/* 598 */ return this.ext30;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setExt30(String ext30) {
|
||||
/* 602 */ this.ext30 = ext30;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getExt31() {
|
||||
/* 606 */ return this.ext31;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setExt31(String ext31) {
|
||||
/* 610 */ this.ext31 = ext31;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getExt32() {
|
||||
/* 614 */ return this.ext32;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setExt32(String ext32) {
|
||||
/* 618 */ this.ext32 = ext32;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getExt33() {
|
||||
/* 622 */ return this.ext33;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setExt33(String ext33) {
|
||||
/* 626 */ this.ext33 = ext33;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getExt34() {
|
||||
/* 630 */ return this.ext34;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setExt34(String ext34) {
|
||||
/* 634 */ this.ext34 = ext34;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getExt35() {
|
||||
/* 638 */ return this.ext35;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setExt35(String ext35) {
|
||||
/* 642 */ this.ext35 = ext35;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getExt36() {
|
||||
/* 646 */ return this.ext36;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setExt36(String ext36) {
|
||||
/* 650 */ this.ext36 = ext36;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getExt37() {
|
||||
/* 654 */ return this.ext37;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setExt37(String ext37) {
|
||||
/* 658 */ this.ext37 = ext37;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getExt38() {
|
||||
/* 662 */ return this.ext38;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setExt38(String ext38) {
|
||||
/* 666 */ this.ext38 = ext38;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getExt39() {
|
||||
/* 670 */ return this.ext39;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setExt39(String ext39) {
|
||||
/* 674 */ this.ext39 = ext39;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getExt40() {
|
||||
/* 678 */ return this.ext40;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setExt40(String ext40) {
|
||||
/* 682 */ this.ext40 = ext40;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public Integer getCreateSysAccount() {
|
||||
/* 686 */ return this.createSysAccount;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setCreateSysAccount(Integer createSysAccount) {
|
||||
/* 690 */ this.createSysAccount = createSysAccount;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getWelcome() {
|
||||
/* 694 */ return this.welcome;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setWelcome(String welcome) {
|
||||
/* 698 */ this.welcome = welcome;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getShowPicture() {
|
||||
/* 702 */ return this.showPicture;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setShowPicture(String showPicture) {
|
||||
/* 706 */ this.showPicture = showPicture;
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-service-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\person\param\AcsPersonPropertiesParam.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+65
@@ -0,0 +1,65 @@
|
||||
/* */ package cn.cloudwalk.elevator.person.param;
|
||||
/* */
|
||||
/* */ import java.io.Serializable;
|
||||
/* */ import org.hibernate.validator.constraints.NotBlank;
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public class AcsPersonQueryByAppParam
|
||||
/* */ implements Serializable
|
||||
/* */ {
|
||||
/* */ private static final long serialVersionUID = -4823559329166668237L;
|
||||
/* */ @NotBlank(message = "76260402")
|
||||
/* */ private String deviceId;
|
||||
/* */ @NotBlank(message = "76260415")
|
||||
/* */ private String applicationId;
|
||||
/* */ private String personName;
|
||||
/* */
|
||||
/* */ public String getDeviceId() {
|
||||
/* 37 */ return this.deviceId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setDeviceId(String deviceId) {
|
||||
/* 41 */ this.deviceId = deviceId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getApplicationId() {
|
||||
/* 45 */ return this.applicationId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setApplicationId(String applicationId) {
|
||||
/* 49 */ this.applicationId = applicationId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getPersonName() {
|
||||
/* 53 */ return this.personName;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setPersonName(String personName) {
|
||||
/* 57 */ this.personName = personName;
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-service-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\person\param\AcsPersonQueryByAppParam.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+79
File diff suppressed because one or more lines are too long
+50
@@ -0,0 +1,50 @@
|
||||
/* */ package cn.cloudwalk.elevator.person.param;
|
||||
/* */
|
||||
/* */ import java.io.Serializable;
|
||||
/* */ import org.hibernate.validator.constraints.NotBlank;
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public class AcsPersonTimeDetailParam
|
||||
/* */ implements Serializable
|
||||
/* */ {
|
||||
/* */ private static final long serialVersionUID = 9094521665731451301L;
|
||||
/* */ private String imageStoreId;
|
||||
/* */ @NotBlank(message = "76260405")
|
||||
/* */ private String personId;
|
||||
/* */
|
||||
/* */ public String getImageStoreId() {
|
||||
/* 30 */ return this.imageStoreId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setImageStoreId(String imageStoreId) {
|
||||
/* 34 */ this.imageStoreId = imageStoreId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getPersonId() {
|
||||
/* 38 */ return this.personId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setPersonId(String personId) {
|
||||
/* 42 */ this.personId = personId;
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-service-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\person\param\AcsPersonTimeDetailParam.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+46
@@ -0,0 +1,46 @@
|
||||
/* */ package cn.cloudwalk.elevator.person.param;
|
||||
/* */
|
||||
/* */ import cn.cloudwalk.cloud.page.CloudwalkBasePageForm;
|
||||
/* */ import java.io.Serializable;
|
||||
/* */
|
||||
/* */ public class PersonDetailQueryParam
|
||||
/* */ extends CloudwalkBasePageForm
|
||||
/* */ implements Serializable {
|
||||
/* */ private static final long serialVersionUID = -8830219133147503297L;
|
||||
/* */ private String parentId;
|
||||
/* */ private String zoneId;
|
||||
/* */ private String ruleId;
|
||||
/* */ private String personName;
|
||||
/* */
|
||||
/* */ public void setParentId(String parentId) {
|
||||
/* 16 */ this.parentId = parentId; } public void setZoneId(String zoneId) { this.zoneId = zoneId; } public void setRuleId(String ruleId) { this.ruleId = ruleId; } public void setPersonName(String personName) { this.personName = personName; } public boolean equals(Object o) { if (o == this) return true; if (!(o instanceof PersonDetailQueryParam)) return false; PersonDetailQueryParam other = (PersonDetailQueryParam)o; if (!other.canEqual(this)) return false; Object this$parentId = getParentId(), other$parentId = other.getParentId(); if ((this$parentId == null) ? (other$parentId != null) : !this$parentId.equals(other$parentId)) return false; Object this$zoneId = getZoneId(), other$zoneId = other.getZoneId(); if ((this$zoneId == null) ? (other$zoneId != null) : !this$zoneId.equals(other$zoneId)) return false; Object this$ruleId = getRuleId(), other$ruleId = other.getRuleId(); if ((this$ruleId == null) ? (other$ruleId != null) : !this$ruleId.equals(other$ruleId)) return false; Object this$personName = getPersonName(), other$personName = other.getPersonName(); return !((this$personName == null) ? (other$personName != null) : !this$personName.equals(other$personName)); } protected boolean canEqual(Object other) { return other instanceof PersonDetailQueryParam; } public int hashCode() { int PRIME = 59; result = 1; Object $parentId = getParentId(); result = result * 59 + (($parentId == null) ? 43 : $parentId.hashCode()); Object $zoneId = getZoneId(); result = result * 59 + (($zoneId == null) ? 43 : $zoneId.hashCode()); Object $ruleId = getRuleId(); result = result * 59 + (($ruleId == null) ? 43 : $ruleId.hashCode()); Object $personName = getPersonName(); return result * 59 + (($personName == null) ? 43 : $personName.hashCode()); } public String toString() { return "PersonDetailQueryParam(parentId=" + getParentId() + ", zoneId=" + getZoneId() + ", ruleId=" + getRuleId() + ", personName=" + getPersonName() + ")"; }
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public String getParentId() {
|
||||
/* 23 */ return this.parentId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */ public String getZoneId() {
|
||||
/* 28 */ return this.zoneId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */ public String getRuleId() {
|
||||
/* 33 */ return this.ruleId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */
|
||||
/* */ public String getPersonName() {
|
||||
/* 38 */ return this.personName;
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-service-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\person\param\PersonDetailQueryParam.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
+62
@@ -0,0 +1,62 @@
|
||||
/* */ package cn.cloudwalk.elevator.person.result;
|
||||
/* */
|
||||
/* */ import java.io.Serializable;
|
||||
/* */ import java.util.List;
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* */ public class AcsAppResult
|
||||
/* */ implements Serializable
|
||||
/* */ {
|
||||
/* */ private static final long serialVersionUID = 2531683869129123657L;
|
||||
/* */ private String applicationId;
|
||||
/* */ private String applicationName;
|
||||
/* */ private List<String> passIntervals;
|
||||
/* */
|
||||
/* */ public String getApplicationId() {
|
||||
/* 34 */ return this.applicationId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setApplicationId(String applicationId) {
|
||||
/* 38 */ this.applicationId = applicationId;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public String getApplicationName() {
|
||||
/* 42 */ return this.applicationName;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setApplicationName(String applicationName) {
|
||||
/* 46 */ this.applicationName = applicationName;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public List<String> getPassIntervals() {
|
||||
/* 50 */ return this.passIntervals;
|
||||
/* */ }
|
||||
/* */
|
||||
/* */ public void setPassIntervals(List<String> passIntervals) {
|
||||
/* 54 */ this.passIntervals = passIntervals;
|
||||
/* */ }
|
||||
/* */ }
|
||||
|
||||
|
||||
/* Location: D:\星中心\cw-elevator-application-V1.0.0.20211103\cw-elevator-application-V1.0.0.20211103\lib\cw-elevator-application-service-1.0-SNAPSHOT.jar!\cn\cloudwalk\elevator\person\result\AcsAppResult.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user