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,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,524 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.client.cwoscomponent.intelligent.application.param.ApplicationImageStoreQueryParam
* cn.cloudwalk.client.cwoscomponent.intelligent.biology.service.BiologyToolService
* cn.cloudwalk.client.cwoscomponent.intelligent.device.param.DeviceImageStoreQueryParam
* cn.cloudwalk.client.cwoscomponent.intelligent.device.result.DeviceApplicationResult
* cn.cloudwalk.client.cwoscomponent.intelligent.device.result.DeviceImageStoreResult
* cn.cloudwalk.client.cwoscomponent.intelligent.device.service.DeviceApplicationService
* cn.cloudwalk.client.cwoscomponent.intelligent.device.service.DeviceImageStoreService
* cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.param.ImageStorePersonBindParam
* cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.param.ImageStorePersonDelParam
* cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.param.ImageStorePersonQueryParam
* cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.param.ImageStoreQueryParam
* cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.result.ImageStoreListResult
* cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.result.ImageStorePersonResult
* cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.result.ImgStoreBatchBindPersonResult
* cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.service.ImageStorePersonService
* cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.service.ImageStoreService
* cn.cloudwalk.client.cwoscomponent.intelligent.person.param.PersonAddParam
* cn.cloudwalk.client.cwoscomponent.intelligent.person.param.PersonQueryParam
* cn.cloudwalk.client.cwoscomponent.intelligent.person.result.PersonResult
* cn.cloudwalk.client.cwoscomponent.intelligent.person.service.PersonService
* cn.cloudwalk.cloud.annotation.CloudwalkParamsValidate
* cn.cloudwalk.cloud.context.CloudwalkCallContext
* cn.cloudwalk.cloud.entity.CloudwalkBaseIdentify
* cn.cloudwalk.cloud.exception.DataAccessException
* 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.em.AcsPassTypeEnum
* cn.cloudwalk.elevator.passrule.dao.AcsPassRuleDao
* cn.cloudwalk.elevator.passrule.dto.AcsPassRuleQueryDto
* cn.cloudwalk.elevator.passrule.dto.AcsPassRuleResultDto
* cn.cloudwalk.elevator.util.CollectionUtils
* cn.cloudwalk.elevator.util.DateUtils
* cn.cloudwalk.elevator.util.StringUtils
* com.alibaba.fastjson.JSONObject
* org.springframework.beans.factory.annotation.Autowired
* org.springframework.stereotype.Service
*/
package cn.cloudwalk.elevator.person.impl;
import cn.cloudwalk.client.cwoscomponent.intelligent.application.param.ApplicationImageStoreQueryParam;
import cn.cloudwalk.client.cwoscomponent.intelligent.biology.service.BiologyToolService;
import cn.cloudwalk.client.cwoscomponent.intelligent.device.param.DeviceImageStoreQueryParam;
import cn.cloudwalk.client.cwoscomponent.intelligent.device.result.DeviceApplicationResult;
import cn.cloudwalk.client.cwoscomponent.intelligent.device.result.DeviceImageStoreResult;
import cn.cloudwalk.client.cwoscomponent.intelligent.device.service.DeviceApplicationService;
import cn.cloudwalk.client.cwoscomponent.intelligent.device.service.DeviceImageStoreService;
import cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.param.ImageStorePersonBindParam;
import cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.param.ImageStorePersonDelParam;
import cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.param.ImageStorePersonQueryParam;
import cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.param.ImageStoreQueryParam;
import cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.result.ImageStoreListResult;
import cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.result.ImageStorePersonResult;
import cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.result.ImgStoreBatchBindPersonResult;
import cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.service.ImageStorePersonService;
import cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.service.ImageStoreService;
import cn.cloudwalk.client.cwoscomponent.intelligent.person.param.PersonAddParam;
import cn.cloudwalk.client.cwoscomponent.intelligent.person.param.PersonQueryParam;
import cn.cloudwalk.client.cwoscomponent.intelligent.person.result.PersonResult;
import cn.cloudwalk.client.cwoscomponent.intelligent.person.service.PersonService;
import cn.cloudwalk.cloud.annotation.CloudwalkParamsValidate;
import cn.cloudwalk.cloud.context.CloudwalkCallContext;
import cn.cloudwalk.cloud.entity.CloudwalkBaseIdentify;
import cn.cloudwalk.cloud.exception.DataAccessException;
import cn.cloudwalk.cloud.exception.ServiceException;
import cn.cloudwalk.cloud.page.CloudwalkPageAble;
import cn.cloudwalk.cloud.page.CloudwalkPageInfo;
import cn.cloudwalk.cloud.result.CloudwalkResult;
import cn.cloudwalk.cloud.utils.BeanCopyUtils;
import cn.cloudwalk.elevator.em.AcsPassTypeEnum;
import cn.cloudwalk.elevator.passrule.dao.AcsPassRuleDao;
import cn.cloudwalk.elevator.passrule.dto.AcsPassRuleQueryDto;
import cn.cloudwalk.elevator.passrule.dto.AcsPassRuleResultDto;
import cn.cloudwalk.elevator.passrule.impl.AbstractAcsPassService;
import cn.cloudwalk.elevator.passrule.param.AcsPassRuleIsDefaultParam;
import cn.cloudwalk.elevator.passrule.param.AcsPassRuleQueryParam;
import cn.cloudwalk.elevator.passrule.param.AcsPassTimeCycleParam;
import cn.cloudwalk.elevator.passrule.result.AcsPassRuleResult;
import cn.cloudwalk.elevator.passrule.service.AcsPassRuleService;
import cn.cloudwalk.elevator.person.param.AcsPersonAddNewParam;
import cn.cloudwalk.elevator.person.param.AcsPersonAddParam;
import cn.cloudwalk.elevator.person.param.AcsPersonDeleteParam;
import cn.cloudwalk.elevator.person.param.AcsPersonEditParam;
import cn.cloudwalk.elevator.person.param.AcsPersonQueryByAppParam;
import cn.cloudwalk.elevator.person.param.AcsPersonQueryParam;
import cn.cloudwalk.elevator.person.param.AcsPersonTimeDetailParam;
import cn.cloudwalk.elevator.person.result.AcsPersonResult;
import cn.cloudwalk.elevator.person.result.AcsPersonTimeDetailResult;
import cn.cloudwalk.elevator.person.service.AcsPersonService;
import cn.cloudwalk.elevator.util.CollectionUtils;
import cn.cloudwalk.elevator.util.DateUtils;
import cn.cloudwalk.elevator.util.StringUtils;
import com.alibaba.fastjson.JSONObject;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.Date;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import javax.annotation.Resource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class AcsPersonServiceImpl
extends AbstractAcsPassService
implements AcsPersonService {
private static final int ROWS_OF_PAGE = 1000;
@Autowired
private BiologyToolService biologyToolService;
@Autowired
private DeviceImageStoreService deviceImageStoreService;
@Autowired
private ImageStorePersonService imageStorePersonService;
@Autowired
private DeviceApplicationService deviceApplicationService;
@Autowired
private PersonService personService;
@Autowired
private ImageStoreService imageStoreService;
@Resource
private AcsPassRuleService acsPassRuleService;
@Resource
private AcsPassRuleDao acsPassRuleDao;
@Override
@CloudwalkParamsValidate
public CloudwalkResult<Boolean> add(AcsPersonAddParam param, CloudwalkCallContext context) throws ServiceException {
this.logger.info("\u4ece\u73b0\u6709\u4eba\u5458\u6dfb\u52a0\u901a\u884c\u4eba\u5458\u5f00\u59cb\uff0cAcsPersonAddParam=[{}], CloudwalkCallContext=[{}]", (Object)JSONObject.toJSONString((Object)param), (Object)JSONObject.toJSONString((Object)context));
String acsImageStoreId = this.getAcsImageStore(param.getZoneId(), context);
ImageStorePersonBindParam imageStorePersonBindParam = new ImageStorePersonBindParam();
imageStorePersonBindParam.setImageStoreId(acsImageStoreId);
imageStorePersonBindParam.setPersonIds(param.getPersonIds());
imageStorePersonBindParam.setNullDateIsLongTerm(Boolean.valueOf(true));
imageStorePersonBindParam.setExpiryBeginDate(param.getStartTime());
imageStorePersonBindParam.setExpiryEndDate(param.getEndTime());
this.logger.info("\u8fdc\u7a0b\u8c03\u7528\u7ed1\u5b9a\u4eba\u5458\u56fe\u5e93\u5f00\u59cb\uff0cimageStorePersonBindParam=[{}], CloudwalkCallContext=[{}]", (Object)JSONObject.toJSONString((Object)imageStorePersonBindParam), (Object)JSONObject.toJSONString((Object)context));
CloudwalkResult bindResult = this.imageStorePersonService.batchBind(imageStorePersonBindParam, context);
if (!bindResult.isSuccess()) {
this.logger.error("\u8fdc\u7a0b\u8c03\u7528\u7ed1\u5b9a\u4eba\u5458\u56fe\u5e93\u5f02\u5e38\uff0c\u539f\u56e0\uff1a[{}],\u5931\u8d25\u4eba\u5458id:[{}]", (Object)bindResult.getMessage(), (Object)((ImgStoreBatchBindPersonResult)bindResult.getData()).getFailPersonIds());
return CloudwalkResult.fail((String)bindResult.getCode(), (String)bindResult.getMessage());
}
return CloudwalkResult.success((Object)true);
}
private void bindImageStorePerson(String acsImageStoreId, String personId, Long startTime, Long endTime, CloudwalkCallContext context) throws ServiceException {
ImageStorePersonBindParam imageStorePersonBindParam = new ImageStorePersonBindParam();
imageStorePersonBindParam.setImageStoreId(acsImageStoreId);
imageStorePersonBindParam.setNullDateIsLongTerm(Boolean.valueOf(true));
imageStorePersonBindParam.setPersonId(personId);
imageStorePersonBindParam.setExpiryBeginDate(startTime);
imageStorePersonBindParam.setExpiryEndDate(endTime);
this.logger.info("\u56fe\u5e93\u4eba\u5458\u5173\u7cfb\u7ed1\u5b9a\u5f00\u59cb\uff0cimageStorePersonBindParam:[{}],context:[{}]", (Object)JSONObject.toJSONString((Object)imageStorePersonBindParam), (Object)JSONObject.toJSONString((Object)context));
CloudwalkResult bindResult = this.imageStorePersonService.bind(imageStorePersonBindParam, context);
if (!bindResult.isSuccess()) {
this.logger.error("\u56fe\u5e93\u4eba\u5458\u5173\u7cfb\u7ed1\u5b9a\u5931\u8d25,imageStoreId=[{}],personId=[{}],\u539f\u56e0\uff1a[{}]", new Object[]{acsImageStoreId, personId, bindResult.getMessage()});
throw new ServiceException(bindResult.getCode(), bindResult.getMessage());
}
}
private String addPerson(AcsPersonAddNewParam param, CloudwalkCallContext context) throws ServiceException {
PersonAddParam personAddParam = new PersonAddParam();
BeanCopyUtils.copyProperties((Object)param.getPersonProperties(), (Object)personAddParam);
CloudwalkResult addPersonResult = this.personService.add(personAddParam, context);
if (!addPersonResult.isSuccess()) {
this.logger.info("\u65b0\u589e\u4eba\u5458\u5931\u8d25\uff0c\u539f\u56e0\uff1a[{}]", (Object)addPersonResult.getMessage());
throw new ServiceException(addPersonResult.getCode(), addPersonResult.getMessage());
}
return (String)addPersonResult.getData();
}
@Override
@CloudwalkParamsValidate
public CloudwalkResult<Boolean> edit(AcsPersonEditParam param, CloudwalkCallContext context) throws ServiceException {
this.logger.info("\u7f16\u8f91\u901a\u884c\u4eba\u5458\u5f00\u59cb\uff0cAcsPersonEditParam=[{}], CloudwalkCallContext=[{}]", (Object)JSONObject.toJSONString((Object)param), (Object)JSONObject.toJSONString((Object)context));
this.checkPersonIdByImageStore(param.getPersonId(), param.getImageStoreId(), context);
ImageStorePersonDelParam delParam = new ImageStorePersonDelParam();
delParam.setImageStoreId(param.getImageStoreId());
delParam.setPersonId(param.getPersonId());
this.logger.info("\u8fdc\u7a0b\u8c03\u7528\u89e3\u7ed1\u56fe\u5e93\u4eba\u5458\u5f00\u59cb\uff0cImageStorePersonDelParam=[{}], CloudwalkCallContext=[{}]", (Object)JSONObject.toJSONString((Object)delParam), (Object)JSONObject.toJSONString((Object)context));
CloudwalkResult deleteResult = this.imageStorePersonService.delete(delParam, context);
if (!deleteResult.isSuccess()) {
this.logger.error("\u56fe\u5e93\u4eba\u5458\u66f4\u65b0\u4e4b\u524d\u5148\u89e3\u7ed1\u5931\u8d25\uff0c\u539f\u56e0\uff1a[{}]", (Object)deleteResult.getMessage());
return CloudwalkResult.fail((String)"76260406", (String)(this.getMessage("76260406") + " " + deleteResult.getMessage()));
}
this.bindImageStorePerson(param.getImageStoreId(), param.getPersonId(), param.getStartTime(), param.getEndTime(), context);
return CloudwalkResult.success((Object)true);
}
@Override
@CloudwalkParamsValidate
public CloudwalkResult<Boolean> delete(AcsPersonDeleteParam param, CloudwalkCallContext context) throws ServiceException {
this.logger.info("\u5220\u9664\u95e8\u7981\u901a\u884c\u4eba\u5458\u5f00\u59cb\uff0cAcsPersonDeleteParam=[{}], CloudwalkCallContext=[{}]", (Object)JSONObject.toJSONString((Object)param), (Object)JSONObject.toJSONString((Object)context));
for (String personId : param.getPersonIds()) {
ImageStorePersonDelParam imageStorePersonDelParam = new ImageStorePersonDelParam();
imageStorePersonDelParam.setPersonId(personId);
imageStorePersonDelParam.setImageStoreId(param.getImageStoreId());
CloudwalkResult imageStorePersonDeleteResult = this.imageStorePersonService.delete(imageStorePersonDelParam, context);
if (imageStorePersonDeleteResult.isSuccess()) continue;
return CloudwalkResult.fail((String)"76260407", (String)(this.getMessage("76260407") + " " + imageStorePersonDeleteResult.getMessage()));
}
return CloudwalkResult.success((Object)true);
}
private List<DeviceApplicationResult> sortedDeviceAppList(CloudwalkResult<List<DeviceApplicationResult>> deviceAppResult) {
List deviceAppList = (List)deviceAppResult.getData();
ArrayList<DeviceApplicationResult> sortedDeviceAppList = new ArrayList<DeviceApplicationResult>();
List acsAppList = deviceAppList.stream().filter(s -> "elevator-app".equals(s.getServiceCode())).collect(Collectors.toList());
List otherAppList = deviceAppList.stream().filter(s -> !"elevator-app".equals(s.getServiceCode())).collect(Collectors.toList());
sortedDeviceAppList.addAll(acsAppList);
sortedDeviceAppList.addAll(otherAppList);
return sortedDeviceAppList;
}
@Override
@CloudwalkParamsValidate
public CloudwalkResult<CloudwalkPageAble<AcsPersonResult>> page(AcsPersonQueryParam param, CloudwalkPageInfo pageInfo, CloudwalkCallContext context) throws ServiceException {
this.logger.info("\u5206\u9875\u67e5\u8be2\u901a\u884c\u4eba\u5458\u5f00\u59cb\uff0cAcsPersonQueryParam=[{}], CloudwalkPageInfo=[{}], CloudwalkCallContext=[{}]", new Object[]{JSONObject.toJSONString((Object)param), JSONObject.toJSONString((Object)pageInfo), JSONObject.toJSONString((Object)context)});
ArrayList<AcsPersonResult> result = new ArrayList<AcsPersonResult>();
List<String> personIds = null;
List<AcsPassRuleResult> ruleResults = this.getRuleListByZoneId(param.getZoneId(), context);
if (CollectionUtils.isEmpty(ruleResults)) {
return CloudwalkResult.success((Object)new CloudwalkPageAble(result, pageInfo, 0L));
}
List<String> imageStoreIds = ruleResults.stream().map(AcsPassRuleResult::getImageStoreId).collect(Collectors.toList());
if (StringUtils.isNotBlank((String)param.getImageStoreId()) && !imageStoreIds.contains(param.getImageStoreId())) {
return CloudwalkResult.success((Object)new CloudwalkPageAble(result, pageInfo, 0L));
}
Map<String, AcsPassRuleResult> ruleMap = ruleResults.stream().collect(Collectors.toMap(AcsPassRuleResult::getImageStoreId, r -> r));
if (!StringUtils.isEmpty((String)param.getPersonName()) && CollectionUtils.isEmpty(personIds = this.getPersonIdsByName(param.getPersonName(), context))) {
return CloudwalkResult.success((Object)new CloudwalkPageAble(result, pageInfo, 0L));
}
CloudwalkPageAble<ImageStorePersonResult> pageResult = this.getImageStorePerson(param, pageInfo, context, personIds, imageStoreIds);
if (!CollectionUtils.isEmpty((Collection)pageResult.getDatas())) {
this.covertPageResult(result, pageResult.getDatas(), ruleMap, context);
}
return CloudwalkResult.success((Object)new CloudwalkPageAble(result, pageInfo, pageResult.getTotalRows()));
}
private List<ImageStoreListResult> getImageStoreIdsByAppAndDevice(String applicationId, String deviceId, CloudwalkCallContext context) throws ServiceException {
ApplicationImageStoreQueryParam queryParam = new ApplicationImageStoreQueryParam();
queryParam.setApplicationId(applicationId);
List<DeviceImageStoreResult> deviceImageStore = this.getDeviceImageStore(deviceId, context);
if (deviceImageStore.isEmpty()) {
return new ArrayList<ImageStoreListResult>();
}
List imageStoreIdByDevice = deviceImageStore.stream().map(DeviceImageStoreResult::getImageStoreId).collect(Collectors.toList());
ImageStoreQueryParam imageStoreQueryParam = new ImageStoreQueryParam();
imageStoreQueryParam.setBusinessId(context.getCompany().getCompanyId());
imageStoreQueryParam.setApplicationId(applicationId);
imageStoreQueryParam.setIds(imageStoreIdByDevice);
CloudwalkResult imageStoreResult = this.imageStoreService.list(imageStoreQueryParam, context);
return (List)imageStoreResult.getData();
}
private CloudwalkPageAble<ImageStorePersonResult> getImageStorePerson(AcsPersonQueryParam param, CloudwalkPageInfo pageInfo, CloudwalkCallContext context, List<String> personIds, List<String> imageStoreIds) throws ServiceException {
CloudwalkPageAble results = new CloudwalkPageAble();
ImageStorePersonQueryParam imageStorePersonQueryParam = new ImageStorePersonQueryParam();
imageStorePersonQueryParam.setImageStoreId(param.getImageStoreId());
if (StringUtils.isEmpty((String)param.getImageStoreId())) {
imageStorePersonQueryParam.setImageStoreIds(imageStoreIds);
}
imageStorePersonQueryParam.setPersonIds(personIds);
imageStorePersonQueryParam.setOrganizationIds(param.getOrganizationIds());
imageStorePersonQueryParam.setLabelIds(param.getLabelIds());
imageStorePersonQueryParam.setCurrentPage(pageInfo.getCurrentPage());
imageStorePersonQueryParam.setRowsOfPage(pageInfo.getPageSize());
CloudwalkResult pageResult = this.imageStorePersonService.page(imageStorePersonQueryParam, context);
if (!pageResult.isSuccess()) {
this.logger.error("\u8fdc\u7a0b\u8c03\u7528\u67e5\u8be2\u56fe\u5e93\u4eba\u5458\u5931\u8d25\uff0c\u539f\u56e0\uff1a[{}]", (Object)pageResult.getMessage());
throw new ServiceException(pageResult.getCode(), pageResult.getMessage());
}
if (!CollectionUtils.isEmpty((Collection)((CloudwalkPageAble)pageResult.getData()).getDatas())) {
results = (CloudwalkPageAble)pageResult.getData();
}
return results;
}
@Override
public CloudwalkResult<AcsPersonTimeDetailResult> timeDetail(AcsPersonTimeDetailParam param, CloudwalkCallContext context) throws ServiceException {
this.logger.info("\u67e5\u8be2\u901a\u884c\u4eba\u5458\u65f6\u95f4\u8be6\u60c5\u5f00\u59cb\uff0cAcsPersonTimeDetailParam=[{}], CloudwalkCallContext=[{}]", (Object)JSONObject.toJSONString((Object)param), (Object)JSONObject.toJSONString((Object)context));
AcsPersonTimeDetailResult result = new AcsPersonTimeDetailResult();
ImageStorePersonResult imageStorePersonResult = this.getImageStorePersonResult(param, context);
AcsPassRuleResult rule = this.getRuleByImageStore(param.getImageStoreId(), context);
result.setBeginDate(imageStorePersonResult.getExpiryBeginDate());
result.setEndDate(imageStorePersonResult.getExpiryEndDate());
result.setPassType(AcsPassTypeEnum.LONG_TIME.getCode());
if (imageStorePersonResult.getExpiryBeginDate() != null || imageStorePersonResult.getExpiryEndDate() != null) {
result.setPassType(AcsPassTypeEnum.AUTO_PASS.getCode());
}
if (!CollectionUtils.isEmpty((Collection)imageStorePersonResult.getValidDateCron())) {
BeanCopyUtils.copyProperties((Object)rule, (Object)result);
result.setPassableTimeName(rule.getPassableTimeName());
List timeCycleParams = JSONObject.parseArray((String)rule.getValidDateJson(), AcsPassTimeCycleParam.class);
result.setPassableCycle(timeCycleParams);
result.setPassType(AcsPassTypeEnum.PASS_TIME.getCode());
}
ImageStorePersonQueryParam imageStorePersonQueryParam = new ImageStorePersonQueryParam();
imageStorePersonQueryParam.setPersonId(param.getPersonId());
imageStorePersonQueryParam.setRowsOfPage(1000);
CloudwalkResult imageStorePersonPageResult = this.imageStorePersonService.page(imageStorePersonQueryParam, context);
ImageStorePersonResult imageStoreResult = (ImageStorePersonResult)((CloudwalkPageAble)imageStorePersonPageResult.getData()).getDatas().iterator().next();
result.setComparePicture(imageStoreResult.getComparePicture());
result.setPersonName(imageStoreResult.getName());
result.setPersonId(imageStoreResult.getPersonId());
return CloudwalkResult.success((Object)result);
}
private AcsPassRuleResult getRuleByImageStore(String imageStoreId, CloudwalkCallContext context) throws ServiceException {
AcsPassRuleQueryParam ruleQueryParam = new AcsPassRuleQueryParam();
ruleQueryParam.setImageStoreId(imageStoreId);
CloudwalkResult<List<AcsPassRuleResult>> results = this.acsPassRuleService.list(ruleQueryParam, context);
return (AcsPassRuleResult)((List)results.getData()).get(0);
}
private ImageStorePersonResult getImageStorePersonResult(AcsPersonTimeDetailParam param, CloudwalkCallContext context) throws ServiceException {
ImageStorePersonQueryParam imageStorePersonQueryParam = new ImageStorePersonQueryParam();
imageStorePersonQueryParam.setImageStoreId(param.getImageStoreId());
imageStorePersonQueryParam.setPersonId(param.getPersonId());
CloudwalkResult pageResult = this.imageStorePersonService.page(imageStorePersonQueryParam, context);
if (!pageResult.isSuccess() || CollectionUtils.isEmpty((Collection)((CloudwalkPageAble)pageResult.getData()).getDatas())) {
this.logger.error("\u8fdc\u7a0b\u8c03\u7528\u67e5\u8be2\u901a\u884c\u4eba\u5458\u5931\u8d25\uff0c\u539f\u56e0\uff1a" + pageResult.getMessage());
throw new ServiceException("\u8fdc\u7a0b\u8c03\u7528\u67e5\u8be2\u901a\u884c\u4eba\u5458\u5931\u8d25");
}
List list = (List)((CloudwalkPageAble)pageResult.getData()).getDatas();
return (ImageStorePersonResult)list.get(0);
}
private List<String> mergeTime(List<ImageStorePersonResult> imageStorePersonList) {
ArrayList<String> passIntervals = new ArrayList<String>();
List personLongTerm = imageStorePersonList.stream().filter(s -> s.getExpiryBeginDate() == null && s.getExpiryEndDate() == null).collect(Collectors.toList());
if (CollectionUtils.isNotEmpty(personLongTerm)) {
passIntervals.add("\u957f\u671f");
} else {
Collections.sort(imageStorePersonList, (t1, t2) -> t1.getExpiryBeginDate().compareTo(t2.getExpiryEndDate()));
for (int i = 0; i < imageStorePersonList.size() - 1; ++i) {
int j = i + 1;
if (imageStorePersonList.get(i).getExpiryEndDate() < imageStorePersonList.get(j).getExpiryBeginDate()) continue;
if (imageStorePersonList.get(i).getExpiryEndDate() >= imageStorePersonList.get(j).getExpiryEndDate()) {
imageStorePersonList.set(j, imageStorePersonList.get(i));
} else {
imageStorePersonList.get(j).setExpiryBeginDate(imageStorePersonList.get(i).getExpiryBeginDate());
}
imageStorePersonList.set(i, null);
}
List personTimeMergeList = imageStorePersonList.stream().filter(s -> s != null).collect(Collectors.toList());
for (ImageStorePersonResult personTimeMerge : personTimeMergeList) {
String beginDate = DateUtils.parseDate((Date)new Date(personTimeMerge.getExpiryBeginDate()), (String)"yyyy-MM-dd HH:mm:ss");
String endDate = DateUtils.parseDate((Date)new Date(personTimeMerge.getExpiryEndDate()), (String)"yyyy-MM-dd HH:mm:ss");
passIntervals.add(beginDate + " \u81f3 " + endDate);
}
}
return passIntervals;
}
private void covertPageResult(List<AcsPersonResult> result, Collection<ImageStorePersonResult> datas, Map<String, AcsPassRuleResult> ruleMap, CloudwalkCallContext context) throws ServiceException {
List<String> personIds = datas.stream().map(ImageStorePersonResult::getPersonId).collect(Collectors.toList());
Map<String, PersonResult> personIcCardMap = this.getPersonIcCardByIds(personIds, context);
for (ImageStorePersonResult data : datas) {
AcsPassRuleResult rule = null;
AcsPersonResult acsPersonResult = new AcsPersonResult();
if (ruleMap != null && ruleMap.get(data.getImageStoreId()) != null) {
rule = ruleMap.get(data.getImageStoreId());
acsPersonResult.setRuleName(rule.getRuleName());
acsPersonResult.setRuleId(rule.getId());
}
BeanCopyUtils.copyProperties((Object)data, (Object)acsPersonResult);
acsPersonResult.setPersonName(data.getName());
acsPersonResult.setStartTime(data.getExpiryBeginDate());
acsPersonResult.setEndTime(data.getExpiryEndDate());
acsPersonResult.setPassType(AcsPassTypeEnum.LONG_TIME.getCode());
if (data.getExpiryBeginDate() != null || data.getExpiryEndDate() != null) {
acsPersonResult.setPassType(AcsPassTypeEnum.AUTO_PASS.getCode());
}
if (personIcCardMap != null && personIcCardMap.get(data.getPersonId()) != null) {
acsPersonResult.setIcCardNo(personIcCardMap.get(data.getPersonId()).getIcCardNo());
}
result.add(acsPersonResult);
}
}
private Map<String, PersonResult> getPersonIcCardByIds(List<String> personIds, CloudwalkCallContext context) throws ServiceException {
Map<String, PersonResult> personIcCardMap = null;
PersonQueryParam param = new PersonQueryParam();
param.setIds(personIds);
CloudwalkResult personResult = this.personService.list(param, context);
List personList = (List)personResult.getData();
if (personResult.isSuccess() && CollectionUtils.isNotEmpty((Collection)personList)) {
personIcCardMap = personList.stream().collect(Collectors.toMap(CloudwalkBaseIdentify::getId, PersonResult2 -> PersonResult2));
}
return personIcCardMap;
}
private List<String> getPersonIdsByName(String personName, CloudwalkCallContext context) throws ServiceException {
List<String> personIdsByName = new ArrayList<String>();
if (StringUtils.isNotBlank((String)personName)) {
PersonQueryParam personQueryParam = new PersonQueryParam();
personQueryParam.setName(personName);
CloudwalkResult personResult = this.personService.list(personQueryParam, context);
List personList = (List)personResult.getData();
if (personResult.isSuccess() && CollectionUtils.isNotEmpty((Collection)personList)) {
personIdsByName = personList.stream().map(CloudwalkBaseIdentify::getId).collect(Collectors.toList());
}
}
return personIdsByName;
}
private List<AcsPassRuleResult> getRuleListByZoneId(String zoneId, CloudwalkCallContext context) throws ServiceException {
AcsPassRuleQueryParam param = new AcsPassRuleQueryParam();
param.setZoneId(zoneId);
CloudwalkResult<List<AcsPassRuleResult>> ruleResult = this.acsPassRuleService.list(param, context);
if (!ruleResult.isSuccess()) {
this.logger.error("\u67e5\u8be2\u901a\u884c\u89c4\u5219\u5931\u8d25,\u539f\u56e0:[{}]", (Object)ruleResult.getMessage());
throw new ServiceException("76260508", ruleResult.getMessage());
}
return (List)ruleResult.getData();
}
private String getAcsImageStore(String zoneId, CloudwalkCallContext context) throws ServiceException {
AcsPassRuleIsDefaultParam param = new AcsPassRuleIsDefaultParam();
param.setZoneId(zoneId);
CloudwalkResult<String> imageStore = this.acsPassRuleService.getIsDefaultByZoneId(param, context);
if (imageStore.isSuccess()) {
if (imageStore.getData() != null) {
return (String)imageStore.getData();
}
throw new ServiceException("\u9ed8\u8ba4\u89c4\u5219\u7ed1\u5b9a\u7684\u56fe\u5e93\u4e0d\u5b58\u5728");
}
throw new ServiceException(imageStore.getCode(), imageStore.getMessage());
}
private void checkPersonIdByImageStore(String personId, String acsImageStoreId, CloudwalkCallContext context) throws ServiceException {
ImageStorePersonQueryParam imageStorePersonQueryParam = new ImageStorePersonQueryParam();
imageStorePersonQueryParam.setPersonId(personId);
imageStorePersonQueryParam.setImageStoreId(acsImageStoreId);
CloudwalkResult imageStorePersonResult = this.imageStorePersonService.page(imageStorePersonQueryParam, context);
if (imageStorePersonResult.isSuccess()) {
if (imageStorePersonResult.getData() == null || CollectionUtils.isEmpty((Collection)((CloudwalkPageAble)imageStorePersonResult.getData()).getDatas())) {
throw new ServiceException("\u8be5\u4eba\u5458\u672a\u7ed1\u5b9a\u95e8\u7981\u56fe\u5e93\uff0c\u4eba\u5458id\u4e3a:" + personId);
}
} else {
throw new ServiceException(imageStorePersonResult.getCode(), imageStorePersonResult.getMessage());
}
}
private List<DeviceImageStoreResult> getDeviceImageStore(String deviceId, CloudwalkCallContext context) throws ServiceException {
DeviceImageStoreQueryParam deviceImageStoreQueryParam = new DeviceImageStoreQueryParam();
deviceImageStoreQueryParam.setDeviceId(deviceId);
CloudwalkResult imageStoreResult = this.deviceImageStoreService.list(deviceImageStoreQueryParam, context);
if (imageStoreResult.isSuccess()) {
if (CollectionUtils.isNotEmpty((Collection)((Collection)imageStoreResult.getData()))) {
return (List)imageStoreResult.getData();
}
throw new ServiceException("\u8be5\u8bbe\u5907\u672a\u7ed1\u5b9a\u56fe\u5e93");
}
throw new ServiceException(imageStoreResult.getCode(), imageStoreResult.getMessage());
}
@Override
@CloudwalkParamsValidate
public CloudwalkResult<CloudwalkPageAble<AcsPersonResult>> pageByApp(AcsPersonQueryByAppParam param, CloudwalkPageInfo pageInfo, CloudwalkCallContext context) throws ServiceException {
List<String> personIds = null;
ArrayList<AcsPersonResult> result = new ArrayList<AcsPersonResult>();
List<ImageStoreListResult> imageStoreResult = this.getImageStoreIdsByAppAndDevice(param.getApplicationId(), param.getDeviceId(), context);
List<String> imageStoreIds = imageStoreResult.stream().map(ImageStoreListResult::getId).collect(Collectors.toList());
if (CollectionUtils.isEmpty(imageStoreIds)) {
return CloudwalkResult.success((Object)new CloudwalkPageAble(result, pageInfo, 0L));
}
if (!StringUtils.isEmpty((String)param.getPersonName()) && CollectionUtils.isEmpty(personIds = this.getPersonIdsByName(param.getPersonName(), context))) {
return CloudwalkResult.success((Object)new CloudwalkPageAble(result, pageInfo, 0L));
}
CloudwalkPageAble<ImageStorePersonResult> pageResult = this.getAppImageStorePerson(imageStoreIds, personIds, pageInfo, context);
if (!CollectionUtils.isEmpty((Collection)pageResult.getDatas())) {
this.covertPageResult(result, pageResult.getDatas(), null, context);
}
return CloudwalkResult.success((Object)new CloudwalkPageAble(result, pageInfo, pageResult.getTotalRows()));
}
private CloudwalkPageAble<ImageStorePersonResult> getAppImageStorePerson(List<String> imageStoreIds, List<String> personIds, CloudwalkPageInfo pageInfo, CloudwalkCallContext context) throws ServiceException {
ImageStorePersonQueryParam param = new ImageStorePersonQueryParam();
param.setImageStoreIds(imageStoreIds);
param.setPersonIds(personIds);
param.setCurrentPage(pageInfo.getCurrentPage());
param.setRowsOfPage(pageInfo.getPageSize());
CloudwalkResult pageResult = this.imageStorePersonService.page(param, context);
if (!pageResult.isSuccess()) {
this.logger.error("\u8fdc\u7a0b\u8c03\u7528\u67e5\u8be2\u56fe\u5e93\u4eba\u5458\u5931\u8d25\uff0c\u539f\u56e0\uff1a[{}]", (Object)pageResult.getMessage());
throw new ServiceException(pageResult.getCode(), pageResult.getMessage());
}
return (CloudwalkPageAble)pageResult.getData();
}
private List<AcsPassRuleResultDto> getRuleByImageStoreIds(List<String> imageStoreIds, CloudwalkCallContext context) throws ServiceException {
try {
AcsPassRuleQueryDto dto = new AcsPassRuleQueryDto();
dto.setBusinessId(context.getCompany().getCompanyId());
dto.setImageStoreIds(imageStoreIds);
return this.acsPassRuleDao.list(dto);
}
catch (DataAccessException e) {
this.logger.error("\u67e5\u8be2\u901a\u884c\u89c4\u5219\u5931\u8d25");
throw new ServiceException("76260508", this.getMessage("76260508"));
}
}
private List<ImageStorePersonResult> getPersonImageStore(String personId, List<String> imageStoreIds, CloudwalkCallContext context) throws ServiceException {
ImageStorePersonQueryParam param = new ImageStorePersonQueryParam();
param.setImageStoreIds(imageStoreIds);
param.setPersonId(personId);
CloudwalkResult imageStorePersonResult = this.imageStorePersonService.page(param, context);
if (!imageStorePersonResult.isSuccess()) {
throw new ServiceException(imageStorePersonResult.getCode(), imageStorePersonResult.getMessage());
}
return (List)((CloudwalkPageAble)imageStorePersonResult.getData()).getDatas();
}
}
@@ -0,0 +1,551 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.param.ImageStorePersonBindParam
* cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.param.ImageStorePersonQueryParam
* cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.param.UpdateGroupPersonRefParam
* cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.result.ImageStorePersonResult
* cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.service.ImageStorePersonService
* cn.cloudwalk.client.cwoscomponent.intelligent.person.param.PersonDetailParam
* cn.cloudwalk.client.cwoscomponent.intelligent.person.param.PersonQueryParam
* cn.cloudwalk.client.cwoscomponent.intelligent.person.result.PersonResult
* cn.cloudwalk.client.cwoscomponent.intelligent.person.service.PersonService
* cn.cloudwalk.cloud.annotation.CloudwalkParamsValidate
* cn.cloudwalk.cloud.context.CloudwalkCallContext
* cn.cloudwalk.cloud.entity.CloudwalkBaseIdentify
* cn.cloudwalk.cloud.exception.DataAccessException
* cn.cloudwalk.cloud.exception.ServiceException
* cn.cloudwalk.cloud.page.CloudwalkPageAble
* cn.cloudwalk.cloud.page.CloudwalkPageInfo
* cn.cloudwalk.cloud.result.CloudwalkResult
* cn.cloudwalk.cloud.utils.BeanCopyUtils
* cn.cloudwalk.elevator.device.dao.AcsElevatorDeviceDao
* cn.cloudwalk.elevator.device.dao.DeviceImageStoreDao
* cn.cloudwalk.elevator.device.dto.AcsElevatorDeviceListByBuildingIdDto
* cn.cloudwalk.elevator.em.AcsPassTypeEnum
* cn.cloudwalk.elevator.passrule.dao.ImageRuleRefDao
* cn.cloudwalk.elevator.passrule.dto.ImageRuleRefAddDto
* cn.cloudwalk.elevator.passrule.dto.ImageRuleRefResultDto
* cn.cloudwalk.elevator.util.CollectionUtils
* cn.cloudwalk.elevator.util.StringUtils
* com.alibaba.fastjson.JSONObject
* org.springframework.beans.factory.annotation.Autowired
* org.springframework.stereotype.Service
* org.springframework.transaction.annotation.Propagation
* org.springframework.transaction.annotation.Transactional
* org.springframework.util.ObjectUtils
*/
package cn.cloudwalk.elevator.person.impl;
import cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.param.ImageStorePersonBindParam;
import cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.param.ImageStorePersonQueryParam;
import cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.param.UpdateGroupPersonRefParam;
import cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.result.ImageStorePersonResult;
import cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.service.ImageStorePersonService;
import cn.cloudwalk.client.cwoscomponent.intelligent.person.param.PersonDetailParam;
import cn.cloudwalk.client.cwoscomponent.intelligent.person.param.PersonQueryParam;
import cn.cloudwalk.client.cwoscomponent.intelligent.person.result.PersonResult;
import cn.cloudwalk.client.cwoscomponent.intelligent.person.service.PersonService;
import cn.cloudwalk.cloud.annotation.CloudwalkParamsValidate;
import cn.cloudwalk.cloud.context.CloudwalkCallContext;
import cn.cloudwalk.cloud.entity.CloudwalkBaseIdentify;
import cn.cloudwalk.cloud.exception.DataAccessException;
import cn.cloudwalk.cloud.exception.ServiceException;
import cn.cloudwalk.cloud.page.CloudwalkPageAble;
import cn.cloudwalk.cloud.page.CloudwalkPageInfo;
import cn.cloudwalk.cloud.result.CloudwalkResult;
import cn.cloudwalk.cloud.utils.BeanCopyUtils;
import cn.cloudwalk.elevator.device.dao.AcsElevatorDeviceDao;
import cn.cloudwalk.elevator.device.dao.DeviceImageStoreDao;
import cn.cloudwalk.elevator.device.dto.AcsElevatorDeviceListByBuildingIdDto;
import cn.cloudwalk.elevator.em.AcsPassTypeEnum;
import cn.cloudwalk.elevator.passrule.dao.ImageRuleRefDao;
import cn.cloudwalk.elevator.passrule.dto.ImageRuleRefAddDto;
import cn.cloudwalk.elevator.passrule.dto.ImageRuleRefResultDto;
import cn.cloudwalk.elevator.passrule.impl.AbstractAcsPassService;
import cn.cloudwalk.elevator.person.param.AcsPersonAddParam;
import cn.cloudwalk.elevator.person.param.AcsPersonAddVisitorParam;
import cn.cloudwalk.elevator.person.param.AcsPersonDeleteParam;
import cn.cloudwalk.elevator.person.param.AcsPersonEditParam;
import cn.cloudwalk.elevator.person.param.AcsPersonQueryByAppParam;
import cn.cloudwalk.elevator.person.param.AcsPersonQueryParam;
import cn.cloudwalk.elevator.person.param.AcsPersonTimeDetailParam;
import cn.cloudwalk.elevator.person.param.PersonDetailQueryParam;
import cn.cloudwalk.elevator.person.result.AcsPersonResult;
import cn.cloudwalk.elevator.person.result.AcsPersonTimeDetailResult;
import cn.cloudwalk.elevator.person.service.PersonRuleService;
import cn.cloudwalk.elevator.util.CollectionUtils;
import cn.cloudwalk.elevator.util.StringUtils;
import cn.cloudwalk.elevator.zone.param.ZoneQueryParam;
import cn.cloudwalk.elevator.zone.result.ZoneResult;
import cn.cloudwalk.elevator.zone.service.ZoneService;
import com.alibaba.fastjson.JSONObject;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import javax.annotation.Resource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.util.ObjectUtils;
@Service
public class PersonRuleServiceImpl
extends AbstractAcsPassService
implements PersonRuleService {
@Resource
private ImageRuleRefDao imageRuleRefDao;
@Resource
private DeviceImageStoreDao deviceImageStoreDao;
@Autowired
private ImageStorePersonService imageStorePersonService;
@Autowired
private PersonService personService;
@Resource
private AcsElevatorDeviceDao acsElevatorDeviceDao;
@Resource
private ZoneService zoneService;
@Override
@CloudwalkParamsValidate
@Transactional(propagation=Propagation.REQUIRED, rollbackFor={Exception.class})
public CloudwalkResult<Boolean> add(AcsPersonAddParam param, CloudwalkCallContext context) throws ServiceException {
this.logger.info("\u4ece\u73b0\u6709\u4eba\u5458\u6dfb\u52a0\u901a\u884c\u4eba\u5458\u5f00\u59cb\uff0cAcsPersonAddParam=[{}], CloudwalkCallContext=[{}]", (Object)JSONObject.toJSONString((Object)param), (Object)JSONObject.toJSONString((Object)context));
try {
AcsElevatorDeviceListByBuildingIdDto buildingIdDto = new AcsElevatorDeviceListByBuildingIdDto();
buildingIdDto.setCurrentBuildingId(param.getParentId());
buildingIdDto.setBusinessId(context.getCompany().getCompanyId());
List deviceList = this.acsElevatorDeviceDao.listBuBuildingId(buildingIdDto);
if (CollectionUtils.isEmpty((Collection)deviceList)) {
return CloudwalkResult.fail((String)"76260527", (String)this.getMessage("76260527"));
}
ImageRuleRefResultDto defaultRule = this.imageRuleRefDao.getDefaultByZoneId(param.getZoneId());
if (ObjectUtils.isEmpty((Object)defaultRule)) {
ImageRuleRefAddDto dto = new ImageRuleRefAddDto();
dto.setId(this.genUUID());
dto.setBusinessId(context.getCompany().getCompanyId());
dto.setName("\u9ed8\u8ba4\u89c4\u5219");
dto.setZoneId(param.getZoneId());
dto.setZoneName(param.getZoneName());
dto.setIsDefault(Integer.valueOf(1));
dto.setCreateTime(Long.valueOf(System.currentTimeMillis()));
dto.setLastUpdateTime(Long.valueOf(System.currentTimeMillis()));
this.imageRuleRefDao.insert(dto);
defaultRule = this.imageRuleRefDao.getDefaultByZoneId(param.getZoneId());
}
String imageStoreId = this.deviceImageStoreDao.getByBuildingId(param.getParentId());
ImageStorePersonQueryParam queryParam = new ImageStorePersonQueryParam();
queryParam.setImageStoreId(imageStoreId);
queryParam.setPersonIds(param.getPersonIds());
CloudwalkResult personPage = this.imageStorePersonService.page(queryParam, context);
ArrayList<String> personPageIds = new ArrayList<String>();
if (!CollectionUtils.isEmpty((Collection)((CloudwalkPageAble)personPage.getData()).getDatas())) {
for (ImageStorePersonResult personResult : ((CloudwalkPageAble)personPage.getData()).getDatas()) {
personPageIds.add(personResult.getPersonId());
}
}
ArrayList<String> bindPersonIds = new ArrayList<String>();
for (String personId : param.getPersonIds()) {
ImageRuleRefResultDto del;
if (!personPageIds.contains(personId)) {
bindPersonIds.add(personId);
}
if (!ObjectUtils.isEmpty((Object)(del = this.imageRuleRefDao.getDelByPersonIdAndZoneId(personId, param.getZoneId())))) continue;
ImageRuleRefAddDto addDto = new ImageRuleRefAddDto();
addDto.setId(this.genUUID());
addDto.setBusinessId(context.getCompany().getCompanyId());
addDto.setPersonId(personId);
addDto.setParentRule(defaultRule.getId());
addDto.setName(defaultRule.getName());
addDto.setZoneId(param.getZoneId());
addDto.setZoneName(defaultRule.getZoneName());
addDto.setCreateTime(Long.valueOf(System.currentTimeMillis()));
addDto.setLastUpdateTime(Long.valueOf(System.currentTimeMillis()));
addDto.setPersonDelete(Integer.valueOf(0));
this.imageRuleRefDao.insert(addDto);
}
this.imageRuleRefDao.deleteByPersonIdsIsDel(param.getPersonIds(), param.getZoneId());
if (!CollectionUtils.isEmpty(bindPersonIds)) {
ImageStorePersonBindParam imageStorePersonBindParam = new ImageStorePersonBindParam();
imageStorePersonBindParam.setImageStoreId(imageStoreId);
imageStorePersonBindParam.setPersonIds(bindPersonIds);
imageStorePersonBindParam.setNullDateIsLongTerm(Boolean.valueOf(true));
this.logger.info("\u8fdc\u7a0b\u8c03\u7528\u7ed1\u5b9a\u4eba\u5458\u56fe\u5e93\u5f00\u59cb\uff0cimageStorePersonBindParam=[{}], CloudwalkCallContext=[{}]", (Object)JSONObject.toJSONString((Object)imageStorePersonBindParam), (Object)JSONObject.toJSONString((Object)context));
CloudwalkResult bindResult = this.imageStorePersonService.batchBind(imageStorePersonBindParam, context);
if (!bindResult.isSuccess()) {
this.logger.error("\u8fdc\u7a0b\u8c03\u7528\u7ed1\u5b9a\u4eba\u5458\u56fe\u5e93\u5f02\u5e38\uff0c\u539f\u56e0\uff1a[{}],\u5931\u8d25\u4eba\u5458id:[{}]", (Object)bindResult.getMessage(), bindPersonIds);
return CloudwalkResult.fail((String)bindResult.getCode(), (String)bindResult.getMessage());
}
}
UpdateGroupPersonRefParam refParam = new UpdateGroupPersonRefParam();
refParam.setBusinessId(context.getCompany().getCompanyId());
refParam.setPersonIds(param.getPersonIds());
refParam.setImageStoreId(imageStoreId);
this.imageStorePersonService.updateGroupPersonRef(refParam, context);
}
catch (DataAccessException e) {
this.logger.error("\u6dfb\u52a0\u901a\u884c\u4eba\u5458\u5931\u8d25\uff0c\u539f\u56e0\uff1a[{}]", (Throwable)e);
throw new ServiceException("76260521", this.getMessage("76260521"));
}
return CloudwalkResult.success((Object)true);
}
@Override
@CloudwalkParamsValidate
public CloudwalkResult<Boolean> addVisitor(AcsPersonAddVisitorParam param, CloudwalkCallContext context) throws ServiceException {
this.logger.info("\u6839\u636e\u88ab\u8bbf\u4eba\u6dfb\u52a0\u8bbf\u5ba2\u6d3e\u68af\u6743\u9650\u5f00\u59cb\uff0cAcsPersonAddVisitorParam=[{}], CloudwalkCallContext=[{}]", (Object)JSONObject.toJSONString((Object)param), (Object)JSONObject.toJSONString((Object)context));
try {
if (CollectionUtils.isEmpty(param.getFloorIds())) {
PersonDetailParam detailParam = new PersonDetailParam();
detailParam.setId(param.getPersonId());
detailParam.setBusinessId(context.getCompany().getCompanyId());
CloudwalkResult detail = this.personService.detail(detailParam, context);
param.setFloorIds(((PersonResult)detail.getData()).getFloorList());
}
ZoneQueryParam zoneQueryParam = new ZoneQueryParam();
zoneQueryParam.setId(param.getFloorIds().get(0));
zoneQueryParam.setRowsOfPage(10);
zoneQueryParam.setCurrentPage(1);
CloudwalkResult<CloudwalkPageAble<ZoneResult>> zonePage = this.zoneService.page(zoneQueryParam, context);
List zoneResults = (List)((CloudwalkPageAble)zonePage.getData()).getDatas();
String imageStoreId = this.deviceImageStoreDao.getByBuildingId(((ZoneResult)zoneResults.get(0)).getParentId());
ArrayList<ImageRuleRefAddDto> insertList = new ArrayList<ImageRuleRefAddDto>();
for (String floorId : param.getFloorIds()) {
ImageRuleRefResultDto defaultRule = this.imageRuleRefDao.getDefaultByZoneId(floorId);
ImageRuleRefAddDto addDto = new ImageRuleRefAddDto();
addDto.setId(this.genUUID());
addDto.setBusinessId(context.getCompany().getCompanyId());
addDto.setPersonId(param.getVisitorId());
addDto.setParentRule(defaultRule.getId());
addDto.setName(defaultRule.getName());
addDto.setZoneId(defaultRule.getZoneId());
addDto.setZoneName(defaultRule.getZoneName());
addDto.setCreateTime(Long.valueOf(System.currentTimeMillis()));
addDto.setLastUpdateTime(Long.valueOf(System.currentTimeMillis()));
addDto.setPersonDelete(Integer.valueOf(0));
insertList.add(addDto);
}
this.logger.info("\u8bbf\u5ba2\u6dfb\u52a0\u6d3e\u68af\u6743\u9650\u5f00\u59cb\uff0c\u6570\u636e\u4e3a=[{}]", (Object)JSONObject.toJSONString(insertList));
if (!CollectionUtils.isEmpty(insertList)) {
this.imageRuleRefDao.insertList(insertList);
}
ImageStorePersonBindParam imageStorePersonBindParam = new ImageStorePersonBindParam();
imageStorePersonBindParam.setImageStoreId(imageStoreId);
imageStorePersonBindParam.setPersonIds(Collections.singletonList(param.getVisitorId()));
imageStorePersonBindParam.setNullDateIsLongTerm(Boolean.valueOf(true));
imageStorePersonBindParam.setExpiryBeginDate(param.getBegVisitorTime());
imageStorePersonBindParam.setExpiryEndDate(param.getEndVisitorTime());
this.logger.info("\u8fdc\u7a0b\u8c03\u7528\u7ed1\u5b9a\u4eba\u5458\u56fe\u5e93\u5f00\u59cb\uff0cimageStorePersonBindParam=[{}], CloudwalkCallContext=[{}]", (Object)JSONObject.toJSONString((Object)imageStorePersonBindParam), (Object)JSONObject.toJSONString((Object)context));
CloudwalkResult bindResult = this.imageStorePersonService.batchBind(imageStorePersonBindParam, context);
if (!bindResult.isSuccess()) {
this.logger.error("\u8fdc\u7a0b\u8c03\u7528\u7ed1\u5b9a\u4eba\u5458\u56fe\u5e93\u5f02\u5e38\uff0c\u539f\u56e0\uff1a[{}],\u5931\u8d25\u4eba\u5458id:[{}]", (Object)bindResult.getMessage(), (Object)param.getVisitorId());
return CloudwalkResult.fail((String)bindResult.getCode(), (String)bindResult.getMessage());
}
UpdateGroupPersonRefParam refParam = new UpdateGroupPersonRefParam();
refParam.setBusinessId(context.getCompany().getCompanyId());
refParam.setPersonIds(Collections.singletonList(param.getVisitorId()));
refParam.setImageStoreId(imageStoreId);
this.imageStorePersonService.updateGroupPersonRef(refParam, context);
}
catch (Exception 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);
throw new ServiceException("76260530", this.getMessage("76260530"));
}
return CloudwalkResult.success((Object)true);
}
@Override
public CloudwalkResult<Boolean> edit(AcsPersonEditParam param, CloudwalkCallContext context) throws ServiceException {
return null;
}
@Override
public CloudwalkResult<Boolean> delete(AcsPersonDeleteParam param, CloudwalkCallContext context) throws ServiceException {
this.logger.info("\u4ece\u73b0\u6709\u4eba\u5458\u5220\u9664\u901a\u884c\u4eba\u5458\u5f00\u59cb\uff0cAcsPersonDeleteParam=[{}], CloudwalkCallContext=[{}]", (Object)JSONObject.toJSONString((Object)param), (Object)JSONObject.toJSONString((Object)context));
try {
String imageStoreId = this.deviceImageStoreDao.getByBuildingId(param.getParentId());
for (String personId : param.getPersonIds()) {
ImageRuleRefResultDto rule = this.imageRuleRefDao.getByPersonIdAndZoneId(Collections.singletonList(personId), param.getZoneId());
if (!ObjectUtils.isEmpty((Object)rule)) {
this.imageRuleRefDao.deleteByPersonId(personId, param.getZoneId());
continue;
}
ImageRuleRefAddDto addDto = new ImageRuleRefAddDto();
addDto.setId(this.genUUID());
addDto.setBusinessId(context.getCompany().getCompanyId());
addDto.setPersonId(personId);
addDto.setZoneId(param.getZoneId());
addDto.setPersonDelete(Integer.valueOf(1));
addDto.setCreateTime(Long.valueOf(System.currentTimeMillis()));
addDto.setLastUpdateTime(Long.valueOf(System.currentTimeMillis()));
this.imageRuleRefDao.insert(addDto);
}
UpdateGroupPersonRefParam refParam = new UpdateGroupPersonRefParam();
refParam.setBusinessId(context.getCompany().getCompanyId());
refParam.setPersonIds(param.getPersonIds());
refParam.setImageStoreId(imageStoreId);
this.imageStorePersonService.updateGroupPersonRef(refParam, context);
}
catch (DataAccessException e) {
this.logger.error("\u5220\u9664\u901a\u884c\u4eba\u5458\u5931\u8d25\uff0c\u539f\u56e0\uff1a[{}]", (Throwable)e);
throw new ServiceException("76260523", this.getMessage("76260523"));
}
return CloudwalkResult.success((Object)true);
}
@Override
public CloudwalkResult<CloudwalkPageAble<AcsPersonResult>> page(AcsPersonQueryParam param, CloudwalkPageInfo pageInfo, CloudwalkCallContext context) throws ServiceException {
this.logger.info("\u5206\u9875\u67e5\u8be2\u901a\u884c\u4eba\u5458\u5f00\u59cb\uff0cAcsPersonQueryParam=[{}], CloudwalkPageInfo=[{}], CloudwalkCallContext=[{}]", new Object[]{JSONObject.toJSONString((Object)param), JSONObject.toJSONString((Object)pageInfo), JSONObject.toJSONString((Object)context)});
try {
CloudwalkPageAble<ImageStorePersonResult> pageResult;
ArrayList<AcsPersonResult> result = new ArrayList<AcsPersonResult>();
List<String> personIds = null;
String imageStoreId = this.deviceImageStoreDao.getByBuildingId(param.getParentId());
if (ObjectUtils.isEmpty((Object)imageStoreId)) {
return CloudwalkResult.success((Object)new CloudwalkPageAble(result, pageInfo, 0L));
}
param.setImageStoreId(imageStoreId);
List parentRuleList = this.imageRuleRefDao.listRuleByZoneIdExtDefault(param.getZoneId());
List personIdList = this.imageRuleRefDao.countPersonIdByZoneId(param.getZoneId());
if (CollectionUtils.isEmpty((Collection)parentRuleList) && CollectionUtils.isEmpty((Collection)personIdList)) {
return CloudwalkResult.success((Object)new CloudwalkPageAble(result, pageInfo, 0L));
}
param.setPersonIds(personIdList);
if (!CollectionUtils.isEmpty((Collection)parentRuleList)) {
ArrayList<String> includeLabels = new ArrayList<String>();
ArrayList<String> includeOrganizations = new ArrayList<String>();
List child = this.imageRuleRefDao.listByParentRule(parentRuleList);
if (!CollectionUtils.isEmpty((Collection)child)) {
for (ImageRuleRefResultDto resultDto : child) {
if (!ObjectUtils.isEmpty((Object)resultDto.getIncludeLabels())) {
includeLabels.add(resultDto.getIncludeLabels());
continue;
}
if (ObjectUtils.isEmpty((Object)resultDto.getIncludeOrganizations())) continue;
includeOrganizations.add(resultDto.getIncludeOrganizations());
}
} else if (CollectionUtils.isEmpty((Collection)personIdList)) {
return CloudwalkResult.success((Object)new CloudwalkPageAble(result, pageInfo, 0L));
}
ArrayList<String> elevatorIncludeLabels = new ArrayList<String>();
ArrayList<String> elevatorOrganizations = new ArrayList<String>();
if (!CollectionUtils.isEmpty(param.getLabelIds())) {
for (String labelId : param.getLabelIds()) {
if (includeLabels.contains(labelId)) continue;
elevatorIncludeLabels.add(labelId);
}
}
if (!CollectionUtils.isEmpty(param.getOrganizationIds())) {
for (String orgId : param.getOrganizationIds()) {
if (includeOrganizations.contains(orgId)) continue;
elevatorOrganizations.add(orgId);
}
}
if (!CollectionUtils.isEmpty(elevatorIncludeLabels)) {
param.setElevatorLabelIds(elevatorIncludeLabels);
}
param.setLabelIds(includeLabels);
if (!CollectionUtils.isEmpty(elevatorOrganizations)) {
param.setElevatorOrganizationIds(elevatorOrganizations);
}
param.setOrganizationIds(includeOrganizations);
List delPersonIds = this.imageRuleRefDao.listPersonDelByZoneId(param.getZoneId());
param.setDelPersonIds(delPersonIds);
}
if (!CollectionUtils.isEmpty(param.getElevatorLabelIds()) || !CollectionUtils.isEmpty(param.getElevatorOrganizationIds())) {
param.setIsElevator(0);
} else if (!CollectionUtils.isEmpty(param.getLabelIds()) && !CollectionUtils.isEmpty(param.getOrganizationIds())) {
param.setIsElevator(3);
param.setElevatorLabelIds(param.getLabelIds());
param.setElevatorOrganizationIds(param.getOrganizationIds());
} else if (!CollectionUtils.isEmpty(param.getOrganizationIds())) {
param.setIsElevator(1);
param.setElevatorOrganizationIds(param.getOrganizationIds());
} else if (!CollectionUtils.isEmpty(param.getLabelIds())) {
param.setIsElevator(2);
param.setElevatorLabelIds(param.getLabelIds());
}
if (!StringUtils.isEmpty((String)param.getPersonName())) {
personIds = this.getPersonIdsByName(param, context);
if (!CollectionUtils.isEmpty(param.getDelPersonIds()) && !CollectionUtils.isEmpty(personIds)) {
ArrayList<String> newPersonIds = new ArrayList<String>();
for (int i = 0; i < personIds.size(); ++i) {
if (param.getDelPersonIds().contains(personIds.get(i))) continue;
newPersonIds.add(personIds.get(i));
}
if (CollectionUtils.isEmpty(newPersonIds)) {
return CloudwalkResult.success((Object)new CloudwalkPageAble(result, pageInfo, 0L));
}
personIds.clear();
personIds.addAll(newPersonIds);
}
if (CollectionUtils.isEmpty(personIds)) {
return CloudwalkResult.success((Object)new CloudwalkPageAble(result, pageInfo, 0L));
}
}
if (!CollectionUtils.isEmpty((Collection)(pageResult = this.getImageStorePerson(param, pageInfo, context, imageStoreId, personIds)).getDatas())) {
this.covertPageResult(result, pageResult.getDatas(), context);
}
return CloudwalkResult.success((Object)new CloudwalkPageAble(result, pageInfo, pageResult.getTotalRows()));
}
catch (DataAccessException e) {
this.logger.error("\u5206\u9875\u67e5\u8be2\u901a\u884c\u4eba\u5458\u5931\u8d25", (Throwable)e);
throw new ServiceException("76260528", this.getMessage("76260528"));
}
}
@Override
public CloudwalkResult<AcsPersonTimeDetailResult> timeDetail(AcsPersonTimeDetailParam param, CloudwalkCallContext context) throws ServiceException {
return null;
}
@Override
public CloudwalkResult<CloudwalkPageAble<AcsPersonResult>> pageByApp(AcsPersonQueryByAppParam param, CloudwalkPageInfo pageInfo, CloudwalkCallContext context) throws ServiceException {
return null;
}
@Override
public CloudwalkResult<CloudwalkPageAble<ImageStorePersonResult>> personDetail(PersonDetailQueryParam param, CloudwalkCallContext context) throws ServiceException {
String imageStoreId = this.deviceImageStoreDao.getByBuildingId(param.getParentId());
List resultDtos = this.imageRuleRefDao.listByParentRule(Collections.singletonList(param.getRuleId()));
try {
List delPersonIds = this.imageRuleRefDao.listPersonDelByZoneId(param.getZoneId());
if (CollectionUtils.isEmpty((Collection)resultDtos)) {
return CloudwalkResult.success(null);
}
ArrayList<String> personIds = new ArrayList<String>();
ArrayList<String> labelIds = new ArrayList<String>();
ArrayList<String> orgIds = new ArrayList<String>();
for (ImageRuleRefResultDto dto : resultDtos) {
if (!ObjectUtils.isEmpty((Object)dto.getPersonId())) {
personIds.add(dto.getPersonId());
}
if (!ObjectUtils.isEmpty((Object)dto.getIncludeLabels())) {
labelIds.add(dto.getIncludeLabels());
}
if (ObjectUtils.isEmpty((Object)dto.getIncludeOrganizations())) continue;
orgIds.add(dto.getIncludeOrganizations());
}
ImageStorePersonQueryParam queryParam = new ImageStorePersonQueryParam();
queryParam.setImageStoreId(imageStoreId);
queryParam.setName(param.getPersonName());
queryParam.setPersonIds(personIds);
queryParam.setLabelIds(labelIds);
queryParam.setOrganizationIds(orgIds);
queryParam.setDelPersonIds(delPersonIds);
queryParam.setIsElevator(Integer.valueOf(0));
queryParam.setRowsOfPage(param.getRowsOfPage());
queryParam.setCurrentPage(param.getCurrentPage());
return this.imageStorePersonService.page(queryParam, context);
}
catch (DataAccessException e) {
this.logger.error("\u5206\u9875\u67e5\u8be2\u901a\u884c\u4eba\u5458\u5931\u8d25", (Throwable)e);
throw new ServiceException("76260528", this.getMessage("76260528"));
}
}
private List<String> getPersonIdsByName(AcsPersonQueryParam param, CloudwalkCallContext context) throws ServiceException {
List<String> personIdsByName = new ArrayList<String>();
if (StringUtils.isNotBlank((String)param.getPersonName())) {
PersonQueryParam personQueryParam = new PersonQueryParam();
personQueryParam.setName(param.getPersonName());
personQueryParam.setIds(param.getPersonIds());
personQueryParam.setLabelIds(param.getElevatorLabelIds());
personQueryParam.setOrganizationIds(param.getElevatorOrganizationIds());
personQueryParam.setIsElevator(param.getIsElevator());
CloudwalkResult personResult = this.personService.list(personQueryParam, context);
List personList = (List)personResult.getData();
if (personResult.isSuccess() && CollectionUtils.isNotEmpty((Collection)personList)) {
ArrayList<PersonResult> newPersonList = new ArrayList<PersonResult>();
for (PersonResult result : personList) {
if (param.getPersonIds().contains(result.getId())) {
newPersonList.add(result);
continue;
}
if (!CollectionUtils.isEmpty((Collection)result.getOrganizationIds())) {
for (String orgId : result.getOrganizationIds()) {
if (CollectionUtils.isEmpty(param.getOrganizationIds()) || !param.getOrganizationIds().contains(orgId)) continue;
newPersonList.add(result);
}
continue;
}
if (CollectionUtils.isEmpty((Collection)result.getLabelIds())) continue;
for (String labelId : result.getLabelIds()) {
if (CollectionUtils.isEmpty(param.getLabelIds()) || !param.getLabelIds().contains(labelId)) continue;
newPersonList.add(result);
}
}
if (CollectionUtils.isNotEmpty(newPersonList)) {
personIdsByName = newPersonList.stream().map(CloudwalkBaseIdentify::getId).collect(Collectors.toList());
}
}
}
return personIdsByName;
}
private CloudwalkPageAble<ImageStorePersonResult> getImageStorePerson(AcsPersonQueryParam param, CloudwalkPageInfo pageInfo, CloudwalkCallContext context, String imageStoreId, List<String> personIds) throws ServiceException {
CloudwalkPageAble results = new CloudwalkPageAble();
ImageStorePersonQueryParam imageStorePersonQueryParam = new ImageStorePersonQueryParam();
imageStorePersonQueryParam.setImageStoreId(imageStoreId);
if (!CollectionUtils.isEmpty(personIds)) {
imageStorePersonQueryParam.setPersonIds(personIds);
imageStorePersonQueryParam.setIsElevator(Integer.valueOf(4));
} else {
imageStorePersonQueryParam.setPersonIds(param.getPersonIds());
imageStorePersonQueryParam.setOrganizationIds(param.getElevatorOrganizationIds());
imageStorePersonQueryParam.setLabelIds(param.getElevatorLabelIds());
imageStorePersonQueryParam.setCurrentPage(pageInfo.getCurrentPage());
imageStorePersonQueryParam.setRowsOfPage(pageInfo.getPageSize());
imageStorePersonQueryParam.setIsElevator(param.getIsElevator());
imageStorePersonQueryParam.setDelPersonIds(param.getDelPersonIds());
}
CloudwalkResult pageResult = this.imageStorePersonService.page(imageStorePersonQueryParam, context);
if (!pageResult.isSuccess()) {
this.logger.error("\u8fdc\u7a0b\u8c03\u7528\u67e5\u8be2\u56fe\u5e93\u4eba\u5458\u5931\u8d25\uff0c\u539f\u56e0\uff1a[{}]", (Object)pageResult.getMessage());
throw new ServiceException(pageResult.getCode(), pageResult.getMessage());
}
if (!CollectionUtils.isEmpty((Collection)((CloudwalkPageAble)pageResult.getData()).getDatas())) {
results = (CloudwalkPageAble)pageResult.getData();
}
return results;
}
private void covertPageResult(List<AcsPersonResult> result, Collection<ImageStorePersonResult> datas, CloudwalkCallContext context) throws ServiceException {
List<String> personIds = datas.stream().map(ImageStorePersonResult::getPersonId).collect(Collectors.toList());
Map<String, PersonResult> personIcCardMap = this.getPersonIcCardByIds(personIds, context);
for (ImageStorePersonResult data : datas) {
Object rule = null;
AcsPersonResult acsPersonResult = new AcsPersonResult();
BeanCopyUtils.copyProperties((Object)data, (Object)acsPersonResult);
acsPersonResult.setPersonName(data.getName());
acsPersonResult.setStartTime(data.getExpiryBeginDate());
acsPersonResult.setEndTime(data.getExpiryEndDate());
acsPersonResult.setPassType(AcsPassTypeEnum.LONG_TIME.getCode());
if (data.getExpiryBeginDate() != null || data.getExpiryEndDate() != null) {
acsPersonResult.setPassType(AcsPassTypeEnum.AUTO_PASS.getCode());
}
if (personIcCardMap != null && personIcCardMap.get(data.getPersonId()) != null) {
acsPersonResult.setIcCardNo(personIcCardMap.get(data.getPersonId()).getIcCardNo());
}
result.add(acsPersonResult);
}
}
private Map<String, PersonResult> getPersonIcCardByIds(List<String> personIds, CloudwalkCallContext context) throws ServiceException {
Map<String, PersonResult> personIcCardMap = null;
PersonQueryParam param = new PersonQueryParam();
param.setIds(personIds);
CloudwalkResult personResult = this.personService.list(param, context);
List personList = (List)personResult.getData();
if (personResult.isSuccess() && CollectionUtils.isNotEmpty((Collection)personList)) {
personIcCardMap = personList.stream().collect(Collectors.toMap(CloudwalkBaseIdentify::getId, PersonResult2 -> PersonResult2));
}
return personIcCardMap;
}
}
@@ -0,0 +1,57 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* javax.validation.Valid
* javax.validation.constraints.NotNull
*/
package cn.cloudwalk.elevator.person.param;
import cn.cloudwalk.elevator.person.param.AcsPersonPropertiesParam;
import java.io.Serializable;
import javax.validation.Valid;
import javax.validation.constraints.NotNull;
public class AcsPersonAddNewParam
implements Serializable {
private static final long serialVersionUID = -943980110684030345L;
private String zoneId;
private Long startTime;
private Long endTime;
@Valid
@NotNull(message="76260408")
private AcsPersonPropertiesParam personProperties;
public String getZoneId() {
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,72 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* org.hibernate.validator.constraints.NotEmpty
*/
package cn.cloudwalk.elevator.person.param;
import java.io.Serializable;
import java.util.List;
import org.hibernate.validator.constraints.NotEmpty;
public class AcsPersonAddParam
implements Serializable {
private static final long serialVersionUID = 1742648191193141962L;
private String parentId;
private String zoneId;
private String zoneName;
@NotEmpty(message="76260405")
private List<String> personIds;
private Long startTime;
private Long endTime;
public String getZoneName() {
return this.zoneName;
}
public void setZoneName(String zoneName) {
this.zoneName = zoneName;
}
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,118 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.elevator.person.param;
import java.io.Serializable;
import java.util.List;
public class AcsPersonAddVisitorParam
implements Serializable {
private static final long serialVersionUID = 7916140658162290825L;
private String visitorId;
private String personId;
private Long begVisitorTime;
private Long endVisitorTime;
private List<String> floorIds;
public 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 AcsPersonAddVisitorParam)) {
return false;
}
AcsPersonAddVisitorParam other = (AcsPersonAddVisitorParam)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 AcsPersonAddVisitorParam;
}
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 "AcsPersonAddVisitorParam(visitorId=" + this.getVisitorId() + ", personId=" + this.getPersonId() + ", begVisitorTime=" + this.getBegVisitorTime() + ", endVisitorTime=" + this.getEndVisitorTime() + ", floorIds=" + this.getFloorIds() + ")";
}
}
@@ -0,0 +1,40 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.elevator.person.param;
import java.io.Serializable;
import java.util.List;
public class AcsPersonCheckTimeParam
implements Serializable {
private static final long serialVersionUID = -4963269689428542769L;
private String personId;
private List<String> imageStoreIds;
private Long time;
public String getPersonId() {
return this.personId;
}
public void setPersonId(String personId) {
this.personId = personId;
}
public List<String> getImageStoreIds() {
return this.imageStoreIds;
}
public void setImageStoreIds(List<String> imageStoreIds) {
this.imageStoreIds = imageStoreIds;
}
public Long getTime() {
return this.time;
}
public void setTime(Long time) {
this.time = time;
}
}
@@ -0,0 +1,66 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* org.hibernate.validator.constraints.NotBlank
* org.hibernate.validator.constraints.NotEmpty
*/
package cn.cloudwalk.elevator.person.param;
import java.io.Serializable;
import java.util.List;
import org.hibernate.validator.constraints.NotBlank;
import org.hibernate.validator.constraints.NotEmpty;
public class AcsPersonDeleteParam
implements Serializable {
private static final long serialVersionUID = 1742648191193141962L;
private String parentId;
private String zoneId;
@NotEmpty(message="76260405")
private List<String> personIds;
@NotBlank(message="76260418")
private String imageStoreId;
private String personId;
public String getPersonId() {
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,35 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* org.hibernate.validator.constraints.NotBlank
*/
package cn.cloudwalk.elevator.person.param;
import java.io.Serializable;
import org.hibernate.validator.constraints.NotBlank;
public class AcsPersonDetailParam
implements Serializable {
private static final long serialVersionUID = -4991936524378444365L;
private String zoneId;
@NotBlank(message="76260405")
private String personId;
public String getZoneId() {
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,63 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* org.hibernate.validator.constraints.NotBlank
*/
package cn.cloudwalk.elevator.person.param;
import java.io.Serializable;
import org.hibernate.validator.constraints.NotBlank;
public class AcsPersonEditParam
implements Serializable {
private static final long serialVersionUID = 1742648191193141962L;
private String zoneId;
@NotBlank(message="76260405")
private String personId;
private Long startTime;
private Long endTime;
@NotBlank(message="76260418")
private String imageStoreId;
public String getZoneId() {
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;
}
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 getImageStoreId() {
return this.imageStoreId;
}
public void setImageStoreId(String imageStoreId) {
this.imageStoreId = imageStoreId;
}
}
@@ -0,0 +1,36 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* org.hibernate.validator.constraints.NotBlank
*/
package cn.cloudwalk.elevator.person.param;
import java.io.Serializable;
import org.hibernate.validator.constraints.NotBlank;
public class AcsPersonFaceParam
implements Serializable {
private static final long serialVersionUID = 1742648191193141962L;
@NotBlank(message="76260402")
private String deviceId;
@NotBlank(message="76260403")
private String faceImage;
public String getDeviceId() {
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,495 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* org.hibernate.validator.constraints.NotBlank
*/
package cn.cloudwalk.elevator.person.param;
import java.io.Serializable;
import java.util.List;
import org.hibernate.validator.constraints.NotBlank;
public class AcsPersonPropertiesParam
implements Serializable {
private static final long serialVersionUID = -448990843685123843L;
private String name;
private String userName;
private String personCode;
private String phone;
private String email;
private List<String> organizationIds;
private List<String> labelIds;
private Long expiryBeginDate;
private Long expiryEndDate;
@NotBlank(message="76260412")
private String comparePicture;
private String ext1;
private String ext2;
private String ext3;
private String ext4;
private String ext5;
private String ext6;
private String ext7;
private String ext8;
private String ext9;
private String ext10;
private String ext11;
private String ext12;
private String ext13;
private String ext14;
private String ext15;
private String ext16;
private String ext17;
private String ext18;
private String ext19;
private String ext20;
private String ext21;
private String ext22;
private String ext23;
private String ext24;
private String ext25;
private String ext26;
private String ext27;
private String ext28;
private String ext29;
private String ext30;
private String ext31;
private String ext32;
private String ext33;
private String ext34;
private String ext35;
private String ext36;
private String ext37;
private String ext38;
private String ext39;
private String ext40;
private Integer createSysAccount;
private String welcome;
private String showPicture;
public String getName() {
return this.name;
}
public void setName(String name) {
this.name = name;
}
public String getUserName() {
return this.userName;
}
public void setUserName(String userName) {
this.userName = userName;
}
public String getPersonCode() {
return this.personCode;
}
public void setPersonCode(String personCode) {
this.personCode = personCode;
}
public String getPhone() {
return this.phone;
}
public void setPhone(String phone) {
this.phone = phone;
}
public String getEmail() {
return this.email;
}
public void setEmail(String email) {
this.email = email;
}
public List<String> getOrganizationIds() {
return this.organizationIds;
}
public void setOrganizationIds(List<String> organizationIds) {
this.organizationIds = organizationIds;
}
public List<String> getLabelIds() {
return this.labelIds;
}
public void setLabelIds(List<String> labelIds) {
this.labelIds = labelIds;
}
public Long getExpiryBeginDate() {
return this.expiryBeginDate;
}
public void setExpiryBeginDate(Long expiryBeginDate) {
this.expiryBeginDate = expiryBeginDate;
}
public Long getExpiryEndDate() {
return this.expiryEndDate;
}
public void setExpiryEndDate(Long expiryEndDate) {
this.expiryEndDate = expiryEndDate;
}
public String getComparePicture() {
return this.comparePicture;
}
public void setComparePicture(String comparePicture) {
this.comparePicture = comparePicture;
}
public String getExt1() {
return this.ext1;
}
public void setExt1(String ext1) {
this.ext1 = ext1;
}
public String getExt2() {
return this.ext2;
}
public void setExt2(String ext2) {
this.ext2 = ext2;
}
public String getExt3() {
return this.ext3;
}
public void setExt3(String ext3) {
this.ext3 = ext3;
}
public String getExt4() {
return this.ext4;
}
public void setExt4(String ext4) {
this.ext4 = ext4;
}
public String getExt5() {
return this.ext5;
}
public void setExt5(String ext5) {
this.ext5 = ext5;
}
public String getExt6() {
return this.ext6;
}
public void setExt6(String ext6) {
this.ext6 = ext6;
}
public String getExt7() {
return this.ext7;
}
public void setExt7(String ext7) {
this.ext7 = ext7;
}
public String getExt8() {
return this.ext8;
}
public void setExt8(String ext8) {
this.ext8 = ext8;
}
public String getExt9() {
return this.ext9;
}
public void setExt9(String ext9) {
this.ext9 = ext9;
}
public String getExt10() {
return this.ext10;
}
public void setExt10(String ext10) {
this.ext10 = ext10;
}
public String getExt11() {
return this.ext11;
}
public void setExt11(String ext11) {
this.ext11 = ext11;
}
public String getExt12() {
return this.ext12;
}
public void setExt12(String ext12) {
this.ext12 = ext12;
}
public String getExt13() {
return this.ext13;
}
public void setExt13(String ext13) {
this.ext13 = ext13;
}
public String getExt14() {
return this.ext14;
}
public void setExt14(String ext14) {
this.ext14 = ext14;
}
public String getExt15() {
return this.ext15;
}
public void setExt15(String ext15) {
this.ext15 = ext15;
}
public String getExt16() {
return this.ext16;
}
public void setExt16(String ext16) {
this.ext16 = ext16;
}
public String getExt17() {
return this.ext17;
}
public void setExt17(String ext17) {
this.ext17 = ext17;
}
public String getExt18() {
return this.ext18;
}
public void setExt18(String ext18) {
this.ext18 = ext18;
}
public String getExt19() {
return this.ext19;
}
public void setExt19(String ext19) {
this.ext19 = ext19;
}
public String getExt20() {
return this.ext20;
}
public void setExt20(String ext20) {
this.ext20 = ext20;
}
public String getExt21() {
return this.ext21;
}
public void setExt21(String ext21) {
this.ext21 = ext21;
}
public String getExt22() {
return this.ext22;
}
public void setExt22(String ext22) {
this.ext22 = ext22;
}
public String getExt23() {
return this.ext23;
}
public void setExt23(String ext23) {
this.ext23 = ext23;
}
public String getExt24() {
return this.ext24;
}
public void setExt24(String ext24) {
this.ext24 = ext24;
}
public String getExt25() {
return this.ext25;
}
public void setExt25(String ext25) {
this.ext25 = ext25;
}
public String getExt26() {
return this.ext26;
}
public void setExt26(String ext26) {
this.ext26 = ext26;
}
public String getExt27() {
return this.ext27;
}
public void setExt27(String ext27) {
this.ext27 = ext27;
}
public String getExt28() {
return this.ext28;
}
public void setExt28(String ext28) {
this.ext28 = ext28;
}
public String getExt29() {
return this.ext29;
}
public void setExt29(String ext29) {
this.ext29 = ext29;
}
public String getExt30() {
return this.ext30;
}
public void setExt30(String ext30) {
this.ext30 = ext30;
}
public String getExt31() {
return this.ext31;
}
public void setExt31(String ext31) {
this.ext31 = ext31;
}
public String getExt32() {
return this.ext32;
}
public void setExt32(String ext32) {
this.ext32 = ext32;
}
public String getExt33() {
return this.ext33;
}
public void setExt33(String ext33) {
this.ext33 = ext33;
}
public String getExt34() {
return this.ext34;
}
public void setExt34(String ext34) {
this.ext34 = ext34;
}
public String getExt35() {
return this.ext35;
}
public void setExt35(String ext35) {
this.ext35 = ext35;
}
public String getExt36() {
return this.ext36;
}
public void setExt36(String ext36) {
this.ext36 = ext36;
}
public String getExt37() {
return this.ext37;
}
public void setExt37(String ext37) {
this.ext37 = ext37;
}
public String getExt38() {
return this.ext38;
}
public void setExt38(String ext38) {
this.ext38 = ext38;
}
public String getExt39() {
return this.ext39;
}
public void setExt39(String ext39) {
this.ext39 = ext39;
}
public String getExt40() {
return this.ext40;
}
public void setExt40(String ext40) {
this.ext40 = ext40;
}
public Integer getCreateSysAccount() {
return this.createSysAccount;
}
public void setCreateSysAccount(Integer createSysAccount) {
this.createSysAccount = createSysAccount;
}
public String getWelcome() {
return this.welcome;
}
public void setWelcome(String welcome) {
this.welcome = welcome;
}
public String getShowPicture() {
return this.showPicture;
}
public void setShowPicture(String showPicture) {
this.showPicture = showPicture;
}
}
@@ -0,0 +1,45 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* org.hibernate.validator.constraints.NotBlank
*/
package cn.cloudwalk.elevator.person.param;
import java.io.Serializable;
import org.hibernate.validator.constraints.NotBlank;
public class AcsPersonQueryByAppParam
implements Serializable {
private static final long serialVersionUID = -4823559329166668237L;
@NotBlank(message="76260402")
private String deviceId;
@NotBlank(message="76260415")
private String applicationId;
private String personName;
public String getDeviceId() {
return this.deviceId;
}
public void setDeviceId(String deviceId) {
this.deviceId = deviceId;
}
public String getApplicationId() {
return this.applicationId;
}
public void setApplicationId(String applicationId) {
this.applicationId = applicationId;
}
public String getPersonName() {
return this.personName;
}
public void setPersonName(String personName) {
this.personName = personName;
}
}
@@ -0,0 +1,214 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.elevator.person.param;
import java.io.Serializable;
import java.util.List;
public class AcsPersonQueryParam
implements Serializable {
private static final long serialVersionUID = -3343979289939890513L;
private String parentId;
private String zoneId;
private String personName;
private String imageStoreId;
private List<String> organizationIds;
private List<String> labelIds;
private List<String> personIds;
private Integer isElevator;
private List<String> delPersonIds;
private List<String> elevatorLabelIds;
private List<String> elevatorOrganizationIds;
public String getParentId() {
return this.parentId;
}
public String getZoneId() {
return this.zoneId;
}
public String getPersonName() {
return this.personName;
}
public String getImageStoreId() {
return this.imageStoreId;
}
public List<String> getOrganizationIds() {
return this.organizationIds;
}
public List<String> getLabelIds() {
return this.labelIds;
}
public List<String> getPersonIds() {
return this.personIds;
}
public Integer getIsElevator() {
return this.isElevator;
}
public List<String> getDelPersonIds() {
return this.delPersonIds;
}
public List<String> getElevatorLabelIds() {
return this.elevatorLabelIds;
}
public List<String> getElevatorOrganizationIds() {
return this.elevatorOrganizationIds;
}
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 setImageStoreId(String imageStoreId) {
this.imageStoreId = imageStoreId;
}
public void setOrganizationIds(List<String> organizationIds) {
this.organizationIds = organizationIds;
}
public void setLabelIds(List<String> labelIds) {
this.labelIds = labelIds;
}
public void setPersonIds(List<String> personIds) {
this.personIds = personIds;
}
public void setIsElevator(Integer isElevator) {
this.isElevator = isElevator;
}
public void setDelPersonIds(List<String> delPersonIds) {
this.delPersonIds = delPersonIds;
}
public void setElevatorLabelIds(List<String> elevatorLabelIds) {
this.elevatorLabelIds = elevatorLabelIds;
}
public void setElevatorOrganizationIds(List<String> elevatorOrganizationIds) {
this.elevatorOrganizationIds = elevatorOrganizationIds;
}
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (!(o instanceof AcsPersonQueryParam)) {
return false;
}
AcsPersonQueryParam other = (AcsPersonQueryParam)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;
}
String this$imageStoreId = this.getImageStoreId();
String other$imageStoreId = other.getImageStoreId();
if (this$imageStoreId == null ? other$imageStoreId != null : !this$imageStoreId.equals(other$imageStoreId)) {
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;
}
List<String> this$personIds = this.getPersonIds();
List<String> other$personIds = other.getPersonIds();
if (this$personIds == null ? other$personIds != null : !((Object)this$personIds).equals(other$personIds)) {
return false;
}
Integer this$isElevator = this.getIsElevator();
Integer other$isElevator = other.getIsElevator();
if (this$isElevator == null ? other$isElevator != null : !((Object)this$isElevator).equals(other$isElevator)) {
return false;
}
List<String> this$delPersonIds = this.getDelPersonIds();
List<String> other$delPersonIds = other.getDelPersonIds();
if (this$delPersonIds == null ? other$delPersonIds != null : !((Object)this$delPersonIds).equals(other$delPersonIds)) {
return false;
}
List<String> this$elevatorLabelIds = this.getElevatorLabelIds();
List<String> other$elevatorLabelIds = other.getElevatorLabelIds();
if (this$elevatorLabelIds == null ? other$elevatorLabelIds != null : !((Object)this$elevatorLabelIds).equals(other$elevatorLabelIds)) {
return false;
}
List<String> this$elevatorOrganizationIds = this.getElevatorOrganizationIds();
List<String> other$elevatorOrganizationIds = other.getElevatorOrganizationIds();
return !(this$elevatorOrganizationIds == null ? other$elevatorOrganizationIds != null : !((Object)this$elevatorOrganizationIds).equals(other$elevatorOrganizationIds));
}
protected boolean canEqual(Object other) {
return other instanceof AcsPersonQueryParam;
}
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());
String $imageStoreId = this.getImageStoreId();
result = result * 59 + ($imageStoreId == null ? 43 : $imageStoreId.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());
List<String> $personIds = this.getPersonIds();
result = result * 59 + ($personIds == null ? 43 : ((Object)$personIds).hashCode());
Integer $isElevator = this.getIsElevator();
result = result * 59 + ($isElevator == null ? 43 : ((Object)$isElevator).hashCode());
List<String> $delPersonIds = this.getDelPersonIds();
result = result * 59 + ($delPersonIds == null ? 43 : ((Object)$delPersonIds).hashCode());
List<String> $elevatorLabelIds = this.getElevatorLabelIds();
result = result * 59 + ($elevatorLabelIds == null ? 43 : ((Object)$elevatorLabelIds).hashCode());
List<String> $elevatorOrganizationIds = this.getElevatorOrganizationIds();
result = result * 59 + ($elevatorOrganizationIds == null ? 43 : ((Object)$elevatorOrganizationIds).hashCode());
return result;
}
public String toString() {
return "AcsPersonQueryParam(parentId=" + this.getParentId() + ", zoneId=" + this.getZoneId() + ", personName=" + this.getPersonName() + ", imageStoreId=" + this.getImageStoreId() + ", organizationIds=" + this.getOrganizationIds() + ", labelIds=" + this.getLabelIds() + ", personIds=" + this.getPersonIds() + ", isElevator=" + this.getIsElevator() + ", delPersonIds=" + this.getDelPersonIds() + ", elevatorLabelIds=" + this.getElevatorLabelIds() + ", elevatorOrganizationIds=" + this.getElevatorOrganizationIds() + ")";
}
}
@@ -0,0 +1,35 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* org.hibernate.validator.constraints.NotBlank
*/
package cn.cloudwalk.elevator.person.param;
import java.io.Serializable;
import org.hibernate.validator.constraints.NotBlank;
public class AcsPersonTimeDetailParam
implements Serializable {
private static final long serialVersionUID = 9094521665731451301L;
private String imageStoreId;
@NotBlank(message="76260405")
private String personId;
public String getImageStoreId() {
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.param;
import cn.cloudwalk.cloud.page.CloudwalkBasePageForm;
import java.io.Serializable;
public class PersonDetailQueryParam
extends CloudwalkBasePageForm
implements Serializable {
private static final long serialVersionUID = -8830219133147503297L;
private String parentId;
private String zoneId;
private String ruleId;
private String personName;
public 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 PersonDetailQueryParam)) {
return false;
}
PersonDetailQueryParam other = (PersonDetailQueryParam)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 PersonDetailQueryParam;
}
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 "PersonDetailQueryParam(parentId=" + this.getParentId() + ", zoneId=" + this.getZoneId() + ", ruleId=" + this.getRuleId() + ", personName=" + this.getPersonName() + ")";
}
}
@@ -0,0 +1,40 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.elevator.person.result;
import java.io.Serializable;
import java.util.List;
public class AcsAppResult
implements Serializable {
private static final long serialVersionUID = 2531683869129123657L;
private String applicationId;
private String applicationName;
private List<String> passIntervals;
public String getApplicationId() {
return this.applicationId;
}
public void setApplicationId(String applicationId) {
this.applicationId = applicationId;
}
public String getApplicationName() {
return this.applicationName;
}
public void setApplicationName(String applicationName) {
this.applicationName = applicationName;
}
public List<String> getPassIntervals() {
return this.passIntervals;
}
public void setPassIntervals(List<String> passIntervals) {
this.passIntervals = passIntervals;
}
}
@@ -0,0 +1,39 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.elevator.person.result;
import java.io.Serializable;
public class AcsImageStoreStatisticsResult
implements Serializable {
private static final long serialVersionUID = 2509672603592424330L;
private String imageStoreId;
private String imageStoreName;
private Integer personNum;
public String getImageStoreId() {
return this.imageStoreId;
}
public void setImageStoreId(String imageStoreId) {
this.imageStoreId = imageStoreId;
}
public String getImageStoreName() {
return this.imageStoreName;
}
public void setImageStoreName(String imageStoreName) {
this.imageStoreName = imageStoreName;
}
public Integer getPersonNum() {
return this.personNum;
}
public void setPersonNum(Integer personNum) {
this.personNum = personNum;
}
}
@@ -0,0 +1,23 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.elevator.person.result;
import cn.cloudwalk.elevator.person.result.AppImageStoreStatisticsResult;
import java.io.Serializable;
import java.util.List;
public class AcsImagestorePersonStatisticsResult
implements Serializable {
private static final long serialVersionUID = 8443213995134853671L;
private List<AppImageStoreStatisticsResult> appImageStores;
public List<AppImageStoreStatisticsResult> getAppImageStores() {
return this.appImageStores;
}
public void setAppImageStores(List<AppImageStoreStatisticsResult> appImageStores) {
this.appImageStores = appImageStores;
}
}
@@ -0,0 +1,50 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.elevator.person.result;
import cn.cloudwalk.elevator.person.result.AcsAppResult;
import java.io.Serializable;
import java.util.List;
public class AcsPersonDetailResult
implements Serializable {
private static final long serialVersionUID = 6635686175965530739L;
private String personId;
private String personName;
private String comparePicture;
private List<AcsAppResult> apps;
public String getPersonId() {
return this.personId;
}
public void setPersonId(String personId) {
this.personId = personId;
}
public String getPersonName() {
return this.personName;
}
public void setPersonName(String personName) {
this.personName = personName;
}
public String getComparePicture() {
return this.comparePicture;
}
public void setComparePicture(String comparePicture) {
this.comparePicture = comparePicture;
}
public List<AcsAppResult> getApps() {
return this.apps;
}
public void setApps(List<AcsAppResult> apps) {
this.apps = apps;
}
}
@@ -0,0 +1,22 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.elevator.person.result;
import java.io.Serializable;
import java.util.List;
public class AcsPersonFaceResult
implements Serializable {
private static final long serialVersionUID = 4874996308674266909L;
private List<String> personIds;
public List<String> getPersonIds() {
return this.personIds;
}
public void setPersonIds(List<String> personIds) {
this.personIds = personIds;
}
}
@@ -0,0 +1,170 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.elevator.annontation.DavinciPic
*/
package cn.cloudwalk.elevator.person.result;
import cn.cloudwalk.elevator.annontation.DavinciPic;
import java.io.Serializable;
public class AcsPersonResult
implements Serializable {
private static final long serialVersionUID = 2503821740888865432L;
private String imageStoreId;
private String personId;
private String imageId;
private String personName;
@DavinciPic
private String comparePicture;
private Long startTime;
private Long endTime;
private Integer gender;
private Integer age;
private Long groupTime;
private Integer status;
private String errorMessage;
private String passableTimeName;
private String icCardNo;
private Integer passType;
private String ruleName;
private String ruleId;
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;
}
public String getImageId() {
return this.imageId;
}
public void setImageId(String imageId) {
this.imageId = imageId;
}
public String getPersonName() {
return this.personName;
}
public void setPersonName(String personName) {
this.personName = personName;
}
public String getComparePicture() {
return this.comparePicture;
}
public void setComparePicture(String comparePicture) {
this.comparePicture = comparePicture;
}
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 Integer getGender() {
return this.gender;
}
public void setGender(Integer gender) {
this.gender = gender;
}
public Integer getAge() {
return this.age;
}
public void setAge(Integer age) {
this.age = age;
}
public Long getGroupTime() {
return this.groupTime;
}
public void setGroupTime(Long groupTime) {
this.groupTime = groupTime;
}
public Integer getStatus() {
return this.status;
}
public void setStatus(Integer status) {
this.status = status;
}
public String getErrorMessage() {
return this.errorMessage;
}
public void setErrorMessage(String errorMessage) {
this.errorMessage = errorMessage;
}
public String getPassableTimeName() {
return this.passableTimeName;
}
public void setPassableTimeName(String passableTimeName) {
this.passableTimeName = passableTimeName;
}
public String getIcCardNo() {
return this.icCardNo;
}
public void setIcCardNo(String icCardNo) {
this.icCardNo = icCardNo;
}
public Integer getPassType() {
return this.passType;
}
public void setPassType(Integer passType) {
this.passType = passType;
}
public String getRuleId() {
return this.ruleId;
}
public void setRuleId(String ruleId) {
this.ruleId = ruleId;
}
public String getRuleName() {
return this.ruleName;
}
public void setRuleName(String ruleName) {
this.ruleName = ruleName;
}
}
@@ -0,0 +1,91 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.elevator.annontation.DavinciPic
*/
package cn.cloudwalk.elevator.person.result;
import cn.cloudwalk.elevator.annontation.DavinciPic;
import cn.cloudwalk.elevator.passrule.param.AcsPassTimeCycleParam;
import java.io.Serializable;
import java.util.List;
public class AcsPersonTimeDetailResult
implements Serializable {
private static final long serialVersionUID = -7081148493292998146L;
private String personId;
private String personName;
@DavinciPic
private String comparePicture;
private String passableTimeName;
private List<AcsPassTimeCycleParam> passableCycle;
private Long beginDate;
private Long endDate;
private Integer passType;
public String getPersonId() {
return this.personId;
}
public void setPersonId(String personId) {
this.personId = personId;
}
public String getPersonName() {
return this.personName;
}
public void setPersonName(String personName) {
this.personName = personName;
}
public String getComparePicture() {
return this.comparePicture;
}
public void setComparePicture(String comparePicture) {
this.comparePicture = comparePicture;
}
public String getPassableTimeName() {
return this.passableTimeName;
}
public void setPassableTimeName(String passableTimeName) {
this.passableTimeName = passableTimeName;
}
public List<AcsPassTimeCycleParam> getPassableCycle() {
return this.passableCycle;
}
public void setPassableCycle(List<AcsPassTimeCycleParam> passableCycle) {
this.passableCycle = passableCycle;
}
public Long getBeginDate() {
return this.beginDate;
}
public void setBeginDate(Long beginDate) {
this.beginDate = beginDate;
}
public Long getEndDate() {
return this.endDate;
}
public void setEndDate(Long endDate) {
this.endDate = endDate;
}
public Integer getPassType() {
return this.passType;
}
public void setPassType(Integer passType) {
this.passType = passType;
}
}
@@ -0,0 +1,59 @@
/*
* Decompiled with CFR 0.152.
*/
package cn.cloudwalk.elevator.person.result;
import cn.cloudwalk.elevator.person.result.AcsImageStoreStatisticsResult;
import java.io.Serializable;
import java.util.List;
public class AppImageStoreStatisticsResult
implements Serializable {
private static final long serialVersionUID = 4038169574154456396L;
private String applicationId;
private String applicationName;
private String serviceCode;
private Integer personNum;
private List<AcsImageStoreStatisticsResult> imageStores;
public String getApplicationId() {
return this.applicationId;
}
public void setApplicationId(String applicationId) {
this.applicationId = applicationId;
}
public String getApplicationName() {
return this.applicationName;
}
public void setApplicationName(String applicationName) {
this.applicationName = applicationName;
}
public String getServiceCode() {
return this.serviceCode;
}
public void setServiceCode(String serviceCode) {
this.serviceCode = serviceCode;
}
public Integer getPersonNum() {
return this.personNum;
}
public void setPersonNum(Integer personNum) {
this.personNum = personNum;
}
public List<AcsImageStoreStatisticsResult> getImageStores() {
return this.imageStores;
}
public void setImageStores(List<AcsImageStoreStatisticsResult> imageStores) {
this.imageStores = imageStores;
}
}
@@ -0,0 +1,40 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* 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
*/
package cn.cloudwalk.elevator.person.service;
import cn.cloudwalk.cloud.context.CloudwalkCallContext;
import cn.cloudwalk.cloud.exception.ServiceException;
import cn.cloudwalk.cloud.page.CloudwalkPageAble;
import cn.cloudwalk.cloud.page.CloudwalkPageInfo;
import cn.cloudwalk.cloud.result.CloudwalkResult;
import cn.cloudwalk.elevator.person.param.AcsPersonAddParam;
import cn.cloudwalk.elevator.person.param.AcsPersonDeleteParam;
import cn.cloudwalk.elevator.person.param.AcsPersonEditParam;
import cn.cloudwalk.elevator.person.param.AcsPersonQueryByAppParam;
import cn.cloudwalk.elevator.person.param.AcsPersonQueryParam;
import cn.cloudwalk.elevator.person.param.AcsPersonTimeDetailParam;
import cn.cloudwalk.elevator.person.result.AcsPersonResult;
import cn.cloudwalk.elevator.person.result.AcsPersonTimeDetailResult;
public interface AcsPersonService {
public CloudwalkResult<Boolean> add(AcsPersonAddParam var1, CloudwalkCallContext var2) throws ServiceException;
public CloudwalkResult<Boolean> edit(AcsPersonEditParam var1, CloudwalkCallContext var2) throws ServiceException;
public CloudwalkResult<Boolean> delete(AcsPersonDeleteParam var1, CloudwalkCallContext var2) throws ServiceException;
public CloudwalkResult<CloudwalkPageAble<AcsPersonResult>> page(AcsPersonQueryParam var1, CloudwalkPageInfo var2, CloudwalkCallContext var3) throws ServiceException;
public CloudwalkResult<AcsPersonTimeDetailResult> timeDetail(AcsPersonTimeDetailParam var1, CloudwalkCallContext var2) throws ServiceException;
public CloudwalkResult<CloudwalkPageAble<AcsPersonResult>> pageByApp(AcsPersonQueryByAppParam var1, CloudwalkPageInfo var2, CloudwalkCallContext var3) throws ServiceException;
}
@@ -0,0 +1,48 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.result.ImageStorePersonResult
* 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
*/
package cn.cloudwalk.elevator.person.service;
import cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.result.ImageStorePersonResult;
import cn.cloudwalk.cloud.context.CloudwalkCallContext;
import cn.cloudwalk.cloud.exception.ServiceException;
import cn.cloudwalk.cloud.page.CloudwalkPageAble;
import cn.cloudwalk.cloud.page.CloudwalkPageInfo;
import cn.cloudwalk.cloud.result.CloudwalkResult;
import cn.cloudwalk.elevator.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;
public interface PersonRuleService {
public CloudwalkResult<Boolean> add(AcsPersonAddParam var1, CloudwalkCallContext var2) throws ServiceException;
public CloudwalkResult<Boolean> addVisitor(AcsPersonAddVisitorParam var1, CloudwalkCallContext var2) throws ServiceException;
public CloudwalkResult<Boolean> edit(AcsPersonEditParam var1, CloudwalkCallContext var2) throws ServiceException;
public CloudwalkResult<Boolean> delete(AcsPersonDeleteParam var1, CloudwalkCallContext var2) throws ServiceException;
public CloudwalkResult<CloudwalkPageAble<AcsPersonResult>> page(AcsPersonQueryParam var1, CloudwalkPageInfo var2, CloudwalkCallContext var3) throws ServiceException;
public CloudwalkResult<AcsPersonTimeDetailResult> timeDetail(AcsPersonTimeDetailParam var1, CloudwalkCallContext var2) throws ServiceException;
public CloudwalkResult<CloudwalkPageAble<AcsPersonResult>> pageByApp(AcsPersonQueryByAppParam var1, CloudwalkPageInfo var2, CloudwalkCallContext var3) throws ServiceException;
public CloudwalkResult<CloudwalkPageAble<ImageStorePersonResult>> personDetail(PersonDetailQueryParam var1, CloudwalkCallContext var2) throws ServiceException;
}