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

Former-commit-id: dc30d42a8c55ed8b2382a41dc2434233fbed9930
This commit is contained in:
反编译工作区
2026-04-29 12:09:48 +08:00
parent ea8e492076
commit e8672a3c7b
1759 changed files with 547735 additions and 280 deletions
@@ -0,0 +1,98 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.cloud.context.CloudwalkCallContext
* cn.cloudwalk.cloud.context.CloudwalkCallContextBuilder
* cn.cloudwalk.cloud.context.CloudwalkSessionContextHolder
* cn.cloudwalk.cloud.session.extend.DefaultExtendContext
* cn.cloudwalk.cloud.session.extend.ExtendContext
* cn.cloudwalk.elevator.context.CloudWalkExtendContextValue
* javax.servlet.http.HttpServletRequest
* javax.servlet.http.HttpServletResponse
* org.slf4j.Logger
* org.slf4j.LoggerFactory
* org.springframework.beans.factory.annotation.Autowired
* org.springframework.context.MessageSource
* org.springframework.context.i18n.LocaleContextHolder
* org.springframework.web.context.request.RequestContextHolder
* org.springframework.web.context.request.ServletRequestAttributes
*/
package cn.cloudwalk.elevator.common;
import cn.cloudwalk.cloud.context.CloudwalkCallContext;
import cn.cloudwalk.cloud.context.CloudwalkCallContextBuilder;
import cn.cloudwalk.cloud.context.CloudwalkSessionContextHolder;
import cn.cloudwalk.cloud.session.extend.DefaultExtendContext;
import cn.cloudwalk.cloud.session.extend.ExtendContext;
import cn.cloudwalk.elevator.context.CloudWalkExtendContextValue;
import java.net.URLEncoder;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.MessageSource;
import org.springframework.context.i18n.LocaleContextHolder;
import org.springframework.web.context.request.RequestContextHolder;
import org.springframework.web.context.request.ServletRequestAttributes;
public abstract class AbstractCloudwalkController {
protected final Logger LOGGER = LoggerFactory.getLogger(this.getClass());
@Autowired
private MessageSource messageSource;
@Autowired
private CloudwalkSessionContextHolder cloudwalkSessionContextHolder;
public CloudwalkCallContext getCloudwalkContext() {
CloudwalkCallContext cloudwalkCallContext = CloudwalkCallContextBuilder.buildContext((CloudwalkSessionContextHolder)this.cloudwalkSessionContextHolder);
ServletRequestAttributes attributes = (ServletRequestAttributes)RequestContextHolder.getRequestAttributes();
if (null != attributes) {
DefaultExtendContext extendContext = new DefaultExtendContext();
CloudWalkExtendContextValue cloudWalkExtendContextValue = new CloudWalkExtendContextValue();
HttpServletRequest request = attributes.getRequest();
cloudWalkExtendContextValue.setLoginId(request.getHeader("loginid"));
cloudWalkExtendContextValue.setAuthorization(request.getHeader("authorization"));
extendContext.setValue((Object)cloudWalkExtendContextValue);
cloudwalkCallContext.setExt((ExtendContext)extendContext);
}
return cloudwalkCallContext;
}
public String getToken() {
ServletRequestAttributes attributes = (ServletRequestAttributes)RequestContextHolder.getRequestAttributes();
if (null != attributes) {
return attributes.getRequest().getHeader("authorization");
}
return null;
}
protected HttpServletRequest getHttpServletRequest() {
return ((ServletRequestAttributes)RequestContextHolder.getRequestAttributes()).getRequest();
}
public String getMessage(String code, String defaultMsg) {
return this.messageSource.getMessage(code, null, defaultMsg, LocaleContextHolder.getLocale());
}
public String getMessage(String code) {
return this.getMessage(code, "");
}
protected void makeExcelresponse(HttpServletRequest request, HttpServletResponse response, String fileName) {
response.setContentType("application/vnd.ms-excel;charset=utf-8");
response.setHeader("Content-Disposition", "attachment;filename=" + this.encodeFileName(fileName, request));
}
protected String encodeFileName(String fileNames, HttpServletRequest request) {
String codedFilename = null;
try {
codedFilename = URLEncoder.encode(fileNames, "UTF-8");
}
catch (Exception e) {
this.LOGGER.error("\u8f6c\u6362\u6587\u4ef6\u540d\u5b57\u7b26\u7c7b\u578b\u5931\u8d25\uff0c\u539f\u56e0\uff1a", (Throwable)e);
}
return codedFilename;
}
}
@@ -0,0 +1,8 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.elevator.common;
public class CloudwalkCallNewContext {
}
@@ -0,0 +1,103 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.client.cwoscomponent.intelligent.device.param.DeviceQueryParam
* cn.cloudwalk.client.cwoscomponent.intelligent.device.result.DeviceResult
* cn.cloudwalk.client.cwoscomponent.intelligent.device.service.DeviceService
* cn.cloudwalk.cloud.context.CloudwalkCallContext
* cn.cloudwalk.cloud.exception.ServiceException
* cn.cloudwalk.cloud.result.CloudwalkResult
* cn.cloudwalk.cloud.session.company.CompanyContext
* cn.cloudwalk.cloud.session.user.UserContext
* cn.cloudwalk.cloud.utils.CloudwalkDateUtils
* cn.cloudwalk.elevator.config.FeignThreadLocalUtil
* cn.cloudwalk.elevator.record.service.AcsElevatorRecordService
* org.apache.commons.collections4.CollectionUtils
* org.slf4j.Logger
* org.slf4j.LoggerFactory
* org.springframework.beans.factory.annotation.Autowired
* org.springframework.context.MessageSource
* org.springframework.context.i18n.LocaleContextHolder
* org.springframework.data.redis.core.RedisTemplate
*/
package cn.cloudwalk.elevator.handler;
import cn.cloudwalk.client.cwoscomponent.intelligent.device.param.DeviceQueryParam;
import cn.cloudwalk.client.cwoscomponent.intelligent.device.result.DeviceResult;
import cn.cloudwalk.client.cwoscomponent.intelligent.device.service.DeviceService;
import cn.cloudwalk.cloud.context.CloudwalkCallContext;
import cn.cloudwalk.cloud.exception.ServiceException;
import cn.cloudwalk.cloud.result.CloudwalkResult;
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 cn.cloudwalk.elevator.record.service.AcsElevatorRecordService;
import java.util.Collection;
import java.util.HashMap;
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.beans.factory.annotation.Autowired;
import org.springframework.context.MessageSource;
import org.springframework.context.i18n.LocaleContextHolder;
import org.springframework.data.redis.core.RedisTemplate;
public abstract class AbstractEventHandler {
protected static final Logger LOGGER = LoggerFactory.getLogger(AbstractEventHandler.class);
@Resource
private DeviceService deviceService;
@Resource
private AcsElevatorRecordService acsElevatorRecordService;
@Resource
protected RedisTemplate<String, Object> redisTemplate;
@Autowired
private MessageSource messageSource;
public CloudwalkCallContext getCloudwalkContext(String businessId) {
CloudwalkCallContext context = new CloudwalkCallContext();
CompanyContext companyContext = new CompanyContext();
companyContext.setCompanyId(businessId);
context.setCompany(companyContext);
UserContext userContext = new UserContext();
userContext.setCaller("defaultUserId");
userContext.setCallerName("defaultUserName");
context.setUser(userContext);
context.setCallTime(CloudwalkDateUtils.getCurrentDate());
HashMap<String, String> feignThreadLoaclMap = new HashMap<String, String>(3);
feignThreadLoaclMap.put("businessid", businessId);
feignThreadLoaclMap.put("platformuserid", "defaultUserId");
feignThreadLoaclMap.put("username", "defaultUserName");
FeignThreadLocalUtil.set(feignThreadLoaclMap);
return context;
}
DeviceResult queryDeviceResult(String deviceCode, CloudwalkCallContext context) throws ServiceException {
DeviceQueryParam deviceQueryParam = new DeviceQueryParam();
deviceQueryParam.setDeviceCode(deviceCode);
CloudwalkResult deviceQueryResult = this.deviceService.list(deviceQueryParam, context);
if (deviceQueryResult.isSuccess() && CollectionUtils.isNotEmpty((Collection)((Collection)deviceQueryResult.getData()))) {
return (DeviceResult)((List)deviceQueryResult.getData()).get(0);
}
return null;
}
protected void statisticsAddCache(String key) {
if (!this.redisTemplate.hasKey((Object)key).booleanValue()) {
this.acsElevatorRecordService.createCache(key, 0L);
}
this.redisTemplate.opsForValue().increment((Object)key, 1L);
}
public String getMessage(String code, String defaultMsg) {
return this.messageSource.getMessage(code, null, defaultMsg, LocaleContextHolder.getLocale());
}
public String getMessage(String code) {
return this.getMessage(code, "");
}
}
@@ -0,0 +1,119 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.client.cwoscomponent.intelligent.device.result.DeviceResult
* cn.cloudwalk.cloud.context.CloudwalkCallContext
* cn.cloudwalk.cloud.result.CloudwalkResult
* cn.cloudwalk.cloud.utils.BeanCopyUtils
* cn.cloudwalk.cwos.client.event.event.OpenDoorRecordEvent
* cn.cloudwalk.elevator.config.FeignThreadLocalUtil
* cn.cloudwalk.elevator.em.AcsDeviceIdentifyTypeEnum
* cn.cloudwalk.elevator.record.dto.AcsElevatorRecordExtraDTO
* cn.cloudwalk.elevator.record.param.AcsElevatorRecordAddParam
* cn.cloudwalk.elevator.record.param.AcsOpenDoorRecordAddParam
* cn.cloudwalk.elevator.record.service.AcsElevatorRecordService
* cn.cloudwalk.elevator.util.AcsCacheKeyUtil
* cn.cloudwalk.elevator.util.DateUtils
* cn.cloudwalk.event.annotation.EventTopicSuffix
* cn.cloudwalk.event.handler.EventHandler
* com.alibaba.fastjson.JSON
* com.alibaba.fastjson.JSONObject
* org.apache.commons.lang3.StringUtils
* org.slf4j.Logger
* org.slf4j.LoggerFactory
* org.springframework.data.redis.core.RedisTemplate
* org.springframework.stereotype.Component
*/
package cn.cloudwalk.elevator.handler;
import cn.cloudwalk.client.cwoscomponent.intelligent.device.result.DeviceResult;
import cn.cloudwalk.cloud.context.CloudwalkCallContext;
import cn.cloudwalk.cloud.result.CloudwalkResult;
import cn.cloudwalk.cloud.utils.BeanCopyUtils;
import cn.cloudwalk.cwos.client.event.event.OpenDoorRecordEvent;
import cn.cloudwalk.elevator.config.FeignThreadLocalUtil;
import cn.cloudwalk.elevator.em.AcsDeviceIdentifyTypeEnum;
import cn.cloudwalk.elevator.handler.AbstractEventHandler;
import cn.cloudwalk.elevator.record.dto.AcsElevatorRecordExtraDTO;
import cn.cloudwalk.elevator.record.param.AcsElevatorRecordAddParam;
import cn.cloudwalk.elevator.record.param.AcsOpenDoorRecordAddParam;
import cn.cloudwalk.elevator.record.service.AcsElevatorRecordService;
import cn.cloudwalk.elevator.util.AcsCacheKeyUtil;
import cn.cloudwalk.elevator.util.DateUtils;
import cn.cloudwalk.event.annotation.EventTopicSuffix;
import cn.cloudwalk.event.handler.EventHandler;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import java.util.Date;
import javax.annotation.Resource;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Component;
@Component
@EventTopicSuffix(value={"all"})
public class OpenDoorRecordEventHandler
extends AbstractEventHandler
implements EventHandler<OpenDoorRecordEvent> {
private static final Logger LOGGER = LoggerFactory.getLogger(OpenDoorRecordEventHandler.class);
@Resource
private AcsElevatorRecordService acsElevatorRecordService;
@Resource
private RedisTemplate<String, Object> redisTemplate;
/*
* WARNING - Removed try catching itself - possible behaviour change.
*/
public void onEvent(OpenDoorRecordEvent openDoorRecordEvent) {
LOGGER.info("\u6536\u5230openDoorRecordEvent\u6d88\u606f:{}", (Object)JSON.toJSONString((Object)openDoorRecordEvent));
try {
JSONObject reserveInfo;
CloudwalkCallContext context = this.getCloudwalkContext(openDoorRecordEvent.getBusinessId());
DeviceResult deviceResult = super.queryDeviceResult(openDoorRecordEvent.getDeviceId(), context);
AcsOpenDoorRecordAddParam param = this.getParam(openDoorRecordEvent);
param.setDeviceResult(deviceResult);
AcsElevatorRecordExtraDTO elevatorRecordExtraDTO = null;
if (StringUtils.isNotBlank((CharSequence)openDoorRecordEvent.getReserveInfo()) && !(reserveInfo = JSON.parseObject((String)openDoorRecordEvent.getReserveInfo())).isEmpty() && reserveInfo.containsKey((Object)"srcFloor")) {
elevatorRecordExtraDTO = (AcsElevatorRecordExtraDTO)reserveInfo.toJavaObject(AcsElevatorRecordExtraDTO.class);
}
if (deviceResult != null && AcsDeviceIdentifyTypeEnum.BACKEND_REG.getCode().equals(deviceResult.getIdentifyType())) {
} else if (elevatorRecordExtraDTO != null) {
AcsElevatorRecordAddParam elevatorParam = this.getElevatorParam(param, elevatorRecordExtraDTO);
CloudwalkResult addResult = this.acsElevatorRecordService.add(elevatorParam, context);
if (param.getRecordResult() == 1 && addResult.isSuccess() && "1".equals(elevatorRecordExtraDTO.getSrcFloor())) {
this.statisticsAddCache(AcsCacheKeyUtil.getOpenDoorCountKey((String)DateUtils.parseDate((Date)new Date(), (String)"yyyy-MM-dd"), (String)openDoorRecordEvent.getBusinessId()));
}
}
}
catch (Exception e) {
LOGGER.error("\u6d88\u8d39\u5f00\u95e8\u8bb0\u5f55\u5931\u8d25\uff0c\u539f\u56e0:", (Throwable)e);
}
finally {
FeignThreadLocalUtil.remove();
}
}
private void cleanCache(CloudwalkCallContext context, DeviceResult deviceResult, String openDoorLogId, String recognitionNo) {
String backendRegLogIdKey = AcsCacheKeyUtil.getBackendRegLogIdKey((String)deviceResult.getDeviceCode(), (String)context.getCompany().getCompanyId(), (String)recognitionNo);
String backendRegExpireKey = AcsCacheKeyUtil.getBackendRegExpireKey((String)context.getCompany().getCompanyId(), (String)openDoorLogId);
this.redisTemplate.delete((Object)backendRegLogIdKey);
this.redisTemplate.delete((Object)backendRegExpireKey);
}
private AcsOpenDoorRecordAddParam getParam(OpenDoorRecordEvent event) {
AcsOpenDoorRecordAddParam param = (AcsOpenDoorRecordAddParam)BeanCopyUtils.copyProperties((Object)event, AcsOpenDoorRecordAddParam.class);
param.setRecordResult(Integer.valueOf(Integer.parseInt(event.getRecordResult())));
param.setDeviceCode(event.getDeviceId());
param.setOpenDoorType(event.getOpenDoorType());
return param;
}
private AcsElevatorRecordAddParam getElevatorParam(AcsOpenDoorRecordAddParam addParam, AcsElevatorRecordExtraDTO elevatorRecordExtraDTO) {
AcsElevatorRecordAddParam param = (AcsElevatorRecordAddParam)BeanCopyUtils.copyProperties((Object)addParam, AcsElevatorRecordAddParam.class);
return (AcsElevatorRecordAddParam)BeanCopyUtils.copyProperties((Object)elevatorRecordExtraDTO, (Object)param);
}
}
@@ -0,0 +1,111 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.client.cwoscomponent.intelligent.device.result.DeviceResult
* cn.cloudwalk.cloud.context.CloudwalkCallContext
* cn.cloudwalk.cloud.utils.BeanCopyUtils
* cn.cloudwalk.cwos.client.event.event.PersonRecordUploadEvent
* cn.cloudwalk.cwos.client.event.event.mode.Face
* cn.cloudwalk.elevator.config.FeignThreadLocalUtil
* cn.cloudwalk.elevator.em.CompareTypeEnum
* cn.cloudwalk.elevator.record.param.AcsRecogRecordAddParam
* cn.cloudwalk.elevator.record.service.AcsRecogRecordService
* cn.cloudwalk.elevator.util.AcsCacheKeyUtil
* cn.cloudwalk.elevator.util.DateUtils
* cn.cloudwalk.event.annotation.EventTopicSuffix
* cn.cloudwalk.event.handler.EventHandler
* com.alibaba.fastjson.JSON
* org.slf4j.Logger
* org.slf4j.LoggerFactory
* org.springframework.stereotype.Component
*/
package cn.cloudwalk.elevator.handler;
import cn.cloudwalk.client.cwoscomponent.intelligent.device.result.DeviceResult;
import cn.cloudwalk.cloud.context.CloudwalkCallContext;
import cn.cloudwalk.cloud.utils.BeanCopyUtils;
import cn.cloudwalk.cwos.client.event.event.PersonRecordUploadEvent;
import cn.cloudwalk.cwos.client.event.event.mode.Face;
import cn.cloudwalk.elevator.config.FeignThreadLocalUtil;
import cn.cloudwalk.elevator.em.CompareTypeEnum;
import cn.cloudwalk.elevator.handler.AbstractEventHandler;
import cn.cloudwalk.elevator.record.param.AcsRecogRecordAddParam;
import cn.cloudwalk.elevator.record.service.AcsRecogRecordService;
import cn.cloudwalk.elevator.util.AcsCacheKeyUtil;
import cn.cloudwalk.elevator.util.DateUtils;
import cn.cloudwalk.event.annotation.EventTopicSuffix;
import cn.cloudwalk.event.handler.EventHandler;
import com.alibaba.fastjson.JSON;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import javax.annotation.Resource;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
@Component
@EventTopicSuffix(value={"all"})
public class PersonRecordEventHandler
extends AbstractEventHandler
implements EventHandler<PersonRecordUploadEvent> {
private static final Logger LOGGER = LoggerFactory.getLogger(PersonRecordEventHandler.class);
@Resource
private AcsRecogRecordService acsRecogRecordService;
/*
* WARNING - Removed try catching itself - possible behaviour change.
*/
public void onEvent(PersonRecordUploadEvent personRecordUploadEvent) {
LOGGER.info("\u6536\u5230personRecordUploadEvent\u6d88\u606f:{}", (Object)JSON.toJSONString((Object)personRecordUploadEvent));
try {
CloudwalkCallContext context = this.getCloudwalkContext(personRecordUploadEvent.getBusinessId());
DeviceResult deviceResult = super.queryDeviceResult(personRecordUploadEvent.getDeviceId(), context);
DeviceResult subDeviceResult = super.queryDeviceResult(personRecordUploadEvent.getSubDeviceId(), context);
Map<String, List<Face>> faceMap = personRecordUploadEvent.getFaces().stream().collect(Collectors.groupingBy(Face::getFaceId));
for (String faceId : faceMap.keySet()) {
try {
Face face = faceMap.get(faceId).get(0);
AcsRecogRecordAddParam param = this.getParam(personRecordUploadEvent, face);
param.setDeviceResult(deviceResult);
param.setSubDeviceResult(subDeviceResult);
this.acsRecogRecordService.add(param, context);
this.statisticsAddCache(AcsCacheKeyUtil.getRecogCountKey((String)DateUtils.parseDate((Date)new Date(), (String)"yyyy-MM-dd"), (String)personRecordUploadEvent.getBusinessId()));
}
catch (Exception e) {
LOGGER.error("\u4fdd\u5b58\u4eba\u5458\u8bc6\u522b\u8bb0\u5f55\u5931\u8d25\uff0cfaceId\uff1a{}\uff0c\u539f\u56e0\uff1a", (Object)faceId, (Object)e);
}
}
}
catch (Exception e) {
LOGGER.error("\u6d88\u8d39\u4eba\u5458\u8bc6\u522b\u8bb0\u5f55\u5931\u8d25\uff0c\u539f\u56e0:", (Throwable)e);
}
finally {
FeignThreadLocalUtil.remove();
}
}
private AcsRecogRecordAddParam getParam(PersonRecordUploadEvent event, Face face) {
AcsRecogRecordAddParam param = (AcsRecogRecordAddParam)BeanCopyUtils.copyProperties((Object)event, AcsRecogRecordAddParam.class);
BeanCopyUtils.copyProperties((Object)face, (Object)param);
if (event.getPanoramaData() != null) {
param.setPanoramaImagePath(event.getPanoramaData().getPanoramaImagePath());
}
param.setDeviceCode(event.getDeviceId());
param.setThreshold(BigDecimal.valueOf(event.getThreshold()));
param.setScore(BigDecimal.valueOf(face.getScore().floatValue()));
param.setQualityScore(BigDecimal.valueOf(face.getQualityScore().floatValue()));
if (face.getMaskScore() != null) {
param.setMaskScore(BigDecimal.valueOf(face.getMaskScore().floatValue()));
}
if (face.getTempScore() != null) {
param.setTempScore(BigDecimal.valueOf(face.getTempScore().floatValue()));
}
param.setCompareType(CompareTypeEnum.RECOG.getCode());
return param;
}
}
@@ -0,0 +1,317 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.client.cwoscomponent.intelligent.device.result.DeviceResult
* cn.cloudwalk.client.cwoscomponent.intelligent.device.service.DeviceService
* cn.cloudwalk.cloud.context.CloudwalkCallContext
* cn.cloudwalk.cloud.exception.ServiceException
* cn.cloudwalk.cloud.page.CloudwalkPageAble
* cn.cloudwalk.cloud.page.CloudwalkPageInfo
* cn.cloudwalk.cloud.result.CloudwalkResult
* cn.cloudwalk.cloud.utils.BeanCopyUtils
* cn.cloudwalk.elevator.codeElevatorArea.dto.AcsElevatorCodeResultDTO
* cn.cloudwalk.elevator.codeElevatorArea.param.AcsElevatorCodeParam
* cn.cloudwalk.elevator.codeElevatorArea.service.AcsElevatorCodeService
* cn.cloudwalk.elevator.device.dto.AcsElevatorDeviceResultDTO
* cn.cloudwalk.elevator.device.param.AcsDeviceQueryParam
* cn.cloudwalk.elevator.device.param.AcsElevatorDeviceAddParam
* cn.cloudwalk.elevator.device.param.AcsElevatorDeviceEditParam
* cn.cloudwalk.elevator.device.param.AcsElevatorDeviceQueryByIdParam
* cn.cloudwalk.elevator.device.param.AcsElevatorDeviceQueryParam
* cn.cloudwalk.elevator.device.service.AcsElevatorDeviceService
* cn.cloudwalk.elevator.export.impl.ElevatorDeviceExportService
* cn.cloudwalk.elevator.export.result.ElevatorDeviceRecordExcelResult
* cn.cloudwalk.elevator.zone.param.ZoneNextTreeParam
* cn.cloudwalk.elevator.zone.result.ZoneTreeResult
* cn.cloudwalk.elevator.zone.service.ZoneService
* com.alibaba.fastjson.JSON
* com.alibaba.fastjson.JSONObject
* org.springframework.util.ObjectUtils
* org.springframework.web.bind.annotation.PostMapping
* org.springframework.web.bind.annotation.RequestBody
* org.springframework.web.bind.annotation.RequestMapping
* org.springframework.web.bind.annotation.RestController
*/
package cn.cloudwalk.elevator.handler.device.controller;
import cn.cloudwalk.client.cwoscomponent.intelligent.device.result.DeviceResult;
import cn.cloudwalk.client.cwoscomponent.intelligent.device.service.DeviceService;
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.codeElevatorArea.dto.AcsElevatorCodeResultDTO;
import cn.cloudwalk.elevator.codeElevatorArea.param.AcsElevatorCodeParam;
import cn.cloudwalk.elevator.codeElevatorArea.service.AcsElevatorCodeService;
import cn.cloudwalk.elevator.common.AbstractCloudwalkController;
import cn.cloudwalk.elevator.device.dto.AcsElevatorDeviceResultDTO;
import cn.cloudwalk.elevator.device.param.AcsDeviceQueryParam;
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.service.AcsElevatorDeviceService;
import cn.cloudwalk.elevator.export.impl.ElevatorDeviceExportService;
import cn.cloudwalk.elevator.export.result.ElevatorDeviceRecordExcelResult;
import cn.cloudwalk.elevator.handler.device.form.AcsDeviceQueryForm;
import cn.cloudwalk.elevator.handler.device.form.AcsElevatorCodeForm;
import cn.cloudwalk.elevator.handler.device.form.AcsElevatorDeviceAddForm;
import cn.cloudwalk.elevator.handler.device.form.AcsElevatorDeviceDeleteForm;
import cn.cloudwalk.elevator.handler.device.form.AcsElevatorDeviceEditForm;
import cn.cloudwalk.elevator.handler.device.form.AcsElevatorDeviceQueryByIdForm;
import cn.cloudwalk.elevator.handler.device.form.AcsElevatorDeviceQueryForm;
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.JSON;
import com.alibaba.fastjson.JSONObject;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import org.springframework.util.ObjectUtils;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping(value={"/elevator/device/"})
public class AcsElevatorDeviceController
extends AbstractCloudwalkController {
@Resource
private AcsElevatorDeviceService elevatorDeviceService;
@Resource
private AcsElevatorCodeService elevatorCodeService;
@Resource
private ZoneService zoneService;
@Resource
private DeviceService deviceService;
@Resource
private ElevatorDeviceExportService elevatorDeviceExportService;
@PostMapping(value={"/add"})
public CloudwalkResult add(@RequestBody AcsElevatorDeviceAddForm form) throws ServiceException {
this.LOGGER.info("\u6dfb\u52a0\u6d3e\u68af\u8bbe\u5907\uff0c\u8bf7\u6c42\u53c2\u6570\uff1a{}", (Object)JSON.toJSONString((Object)form));
AcsElevatorDeviceAddParam param = (AcsElevatorDeviceAddParam)BeanCopyUtils.copyProperties((Object)form, AcsElevatorDeviceAddParam.class);
String deviceCode = form.getDeviceCode();
AcsElevatorDeviceResultDTO queryResultDTO = this.elevatorDeviceService.getByDeciveCode(deviceCode);
if (queryResultDTO != null) {
return CloudwalkResult.success((Object)"\u8be5\u8bbe\u5907\u5df2\u6dfb\u52a0\u8fc7\uff0c\u8bf7\u91cd\u65b0\u9009\u62e9\uff01");
}
String businessId = this.getCloudwalkContext().getCompany().getCompanyId();
param.setBusinessId(businessId);
try {
int result = this.elevatorDeviceService.add(param, this.getCloudwalkContext());
return CloudwalkResult.success((Object)result);
}
catch (ServiceException e) {
this.LOGGER.error("\u6dfb\u52a0\u6d3e\u68af\u8bbe\u5907\u5931\u8d25\uff0c\u539f\u56e0\uff1a", (Throwable)e);
return CloudwalkResult.fail((String)"\u6dfb\u52a0\u6d3e\u68af\u8bbe\u5907\u5931\u8d25", (String)e.getMessage());
}
}
@PostMapping(value={"/edit"})
public CloudwalkResult edit(@RequestBody AcsElevatorDeviceEditForm form) {
this.LOGGER.info("\u4fee\u6539\u6d3e\u68af\u8bbe\u5907\uff0c\u8bf7\u6c42\u53c2\u6570\uff1a{}", (Object)JSON.toJSONString((Object)form));
AcsElevatorDeviceEditParam param = (AcsElevatorDeviceEditParam)BeanCopyUtils.copyProperties((Object)form, AcsElevatorDeviceEditParam.class);
try {
int result = this.elevatorDeviceService.edit(param, this.getCloudwalkContext());
return CloudwalkResult.success((Object)result);
}
catch (ServiceException e) {
this.LOGGER.error("\u4fee\u6539\u6d3e\u68af\u8bbe\u5907\u5931\u8d25\uff0c\u539f\u56e0\uff1a", (Throwable)e);
return CloudwalkResult.fail((String)"\u4fee\u6539\u6d3e\u68af\u8bbe\u5907\u5931\u8d25", (String)e.getMessage());
}
}
@PostMapping(value={"/getById"})
public CloudwalkResult<AcsElevatorDeviceResultDTO> getById(@RequestBody AcsElevatorDeviceQueryByIdForm form) {
this.LOGGER.info("\u6839\u636eid\u83b7\u53d6\u6d3e\u68af\u8bbe\u5907\u4fe1\u606f\uff0c\u8bf7\u6c42\u53c2\u6570\uff1a{}", (Object)JSON.toJSONString((Object)form));
AcsElevatorDeviceQueryByIdParam param = (AcsElevatorDeviceQueryByIdParam)BeanCopyUtils.copyProperties((Object)form, AcsElevatorDeviceQueryByIdParam.class);
try {
AcsElevatorDeviceResultDTO result = this.elevatorDeviceService.getById(param, this.getCloudwalkContext());
return CloudwalkResult.success((Object)result);
}
catch (ServiceException e) {
this.LOGGER.error("\u6839\u636eid\u83b7\u53d6\u6d3e\u68af\u8bbe\u5907\u4fe1\u606f\u5931\u8d25\uff0c\u539f\u56e0\uff1a", (Throwable)e);
return CloudwalkResult.fail((String)"\u6839\u636eid\u83b7\u53d6\u6d3e\u68af\u8bbe\u5907\u4fe1\u606f\u5931\u8d25", (String)e.getMessage());
}
}
@PostMapping(value={"/delete"})
public CloudwalkResult delete(@RequestBody AcsElevatorDeviceDeleteForm form) {
try {
this.LOGGER.info("\u5220\u9664\u6d3e\u68af\u8bbe\u5907\u4fe1\u606f\uff0c\u8bf7\u6c42\u53c2\u6570\uff1a{}", (Object)JSON.toJSONString((Object)form));
if (form == null) {
this.LOGGER.error("\u5220\u9664\u6d3e\u68af\u8bbe\u5907\u4fe1\u606f\u5931\u8d25\uff0c\u539f\u56e0\uff1a\u65e0\u7f16\u53f7\u4f20\u8f93\u8fc7\u6765\uff01");
return CloudwalkResult.fail((String)"\u65e0\u7f16\u53f7\u4f20\u8f93\u8fc7\u6765\uff01", (String)this.getMessage("\u65e0\u7f16\u53f7\u4f20\u8f93\u8fc7\u6765\uff01"));
}
List<String> idList = form.getIds();
int result = this.elevatorDeviceService.delete(idList, this.getCloudwalkContext());
return CloudwalkResult.success((Object)result);
}
catch (ServiceException e) {
this.LOGGER.error("\u4fee\u6539\u6d3e\u68af\u8bbe\u5907\u5931\u8d25\uff0c\u539f\u56e0\uff1a", (Throwable)e);
return CloudwalkResult.fail((String)"\u5220\u9664\u6d3e\u68af\u8bbe\u5907\u4fe1\u606f\u5931\u8d25", (String)e.getMessage());
}
}
@PostMapping(value={"/editCode"})
public CloudwalkResult editCode(@RequestBody AcsElevatorCodeForm form) {
try {
AcsElevatorCodeResultDTO firstResult;
this.LOGGER.info("\u8bbe\u7f6e\u7535\u68af\u7f16\u7801\uff0c\u8bf7\u6c42\u53c2\u6570\uff1a{}", (Object)JSON.toJSONString((Object)form));
AcsElevatorCodeParam param = (AcsElevatorCodeParam)BeanCopyUtils.copyProperties((Object)form, AcsElevatorCodeParam.class);
if (param.getIsFirst() == 1 && !ObjectUtils.isEmpty((Object)(firstResult = this.elevatorCodeService.getFirstByParentId(param.getParentId()))) && !firstResult.getZoneId().equals(param.getZoneId())) {
return CloudwalkResult.fail((String)"76260525", (String)this.getMessage("76260525"));
}
AcsElevatorCodeResultDTO result = this.elevatorCodeService.get(param);
if (!ObjectUtils.isEmpty((Object)result)) {
this.elevatorCodeService.updateOld(param);
return CloudwalkResult.success((Object)1);
}
this.elevatorCodeService.insertNew(param);
return CloudwalkResult.success((Object)1);
}
catch (ServiceException e) {
this.LOGGER.error("\u8bbe\u7f6e\u7535\u68af\u7f16\u7801\u5931\u8d25\uff0c\u539f\u56e0\uff1a", (Throwable)e);
return CloudwalkResult.fail((String)"\u8bbe\u7f6e\u7535\u68af\u7f16\u7801\u5931\u8d25", (String)e.getMessage());
}
}
@PostMapping(value={"/get"})
public CloudwalkResult<CloudwalkPageAble<AcsElevatorDeviceResultDTO>> get(@RequestBody AcsElevatorDeviceQueryForm form) {
this.LOGGER.info("\u5206\u9875\u67e5\u8be2\u6d3e\u68af\u8bbe\u5907\uff0c\u8bf7\u6c42\u53c2\u6570\uff1a{}", (Object)JSON.toJSONString((Object)form));
AcsElevatorDeviceQueryParam param = (AcsElevatorDeviceQueryParam)BeanCopyUtils.copyProperties((Object)form, AcsElevatorDeviceQueryParam.class);
try {
return this.elevatorDeviceService.get(param, this.getCloudwalkContext());
}
catch (ServiceException e) {
this.LOGGER.error("\u67e5\u8be2\u6d3e\u68af\u8bbe\u5907\u4fe1\u606f\u5217\u8868\u5931\u8d25\uff0c\u539f\u56e0\uff1a{}", (Throwable)e);
return CloudwalkResult.fail((String)"\u67e5\u8be2\u6d3e\u68af\u8bbe\u5907\u4fe1\u606f\u5217\u8868\u5931\u8d25", (String)e.getMessage());
}
}
@PostMapping(value={"/export"})
public CloudwalkResult<Boolean> export(@RequestBody AcsElevatorDeviceQueryForm form) {
this.LOGGER.info("\u6d3e\u68af\u8bbe\u5907\u5bfc\u51fa\uff0c\u8bf7\u6c42\u53c2\u6570\uff1a{}", (Object)JSON.toJSONString((Object)form));
AcsElevatorDeviceQueryParam param = (AcsElevatorDeviceQueryParam)BeanCopyUtils.copyProperties((Object)form, AcsElevatorDeviceQueryParam.class);
try {
CloudwalkCallContext cloudwalkContext = this.getCloudwalkContext();
if (cloudwalkContext.getCompany().getCompanyId() == null) {
cloudwalkContext.getCompany().setCompanyId("default");
}
return this.elevatorDeviceExportService.startExportTask((Object)param, ElevatorDeviceRecordExcelResult.class, null, cloudwalkContext);
}
catch (ServiceException e) {
this.LOGGER.error("\u6d3e\u68af\u8bbe\u5907\u4fe1\u606f\u5bfc\u51fa\u5931\u8d25", (Throwable)e);
return CloudwalkResult.fail((String)"\u67e5\u8be2\u6d3e\u68af\u8bbe\u5907\u4fe1\u606f\u5217\u8868\u5931\u8d25", (String)e.getMessage());
}
}
@PostMapping(value={"/zone/treeCode"})
public CloudwalkResult<List<ZoneTreeResult>> queryZoneTreeCode(@RequestBody ZoneNextTreeParam zoneNextTreeParam) {
try {
this.LOGGER.info("\u83b7\u53d6\u533a\u57df\u7684\u7535\u68af\u7f16\u7801\uff0c\u8bf7\u6c42\u53c2\u6570\uff1a{}", (Object)JSON.toJSONString((Object)zoneNextTreeParam));
CloudwalkResult query = this.zoneService.tree(zoneNextTreeParam, this.getCloudwalkContext());
CloudwalkResult result = new CloudwalkResult();
List treeList = (List)query.getData();
ArrayList<ZoneTreeResult> treeResultList = new ArrayList<ZoneTreeResult>();
if (treeList != null && treeList.size() > 0) {
for (ZoneTreeResult zoneTreeResult : treeList) {
String zoneId = zoneTreeResult.getId();
AcsElevatorCodeParam param = new AcsElevatorCodeParam();
param.setZoneId(zoneId);
AcsElevatorCodeResultDTO code = this.elevatorCodeService.get(param);
if (!ObjectUtils.isEmpty((Object)code)) {
zoneTreeResult.setElevatorCode(code.getCode());
zoneTreeResult.setIsFirst(code.getIsFirst());
}
if (zoneTreeResult.getChildren() != null) {
List<ZoneTreeResult> chidList = this.treeRecursionDataList(zoneTreeResult.getChildren());
zoneTreeResult.setChildren(chidList);
}
treeResultList.add(zoneTreeResult);
}
}
query.setData(treeResultList);
return query;
}
catch (Exception e) {
this.LOGGER.error("\u83b7\u53d6\u533a\u57df\u7684\u7535\u68af\u7f16\u7801\u5931\u8d25\uff0c\u539f\u56e0\uff1a", (Throwable)e);
return CloudwalkResult.fail((String)"\u83b7\u53d6\u533a\u57df\u7684\u7535\u68af\u7f16\u7801\u5931\u8d25", (String)e.getMessage());
}
}
public List<ZoneTreeResult> treeRecursionDataList(List<ZoneTreeResult> childList) throws ServiceException {
ArrayList<ZoneTreeResult> childResultList = new ArrayList<ZoneTreeResult>();
for (ZoneTreeResult zoneTreeResult : childList) {
String id = zoneTreeResult.getId();
AcsElevatorCodeParam param = new AcsElevatorCodeParam();
param.setZoneId(id);
AcsElevatorCodeResultDTO code = this.elevatorCodeService.get(param);
if (!ObjectUtils.isEmpty((Object)code)) {
zoneTreeResult.setElevatorCode(code.getCode());
zoneTreeResult.setIsFirst(code.getIsFirst());
}
if (zoneTreeResult.getChildren() != null && zoneTreeResult.getChildren().size() > 0) {
zoneTreeResult.setChildren(this.treeRecursionDataList(zoneTreeResult.getChildren()));
}
childResultList.add(zoneTreeResult);
}
return childResultList;
}
@PostMapping(value={"/devicePage"})
public CloudwalkResult<CloudwalkPageAble<DeviceResult>> devicePage(@RequestBody AcsDeviceQueryForm form) {
try {
if (this.LOGGER.isDebugEnabled()) {
this.LOGGER.debug("devicePage form {}", (Object)JSONObject.toJSONString((Object)form));
}
AcsDeviceQueryParam param = new AcsDeviceQueryParam();
CloudwalkPageInfo pageInfo = new CloudwalkPageInfo(form.getCurrentPage(), form.getRowsOfPage());
BeanCopyUtils.copyProperties((Object)form, (Object)param);
if (this.LOGGER.isDebugEnabled()) {
this.LOGGER.debug("devicePage param {}", (Object)JSONObject.toJSONString((Object)param));
}
return this.elevatorDeviceService.devicePage(param, pageInfo, this.getCloudwalkContext());
}
catch (ServiceException e) {
this.LOGGER.error("\u5206\u9875\u67e5\u8be2\u8bbe\u5907\u4fe1\u606f\u5f02\u5e38\uff0c\u539f\u56e0\uff1a", (Throwable)e);
return CloudwalkResult.fail((String)"76260529", (String)this.getMessage("76260529"));
}
}
public Map<String, String> queryZone() throws ServiceException {
HashMap<String, String> zoneMap = new HashMap<String, String>();
CloudwalkResult query = this.zoneService.tree(new ZoneNextTreeParam(), this.getCloudwalkContext());
List treeList = (List)query.getData();
if (treeList != null && treeList.size() > 0) {
for (ZoneTreeResult zoneTreeResult : treeList) {
String zoneId = zoneTreeResult.getId();
String zoneName = zoneTreeResult.getName();
zoneMap.put(zoneId, zoneName);
this.getZoneMap(zoneTreeResult.getChildren(), zoneMap);
}
}
return zoneMap;
}
public Map<String, String> getZoneMap(List<ZoneTreeResult> childList, Map<String, String> zoneMap) throws ServiceException {
ArrayList childResultList = new ArrayList();
for (ZoneTreeResult zoneTreeResult : childList) {
String zoneId = zoneTreeResult.getId();
String zoneName = zoneTreeResult.getName();
zoneMap.put(zoneId, zoneName);
if (zoneTreeResult.getChildren() == null || zoneTreeResult.getChildren().size() <= 0) continue;
this.getZoneMap(zoneTreeResult.getChildren(), zoneMap);
}
return zoneMap;
}
}
@@ -0,0 +1,258 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.client.cwoscomponent.intelligent.device.result.DeviceResult
* cn.cloudwalk.client.cwoscomponent.intelligent.device.service.DeviceService
* cn.cloudwalk.cloud.exception.ServiceException
* cn.cloudwalk.cloud.result.CloudwalkResult
* cn.cloudwalk.cloud.utils.BeanCopyUtils
* cn.cloudwalk.elevator.codeElevatorArea.dto.AcsElevatorCodeQueryDTO
* cn.cloudwalk.elevator.codeElevatorArea.dto.AcsElevatorCodeResultDTO
* cn.cloudwalk.elevator.codeElevatorArea.param.AcsElevatorCodeParam
* cn.cloudwalk.elevator.codeElevatorArea.service.AcsElevatorCodeService
* cn.cloudwalk.elevator.device.dto.AcsElevatorDeviceQueryFoDTO
* cn.cloudwalk.elevator.device.dto.AcsElevatorDeviceResultDTO
* cn.cloudwalk.elevator.device.param.AcsElevatorDeviceQueryParam
* cn.cloudwalk.elevator.device.result.KeyValueResult
* cn.cloudwalk.elevator.device.service.AcsElevatorDeviceService
* cn.cloudwalk.elevator.record.param.AcsElevatorRecordAddParam
* cn.cloudwalk.elevator.record.service.AcsElevatorRecordService
* cn.cloudwalk.elevator.util.StringUtils
* cn.cloudwalk.elevator.zone.param.ZoneNextTreeParam
* cn.cloudwalk.elevator.zone.result.ZoneTreeResult
* cn.cloudwalk.elevator.zone.service.ZoneService
* org.springframework.beans.factory.annotation.Value
* org.springframework.util.ObjectUtils
* org.springframework.web.bind.annotation.PostMapping
* org.springframework.web.bind.annotation.RequestBody
* org.springframework.web.bind.annotation.RequestMapping
* org.springframework.web.bind.annotation.RestController
*/
package cn.cloudwalk.elevator.handler.device.controller;
import cn.cloudwalk.client.cwoscomponent.intelligent.device.result.DeviceResult;
import cn.cloudwalk.client.cwoscomponent.intelligent.device.service.DeviceService;
import cn.cloudwalk.cloud.exception.ServiceException;
import cn.cloudwalk.cloud.result.CloudwalkResult;
import cn.cloudwalk.cloud.utils.BeanCopyUtils;
import cn.cloudwalk.elevator.codeElevatorArea.dto.AcsElevatorCodeQueryDTO;
import cn.cloudwalk.elevator.codeElevatorArea.dto.AcsElevatorCodeResultDTO;
import cn.cloudwalk.elevator.codeElevatorArea.param.AcsElevatorCodeParam;
import cn.cloudwalk.elevator.codeElevatorArea.service.AcsElevatorCodeService;
import cn.cloudwalk.elevator.common.AbstractCloudwalkController;
import cn.cloudwalk.elevator.device.dto.AcsElevatorDeviceQueryFoDTO;
import cn.cloudwalk.elevator.device.dto.AcsElevatorDeviceResultDTO;
import cn.cloudwalk.elevator.device.param.AcsElevatorDeviceQueryParam;
import cn.cloudwalk.elevator.device.result.KeyValueResult;
import cn.cloudwalk.elevator.device.service.AcsElevatorDeviceService;
import cn.cloudwalk.elevator.handler.device.form.AcsElevatorCodeQueryForm;
import cn.cloudwalk.elevator.handler.device.form.AcsElevatorDeviceQueryForm;
import cn.cloudwalk.elevator.handler.device.form.AcsElevatorRecordAddForm;
import cn.cloudwalk.elevator.record.param.AcsElevatorRecordAddParam;
import cn.cloudwalk.elevator.record.service.AcsElevatorRecordService;
import cn.cloudwalk.elevator.util.StringUtils;
import cn.cloudwalk.elevator.zone.param.ZoneNextTreeParam;
import cn.cloudwalk.elevator.zone.result.ZoneTreeResult;
import cn.cloudwalk.elevator.zone.service.ZoneService;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.util.ObjectUtils;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping(value={"/device/v2/"})
public class AcsElevatorDeviceGetWayController
extends AbstractCloudwalkController {
@Resource
private AcsElevatorDeviceService elevatorDeviceService;
@Resource
private AcsElevatorCodeService elevatorCodeService;
@Resource
private ZoneService zoneService;
@Resource
private DeviceService deviceService;
@Resource
private AcsElevatorRecordService elevatorRecordService;
@Value(value="${elevator.application.key}")
private String key;
@Value(value="${elevator.application.time}")
private Long time;
@Value(value="${elevator.application.keyA}")
private String keyA;
@PostMapping(value={"/39201"})
public CloudwalkResult<List<AcsElevatorDeviceQueryFoDTO>> get(@RequestBody AcsElevatorDeviceQueryForm form) {
AcsElevatorDeviceQueryParam param = (AcsElevatorDeviceQueryParam)BeanCopyUtils.copyProperties((Object)form, AcsElevatorDeviceQueryParam.class);
try {
List list = this.elevatorDeviceService.getFo(param);
if (list != null && list.size() > 0) {
return CloudwalkResult.success((Object)list);
}
return CloudwalkResult.success(new ArrayList());
}
catch (ServiceException e) {
this.LOGGER.error("\u67e5\u8be2\u6d3e\u68af\u8bbe\u5907\u4fe1\u606f\u5217\u8868\u5931\u8d25\uff0c\u539f\u56e0\uff1a{}", (Throwable)e);
return CloudwalkResult.fail((String)"\u67e5\u8be2\u6d3e\u68af\u8bbe\u5907\u4fe1\u606f\u5217\u8868\u5931\u8d25", (String)e.getMessage());
}
}
@PostMapping(value={"39202"})
public CloudwalkResult<List<AcsElevatorCodeQueryDTO>> queryZoneTreeCode(@RequestBody AcsElevatorCodeQueryForm form) {
try {
AcsElevatorDeviceQueryParam param = (AcsElevatorDeviceQueryParam)BeanCopyUtils.copyProperties((Object)form, AcsElevatorDeviceQueryParam.class);
String buildingId = "";
String businessId = "";
if (StringUtils.isNotBlank((String)form.getDeviceCode())) {
buildingId = this.elevatorDeviceService.getBuildingId(param);
businessId = this.elevatorDeviceService.getBusinessId(param);
}
ZoneNextTreeParam zoneNextTreeParam = new ZoneNextTreeParam();
if (StringUtils.isNotBlank((String)buildingId)) {
zoneNextTreeParam.setParentId(buildingId);
}
zoneNextTreeParam.setBusinessId(businessId);
CloudwalkResult query = this.zoneService.tree(zoneNextTreeParam, this.getCloudwalkContext());
List treeList = (List)query.getData();
ArrayList<AcsElevatorCodeQueryDTO> treeResultList = new ArrayList<AcsElevatorCodeQueryDTO>();
if (treeList != null && treeList.size() > 0) {
for (ZoneTreeResult zoneTreeResult : treeList) {
AcsElevatorCodeResultDTO code;
AcsElevatorCodeParam paramCode;
AcsElevatorCodeQueryDTO querydTO;
if ("PARK".equals(zoneTreeResult.getType())) {
List buildingList = zoneTreeResult.getChildren();
if (buildingList == null || buildingList.size() <= 0) continue;
for (ZoneTreeResult building : buildingList) {
if ("BUILDING".equals(building.getType())) {
List floorList = building.getChildren();
if (floorList == null || floorList.size() <= 0) continue;
for (ZoneTreeResult floor : floorList) {
AcsElevatorCodeQueryDTO querydTO2 = new AcsElevatorCodeQueryDTO();
querydTO2.setZoneId(floor.getId());
querydTO2.setId(floor.getId());
querydTO2.setZoneName(floor.getName());
querydTO2.setZoneType(floor.getType());
AcsElevatorCodeParam paramCode2 = new AcsElevatorCodeParam();
paramCode2.setZoneId(floor.getId());
AcsElevatorCodeResultDTO code2 = this.elevatorCodeService.get(paramCode2);
if (!ObjectUtils.isEmpty((Object)code2)) {
querydTO2.setCode(code2.getCode());
querydTO2.setIsFirst(code2.getIsFirst());
}
treeResultList.add(querydTO2);
}
continue;
}
if (!"FLOOR".equals(building.getType())) continue;
querydTO = new AcsElevatorCodeQueryDTO();
querydTO.setZoneId(building.getId());
querydTO.setZoneName(building.getName());
querydTO.setZoneType("FLOOR");
querydTO.setId(building.getId());
paramCode = new AcsElevatorCodeParam();
paramCode.setZoneId(zoneTreeResult.getId());
code = this.elevatorCodeService.get(paramCode);
if (!ObjectUtils.isEmpty((Object)code)) {
querydTO.setCode(code.getCode());
querydTO.setIsFirst(code.getIsFirst());
}
treeResultList.add(querydTO);
}
continue;
}
if ("BUILDING".equals(zoneTreeResult.getType())) {
List floorList = zoneTreeResult.getChildren();
if (floorList == null || floorList.size() <= 0) continue;
for (ZoneTreeResult floor : floorList) {
querydTO = new AcsElevatorCodeQueryDTO();
querydTO.setZoneId(floor.getId());
querydTO.setZoneName(floor.getName());
querydTO.setZoneType(floor.getType());
querydTO.setId(floor.getId());
paramCode = new AcsElevatorCodeParam();
paramCode.setZoneId(floor.getId());
code = this.elevatorCodeService.get(paramCode);
if (!ObjectUtils.isEmpty((Object)code)) {
querydTO.setCode(code.getCode());
querydTO.setIsFirst(code.getIsFirst());
}
treeResultList.add(querydTO);
}
continue;
}
if (!"FLOOR".equals(zoneTreeResult.getType())) continue;
AcsElevatorCodeQueryDTO querydTO3 = new AcsElevatorCodeQueryDTO();
querydTO3.setZoneId(zoneTreeResult.getId());
querydTO3.setZoneName(zoneTreeResult.getName());
querydTO3.setZoneType("FLOOR");
querydTO3.setId(zoneTreeResult.getId());
AcsElevatorCodeParam paramCode3 = new AcsElevatorCodeParam();
paramCode3.setZoneId(zoneTreeResult.getId());
AcsElevatorCodeResultDTO code3 = this.elevatorCodeService.get(paramCode3);
if (!ObjectUtils.isEmpty((Object)code3)) {
querydTO3.setCode(code3.getCode());
querydTO3.setIsFirst(code3.getIsFirst());
}
treeResultList.add(querydTO3);
}
}
CloudwalkResult result = CloudwalkResult.success(treeResultList);
return result;
}
catch (Exception e) {
this.LOGGER.error("\u83b7\u53d6\u533a\u57df\u7684\u7535\u68af\u7f16\u7801\u5931\u8d25\uff0c\u539f\u56e0\uff1a", (Throwable)e);
return CloudwalkResult.fail((String)"\u83b7\u53d6\u533a\u57df\u7684\u7535\u68af\u7f16\u7801\u5931\u8d25", (String)e.getMessage());
}
}
@PostMapping(value={"39203"})
public CloudwalkResult addElevatorRecord(@RequestBody AcsElevatorRecordAddForm form) {
AcsElevatorRecordAddParam param = (AcsElevatorRecordAddParam)BeanCopyUtils.copyProperties((Object)form, AcsElevatorRecordAddParam.class);
try {
String deviceCode = form.getDeviceCode();
AcsElevatorDeviceQueryParam paramDevice = new AcsElevatorDeviceQueryParam();
paramDevice.setDeviceCode(deviceCode);
Long time1 = System.currentTimeMillis();
String businessId = this.elevatorDeviceService.getBusinessId(paramDevice);
if (StringUtils.isNotBlank((String)businessId)) {
param.setBusinessId(businessId);
} else {
param.setBusinessId("000");
}
Long time2 = System.currentTimeMillis();
AcsElevatorDeviceResultDTO deviceResultDTO = this.elevatorDeviceService.getByDeciveCode(deviceCode);
DeviceResult deviceResult = new DeviceResult();
if (deviceResultDTO != null) {
deviceResult.setId(deviceResultDTO.getId());
deviceResult.setDeviceCode(deviceCode);
deviceResult.setDeviceName(deviceResultDTO.getDeviceName());
deviceResult.setDeviceTypeName(deviceResultDTO.getDeviceTypeName());
deviceResult.setAreaId(deviceResultDTO.getAreaId());
}
param.setDeviceResult(deviceResult);
Long time3 = System.currentTimeMillis();
CloudwalkResult result = this.elevatorRecordService.add(param, this.getCloudwalkContext());
return CloudwalkResult.success((Object)result);
}
catch (ServiceException e) {
this.LOGGER.error("\u6dfb\u52a0\u5237\u8138\u6d3e\u68af\u8bb0\u5f55\u5931\u8d25\uff0c\u539f\u56e0\uff1a", (Throwable)e);
return CloudwalkResult.fail((String)"00", (String)e.getMessage());
}
}
@PostMapping(value={"39204"})
public CloudwalkResult<KeyValueResult> getKey(@RequestBody AcsElevatorRecordAddForm form) {
KeyValueResult result = new KeyValueResult();
result.setKey(this.key);
result.setTime(this.time);
result.setKeyA(this.keyA);
return CloudwalkResult.success((Object)result);
}
}
@@ -0,0 +1,149 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.cloud.exception.ServiceException
* cn.cloudwalk.cloud.result.CloudwalkResult
* cn.cloudwalk.cloud.utils.BeanCopyUtils
* cn.cloudwalk.elevator.device.dto.AcsDeviceTaskDTO
* cn.cloudwalk.elevator.device.param.AcsDeviceRestructureTaskParam
* cn.cloudwalk.elevator.device.param.AcsRestructureBindingParam
* cn.cloudwalk.elevator.device.param.AcsRestructureQueryParam
* cn.cloudwalk.elevator.device.service.AcsElevatorDeviceService
* org.springframework.web.bind.annotation.PostMapping
* org.springframework.web.bind.annotation.RequestBody
* org.springframework.web.bind.annotation.RequestMapping
* org.springframework.web.bind.annotation.RestController
*/
package cn.cloudwalk.elevator.handler.device.controller;
import cn.cloudwalk.cloud.exception.ServiceException;
import cn.cloudwalk.cloud.result.CloudwalkResult;
import cn.cloudwalk.cloud.utils.BeanCopyUtils;
import cn.cloudwalk.elevator.common.AbstractCloudwalkController;
import cn.cloudwalk.elevator.device.dto.AcsDeviceTaskDTO;
import cn.cloudwalk.elevator.device.param.AcsDeviceRestructureTaskParam;
import cn.cloudwalk.elevator.device.param.AcsRestructureBindingParam;
import cn.cloudwalk.elevator.device.param.AcsRestructureQueryParam;
import cn.cloudwalk.elevator.device.service.AcsElevatorDeviceService;
import cn.cloudwalk.elevator.handler.device.form.AcsDeviceRestructureTaskForm;
import cn.cloudwalk.elevator.handler.device.form.AcsRestructureBindingForm;
import cn.cloudwalk.elevator.handler.device.form.AcsRestructureQueryForm;
import javax.annotation.Resource;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping(value={"/elevator/restructure"})
public class AcsElevatorRestructureController
extends AbstractCloudwalkController {
@Resource
private AcsElevatorDeviceService elevatorDeviceService;
@PostMapping(value={"/unbind/floors"})
public CloudwalkResult listUnbindFloors(@RequestBody AcsRestructureQueryForm form) {
try {
AcsRestructureQueryParam param = new AcsRestructureQueryParam();
BeanCopyUtils.copyProperties((Object)form, (Object)param);
return this.elevatorDeviceService.listUnbindFloors(param, this.getCloudwalkContext());
}
catch (ServiceException e) {
this.LOGGER.error("\u67e5\u8be2\u672a\u7ed1\u5b9a\u7684\u697c\u5c42\u5f02\u5e38\uff0c\u539f\u56e0\uff1a", (Throwable)e);
return CloudwalkResult.fail((String)"\u67e5\u8be2\u672a\u7ed1\u5b9a\u7684\u6d3e\u68af\u697c\u5c42\u5f02\u5e38", (String)e.getMessage());
}
}
@PostMapping(value={"/floors"})
public CloudwalkResult listFloors(@RequestBody AcsRestructureQueryForm form) {
try {
AcsRestructureQueryParam param = new AcsRestructureQueryParam();
BeanCopyUtils.copyProperties((Object)form, (Object)param);
return this.elevatorDeviceService.listFloors(param, this.getCloudwalkContext());
}
catch (ServiceException e) {
this.LOGGER.error("\u67e5\u8be2\u672a\u7ed1\u5b9a\u7684\u6d3e\u68af\u697c\u5c42\u548c\u8bbe\u5907\u60c5\u51b5\u5f02\u5e38\uff0c\u539f\u56e0\uff1a", (Throwable)e);
return CloudwalkResult.fail((String)"\u67e5\u8be2\u672a\u7ed1\u5b9a\u7684\u6d3e\u68af\u697c\u5c42\u5f02\u5e38", (String)e.getMessage());
}
}
@PostMapping(value={"/condition"})
public CloudwalkResult listCondition(@RequestBody AcsRestructureQueryForm form) {
try {
AcsRestructureQueryParam param = new AcsRestructureQueryParam();
BeanCopyUtils.copyProperties((Object)form, (Object)param);
return this.elevatorDeviceService.listCondition(param, this.getCloudwalkContext());
}
catch (ServiceException e) {
this.LOGGER.error("\u6839\u636e\u6761\u4ef6\u67e5\u8be2\u6d3e\u68af\u697c\u5c42\u5f02\u5e38\uff0c\u539f\u56e0\uff1a", (Throwable)e);
return CloudwalkResult.fail((String)"\u6839\u636e\u6761\u4ef6\u67e5\u8be2\u6d3e\u68af\u697c\u5c42\u5f02\u5e38", (String)e.getMessage());
}
}
@PostMapping(value={"/condition/labels"})
public CloudwalkResult listConditionByLabelIds(@RequestBody AcsRestructureQueryForm form) {
try {
AcsRestructureQueryParam param = new AcsRestructureQueryParam();
BeanCopyUtils.copyProperties((Object)form, (Object)param);
return this.elevatorDeviceService.listConditionByLabelIds(param, this.getCloudwalkContext());
}
catch (ServiceException e) {
this.LOGGER.error("\u6839\u636e\u6807\u7b7eid\u96c6\u5408\u67e5\u8be2\u6d3e\u68af\u697c\u5c42\u6743\u9650\u5f02\u5e38\uff0c\u539f\u56e0\uff1a", (Throwable)e);
return CloudwalkResult.fail((String)"\u6839\u636e\u6807\u7b7eid\u96c6\u5408\u67e5\u8be2\u6d3e\u68af\u697c\u5c42\u6743\u9650\u5f02\u5e38", (String)e.getMessage());
}
}
@PostMapping(value={"/binding"})
public CloudwalkResult<String> bindingFloors(@RequestBody AcsRestructureBindingForm form) {
try {
AcsRestructureBindingParam param = new AcsRestructureBindingParam();
BeanCopyUtils.copyProperties((Object)form, (Object)param);
return this.elevatorDeviceService.bindingFloors(param, this.getCloudwalkContext());
}
catch (ServiceException e) {
this.LOGGER.error("\u673a\u6784id\u3001\u6807\u7b7eid\u7ed1\u5b9a\u6d3e\u68af\u697c\u5c42\u5f02\u5e38\uff0c\u539f\u56e0\uff1a", (Throwable)e);
return CloudwalkResult.fail((String)"\u673a\u6784id\u3001\u6807\u7b7eid\u7ed1\u5b9a\u6d3e\u68af\u697c\u5c42\u5f02\u5e38", (String)e.getMessage());
}
}
@PostMapping(value={"/binding/person"})
public CloudwalkResult<String> bindingPerson(@RequestBody AcsRestructureBindingForm form) {
try {
AcsRestructureBindingParam param = new AcsRestructureBindingParam();
BeanCopyUtils.copyProperties((Object)form, (Object)param);
return this.elevatorDeviceService.bindingPerson(param, this.getCloudwalkContext());
}
catch (ServiceException e) {
this.LOGGER.error("\u4eba\u5458\u6279\u91cf\u7ed1\u5b9a\u6d3e\u68af\u697c\u5c42\u5f02\u5e38\uff0c\u539f\u56e0\uff1a", (Throwable)e);
return CloudwalkResult.fail((String)"\u4eba\u5458\u6279\u91cf\u7ed1\u5b9a\u6d3e\u68af\u697c\u5c42\u5f02\u5e38", (String)e.getMessage());
}
}
@PostMapping(value={"/task/progress"})
public CloudwalkResult<AcsDeviceTaskDTO> getTask(@RequestBody AcsDeviceRestructureTaskForm form) {
try {
AcsDeviceRestructureTaskParam param = new AcsDeviceRestructureTaskParam();
BeanCopyUtils.copyProperties((Object)form, (Object)param);
return this.elevatorDeviceService.getTask(param, this.getCloudwalkContext());
}
catch (ServiceException e) {
this.LOGGER.error("\u83b7\u53d6\u4efb\u52a1\u8fdb\u7a0b\u5f02\u5e38\uff0c\u539f\u56e0\uff1a", (Throwable)e);
return CloudwalkResult.fail((String)"\u83b7\u53d6\u4efb\u52a1\u8fdb\u7a0b\u5f02\u5e38", (String)e.getMessage());
}
}
@PostMapping(value={"/task/stop"})
public CloudwalkResult<Boolean> setTaskStop(@RequestBody AcsDeviceRestructureTaskForm form) {
try {
AcsDeviceRestructureTaskParam param = new AcsDeviceRestructureTaskParam();
BeanCopyUtils.copyProperties((Object)form, (Object)param);
return this.elevatorDeviceService.setTaskStop(param, this.getCloudwalkContext());
}
catch (ServiceException e) {
this.LOGGER.error("\u7ec8\u6b62\u7ed1\u5b9a\u8fdb\u7a0b\u5f02\u5e38\uff0c\u539f\u56e0\uff1a", (Throwable)e);
return CloudwalkResult.fail((String)"\u7ec8\u6b62\u7ed1\u5b9a\u8fdb\u7a0b\u5f02\u5e38", (String)e.getMessage());
}
}
}
@@ -0,0 +1,62 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.cloud.result.CloudwalkResult
* cn.cloudwalk.elevator.config.ImageStoreConstants
* cn.cloudwalk.elevator.record.service.PersonFileService
* cn.cloudwalk.elevator.util.ToolUtil
* org.apache.commons.lang3.StringUtils
* org.springframework.beans.factory.annotation.Autowired
* org.springframework.web.bind.annotation.RequestMapping
* org.springframework.web.bind.annotation.RequestMethod
* org.springframework.web.bind.annotation.RequestParam
* org.springframework.web.bind.annotation.RestController
*/
package cn.cloudwalk.elevator.handler.device.controller;
import cn.cloudwalk.cloud.result.CloudwalkResult;
import cn.cloudwalk.elevator.common.AbstractCloudwalkController;
import cn.cloudwalk.elevator.config.ImageStoreConstants;
import cn.cloudwalk.elevator.record.service.PersonFileService;
import cn.cloudwalk.elevator.util.ToolUtil;
import javax.xml.bind.DatatypeConverter;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping(value={"/file"})
public class FileController
extends AbstractCloudwalkController {
@Autowired
private PersonFileService personFileService;
@RequestMapping(value={"/imgupload"}, method={RequestMethod.POST}, consumes={"multipart/form-data"})
public CloudwalkResult<String> fileUpload(@RequestParam(value="img") String base64) {
if (StringUtils.isEmpty((CharSequence)base64)) {
return CloudwalkResult.fail((String)"53060544", (String)this.getMessage("53060544"));
}
try {
byte[] bytes = DatatypeConverter.parseBase64Binary(base64);
if (bytes.length > ImageStoreConstants.MAX_FILE) {
return CloudwalkResult.fail((String)"53060428", (String)this.getMessage("53060428"));
}
String fileName = ToolUtil.generateUUID();
this.LOGGER.info("\u4e0a\u4f20\u6587\u4ef6:{},size={}", (Object)fileName, (Object)bytes.length);
CloudwalkResult storeResult = this.personFileService.upload(fileName, bytes);
if (storeResult != null && StringUtils.isNotBlank((CharSequence)((CharSequence)storeResult.getData()))) {
return CloudwalkResult.success((Object)storeResult.getData());
}
return storeResult;
}
catch (Exception e) {
this.LOGGER.error("", (Throwable)e);
return CloudwalkResult.fail((String)"80014013", (String)this.getMessage("80014013"));
}
}
}
@@ -0,0 +1,43 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.cloud.page.CloudwalkBasePageForm
*/
package cn.cloudwalk.elevator.handler.device.form;
import cn.cloudwalk.cloud.page.CloudwalkBasePageForm;
import java.io.Serializable;
public class AcsDeviceQueryForm
extends CloudwalkBasePageForm
implements Serializable {
private String deviceName;
private String deviceCategoryId;
private String areaId;
public String getDeviceName() {
return this.deviceName;
}
public void setDeviceName(String deviceName) {
this.deviceName = deviceName;
}
public String getDeviceCategoryId() {
return this.deviceCategoryId;
}
public void setDeviceCategoryId(String deviceCategoryId) {
this.deviceCategoryId = deviceCategoryId;
}
public String getAreaId() {
return this.areaId;
}
public void setAreaId(String areaId) {
this.areaId = areaId;
}
}
@@ -0,0 +1,53 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.elevator.handler.device.form;
import java.io.Serializable;
public class AcsDeviceRestructureTaskForm
implements Serializable {
private static final long serialVersionUID = -7349123760464380004L;
private String taskId;
public String getTaskId() {
return this.taskId;
}
public void setTaskId(String taskId) {
this.taskId = taskId;
}
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (!(o instanceof AcsDeviceRestructureTaskForm)) {
return false;
}
AcsDeviceRestructureTaskForm other = (AcsDeviceRestructureTaskForm)o;
if (!other.canEqual(this)) {
return false;
}
String this$taskId = this.getTaskId();
String other$taskId = other.getTaskId();
return !(this$taskId == null ? other$taskId != null : !this$taskId.equals(other$taskId));
}
protected boolean canEqual(Object other) {
return other instanceof AcsDeviceRestructureTaskForm;
}
public int hashCode() {
int PRIME = 59;
int result = 1;
String $taskId = this.getTaskId();
result = result * 59 + ($taskId == null ? 43 : $taskId.hashCode());
return result;
}
public String toString() {
return "AcsDeviceRestructureTaskForm(taskId=" + this.getTaskId() + ")";
}
}
@@ -0,0 +1,52 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.cloud.entity.CloudwalkBaseTimes
*/
package cn.cloudwalk.elevator.handler.device.form;
import cn.cloudwalk.cloud.entity.CloudwalkBaseTimes;
import java.io.Serializable;
public class AcsElevatorCodeForm
extends CloudwalkBaseTimes
implements Serializable {
private String zoneId;
private String parentId;
private String code;
private Integer isFirst;
public String getZoneId() {
return this.zoneId;
}
public void setZoneId(String zoneId) {
this.zoneId = zoneId;
}
public String getParentId() {
return this.parentId;
}
public void setParentId(String parentId) {
this.parentId = parentId;
}
public String getCode() {
return this.code;
}
public void setCode(String code) {
this.code = code;
}
public Integer getIsFirst() {
return this.isFirst;
}
public void setIsFirst(Integer isFirst) {
this.isFirst = isFirst;
}
}
@@ -0,0 +1,29 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.cloud.entity.CloudwalkBaseTimes
*/
package cn.cloudwalk.elevator.handler.device.form;
import cn.cloudwalk.cloud.entity.CloudwalkBaseTimes;
import java.io.Serializable;
public class AcsElevatorCodeQueryForm
extends CloudwalkBaseTimes
implements Serializable {
private String deviceCode;
public String getDeviceCode() {
return this.deviceCode;
}
public void setDeviceCode(String deviceCode) {
this.deviceCode = deviceCode;
}
public String toString() {
return "AcsElevatorCodeQueryForm{deviceCode='" + this.deviceCode + '\'' + '}';
}
}
@@ -0,0 +1,154 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.cloud.entity.CloudwalkBaseTimes
* javax.validation.constraints.NotNull
* org.hibernate.validator.constraints.NotEmpty
*/
package cn.cloudwalk.elevator.handler.device.form;
import cn.cloudwalk.cloud.entity.CloudwalkBaseTimes;
import java.io.Serializable;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.NotEmpty;
public class AcsElevatorDeviceAddForm
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 deleteFlag;
private String areaId;
private String elevatorFloorIdList;
public String getElevatorFloorIdList() {
return this.elevatorFloorIdList;
}
public void setElevatorFloorIdList(String elevatorFloorIdList) {
this.elevatorFloorIdList = elevatorFloorIdList;
}
public String getAreaId() {
return this.areaId;
}
public void setAreaId(String areaId) {
this.areaId = areaId;
}
public String getCurrentBuildingId() {
return this.currentBuildingId;
}
public void setCurrentBuildingId(String currentBuildingId) {
this.currentBuildingId = currentBuildingId;
}
public String getBusinessId() {
return this.businessId;
}
public void setBusinessId(String businessId) {
this.businessId = businessId;
}
public String getDeviceId() {
return this.deviceId;
}
public void setDeviceId(String deviceId) {
this.deviceId = deviceId;
}
public String getDeviceCode() {
return this.deviceCode;
}
public void setDeviceCode(String deviceCode) {
this.deviceCode = deviceCode;
}
public String getDeviceName() {
return this.deviceName;
}
public void setDeviceName(String deviceName) {
this.deviceName = deviceName;
}
public String getDeviceTypeName() {
return this.deviceTypeName;
}
public void setDeviceTypeName(String deviceTypeName) {
this.deviceTypeName = deviceTypeName;
}
public String getElevatorFloorList() {
return this.elevatorFloorList;
}
public void setElevatorFloorList(String elevatorFloorList) {
this.elevatorFloorList = elevatorFloorList;
}
public String getCurrentFloorId() {
return this.currentFloorId;
}
public void setCurrentFloorId(String currentFloorId) {
this.currentFloorId = currentFloorId;
}
public String getCurrentFloor() {
return this.currentFloor;
}
public void setCurrentFloor(String currentFloor) {
this.currentFloor = currentFloor;
}
public String getCurrentBuilding() {
return this.currentBuilding;
}
public void setCurrentBuilding(String currentBuilding) {
this.currentBuilding = currentBuilding;
}
public String getAreaName() {
return this.areaName;
}
public void setAreaName(String areaName) {
this.areaName = areaName;
}
public Integer getDeleteFlag() {
return this.deleteFlag;
}
public void setDeleteFlag(Integer deleteFlag) {
this.deleteFlag = deleteFlag;
}
public String toString() {
return "AcsElevatorDeviceAddDTO{businessId='" + this.businessId + '\'' + ", deviceId='" + this.deviceId + '\'' + ", deviceCode='" + this.deviceCode + '\'' + ", deviceName='" + this.deviceName + '\'' + ", deviceTypeName='" + this.deviceTypeName + '\'' + ", elevatorFloorList='" + this.elevatorFloorList + '\'' + ", currentFloorId='" + this.currentFloorId + '\'' + ", currentFloor='" + this.currentFloor + '\'' + ", currentBuilding='" + this.currentBuilding + '\'' + ", areaName='" + this.areaName + '\'' + ", deleteFlag=" + this.deleteFlag + '}';
}
}
@@ -0,0 +1,26 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.cloud.entity.CloudwalkBaseTimes
*/
package cn.cloudwalk.elevator.handler.device.form;
import cn.cloudwalk.cloud.entity.CloudwalkBaseTimes;
import java.io.Serializable;
import java.util.List;
public class AcsElevatorDeviceDeleteForm
extends CloudwalkBaseTimes
implements Serializable {
private List<String> ids;
public List<String> getIds() {
return this.ids;
}
public void setIds(List<String> ids) {
this.ids = ids;
}
}
@@ -0,0 +1,131 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.cloud.entity.CloudwalkBaseTimes
* javax.validation.constraints.NotNull
*/
package cn.cloudwalk.elevator.handler.device.form;
import cn.cloudwalk.cloud.entity.CloudwalkBaseTimes;
import java.io.Serializable;
import javax.validation.constraints.NotNull;
public class AcsElevatorDeviceEditForm
extends CloudwalkBaseTimes
implements Serializable {
private String elevatorFloorList;
@NotNull
private String currentFloorId;
private String currentFloor;
private String currentBuilding;
private String currentBuildingId;
private String areaId;
private String elevatorFloorIdList;
private String businessId;
private String deviceId;
private String deviceCode;
private String deviceName;
private String deviceTypeName;
public String getBusinessId() {
return this.businessId;
}
public void setBusinessId(String businessId) {
this.businessId = businessId;
}
public String getDeviceId() {
return this.deviceId;
}
public void setDeviceId(String deviceId) {
this.deviceId = deviceId;
}
public String getDeviceCode() {
return this.deviceCode;
}
public void setDeviceCode(String deviceCode) {
this.deviceCode = deviceCode;
}
public String getDeviceName() {
return this.deviceName;
}
public void setDeviceName(String deviceName) {
this.deviceName = deviceName;
}
public String getDeviceTypeName() {
return this.deviceTypeName;
}
public void setDeviceTypeName(String deviceTypeName) {
this.deviceTypeName = deviceTypeName;
}
public String getElevatorFloorIdList() {
return this.elevatorFloorIdList;
}
public void setElevatorFloorIdList(String elevatorFloorIdList) {
this.elevatorFloorIdList = elevatorFloorIdList;
}
public String getAreaId() {
return this.areaId;
}
public void setAreaId(String areaId) {
this.areaId = areaId;
}
public String getElevatorFloorList() {
return this.elevatorFloorList;
}
public void setElevatorFloorList(String elevatorFloorList) {
this.elevatorFloorList = elevatorFloorList;
}
public String getCurrentFloorId() {
return this.currentFloorId;
}
public void setCurrentFloorId(String currentFloorId) {
this.currentFloorId = currentFloorId;
}
public String getCurrentFloor() {
return this.currentFloor;
}
public void setCurrentFloor(String currentFloor) {
this.currentFloor = currentFloor;
}
public String getCurrentBuilding() {
return this.currentBuilding;
}
public void setCurrentBuilding(String currentBuilding) {
this.currentBuilding = currentBuilding;
}
public String getCurrentBuildingId() {
return this.currentBuildingId;
}
public void setCurrentBuildingId(String currentBuildingId) {
this.currentBuildingId = currentBuildingId;
}
public String toString() {
return "AcsElevatorDeviceAddDTO{, elevatorFloorList='" + this.elevatorFloorList + '\'' + ", currentFloorId='" + this.currentFloorId + '\'' + ", currentFloor='" + this.currentFloor + '\'' + ", currentBuilding='" + this.currentBuilding + '\'' + '}';
}
}
@@ -0,0 +1,25 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.cloud.page.CloudwalkBasePageForm
*/
package cn.cloudwalk.elevator.handler.device.form;
import cn.cloudwalk.cloud.page.CloudwalkBasePageForm;
import java.io.Serializable;
public class AcsElevatorDeviceQueryByIdForm
extends CloudwalkBasePageForm
implements Serializable {
private String id;
public String getId() {
return this.id;
}
public void setId(String id) {
this.id = id;
}
}
@@ -0,0 +1,101 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.cloud.page.CloudwalkBasePageForm
* javax.validation.constraints.NotNull
*/
package cn.cloudwalk.elevator.handler.device.form;
import cn.cloudwalk.cloud.page.CloudwalkBasePageForm;
import java.io.Serializable;
import java.util.List;
import javax.validation.constraints.NotNull;
public class AcsElevatorDeviceQueryForm
extends CloudwalkBasePageForm
implements Serializable {
@NotNull
private String deviceName;
private String deviceId;
private String deviceTypeName;
private String areaName;
private String deviceCode;
private String ip;
private List<String> areaIds;
private Integer status;
private Integer onlineStatus;
public Integer getStatus() {
return this.status;
}
public void setStatus(Integer status) {
this.status = status;
}
public Integer getOnlineStatus() {
return this.onlineStatus;
}
public void setOnlineStatus(Integer onlineStatus) {
this.onlineStatus = onlineStatus;
}
public String getIp() {
return this.ip;
}
public void setIp(String ip) {
this.ip = ip;
}
public List<String> getAreaIds() {
return this.areaIds;
}
public void setAreaIds(List<String> areaIds) {
this.areaIds = areaIds;
}
public String getDeviceName() {
return this.deviceName;
}
public void setDeviceName(String deviceName) {
this.deviceName = deviceName;
}
public String getDeviceTypeName() {
return this.deviceTypeName;
}
public void setDeviceTypeName(String deviceTypeName) {
this.deviceTypeName = deviceTypeName;
}
public String getAreaName() {
return this.areaName;
}
public void setAreaName(String areaName) {
this.areaName = areaName;
}
public String getDeviceId() {
return this.deviceId;
}
public void setDeviceId(String deviceId) {
this.deviceId = deviceId;
}
public String getDeviceCode() {
return this.deviceCode;
}
public void setDeviceCode(String deviceCode) {
this.deviceCode = deviceCode;
}
}
@@ -0,0 +1,186 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.client.cwoscomponent.intelligent.device.result.DeviceResult
* javax.validation.constraints.NotNull
* org.hibernate.validator.constraints.NotEmpty
*/
package cn.cloudwalk.elevator.handler.device.form;
import cn.cloudwalk.client.cwoscomponent.intelligent.device.result.DeviceResult;
import java.io.Serializable;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.NotEmpty;
public class AcsElevatorRecordAddForm
implements Serializable {
@NotEmpty(message="76260310")
private String businessId;
@NotEmpty(message="76260314")
private String deviceCode;
private String deviceName;
@NotEmpty(message="76260319")
private String openDoorType;
private String faceImagePath;
private String panoramaImagePath;
@NotNull(message="76260320")
private Integer recordResult;
private String recognitionNo;
@NotNull(message="76260301")
private Long recognitionTime;
private String logId;
private String recognitionFaceId;
private DeviceResult deviceResult;
private String srcFloor;
private String destFloor;
private String dispatchElevatorNo;
private Long dispatchElevatorTime;
private String operateName;
private String token;
public String getOperateName() {
return this.operateName;
}
public void setOperateName(String operateName) {
this.operateName = operateName;
}
public String getBusinessId() {
return this.businessId;
}
public void setBusinessId(String businessId) {
this.businessId = businessId;
}
public String getDeviceCode() {
return this.deviceCode;
}
public void setDeviceCode(String deviceCode) {
this.deviceCode = deviceCode;
}
public String getDeviceName() {
return this.deviceName;
}
public void setDeviceName(String deviceName) {
this.deviceName = deviceName;
}
public String getOpenDoorType() {
return this.openDoorType;
}
public void setOpenDoorType(String openDoorType) {
this.openDoorType = openDoorType;
}
public String getFaceImagePath() {
return this.faceImagePath;
}
public void setFaceImagePath(String faceImagePath) {
this.faceImagePath = faceImagePath;
}
public String getPanoramaImagePath() {
return this.panoramaImagePath;
}
public void setPanoramaImagePath(String panoramaImagePath) {
this.panoramaImagePath = panoramaImagePath;
}
public Integer getRecordResult() {
return this.recordResult;
}
public void setRecordResult(Integer recordResult) {
this.recordResult = recordResult;
}
public String getRecognitionNo() {
return this.recognitionNo;
}
public void setRecognitionNo(String recognitionNo) {
this.recognitionNo = recognitionNo;
}
public Long getRecognitionTime() {
return this.recognitionTime;
}
public void setRecognitionTime(Long recognitionTime) {
this.recognitionTime = recognitionTime;
}
public String getLogId() {
return this.logId;
}
public void setLogId(String logId) {
this.logId = logId;
}
public String getRecognitionFaceId() {
return this.recognitionFaceId;
}
public void setRecognitionFaceId(String recognitionFaceId) {
this.recognitionFaceId = recognitionFaceId;
}
public DeviceResult getDeviceResult() {
return this.deviceResult;
}
public void setDeviceResult(DeviceResult deviceResult) {
this.deviceResult = deviceResult;
}
public String getSrcFloor() {
return this.srcFloor;
}
public void setSrcFloor(String srcFloor) {
this.srcFloor = srcFloor;
}
public String getDestFloor() {
return this.destFloor;
}
public void setDestFloor(String destFloor) {
this.destFloor = destFloor;
}
public String getDispatchElevatorNo() {
return this.dispatchElevatorNo;
}
public void setDispatchElevatorNo(String dispatchElevatorNo) {
this.dispatchElevatorNo = dispatchElevatorNo;
}
public Long getDispatchElevatorTime() {
return this.dispatchElevatorTime;
}
public void setDispatchElevatorTime(Long dispatchElevatorTime) {
this.dispatchElevatorTime = dispatchElevatorTime;
}
public String getToken() {
return this.token;
}
public void setToken(String token) {
this.token = token;
}
}
@@ -0,0 +1,149 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.elevator.handler.device.form;
import java.io.Serializable;
import java.util.List;
public class AcsRestructureBindingForm
implements Serializable {
private String parentId;
private String orgId;
private String orgName;
private String labelId;
private String labelName;
private String personId;
private List<String> zoneIds;
public String getParentId() {
return this.parentId;
}
public String getOrgId() {
return this.orgId;
}
public String getOrgName() {
return this.orgName;
}
public String getLabelId() {
return this.labelId;
}
public String getLabelName() {
return this.labelName;
}
public String getPersonId() {
return this.personId;
}
public List<String> getZoneIds() {
return this.zoneIds;
}
public 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 boolean equals(Object o) {
if (o == this) {
return true;
}
if (!(o instanceof AcsRestructureBindingForm)) {
return false;
}
AcsRestructureBindingForm other = (AcsRestructureBindingForm)o;
if (!other.canEqual(this)) {
return false;
}
String this$parentId = this.getParentId();
String other$parentId = other.getParentId();
if (this$parentId == null ? other$parentId != null : !this$parentId.equals(other$parentId)) {
return false;
}
String this$orgId = this.getOrgId();
String other$orgId = other.getOrgId();
if (this$orgId == null ? other$orgId != null : !this$orgId.equals(other$orgId)) {
return false;
}
String this$orgName = this.getOrgName();
String other$orgName = other.getOrgName();
if (this$orgName == null ? other$orgName != null : !this$orgName.equals(other$orgName)) {
return false;
}
String this$labelId = this.getLabelId();
String other$labelId = other.getLabelId();
if (this$labelId == null ? other$labelId != null : !this$labelId.equals(other$labelId)) {
return false;
}
String this$labelName = this.getLabelName();
String other$labelName = other.getLabelName();
if (this$labelName == null ? other$labelName != null : !this$labelName.equals(other$labelName)) {
return false;
}
String this$personId = this.getPersonId();
String other$personId = other.getPersonId();
if (this$personId == null ? other$personId != null : !this$personId.equals(other$personId)) {
return false;
}
List<String> this$zoneIds = this.getZoneIds();
List<String> other$zoneIds = other.getZoneIds();
return !(this$zoneIds == null ? other$zoneIds != null : !((Object)this$zoneIds).equals(other$zoneIds));
}
protected boolean canEqual(Object other) {
return other instanceof AcsRestructureBindingForm;
}
public int hashCode() {
int PRIME = 59;
int result = 1;
String $parentId = this.getParentId();
result = result * 59 + ($parentId == null ? 43 : $parentId.hashCode());
String $orgId = this.getOrgId();
result = result * 59 + ($orgId == null ? 43 : $orgId.hashCode());
String $orgName = this.getOrgName();
result = result * 59 + ($orgName == null ? 43 : $orgName.hashCode());
String $labelId = this.getLabelId();
result = result * 59 + ($labelId == null ? 43 : $labelId.hashCode());
String $labelName = this.getLabelName();
result = result * 59 + ($labelName == null ? 43 : $labelName.hashCode());
String $personId = this.getPersonId();
result = result * 59 + ($personId == null ? 43 : $personId.hashCode());
List<String> $zoneIds = this.getZoneIds();
result = result * 59 + ($zoneIds == null ? 43 : ((Object)$zoneIds).hashCode());
return result;
}
public String toString() {
return "AcsRestructureBindingForm(parentId=" + this.getParentId() + ", orgId=" + this.getOrgId() + ", orgName=" + this.getOrgName() + ", labelId=" + this.getLabelId() + ", labelName=" + this.getLabelName() + ", personId=" + this.getPersonId() + ", zoneIds=" + this.getZoneIds() + ")";
}
}
@@ -0,0 +1,133 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.elevator.handler.device.form;
import java.io.Serializable;
import java.util.List;
public class AcsRestructureQueryForm
implements Serializable {
private String orgId;
private String labelId;
private List<String> labelIds;
private String personId;
private String zoneId;
private String businessId;
public String getOrgId() {
return this.orgId;
}
public String getLabelId() {
return this.labelId;
}
public List<String> getLabelIds() {
return this.labelIds;
}
public String getPersonId() {
return this.personId;
}
public String getZoneId() {
return this.zoneId;
}
public String getBusinessId() {
return this.businessId;
}
public void setOrgId(String orgId) {
this.orgId = orgId;
}
public void setLabelId(String labelId) {
this.labelId = labelId;
}
public void setLabelIds(List<String> labelIds) {
this.labelIds = labelIds;
}
public void setPersonId(String personId) {
this.personId = personId;
}
public void setZoneId(String zoneId) {
this.zoneId = zoneId;
}
public void setBusinessId(String businessId) {
this.businessId = businessId;
}
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (!(o instanceof AcsRestructureQueryForm)) {
return false;
}
AcsRestructureQueryForm other = (AcsRestructureQueryForm)o;
if (!other.canEqual(this)) {
return false;
}
String this$orgId = this.getOrgId();
String other$orgId = other.getOrgId();
if (this$orgId == null ? other$orgId != null : !this$orgId.equals(other$orgId)) {
return false;
}
String this$labelId = this.getLabelId();
String other$labelId = other.getLabelId();
if (this$labelId == null ? other$labelId != null : !this$labelId.equals(other$labelId)) {
return false;
}
List<String> this$labelIds = this.getLabelIds();
List<String> other$labelIds = other.getLabelIds();
if (this$labelIds == null ? other$labelIds != null : !((Object)this$labelIds).equals(other$labelIds)) {
return false;
}
String this$personId = this.getPersonId();
String other$personId = other.getPersonId();
if (this$personId == null ? other$personId != null : !this$personId.equals(other$personId)) {
return false;
}
String this$zoneId = this.getZoneId();
String other$zoneId = other.getZoneId();
if (this$zoneId == null ? other$zoneId != null : !this$zoneId.equals(other$zoneId)) {
return false;
}
String this$businessId = this.getBusinessId();
String other$businessId = other.getBusinessId();
return !(this$businessId == null ? other$businessId != null : !this$businessId.equals(other$businessId));
}
protected boolean canEqual(Object other) {
return other instanceof AcsRestructureQueryForm;
}
public int hashCode() {
int PRIME = 59;
int result = 1;
String $orgId = this.getOrgId();
result = result * 59 + ($orgId == null ? 43 : $orgId.hashCode());
String $labelId = this.getLabelId();
result = result * 59 + ($labelId == null ? 43 : $labelId.hashCode());
List<String> $labelIds = this.getLabelIds();
result = result * 59 + ($labelIds == null ? 43 : ((Object)$labelIds).hashCode());
String $personId = this.getPersonId();
result = result * 59 + ($personId == null ? 43 : $personId.hashCode());
String $zoneId = this.getZoneId();
result = result * 59 + ($zoneId == null ? 43 : $zoneId.hashCode());
String $businessId = this.getBusinessId();
result = result * 59 + ($businessId == null ? 43 : $businessId.hashCode());
return result;
}
public String toString() {
return "AcsRestructureQueryForm(orgId=" + this.getOrgId() + ", labelId=" + this.getLabelId() + ", labelIds=" + this.getLabelIds() + ", personId=" + this.getPersonId() + ", zoneId=" + this.getZoneId() + ", businessId=" + this.getBusinessId() + ")";
}
}
@@ -0,0 +1,176 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.cloud.exception.ServiceException
* cn.cloudwalk.cloud.page.CloudwalkPageAble
* cn.cloudwalk.cloud.page.CloudwalkPageInfo
* cn.cloudwalk.cloud.result.CloudwalkResult
* cn.cloudwalk.cloud.utils.BeanCopyUtils
* cn.cloudwalk.elevator.passrule.dto.AcsPassRuleImageResultDto
* cn.cloudwalk.elevator.passrule.dto.AcsPassRulePersonListResultDto
* cn.cloudwalk.elevator.passrule.param.AcsPassRuleDeleteParam
* cn.cloudwalk.elevator.passrule.param.AcsPassRuleEditParam
* cn.cloudwalk.elevator.passrule.param.AcsPassRuleFloorParam
* cn.cloudwalk.elevator.passrule.param.AcsPassRuleImageParam
* cn.cloudwalk.elevator.passrule.param.AcsPassRuleNewParam
* cn.cloudwalk.elevator.passrule.param.AcsPassRulePersonListParam
* cn.cloudwalk.elevator.passrule.param.AcsPassRuleQueryParam
* cn.cloudwalk.elevator.passrule.result.AcsPassRuleFloorResult
* cn.cloudwalk.elevator.passrule.result.ImageRuleRefDetailResult
* cn.cloudwalk.elevator.passrule.result.ImageRuleRefPageResult
* cn.cloudwalk.elevator.passrule.service.AcsPassRuleService
* cn.cloudwalk.elevator.passrule.service.ImageRuleRefService
* org.springframework.web.bind.annotation.RequestBody
* org.springframework.web.bind.annotation.RequestMapping
* org.springframework.web.bind.annotation.RestController
*/
package cn.cloudwalk.elevator.passrule.controller;
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.AbstractCloudwalkController;
import cn.cloudwalk.elevator.passrule.dto.AcsPassRuleImageResultDto;
import cn.cloudwalk.elevator.passrule.dto.AcsPassRulePersonListResultDto;
import cn.cloudwalk.elevator.passrule.form.AcsPassRuleDeleteForm;
import cn.cloudwalk.elevator.passrule.form.AcsPassRuleEditForm;
import cn.cloudwalk.elevator.passrule.form.AcsPassRuleFloorForm;
import cn.cloudwalk.elevator.passrule.form.AcsPassRuleImageForm;
import cn.cloudwalk.elevator.passrule.form.AcsPassRuleNewForm;
import cn.cloudwalk.elevator.passrule.form.AcsPassRulePersonListForm;
import cn.cloudwalk.elevator.passrule.form.AcsPassRuleQueryForm;
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 cn.cloudwalk.elevator.passrule.service.AcsPassRuleService;
import cn.cloudwalk.elevator.passrule.service.ImageRuleRefService;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping(value={"/elevator/passRule"})
public class AcsPassRuleController
extends AbstractCloudwalkController {
@Resource
private AcsPassRuleService acsPassRuleService;
@Resource
private ImageRuleRefService imageRuleRefService;
@RequestMapping(value={"/floor"})
public CloudwalkResult<CloudwalkPageAble<AcsPassRuleFloorResult>> listFloor(@RequestBody AcsPassRuleFloorForm form) {
AcsPassRuleFloorParam param = (AcsPassRuleFloorParam)BeanCopyUtils.copyProperties((Object)form, AcsPassRuleFloorParam.class);
try {
return this.imageRuleRefService.listFloor(param, this.getCloudwalkContext());
}
catch (ServiceException e) {
this.LOGGER.error("\u67e5\u8be2\u6240\u6709\u697c\u5c42\u4fe1\u606f\u5931\u8d25\uff0c\u539f\u56e0\uff1a{}", (Throwable)e);
return CloudwalkResult.fail((String)"76260520", (String)e.getMessage());
}
}
@RequestMapping(value={"/add"})
public CloudwalkResult<Boolean> add(@RequestBody AcsPassRuleNewForm form) {
AcsPassRuleNewParam param = (AcsPassRuleNewParam)BeanCopyUtils.copyProperties((Object)form, AcsPassRuleNewParam.class);
try {
return this.imageRuleRefService.addOnlyRule(param, this.getCloudwalkContext());
}
catch (ServiceException e) {
this.LOGGER.error("\u65b0\u589e\u901a\u884c\u89c4\u5219\u5931\u8d25\uff0c\u539f\u56e0\uff1a{}", (Throwable)e);
return CloudwalkResult.fail((String)"76260505", (String)e.getMessage());
}
}
@RequestMapping(value={"/edit"})
public CloudwalkResult<Boolean> edit(@RequestBody AcsPassRuleEditForm form) {
AcsPassRuleEditParam param = (AcsPassRuleEditParam)BeanCopyUtils.copyProperties((Object)form, AcsPassRuleEditParam.class);
try {
return this.imageRuleRefService.update(param, this.getCloudwalkContext());
}
catch (ServiceException e) {
this.LOGGER.error("\u4fee\u6539\u901a\u884c\u89c4\u5219\u5931\u8d25\uff0c\u539f\u56e0\uff1a{}", (Throwable)e);
return CloudwalkResult.fail((String)"76260506", (String)e.getMessage());
}
}
@RequestMapping(value={"/delete"})
public CloudwalkResult<Boolean> delete(@RequestBody AcsPassRuleDeleteForm form) {
AcsPassRuleDeleteParam param = (AcsPassRuleDeleteParam)BeanCopyUtils.copyProperties((Object)form, AcsPassRuleDeleteParam.class);
try {
return this.imageRuleRefService.delete(param, this.getCloudwalkContext());
}
catch (ServiceException e) {
this.LOGGER.error("\u5220\u9664\u901a\u884c\u89c4\u5219\u5931\u8d25\uff0c\u539f\u56e0\uff1a{}", (Throwable)e);
return CloudwalkResult.fail((String)"76260507", (String)e.getMessage());
}
}
@RequestMapping(value={"/detail"})
public CloudwalkResult<ImageRuleRefDetailResult> detail(@RequestBody AcsPassRuleQueryForm form) {
AcsPassRuleQueryParam param = (AcsPassRuleQueryParam)BeanCopyUtils.copyProperties((Object)form, AcsPassRuleQueryParam.class);
try {
return this.imageRuleRefService.detail(param, this.getCloudwalkContext());
}
catch (ServiceException e) {
this.LOGGER.error("\u67e5\u8be2\u901a\u884c\u89c4\u5219\u8be6\u60c5\u5931\u8d25\uff0c\u539f\u56e0\uff1a{}", (Throwable)e);
return CloudwalkResult.fail((String)"76260508", (String)e.getMessage());
}
}
@RequestMapping(value={"/page"})
public CloudwalkResult<CloudwalkPageAble<ImageRuleRefPageResult>> page(@RequestBody AcsPassRuleQueryForm form) {
AcsPassRuleQueryParam param = (AcsPassRuleQueryParam)BeanCopyUtils.copyProperties((Object)form, AcsPassRuleQueryParam.class);
try {
CloudwalkPageInfo page = new CloudwalkPageInfo(form.getPageNo().intValue(), form.getPageSize().intValue());
return this.imageRuleRefService.page(param, page, this.getCloudwalkContext());
}
catch (ServiceException e) {
this.LOGGER.error("\u5206\u9875\u67e5\u8be2\u901a\u884c\u89c4\u5219\u5931\u8d25\uff0c\u539f\u56e0\uff1a{}", (Throwable)e);
return CloudwalkResult.fail((String)"76260508", (String)e.getMessage());
}
}
@RequestMapping(value={"/image"})
public CloudwalkResult<List<AcsPassRuleImageResultDto>> listByImageId(@RequestBody AcsPassRuleImageForm form) {
AcsPassRuleImageParam param = (AcsPassRuleImageParam)BeanCopyUtils.copyProperties((Object)form, AcsPassRuleImageParam.class);
try {
return this.imageRuleRefService.listByPersonInfo(param, this.getCloudwalkContext());
}
catch (ServiceException e) {
this.LOGGER.error("\u6839\u636e\u4eba\u5458id\u3001\u6807\u7b7e\u96c6\u5408\u3001\u673a\u6784\u96c6\u5408\u83b7\u53d6\u697c\u5c42\u6743\u9650\u5931\u8d25\uff0c\u539f\u56e0\uff1a{}", (Throwable)e);
return CloudwalkResult.fail((String)"76260526", (String)e.getMessage());
}
}
@RequestMapping(value={"/image/list"})
public CloudwalkResult<List<AcsPassRulePersonListResultDto>> listByPersonList(@RequestBody AcsPassRulePersonListForm form) {
AcsPassRulePersonListParam param = new AcsPassRulePersonListParam();
ArrayList<AcsPassRuleImageParam> imageParam = new ArrayList<AcsPassRuleImageParam>();
for (AcsPassRuleImageForm imageForm : form.getPersonList()) {
AcsPassRuleImageParam copyProperties = (AcsPassRuleImageParam)BeanCopyUtils.copyProperties((Object)imageForm, AcsPassRuleImageParam.class);
imageParam.add(copyProperties);
}
param.setPersonList(imageParam);
try {
return this.imageRuleRefService.listByPersonList(param, this.getCloudwalkContext());
}
catch (ServiceException e) {
this.LOGGER.error("\u6279\u91cf\u83b7\u53d6\u697c\u5c42\u6743\u9650\u5931\u8d25\uff0c\u539f\u56e0\uff1a{}", (Throwable)e);
return CloudwalkResult.fail((String)"76260526", (String)e.getMessage());
}
}
}
@@ -0,0 +1,40 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.elevator.passrule.form;
import java.io.Serializable;
import java.util.List;
public class AcsPassRuleDeleteForm
implements Serializable {
private static final long serialVersionUID = -52051042529262978L;
private List<String> ids;
private String zoneId;
private String parentId;
public String getParentId() {
return this.parentId;
}
public void setParentId(String parentId) {
this.parentId = parentId;
}
public List<String> getIds() {
return this.ids;
}
public void setIds(List<String> ids) {
this.ids = ids;
}
public String getZoneId() {
return this.zoneId;
}
public void setZoneId(String zoneId) {
this.zoneId = zoneId;
}
}
@@ -0,0 +1,112 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.elevator.passrule.form;
import java.io.Serializable;
import java.util.List;
public class AcsPassRuleEditForm
implements Serializable {
private static final long serialVersionUID = -27068608402591250L;
private String id;
private String parentId;
private String zoneId;
private String zoneName;
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() {
return this.parentId;
}
public void setParentId(String parentId) {
this.parentId = parentId;
}
public String getOldName() {
return this.oldName;
}
public void setOldName(String oldName) {
this.oldName = oldName;
}
public String getZoneId() {
return this.zoneId;
}
public void setZoneId(String zoneId) {
this.zoneId = zoneId;
}
public String getZoneName() {
return this.zoneName;
}
public void setZoneName(String zoneName) {
this.zoneName = zoneName;
}
public String getRuleName() {
return this.ruleName;
}
public void setRuleName(String ruleName) {
this.ruleName = ruleName;
}
public List<String> getIncludeOrganizations() {
return this.includeOrganizations;
}
public void setIncludeOrganizations(List<String> includeOrganizations) {
this.includeOrganizations = includeOrganizations;
}
public List<String> getIncludeLabels() {
return this.includeLabels;
}
public void setIncludeLabels(List<String> includeLabels) {
this.includeLabels = includeLabels;
}
public List<String> getExcludeLabels() {
return this.excludeLabels;
}
public void setExcludeLabels(List<String> excludeLabels) {
this.excludeLabels = excludeLabels;
}
public Long getStartTime() {
return this.startTime;
}
public void setStartTime(Long startTime) {
this.startTime = startTime;
}
public Long getEndTime() {
return this.endTime;
}
public void setEndTime(Long endTime) {
this.endTime = endTime;
}
public String getId() {
return this.id;
}
public void setId(String id) {
this.id = id;
}
}
@@ -0,0 +1,26 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.cloud.page.CloudwalkBasePageForm
*/
package cn.cloudwalk.elevator.passrule.form;
import cn.cloudwalk.cloud.page.CloudwalkBasePageForm;
import java.io.Serializable;
public class AcsPassRuleFloorForm
extends CloudwalkBasePageForm
implements Serializable {
private static final long serialVersionUID = -46113273262522744L;
private String zoneId;
public String getZoneId() {
return this.zoneId;
}
public void setZoneId(String zoneId) {
this.zoneId = zoneId;
}
}
@@ -0,0 +1,58 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.elevator.passrule.form;
import java.io.Serializable;
import java.util.List;
public class AcsPassRuleImageForm
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() {
return this.imageStoreIds;
}
public void setImageStoreIds(List<String> imageStoreIds) {
this.imageStoreIds = imageStoreIds;
}
public String getBusinessId() {
return this.businessId;
}
public void setBusinessId(String businessId) {
this.businessId = businessId;
}
public String getPersonId() {
return this.personId;
}
public void setPersonId(String personId) {
this.personId = personId;
}
public List<String> getIncludeOrganizations() {
return this.includeOrganizations;
}
public void setIncludeOrganizations(List<String> includeOrganizations) {
this.includeOrganizations = includeOrganizations;
}
public List<String> getIncludeLabels() {
return this.includeLabels;
}
public void setIncludeLabels(List<String> includeLabels) {
this.includeLabels = includeLabels;
}
}
@@ -0,0 +1,94 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.elevator.passrule.form;
import java.io.Serializable;
import java.util.List;
public class AcsPassRuleNewForm
implements Serializable {
private static final long serialVersionUID = -46113273262522744L;
private String parentId;
private String zoneId;
private String zoneName;
private String ruleName;
private List<String> includeOrganizations;
private List<String> includeLabels;
private List<String> excludeLabels;
private Long startTime;
private Long endTime;
public String getParentId() {
return this.parentId;
}
public void setParentId(String parentId) {
this.parentId = parentId;
}
public String getZoneId() {
return this.zoneId;
}
public void setZoneId(String zoneId) {
this.zoneId = zoneId;
}
public String getZoneName() {
return this.zoneName;
}
public void setZoneName(String zoneName) {
this.zoneName = zoneName;
}
public String getRuleName() {
return this.ruleName;
}
public void setRuleName(String ruleName) {
this.ruleName = ruleName;
}
public List<String> getIncludeOrganizations() {
return this.includeOrganizations;
}
public void setIncludeOrganizations(List<String> includeOrganizations) {
this.includeOrganizations = includeOrganizations;
}
public List<String> getIncludeLabels() {
return this.includeLabels;
}
public void setIncludeLabels(List<String> includeLabels) {
this.includeLabels = includeLabels;
}
public List<String> getExcludeLabels() {
return this.excludeLabels;
}
public void setExcludeLabels(List<String> excludeLabels) {
this.excludeLabels = excludeLabels;
}
public Long getStartTime() {
return this.startTime;
}
public void setStartTime(Long startTime) {
this.startTime = startTime;
}
public Long getEndTime() {
return this.endTime;
}
public void setEndTime(Long endTime) {
this.endTime = endTime;
}
}
@@ -0,0 +1,28 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.cloud.page.CloudwalkBasePageForm
*/
package cn.cloudwalk.elevator.passrule.form;
import cn.cloudwalk.cloud.page.CloudwalkBasePageForm;
import cn.cloudwalk.elevator.passrule.form.AcsPassRuleImageForm;
import java.io.Serializable;
import java.util.List;
public class AcsPassRulePersonListForm
extends CloudwalkBasePageForm
implements Serializable {
private static final long serialVersionUID = -52687427633888290L;
private List<AcsPassRuleImageForm> personList;
public List<AcsPassRuleImageForm> getPersonList() {
return this.personList;
}
public void setPersonList(List<AcsPassRuleImageForm> personList) {
this.personList = personList;
}
}
@@ -0,0 +1,75 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.elevator.passrule.form;
import java.io.Serializable;
public class AcsPassRuleQueryForm
implements Serializable {
private static final long serialVersionUID = -52687427633888290L;
private String id;
private String parentId;
private String zoneId;
private String zoneName;
private Integer isDefault;
private Integer pageSize = 10;
private Integer pageNo = 1;
public String getId() {
return this.id;
}
public void setId(String id) {
this.id = id;
}
public Integer getPageSize() {
return this.pageSize;
}
public void setPageSize(Integer pageSize) {
this.pageSize = pageSize;
}
public Integer getPageNo() {
return this.pageNo;
}
public void setPageNo(Integer pageNo) {
this.pageNo = pageNo;
}
public String getParentId() {
return this.parentId;
}
public void setParentId(String parentId) {
this.parentId = parentId;
}
public String getZoneId() {
return this.zoneId;
}
public void setZoneId(String zoneId) {
this.zoneId = zoneId;
}
public String getZoneName() {
return this.zoneName;
}
public void setZoneName(String zoneName) {
this.zoneName = zoneName;
}
public Integer getIsDefault() {
return this.isDefault;
}
public void setIsDefault(Integer isDefault) {
this.isDefault = isDefault;
}
}
@@ -0,0 +1,168 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.result.ImageStorePersonResult
* cn.cloudwalk.cloud.exception.ServiceException
* cn.cloudwalk.cloud.page.CloudwalkPageAble
* cn.cloudwalk.cloud.page.CloudwalkPageInfo
* cn.cloudwalk.cloud.result.CloudwalkResult
* cn.cloudwalk.cloud.utils.BeanCopyUtils
* cn.cloudwalk.elevator.person.param.AcsPersonAddParam
* cn.cloudwalk.elevator.person.param.AcsPersonAddVisitorParam
* cn.cloudwalk.elevator.person.param.AcsPersonDeleteParam
* cn.cloudwalk.elevator.person.param.AcsPersonEditParam
* cn.cloudwalk.elevator.person.param.AcsPersonQueryByAppParam
* cn.cloudwalk.elevator.person.param.AcsPersonQueryParam
* cn.cloudwalk.elevator.person.param.AcsPersonTimeDetailParam
* cn.cloudwalk.elevator.person.param.PersonDetailQueryParam
* cn.cloudwalk.elevator.person.result.AcsPersonResult
* cn.cloudwalk.elevator.person.result.AcsPersonTimeDetailResult
* cn.cloudwalk.elevator.person.service.AcsPersonService
* cn.cloudwalk.elevator.person.service.PersonRuleService
* org.springframework.beans.factory.annotation.Autowired
* org.springframework.web.bind.annotation.RequestBody
* org.springframework.web.bind.annotation.RequestMapping
* org.springframework.web.bind.annotation.RestController
*/
package cn.cloudwalk.elevator.person.controller;
import cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.result.ImageStorePersonResult;
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.AbstractCloudwalkController;
import cn.cloudwalk.elevator.person.form.AcsPersonAddForm;
import cn.cloudwalk.elevator.person.form.AcsPersonAddVisitorForm;
import cn.cloudwalk.elevator.person.form.AcsPersonDeleteForm;
import cn.cloudwalk.elevator.person.form.AcsPersonEditForm;
import cn.cloudwalk.elevator.person.form.AcsPersonQueryForm;
import cn.cloudwalk.elevator.person.form.AcsPersonTimeDetailForm;
import cn.cloudwalk.elevator.person.form.PersonDetailQueryForm;
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.AcsPersonService;
import cn.cloudwalk.elevator.person.service.PersonRuleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping(value={"/elevator/person"})
public class AcsPersonController
extends AbstractCloudwalkController {
@Autowired
private AcsPersonService acsPersonService;
@Autowired
private PersonRuleService personRuleService;
@RequestMapping(value={"/add"})
public CloudwalkResult<Boolean> add(@RequestBody AcsPersonAddForm form) {
AcsPersonAddParam param = (AcsPersonAddParam)BeanCopyUtils.copyProperties((Object)form, AcsPersonAddParam.class);
try {
return this.personRuleService.add(param, this.getCloudwalkContext());
}
catch (ServiceException e) {
this.LOGGER.error("\u4ece\u73b0\u6709\u4eba\u5458\u6dfb\u52a0\u901a\u884c\u4eba\u5458\u5931\u8d25\uff0c\u539f\u56e0\uff1a", (Throwable)e);
return CloudwalkResult.fail((String)"76260521", (String)e.getMessage());
}
}
@RequestMapping(value={"/add/visitor"})
public CloudwalkResult<Boolean> addVisitor(@RequestBody AcsPersonAddVisitorForm form) {
AcsPersonAddVisitorParam param = (AcsPersonAddVisitorParam)BeanCopyUtils.copyProperties((Object)form, AcsPersonAddVisitorParam.class);
try {
return this.personRuleService.addVisitor(param, this.getCloudwalkContext());
}
catch (ServiceException e) {
this.LOGGER.error("\u6839\u636e\u88ab\u8bbf\u4eba\u6dfb\u52a0\u8bbf\u5ba2\u6d3e\u68af\u6743\u9650\u5931\u8d25\uff0c\u539f\u56e0\uff1a", (Throwable)e);
return CloudwalkResult.fail((String)"76260521", (String)e.getMessage());
}
}
@RequestMapping(value={"/edit"})
public CloudwalkResult<Boolean> edit(@RequestBody AcsPersonEditForm form) {
AcsPersonEditParam param = (AcsPersonEditParam)BeanCopyUtils.copyProperties((Object)form, AcsPersonEditParam.class);
try {
return this.acsPersonService.edit(param, this.getCloudwalkContext());
}
catch (ServiceException e) {
this.LOGGER.error("\u7f16\u8f91\u901a\u884c\u4eba\u5458\u4fe1\u606f\u5931\u8d25\uff0c\u539f\u56e0\uff1a", (Throwable)e);
return CloudwalkResult.fail((String)"76260522", (String)e.getMessage());
}
}
@RequestMapping(value={"/delete"})
public CloudwalkResult<Boolean> delete(@RequestBody AcsPersonDeleteForm form) {
AcsPersonDeleteParam param = (AcsPersonDeleteParam)BeanCopyUtils.copyProperties((Object)form, AcsPersonDeleteParam.class);
try {
return this.personRuleService.delete(param, this.getCloudwalkContext());
}
catch (ServiceException e) {
this.LOGGER.error("\u5220\u9664\u901a\u884c\u4eba\u5458\u5931\u8d25\uff0c\u539f\u56e0\uff1a", (Throwable)e);
return CloudwalkResult.fail((String)"76260523", (String)e.getMessage());
}
}
@RequestMapping(value={"/page"})
public CloudwalkResult<CloudwalkPageAble<AcsPersonResult>> page(@RequestBody AcsPersonQueryForm form) {
try {
CloudwalkPageInfo pageInfo = new CloudwalkPageInfo(form.getPageNo().intValue(), form.getPageSize().intValue());
AcsPersonQueryParam param = (AcsPersonQueryParam)BeanCopyUtils.copyProperties((Object)form, AcsPersonQueryParam.class);
return this.personRuleService.page(param, pageInfo, this.getCloudwalkContext());
}
catch (ServiceException e) {
this.LOGGER.error("\u5206\u9875\u67e5\u8be2\u901a\u884c\u4eba\u5458\u5931\u8d25\uff0c\u539f\u56e0\uff1a", (Throwable)e);
return CloudwalkResult.fail((String)"76260410", (String)e.getMessage());
}
}
@RequestMapping(value={"/timeDetail"})
public CloudwalkResult<AcsPersonTimeDetailResult> timeDetail(@RequestBody AcsPersonTimeDetailForm form) {
try {
AcsPersonTimeDetailParam param = (AcsPersonTimeDetailParam)BeanCopyUtils.copyProperties((Object)form, AcsPersonTimeDetailParam.class);
return this.acsPersonService.timeDetail(param, this.getCloudwalkContext());
}
catch (ServiceException e) {
this.LOGGER.error("\u67e5\u8be2\u901a\u884c\u4eba\u5458\u65f6\u95f4\u8be6\u60c5\u5931\u8d25\uff0c\u539f\u56e0\uff1a", (Throwable)e);
return CloudwalkResult.fail((String)"76260416", (String)e.getMessage());
}
}
@RequestMapping(value={"/pageByApp"})
public CloudwalkResult<CloudwalkPageAble<AcsPersonResult>> pageByApp(@RequestBody AcsPersonQueryForm form) {
try {
CloudwalkPageInfo pageInfo = new CloudwalkPageInfo(form.getPageNo().intValue(), form.getPageSize().intValue());
AcsPersonQueryByAppParam param = (AcsPersonQueryByAppParam)BeanCopyUtils.copyProperties((Object)form, AcsPersonQueryByAppParam.class);
return this.acsPersonService.pageByApp(param, pageInfo, this.getCloudwalkContext());
}
catch (ServiceException e) {
this.LOGGER.error("\u5206\u9875\u67e5\u8be2\u5e94\u7528\u901a\u884c\u4eba\u5458\u5931\u8d25\uff0c\u539f\u56e0\uff1a", (Throwable)e);
return CloudwalkResult.fail((String)"76260417", (String)e.getMessage());
}
}
@RequestMapping(value={"/detail"})
public CloudwalkResult<CloudwalkPageAble<ImageStorePersonResult>> personDetail(@RequestBody PersonDetailQueryForm form) {
try {
PersonDetailQueryParam param = (PersonDetailQueryParam)BeanCopyUtils.copyProperties((Object)form, PersonDetailQueryParam.class);
return this.personRuleService.personDetail(param, this.getCloudwalkContext());
}
catch (ServiceException e) {
this.LOGGER.error("\u5206\u9875\u67e5\u8be2\u89c4\u5219\u91cc\u901a\u884c\u4eba\u5458\u5931\u8d25\uff0c\u539f\u56e0\uff1a", (Throwable)e);
return CloudwalkResult.fail((String)"76260410", (String)e.getMessage());
}
}
}
@@ -0,0 +1,58 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.elevator.person.form;
import java.io.Serializable;
import java.util.List;
public class AcsPersonAddForm
implements Serializable {
private static final long serialVersionUID = 7916140658162290825L;
private String parentId;
private String zoneId;
private List<String> personIds;
private Long startTime;
private Long endTime;
public String getParentId() {
return this.parentId;
}
public void setParentId(String parentId) {
this.parentId = parentId;
}
public String getZoneId() {
return this.zoneId;
}
public void setZoneId(String zoneId) {
this.zoneId = zoneId;
}
public List<String> getPersonIds() {
return this.personIds;
}
public void setPersonIds(List<String> personIds) {
this.personIds = personIds;
}
public Long getStartTime() {
return this.startTime;
}
public void setStartTime(Long startTime) {
this.startTime = startTime;
}
public Long getEndTime() {
return this.endTime;
}
public void setEndTime(Long endTime) {
this.endTime = endTime;
}
}
@@ -0,0 +1,52 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.elevator.person.param.AcsPersonPropertiesParam
*/
package cn.cloudwalk.elevator.person.form;
import cn.cloudwalk.elevator.person.param.AcsPersonPropertiesParam;
import java.io.Serializable;
public class AcsPersonAddNewForm
implements Serializable {
private static final long serialVersionUID = -5310626681307061439L;
private String zoneId;
private Long startTime;
private Long endTime;
private AcsPersonPropertiesParam personProperties;
public String getZoneId() {
return this.zoneId;
}
public void setZoneId(String zoneId) {
this.zoneId = zoneId;
}
public Long getStartTime() {
return this.startTime;
}
public void setStartTime(Long startTime) {
this.startTime = startTime;
}
public Long getEndTime() {
return this.endTime;
}
public void setEndTime(Long endTime) {
this.endTime = endTime;
}
public AcsPersonPropertiesParam getPersonProperties() {
return this.personProperties;
}
public void setPersonProperties(AcsPersonPropertiesParam personProperties) {
this.personProperties = personProperties;
}
}
@@ -0,0 +1,118 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.elevator.person.form;
import java.io.Serializable;
import java.util.List;
public class AcsPersonAddVisitorForm
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 String getVisitorId() {
return this.visitorId;
}
public String getPersonId() {
return this.personId;
}
public Long getBegVisitorTime() {
return this.begVisitorTime;
}
public Long getEndVisitorTime() {
return this.endVisitorTime;
}
public List<String> getFloorIds() {
return this.floorIds;
}
public void setVisitorId(String visitorId) {
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 AcsPersonAddVisitorForm)) {
return false;
}
AcsPersonAddVisitorForm other = (AcsPersonAddVisitorForm)o;
if (!other.canEqual(this)) {
return false;
}
String this$visitorId = this.getVisitorId();
String other$visitorId = other.getVisitorId();
if (this$visitorId == null ? other$visitorId != null : !this$visitorId.equals(other$visitorId)) {
return false;
}
String this$personId = this.getPersonId();
String other$personId = other.getPersonId();
if (this$personId == null ? other$personId != null : !this$personId.equals(other$personId)) {
return false;
}
Long this$begVisitorTime = this.getBegVisitorTime();
Long other$begVisitorTime = other.getBegVisitorTime();
if (this$begVisitorTime == null ? other$begVisitorTime != null : !((Object)this$begVisitorTime).equals(other$begVisitorTime)) {
return false;
}
Long this$endVisitorTime = this.getEndVisitorTime();
Long other$endVisitorTime = other.getEndVisitorTime();
if (this$endVisitorTime == null ? other$endVisitorTime != null : !((Object)this$endVisitorTime).equals(other$endVisitorTime)) {
return false;
}
List<String> this$floorIds = this.getFloorIds();
List<String> other$floorIds = other.getFloorIds();
return !(this$floorIds == null ? other$floorIds != null : !((Object)this$floorIds).equals(other$floorIds));
}
protected boolean canEqual(Object other) {
return other instanceof AcsPersonAddVisitorForm;
}
public int hashCode() {
int PRIME = 59;
int result = 1;
String $visitorId = this.getVisitorId();
result = result * 59 + ($visitorId == null ? 43 : $visitorId.hashCode());
String $personId = this.getPersonId();
result = result * 59 + ($personId == null ? 43 : $personId.hashCode());
Long $begVisitorTime = this.getBegVisitorTime();
result = result * 59 + ($begVisitorTime == null ? 43 : ((Object)$begVisitorTime).hashCode());
Long $endVisitorTime = this.getEndVisitorTime();
result = result * 59 + ($endVisitorTime == null ? 43 : ((Object)$endVisitorTime).hashCode());
List<String> $floorIds = this.getFloorIds();
result = result * 59 + ($floorIds == null ? 43 : ((Object)$floorIds).hashCode());
return result;
}
public String toString() {
return "AcsPersonAddVisitorForm(visitorId=" + this.getVisitorId() + ", personId=" + this.getPersonId() + ", begVisitorTime=" + this.getBegVisitorTime() + ", endVisitorTime=" + this.getEndVisitorTime() + ", floorIds=" + this.getFloorIds() + ")";
}
}
@@ -0,0 +1,58 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.elevator.person.form;
import java.io.Serializable;
import java.util.List;
public class AcsPersonDeleteForm
implements Serializable {
private static final long serialVersionUID = 7916140658162290825L;
private String parentId;
private String zoneId;
private List<String> personIds;
private String imageStoreId;
private String personId;
public String getPersonId() {
return this.personId;
}
public void setPersonId(String personId) {
this.personId = personId;
}
public String getParentId() {
return this.parentId;
}
public void setParentId(String parentId) {
this.parentId = parentId;
}
public String getZoneId() {
return this.zoneId;
}
public void setZoneId(String zoneId) {
this.zoneId = zoneId;
}
public List<String> getPersonIds() {
return this.personIds;
}
public void setPersonIds(List<String> personIds) {
this.personIds = personIds;
}
public String getImageStoreId() {
return this.imageStoreId;
}
public void setImageStoreId(String imageStoreId) {
this.imageStoreId = imageStoreId;
}
}
@@ -0,0 +1,30 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.elevator.person.form;
import java.io.Serializable;
public class AcsPersonDetailForm
implements Serializable {
private static final long serialVersionUID = 1211300452037642058L;
private String zoneId;
private String personId;
public String getZoneId() {
return this.zoneId;
}
public void setZoneId(String zoneId) {
this.zoneId = zoneId;
}
public String getPersonId() {
return this.personId;
}
public void setPersonId(String personId) {
this.personId = personId;
}
}
@@ -0,0 +1,57 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.elevator.person.form;
import java.io.Serializable;
public class AcsPersonEditForm
implements Serializable {
private static final long serialVersionUID = 7916140658162290825L;
private String zoneId;
private String personId;
private Long startTime;
private Long endTime;
private String imageStoreId;
public String getZoneId() {
return this.zoneId;
}
public void setZoneId(String zoneId) {
this.zoneId = zoneId;
}
public Long getStartTime() {
return this.startTime;
}
public void setStartTime(Long startTime) {
this.startTime = startTime;
}
public Long getEndTime() {
return this.endTime;
}
public void setEndTime(Long endTime) {
this.endTime = endTime;
}
public String getPersonId() {
return this.personId;
}
public void setPersonId(String personId) {
this.personId = personId;
}
public String getImageStoreId() {
return this.imageStoreId;
}
public void setImageStoreId(String imageStoreId) {
this.imageStoreId = imageStoreId;
}
}
@@ -0,0 +1,30 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.elevator.person.form;
import java.io.Serializable;
public class AcsPersonFaceForm
implements Serializable {
private static final long serialVersionUID = 7916140658162290825L;
private String deviceId;
private String faceImage;
public String getDeviceId() {
return this.deviceId;
}
public void setDeviceId(String deviceId) {
this.deviceId = deviceId;
}
public String getFaceImage() {
return this.faceImage;
}
public void setFaceImage(String faceImage) {
this.faceImage = faceImage;
}
}
@@ -0,0 +1,150 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.elevator.person.form;
import java.io.Serializable;
import java.util.List;
public class AcsPersonQueryForm
implements Serializable {
private static final long serialVersionUID = -8830219133147503297L;
private String parentId;
private String zoneId;
private String personName;
private List<String> organizationIds;
private List<String> labelIds;
private Integer pageSize = 10;
private Integer pageNo = 1;
public String getParentId() {
return this.parentId;
}
public String getZoneId() {
return this.zoneId;
}
public String getPersonName() {
return this.personName;
}
public List<String> getOrganizationIds() {
return this.organizationIds;
}
public List<String> getLabelIds() {
return this.labelIds;
}
public Integer getPageSize() {
return this.pageSize;
}
public Integer getPageNo() {
return this.pageNo;
}
public void setParentId(String parentId) {
this.parentId = parentId;
}
public void setZoneId(String zoneId) {
this.zoneId = zoneId;
}
public void setPersonName(String personName) {
this.personName = personName;
}
public void setOrganizationIds(List<String> organizationIds) {
this.organizationIds = organizationIds;
}
public void setLabelIds(List<String> labelIds) {
this.labelIds = labelIds;
}
public void setPageSize(Integer pageSize) {
this.pageSize = pageSize;
}
public void setPageNo(Integer pageNo) {
this.pageNo = pageNo;
}
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (!(o instanceof AcsPersonQueryForm)) {
return false;
}
AcsPersonQueryForm other = (AcsPersonQueryForm)o;
if (!other.canEqual(this)) {
return false;
}
String this$parentId = this.getParentId();
String other$parentId = other.getParentId();
if (this$parentId == null ? other$parentId != null : !this$parentId.equals(other$parentId)) {
return false;
}
String this$zoneId = this.getZoneId();
String other$zoneId = other.getZoneId();
if (this$zoneId == null ? other$zoneId != null : !this$zoneId.equals(other$zoneId)) {
return false;
}
String this$personName = this.getPersonName();
String other$personName = other.getPersonName();
if (this$personName == null ? other$personName != null : !this$personName.equals(other$personName)) {
return false;
}
List<String> this$organizationIds = this.getOrganizationIds();
List<String> other$organizationIds = other.getOrganizationIds();
if (this$organizationIds == null ? other$organizationIds != null : !((Object)this$organizationIds).equals(other$organizationIds)) {
return false;
}
List<String> this$labelIds = this.getLabelIds();
List<String> other$labelIds = other.getLabelIds();
if (this$labelIds == null ? other$labelIds != null : !((Object)this$labelIds).equals(other$labelIds)) {
return false;
}
Integer this$pageSize = this.getPageSize();
Integer other$pageSize = other.getPageSize();
if (this$pageSize == null ? other$pageSize != null : !((Object)this$pageSize).equals(other$pageSize)) {
return false;
}
Integer this$pageNo = this.getPageNo();
Integer other$pageNo = other.getPageNo();
return !(this$pageNo == null ? other$pageNo != null : !((Object)this$pageNo).equals(other$pageNo));
}
protected boolean canEqual(Object other) {
return other instanceof AcsPersonQueryForm;
}
public int hashCode() {
int PRIME = 59;
int result = 1;
String $parentId = this.getParentId();
result = result * 59 + ($parentId == null ? 43 : $parentId.hashCode());
String $zoneId = this.getZoneId();
result = result * 59 + ($zoneId == null ? 43 : $zoneId.hashCode());
String $personName = this.getPersonName();
result = result * 59 + ($personName == null ? 43 : $personName.hashCode());
List<String> $organizationIds = this.getOrganizationIds();
result = result * 59 + ($organizationIds == null ? 43 : ((Object)$organizationIds).hashCode());
List<String> $labelIds = this.getLabelIds();
result = result * 59 + ($labelIds == null ? 43 : ((Object)$labelIds).hashCode());
Integer $pageSize = this.getPageSize();
result = result * 59 + ($pageSize == null ? 43 : ((Object)$pageSize).hashCode());
Integer $pageNo = this.getPageNo();
result = result * 59 + ($pageNo == null ? 43 : ((Object)$pageNo).hashCode());
return result;
}
public String toString() {
return "AcsPersonQueryForm(parentId=" + this.getParentId() + ", zoneId=" + this.getZoneId() + ", personName=" + this.getPersonName() + ", organizationIds=" + this.getOrganizationIds() + ", labelIds=" + this.getLabelIds() + ", pageSize=" + this.getPageSize() + ", pageNo=" + this.getPageNo() + ")";
}
}
@@ -0,0 +1,30 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.elevator.person.form;
import java.io.Serializable;
public class AcsPersonTimeDetailForm
implements Serializable {
private static final long serialVersionUID = -1135110893682603631L;
private String imageStoreId;
private String personId;
public String getImageStoreId() {
return this.imageStoreId;
}
public void setImageStoreId(String imageStoreId) {
this.imageStoreId = imageStoreId;
}
public String getPersonId() {
return this.personId;
}
public void setPersonId(String personId) {
this.personId = personId;
}
}
@@ -0,0 +1,106 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.cloud.page.CloudwalkBasePageForm
*/
package cn.cloudwalk.elevator.person.form;
import cn.cloudwalk.cloud.page.CloudwalkBasePageForm;
import java.io.Serializable;
public class PersonDetailQueryForm
extends CloudwalkBasePageForm
implements Serializable {
private static final long serialVersionUID = -8830219133147503297L;
private String parentId;
private String zoneId;
private String ruleId;
private String personName;
public String getParentId() {
return this.parentId;
}
public String getZoneId() {
return this.zoneId;
}
public String getRuleId() {
return this.ruleId;
}
public String getPersonName() {
return this.personName;
}
public void setParentId(String parentId) {
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 PersonDetailQueryForm)) {
return false;
}
PersonDetailQueryForm other = (PersonDetailQueryForm)o;
if (!other.canEqual(this)) {
return false;
}
String this$parentId = this.getParentId();
String other$parentId = other.getParentId();
if (this$parentId == null ? other$parentId != null : !this$parentId.equals(other$parentId)) {
return false;
}
String this$zoneId = this.getZoneId();
String other$zoneId = other.getZoneId();
if (this$zoneId == null ? other$zoneId != null : !this$zoneId.equals(other$zoneId)) {
return false;
}
String this$ruleId = this.getRuleId();
String other$ruleId = other.getRuleId();
if (this$ruleId == null ? other$ruleId != null : !this$ruleId.equals(other$ruleId)) {
return false;
}
String this$personName = this.getPersonName();
String other$personName = other.getPersonName();
return !(this$personName == null ? other$personName != null : !this$personName.equals(other$personName));
}
protected boolean canEqual(Object other) {
return other instanceof PersonDetailQueryForm;
}
public int hashCode() {
int PRIME = 59;
int result = 1;
String $parentId = this.getParentId();
result = result * 59 + ($parentId == null ? 43 : $parentId.hashCode());
String $zoneId = this.getZoneId();
result = result * 59 + ($zoneId == null ? 43 : $zoneId.hashCode());
String $ruleId = this.getRuleId();
result = result * 59 + ($ruleId == null ? 43 : $ruleId.hashCode());
String $personName = this.getPersonName();
result = result * 59 + ($personName == null ? 43 : $personName.hashCode());
return result;
}
public String toString() {
return "PersonDetailQueryForm(parentId=" + this.getParentId() + ", zoneId=" + this.getZoneId() + ", ruleId=" + this.getRuleId() + ", personName=" + this.getPersonName() + ")";
}
}
@@ -0,0 +1,140 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.client.cwoscomponent.intelligent.device.param.DeviceQueryParam
* cn.cloudwalk.client.cwoscomponent.intelligent.device.result.DeviceResult
* cn.cloudwalk.client.cwoscomponent.intelligent.device.service.DeviceService
* cn.cloudwalk.cloud.exception.ServiceException
* cn.cloudwalk.cloud.page.CloudwalkPageAble
* cn.cloudwalk.cloud.page.CloudwalkPageInfo
* cn.cloudwalk.cloud.result.CloudwalkResult
* cn.cloudwalk.cloud.utils.BeanCopyUtils
* cn.cloudwalk.elevator.record.param.AcsElevatorRecordAnalyseCountParam
* cn.cloudwalk.elevator.record.param.AcsElevatorRecordAnalyseCycleParam
* cn.cloudwalk.elevator.record.param.AcsElevatorRecordDetailParam
* cn.cloudwalk.elevator.record.result.AcsElevatorAnalyseCycleResult
* cn.cloudwalk.elevator.record.result.AcsElevatorPageRequestInfoResult
* cn.cloudwalk.elevator.record.result.AcsElevatorRecordResult
* cn.cloudwalk.elevator.record.service.AcsElevatorRecordService
* cn.cloudwalk.elevator.zone.param.ZoneNextTreeParam
* cn.cloudwalk.elevator.zone.result.ZoneTreeResult
* cn.cloudwalk.elevator.zone.service.ZoneService
* org.springframework.web.bind.annotation.PostMapping
* org.springframework.web.bind.annotation.RequestBody
* org.springframework.web.bind.annotation.RequestMapping
* org.springframework.web.bind.annotation.RestController
*/
package cn.cloudwalk.elevator.record.controller;
import cn.cloudwalk.client.cwoscomponent.intelligent.device.param.DeviceQueryParam;
import cn.cloudwalk.client.cwoscomponent.intelligent.device.result.DeviceResult;
import cn.cloudwalk.client.cwoscomponent.intelligent.device.service.DeviceService;
import cn.cloudwalk.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.AbstractCloudwalkController;
import cn.cloudwalk.elevator.record.form.AcsElevatorRecordAnalyseCountForm;
import cn.cloudwalk.elevator.record.form.AcsElevatorRecordAnalyseCycleForm;
import cn.cloudwalk.elevator.record.form.AcsElevatorRecordQueryForm;
import cn.cloudwalk.elevator.record.param.AcsElevatorRecordAnalyseCountParam;
import cn.cloudwalk.elevator.record.param.AcsElevatorRecordAnalyseCycleParam;
import cn.cloudwalk.elevator.record.param.AcsElevatorRecordDetailParam;
import cn.cloudwalk.elevator.record.result.AcsElevatorAnalyseCycleResult;
import cn.cloudwalk.elevator.record.result.AcsElevatorPageRequestInfoResult;
import cn.cloudwalk.elevator.record.result.AcsElevatorRecordResult;
import cn.cloudwalk.elevator.record.service.AcsElevatorRecordService;
import cn.cloudwalk.elevator.zone.param.ZoneNextTreeParam;
import cn.cloudwalk.elevator.zone.result.ZoneTreeResult;
import cn.cloudwalk.elevator.zone.service.ZoneService;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping(value={"/intelligent/acs/elevator/record"})
public class AcsElevatorRecordController
extends AbstractCloudwalkController {
@Resource
private AcsElevatorRecordService elevatorRecordService;
@Resource
private DeviceService deviceService;
@Resource
private ZoneService zoneService;
@PostMapping(value={"/page"})
public CloudwalkResult<CloudwalkPageAble<AcsElevatorRecordResult>> detail(@RequestBody AcsElevatorRecordQueryForm form) {
AcsElevatorRecordDetailParam param = (AcsElevatorRecordDetailParam)BeanCopyUtils.copyProperties((Object)form, AcsElevatorRecordDetailParam.class);
CloudwalkPageInfo pageInfo = new CloudwalkPageInfo(form.getCurrentPage(), form.getRowsOfPage());
try {
return this.elevatorRecordService.openRecord(param, pageInfo, this.getCloudwalkContext());
}
catch (ServiceException e) {
this.LOGGER.error("\u5f00\u95e8\u8bb0\u5f55\u8be6\u60c5\u67e5\u8be2\u5931\u8d25\uff0c\u539f\u56e0\uff1a", (Throwable)e);
return CloudwalkResult.fail((String)"76260305", (String)this.getMessage("76260305"));
}
}
@PostMapping(value={"/analyse/cycle"})
public CloudwalkResult<List<AcsElevatorAnalyseCycleResult>> analyseCycle(@RequestBody AcsElevatorRecordAnalyseCycleForm form) {
AcsElevatorRecordAnalyseCycleParam param = (AcsElevatorRecordAnalyseCycleParam)BeanCopyUtils.copyProperties((Object)form, AcsElevatorRecordAnalyseCycleParam.class);
try {
return this.elevatorRecordService.analyseCycle(param, this.getCloudwalkContext());
}
catch (ServiceException e) {
this.LOGGER.error("\u5f00\u95e8\u8bb0\u5f55\u7edf\u8ba1\u5206\u6790\u67e5\u8be2\u5931\u8d25\uff0c\u539f\u56e0\uff1a", (Throwable)e);
return CloudwalkResult.fail((String)"76260336", (String)this.getMessage("76260336"));
}
}
@PostMapping(value={"/analyse/count"})
public CloudwalkResult<Integer> analyseCount(@RequestBody AcsElevatorRecordAnalyseCountForm form) {
AcsElevatorRecordAnalyseCountParam param = (AcsElevatorRecordAnalyseCountParam)BeanCopyUtils.copyProperties((Object)form, AcsElevatorRecordAnalyseCountParam.class);
try {
return this.elevatorRecordService.analyseCount(param, this.getCloudwalkContext());
}
catch (ServiceException e) {
this.LOGGER.error("\u5f00\u95e8\u8bb0\u5f55\u7edf\u8ba1\u5206\u6790\u67e5\u8be2\u5931\u8d25\uff0c\u539f\u56e0\uff1a", (Throwable)e);
return CloudwalkResult.fail((String)"76260336", (String)this.getMessage("76260336"));
}
}
@PostMapping(value={"/page/request"})
public CloudwalkResult<AcsElevatorPageRequestInfoResult> pageInfo() {
try {
return this.elevatorRecordService.pageInfo(this.getCloudwalkContext());
}
catch (ServiceException e) {
this.LOGGER.error("\u5f00\u95e8\u8bb0\u5f55\u5206\u9875\u8bf7\u6c42\u6570\u636e\u67e5\u8be2\u5931\u8d25\uff0c\u539f\u56e0\uff1a", (Throwable)e);
return CloudwalkResult.fail((String)"76260335", (String)this.getMessage("76260335"));
}
}
@PostMapping(value={"/device/list"})
public CloudwalkResult<List<DeviceResult>> queryDeviceResult(@RequestBody DeviceQueryParam deviceQueryParam) {
try {
return this.deviceService.list(deviceQueryParam, this.getCloudwalkContext());
}
catch (Exception e) {
this.LOGGER.error("\u83b7\u53d6\u8bbe\u5907\u5217\u8868\u5931\u8d25\uff0c\u539f\u56e0\uff1a", (Throwable)e);
return CloudwalkResult.fail((String)"76260108", (String)this.getMessage("76260108"));
}
}
@PostMapping(value={"/zone/tree"})
public CloudwalkResult<List<ZoneTreeResult>> queryZoneTree(@RequestBody ZoneNextTreeParam zoneNextTreeParam) {
try {
return this.zoneService.tree(zoneNextTreeParam, this.getCloudwalkContext());
}
catch (Exception e) {
this.LOGGER.error("\u83b7\u53d6\u8bbe\u5907\u5217\u8868\u5931\u8d25\uff0c\u539f\u56e0\uff1a", (Throwable)e);
return CloudwalkResult.fail((String)"76260108", (String)this.getMessage("76260108"));
}
}
}
@@ -0,0 +1,38 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.elevator.record.form;
import java.io.Serializable;
public class AcsElevatorRecordAnalyseCountForm
implements Serializable {
private String businessId;
private Long startTime;
private Long endTime;
public String getBusinessId() {
return this.businessId;
}
public void setBusinessId(String businessId) {
this.businessId = businessId;
}
public Long getStartTime() {
return this.startTime;
}
public void setStartTime(Long startTime) {
this.startTime = startTime;
}
public Long getEndTime() {
return this.endTime;
}
public void setEndTime(Long endTime) {
this.endTime = endTime;
}
}
@@ -0,0 +1,29 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.elevator.record.form;
import java.io.Serializable;
public class AcsElevatorRecordAnalyseCycleForm
implements Serializable {
private String businessId;
private Integer timeType;
public String getBusinessId() {
return this.businessId;
}
public void setBusinessId(String businessId) {
this.businessId = businessId;
}
public Integer getTimeType() {
return this.timeType;
}
public void setTimeType(Integer timeType) {
this.timeType = timeType;
}
}
@@ -0,0 +1,147 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.cloud.page.CloudwalkBasePageForm
* javax.validation.constraints.NotNull
*/
package cn.cloudwalk.elevator.record.form;
import cn.cloudwalk.cloud.page.CloudwalkBasePageForm;
import java.io.Serializable;
import java.util.List;
import javax.validation.constraints.NotNull;
public class AcsElevatorRecordQueryForm
extends CloudwalkBasePageForm
implements Serializable {
@NotNull(message="76260302")
private Long startTime;
@NotNull(message="76260303")
private Long endTime;
private String personName;
private String personId;
private List<String> districtIds;
private List<String> areaIds;
private List<String> deviceIds;
private String openDoorTypeCode;
private Integer recordResult;
private String srcFloor;
private String destFloor;
private String dispatchElevatorNo;
private String personCode;
private String orgId;
public String getPersonCode() {
return this.personCode;
}
public void setPersonCode(String personCode) {
this.personCode = personCode;
}
public String getOrgId() {
return this.orgId;
}
public void setOrgId(String orgId) {
this.orgId = orgId;
}
public Long getStartTime() {
return this.startTime;
}
public void setStartTime(Long startTime) {
this.startTime = startTime;
}
public Long getEndTime() {
return this.endTime;
}
public void setEndTime(Long endTime) {
this.endTime = endTime;
}
public String getPersonName() {
return this.personName;
}
public void setPersonName(String personName) {
this.personName = personName;
}
public List<String> getDistrictIds() {
return this.districtIds;
}
public void setDistrictIds(List<String> districtIds) {
this.districtIds = districtIds;
}
public List<String> getAreaIds() {
return this.areaIds;
}
public void setAreaIds(List<String> areaIds) {
this.areaIds = areaIds;
}
public List<String> getDeviceIds() {
return this.deviceIds;
}
public void setDeviceIds(List<String> deviceIds) {
this.deviceIds = deviceIds;
}
public String getOpenDoorTypeCode() {
return this.openDoorTypeCode;
}
public void setOpenDoorTypeCode(String openDoorTypeCode) {
this.openDoorTypeCode = openDoorTypeCode;
}
public Integer getRecordResult() {
return this.recordResult;
}
public void setRecordResult(Integer recordResult) {
this.recordResult = recordResult;
}
public String getSrcFloor() {
return this.srcFloor;
}
public void setSrcFloor(String srcFloor) {
this.srcFloor = srcFloor;
}
public String getDestFloor() {
return this.destFloor;
}
public void setDestFloor(String destFloor) {
this.destFloor = destFloor;
}
public String getDispatchElevatorNo() {
return this.dispatchElevatorNo;
}
public void setDispatchElevatorNo(String dispatchElevatorNo) {
this.dispatchElevatorNo = dispatchElevatorNo;
}
public String getPersonId() {
return this.personId;
}
public void setPersonId(String personId) {
this.personId = personId;
}
}
@@ -0,0 +1,2 @@
Summary for /media/zebra/9e8fa357-7db6-4d70-88ed-d5de5a059a663/星河湾星中星/反编译/artifacts/decompiled/v1-cfr-compare-20211103/extracted-fat/lib/cw-elevator-application-web-1.0-SNAPSHOT.jar
Decompiled with CFR 0.152