mirror of
https://github.com/hpd840321/starRiverProperty.git
synced 2026-06-10 08:50:29 +08:00
fix: relocate cwos-portal decompiled output to correct path; remove nested directory
Former-commit-id: dc30d42a8c55ed8b2382a41dc2434233fbed9930
This commit is contained in:
+176
@@ -0,0 +1,176 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.cloud.exception.ServiceException
|
||||
* cn.cloudwalk.cloud.page.CloudwalkPageAble
|
||||
* cn.cloudwalk.cloud.page.CloudwalkPageInfo
|
||||
* cn.cloudwalk.cloud.result.CloudwalkResult
|
||||
* cn.cloudwalk.cloud.utils.BeanCopyUtils
|
||||
* cn.cloudwalk.elevator.passrule.dto.AcsPassRuleImageResultDto
|
||||
* cn.cloudwalk.elevator.passrule.dto.AcsPassRulePersonListResultDto
|
||||
* cn.cloudwalk.elevator.passrule.param.AcsPassRuleDeleteParam
|
||||
* cn.cloudwalk.elevator.passrule.param.AcsPassRuleEditParam
|
||||
* cn.cloudwalk.elevator.passrule.param.AcsPassRuleFloorParam
|
||||
* cn.cloudwalk.elevator.passrule.param.AcsPassRuleImageParam
|
||||
* cn.cloudwalk.elevator.passrule.param.AcsPassRuleNewParam
|
||||
* cn.cloudwalk.elevator.passrule.param.AcsPassRulePersonListParam
|
||||
* cn.cloudwalk.elevator.passrule.param.AcsPassRuleQueryParam
|
||||
* cn.cloudwalk.elevator.passrule.result.AcsPassRuleFloorResult
|
||||
* cn.cloudwalk.elevator.passrule.result.ImageRuleRefDetailResult
|
||||
* cn.cloudwalk.elevator.passrule.result.ImageRuleRefPageResult
|
||||
* cn.cloudwalk.elevator.passrule.service.AcsPassRuleService
|
||||
* cn.cloudwalk.elevator.passrule.service.ImageRuleRefService
|
||||
* org.springframework.web.bind.annotation.RequestBody
|
||||
* org.springframework.web.bind.annotation.RequestMapping
|
||||
* org.springframework.web.bind.annotation.RestController
|
||||
*/
|
||||
package cn.cloudwalk.elevator.passrule.controller;
|
||||
|
||||
import cn.cloudwalk.cloud.exception.ServiceException;
|
||||
import cn.cloudwalk.cloud.page.CloudwalkPageAble;
|
||||
import cn.cloudwalk.cloud.page.CloudwalkPageInfo;
|
||||
import cn.cloudwalk.cloud.result.CloudwalkResult;
|
||||
import cn.cloudwalk.cloud.utils.BeanCopyUtils;
|
||||
import cn.cloudwalk.elevator.common.AbstractCloudwalkController;
|
||||
import cn.cloudwalk.elevator.passrule.dto.AcsPassRuleImageResultDto;
|
||||
import cn.cloudwalk.elevator.passrule.dto.AcsPassRulePersonListResultDto;
|
||||
import cn.cloudwalk.elevator.passrule.form.AcsPassRuleDeleteForm;
|
||||
import cn.cloudwalk.elevator.passrule.form.AcsPassRuleEditForm;
|
||||
import cn.cloudwalk.elevator.passrule.form.AcsPassRuleFloorForm;
|
||||
import cn.cloudwalk.elevator.passrule.form.AcsPassRuleImageForm;
|
||||
import cn.cloudwalk.elevator.passrule.form.AcsPassRuleNewForm;
|
||||
import cn.cloudwalk.elevator.passrule.form.AcsPassRulePersonListForm;
|
||||
import cn.cloudwalk.elevator.passrule.form.AcsPassRuleQueryForm;
|
||||
import cn.cloudwalk.elevator.passrule.param.AcsPassRuleDeleteParam;
|
||||
import cn.cloudwalk.elevator.passrule.param.AcsPassRuleEditParam;
|
||||
import cn.cloudwalk.elevator.passrule.param.AcsPassRuleFloorParam;
|
||||
import cn.cloudwalk.elevator.passrule.param.AcsPassRuleImageParam;
|
||||
import cn.cloudwalk.elevator.passrule.param.AcsPassRuleNewParam;
|
||||
import cn.cloudwalk.elevator.passrule.param.AcsPassRulePersonListParam;
|
||||
import cn.cloudwalk.elevator.passrule.param.AcsPassRuleQueryParam;
|
||||
import cn.cloudwalk.elevator.passrule.result.AcsPassRuleFloorResult;
|
||||
import cn.cloudwalk.elevator.passrule.result.ImageRuleRefDetailResult;
|
||||
import cn.cloudwalk.elevator.passrule.result.ImageRuleRefPageResult;
|
||||
import cn.cloudwalk.elevator.passrule.service.AcsPassRuleService;
|
||||
import cn.cloudwalk.elevator.passrule.service.ImageRuleRefService;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import javax.annotation.Resource;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
@RestController
|
||||
@RequestMapping(value={"/elevator/passRule"})
|
||||
public class AcsPassRuleController
|
||||
extends AbstractCloudwalkController {
|
||||
@Resource
|
||||
private AcsPassRuleService acsPassRuleService;
|
||||
@Resource
|
||||
private ImageRuleRefService imageRuleRefService;
|
||||
|
||||
@RequestMapping(value={"/floor"})
|
||||
public CloudwalkResult<CloudwalkPageAble<AcsPassRuleFloorResult>> listFloor(@RequestBody AcsPassRuleFloorForm form) {
|
||||
AcsPassRuleFloorParam param = (AcsPassRuleFloorParam)BeanCopyUtils.copyProperties((Object)form, AcsPassRuleFloorParam.class);
|
||||
try {
|
||||
return this.imageRuleRefService.listFloor(param, this.getCloudwalkContext());
|
||||
}
|
||||
catch (ServiceException e) {
|
||||
this.LOGGER.error("\u67e5\u8be2\u6240\u6709\u697c\u5c42\u4fe1\u606f\u5931\u8d25\uff0c\u539f\u56e0\uff1a{}", (Throwable)e);
|
||||
return CloudwalkResult.fail((String)"76260520", (String)e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
@RequestMapping(value={"/add"})
|
||||
public CloudwalkResult<Boolean> add(@RequestBody AcsPassRuleNewForm form) {
|
||||
AcsPassRuleNewParam param = (AcsPassRuleNewParam)BeanCopyUtils.copyProperties((Object)form, AcsPassRuleNewParam.class);
|
||||
try {
|
||||
return this.imageRuleRefService.addOnlyRule(param, this.getCloudwalkContext());
|
||||
}
|
||||
catch (ServiceException e) {
|
||||
this.LOGGER.error("\u65b0\u589e\u901a\u884c\u89c4\u5219\u5931\u8d25\uff0c\u539f\u56e0\uff1a{}", (Throwable)e);
|
||||
return CloudwalkResult.fail((String)"76260505", (String)e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
@RequestMapping(value={"/edit"})
|
||||
public CloudwalkResult<Boolean> edit(@RequestBody AcsPassRuleEditForm form) {
|
||||
AcsPassRuleEditParam param = (AcsPassRuleEditParam)BeanCopyUtils.copyProperties((Object)form, AcsPassRuleEditParam.class);
|
||||
try {
|
||||
return this.imageRuleRefService.update(param, this.getCloudwalkContext());
|
||||
}
|
||||
catch (ServiceException e) {
|
||||
this.LOGGER.error("\u4fee\u6539\u901a\u884c\u89c4\u5219\u5931\u8d25\uff0c\u539f\u56e0\uff1a{}", (Throwable)e);
|
||||
return CloudwalkResult.fail((String)"76260506", (String)e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
@RequestMapping(value={"/delete"})
|
||||
public CloudwalkResult<Boolean> delete(@RequestBody AcsPassRuleDeleteForm form) {
|
||||
AcsPassRuleDeleteParam param = (AcsPassRuleDeleteParam)BeanCopyUtils.copyProperties((Object)form, AcsPassRuleDeleteParam.class);
|
||||
try {
|
||||
return this.imageRuleRefService.delete(param, this.getCloudwalkContext());
|
||||
}
|
||||
catch (ServiceException e) {
|
||||
this.LOGGER.error("\u5220\u9664\u901a\u884c\u89c4\u5219\u5931\u8d25\uff0c\u539f\u56e0\uff1a{}", (Throwable)e);
|
||||
return CloudwalkResult.fail((String)"76260507", (String)e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
@RequestMapping(value={"/detail"})
|
||||
public CloudwalkResult<ImageRuleRefDetailResult> detail(@RequestBody AcsPassRuleQueryForm form) {
|
||||
AcsPassRuleQueryParam param = (AcsPassRuleQueryParam)BeanCopyUtils.copyProperties((Object)form, AcsPassRuleQueryParam.class);
|
||||
try {
|
||||
return this.imageRuleRefService.detail(param, this.getCloudwalkContext());
|
||||
}
|
||||
catch (ServiceException e) {
|
||||
this.LOGGER.error("\u67e5\u8be2\u901a\u884c\u89c4\u5219\u8be6\u60c5\u5931\u8d25\uff0c\u539f\u56e0\uff1a{}", (Throwable)e);
|
||||
return CloudwalkResult.fail((String)"76260508", (String)e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
@RequestMapping(value={"/page"})
|
||||
public CloudwalkResult<CloudwalkPageAble<ImageRuleRefPageResult>> page(@RequestBody AcsPassRuleQueryForm form) {
|
||||
AcsPassRuleQueryParam param = (AcsPassRuleQueryParam)BeanCopyUtils.copyProperties((Object)form, AcsPassRuleQueryParam.class);
|
||||
try {
|
||||
CloudwalkPageInfo page = new CloudwalkPageInfo(form.getPageNo().intValue(), form.getPageSize().intValue());
|
||||
return this.imageRuleRefService.page(param, page, this.getCloudwalkContext());
|
||||
}
|
||||
catch (ServiceException e) {
|
||||
this.LOGGER.error("\u5206\u9875\u67e5\u8be2\u901a\u884c\u89c4\u5219\u5931\u8d25\uff0c\u539f\u56e0\uff1a{}", (Throwable)e);
|
||||
return CloudwalkResult.fail((String)"76260508", (String)e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
@RequestMapping(value={"/image"})
|
||||
public CloudwalkResult<List<AcsPassRuleImageResultDto>> listByImageId(@RequestBody AcsPassRuleImageForm form) {
|
||||
AcsPassRuleImageParam param = (AcsPassRuleImageParam)BeanCopyUtils.copyProperties((Object)form, AcsPassRuleImageParam.class);
|
||||
try {
|
||||
return this.imageRuleRefService.listByPersonInfo(param, this.getCloudwalkContext());
|
||||
}
|
||||
catch (ServiceException e) {
|
||||
this.LOGGER.error("\u6839\u636e\u4eba\u5458id\u3001\u6807\u7b7e\u96c6\u5408\u3001\u673a\u6784\u96c6\u5408\u83b7\u53d6\u697c\u5c42\u6743\u9650\u5931\u8d25\uff0c\u539f\u56e0\uff1a{}", (Throwable)e);
|
||||
return CloudwalkResult.fail((String)"76260526", (String)e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
@RequestMapping(value={"/image/list"})
|
||||
public CloudwalkResult<List<AcsPassRulePersonListResultDto>> listByPersonList(@RequestBody AcsPassRulePersonListForm form) {
|
||||
AcsPassRulePersonListParam param = new AcsPassRulePersonListParam();
|
||||
ArrayList<AcsPassRuleImageParam> imageParam = new ArrayList<AcsPassRuleImageParam>();
|
||||
for (AcsPassRuleImageForm imageForm : form.getPersonList()) {
|
||||
AcsPassRuleImageParam copyProperties = (AcsPassRuleImageParam)BeanCopyUtils.copyProperties((Object)imageForm, AcsPassRuleImageParam.class);
|
||||
imageParam.add(copyProperties);
|
||||
}
|
||||
param.setPersonList(imageParam);
|
||||
try {
|
||||
return this.imageRuleRefService.listByPersonList(param, this.getCloudwalkContext());
|
||||
}
|
||||
catch (ServiceException e) {
|
||||
this.LOGGER.error("\u6279\u91cf\u83b7\u53d6\u697c\u5c42\u6743\u9650\u5931\u8d25\uff0c\u539f\u56e0\uff1a{}", (Throwable)e);
|
||||
return CloudwalkResult.fail((String)"76260526", (String)e.getMessage());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.cloud.exception.DataAccessException
|
||||
* cn.cloudwalk.cloud.page.CloudwalkPageAble
|
||||
* cn.cloudwalk.cloud.page.CloudwalkPageInfo
|
||||
*/
|
||||
package cn.cloudwalk.elevator.passrule.dao;
|
||||
|
||||
import cn.cloudwalk.cloud.exception.DataAccessException;
|
||||
import cn.cloudwalk.cloud.page.CloudwalkPageAble;
|
||||
import cn.cloudwalk.cloud.page.CloudwalkPageInfo;
|
||||
import cn.cloudwalk.elevator.passrule.dto.AcsPassRuleAddDto;
|
||||
import cn.cloudwalk.elevator.passrule.dto.AcsPassRuleDeleteDto;
|
||||
import cn.cloudwalk.elevator.passrule.dto.AcsPassRuleEditDto;
|
||||
import cn.cloudwalk.elevator.passrule.dto.AcsPassRuleImageDto;
|
||||
import cn.cloudwalk.elevator.passrule.dto.AcsPassRuleImageResultDto;
|
||||
import cn.cloudwalk.elevator.passrule.dto.AcsPassRuleIsDefaultDto;
|
||||
import cn.cloudwalk.elevator.passrule.dto.AcsPassRuleQueryDto;
|
||||
import cn.cloudwalk.elevator.passrule.dto.AcsPassRuleResultDto;
|
||||
import java.util.List;
|
||||
|
||||
public interface AcsPassRuleDao {
|
||||
public Integer insert(AcsPassRuleAddDto var1) throws DataAccessException;
|
||||
|
||||
public Integer update(AcsPassRuleEditDto var1) throws DataAccessException;
|
||||
|
||||
public Integer delete(AcsPassRuleDeleteDto var1) throws DataAccessException;
|
||||
|
||||
public CloudwalkPageAble<AcsPassRuleResultDto> page(AcsPassRuleQueryDto var1, CloudwalkPageInfo var2) throws DataAccessException;
|
||||
|
||||
public List<AcsPassRuleResultDto> list(AcsPassRuleQueryDto var1) throws DataAccessException;
|
||||
|
||||
public String getIsDefaultByZoneId(AcsPassRuleIsDefaultDto var1) throws DataAccessException;
|
||||
|
||||
public List<AcsPassRuleImageResultDto> listByImageId(AcsPassRuleImageDto var1) throws DataAccessException;
|
||||
}
|
||||
|
||||
+79
@@ -0,0 +1,79 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.cloud.exception.DataAccessException
|
||||
* cn.cloudwalk.cloud.page.CloudwalkPageAble
|
||||
* cn.cloudwalk.cloud.page.CloudwalkPageInfo
|
||||
*/
|
||||
package cn.cloudwalk.elevator.passrule.dao;
|
||||
|
||||
import cn.cloudwalk.cloud.exception.DataAccessException;
|
||||
import cn.cloudwalk.cloud.page.CloudwalkPageAble;
|
||||
import cn.cloudwalk.cloud.page.CloudwalkPageInfo;
|
||||
import cn.cloudwalk.elevator.passrule.dto.AcsPassRuleDeleteDto;
|
||||
import cn.cloudwalk.elevator.passrule.dto.AcsPassRuleImageDto;
|
||||
import cn.cloudwalk.elevator.passrule.dto.AcsPassRuleImageResultDto;
|
||||
import cn.cloudwalk.elevator.passrule.dto.AcsPassRuleLabelResultDto;
|
||||
import cn.cloudwalk.elevator.passrule.dto.AcsPassRulePersonListDto;
|
||||
import cn.cloudwalk.elevator.passrule.dto.AcsPassRuleQueryDto;
|
||||
import cn.cloudwalk.elevator.passrule.dto.ImageRuleRefAddDto;
|
||||
import cn.cloudwalk.elevator.passrule.dto.ImageRuleRefResultDto;
|
||||
import java.util.List;
|
||||
|
||||
public interface ImageRuleRefDao {
|
||||
public CloudwalkPageAble<ImageRuleRefResultDto> page(AcsPassRuleQueryDto var1, CloudwalkPageInfo var2) throws DataAccessException;
|
||||
|
||||
public List<String> listRuleByZoneIdExtDefault(String var1);
|
||||
|
||||
public List<ImageRuleRefResultDto> listByParentRule(List<String> var1);
|
||||
|
||||
public List<ImageRuleRefResultDto> listByPersonId(String var1) throws DataAccessException;
|
||||
|
||||
public List<ImageRuleRefResultDto> listByLabelId(String var1) throws DataAccessException;
|
||||
|
||||
public List<ImageRuleRefResultDto> listByOrgId(String var1) throws DataAccessException;
|
||||
|
||||
public List<AcsPassRuleImageResultDto> listByPersonInfo(AcsPassRuleImageDto var1) throws DataAccessException;
|
||||
|
||||
public List<AcsPassRuleImageResultDto> listByRestructure(AcsPassRuleImageDto var1) throws DataAccessException;
|
||||
|
||||
public List<AcsPassRuleLabelResultDto> listFloorsByRestructure(AcsPassRuleImageDto var1) throws DataAccessException;
|
||||
|
||||
public List<AcsPassRuleImageResultDto> listZoneInfoByIds(List<String> var1) throws DataAccessException;
|
||||
|
||||
public List<AcsPassRuleImageResultDto> listByNotZoneIds(AcsPassRuleQueryDto var1) throws DataAccessException;
|
||||
|
||||
public List<ImageRuleRefResultDto> listByPersonList(AcsPassRulePersonListDto var1) throws DataAccessException;
|
||||
|
||||
public List<String> listPersonDelByZoneId(String var1) throws DataAccessException;
|
||||
|
||||
public List<String> listPersonDelByPersonId(String var1) throws DataAccessException;
|
||||
|
||||
public ImageRuleRefResultDto getDefaultByZoneId(String var1) throws DataAccessException;
|
||||
|
||||
public ImageRuleRefResultDto getById(String var1) throws DataAccessException;
|
||||
|
||||
public String getByRuleName(String var1, String var2) throws DataAccessException;
|
||||
|
||||
public ImageRuleRefResultDto getByPersonIdAndZoneId(List<String> var1, String var2) throws DataAccessException;
|
||||
|
||||
public ImageRuleRefResultDto getDelByPersonIdAndZoneId(String var1, String var2) throws DataAccessException;
|
||||
|
||||
public List<String> countPersonIdByZoneId(String var1) throws DataAccessException;
|
||||
|
||||
public Boolean insert(ImageRuleRefAddDto var1) throws DataAccessException;
|
||||
|
||||
public Boolean insertList(List<ImageRuleRefAddDto> var1) throws DataAccessException;
|
||||
|
||||
public Boolean deleteById(String var1) throws DataAccessException;
|
||||
|
||||
public Boolean deleteByZoneIdAndName(String var1, String var2) throws DataAccessException;
|
||||
|
||||
public Boolean deleteByPersonIdsIsDel(List<String> var1, String var2) throws DataAccessException;
|
||||
|
||||
public Boolean deleteByPersonId(String var1, String var2) throws DataAccessException;
|
||||
|
||||
public Boolean deleteByOrgAndLabel(AcsPassRuleDeleteDto var1) throws DataAccessException;
|
||||
}
|
||||
|
||||
+107
@@ -0,0 +1,107 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.cloud.entity.CloudwalkBaseTimes
|
||||
*/
|
||||
package cn.cloudwalk.elevator.passrule.dto;
|
||||
|
||||
import cn.cloudwalk.cloud.entity.CloudwalkBaseTimes;
|
||||
import java.io.Serializable;
|
||||
|
||||
public class AcsPassRuleAddDto
|
||||
extends CloudwalkBaseTimes
|
||||
implements Serializable {
|
||||
private static final long serialVersionUID = 6909321999650444051L;
|
||||
private String businessId;
|
||||
private String name;
|
||||
private String zoneId;
|
||||
private String zoneName;
|
||||
private String validDateCron;
|
||||
private String validDateJson;
|
||||
private Long beginDate;
|
||||
private Long endDate;
|
||||
private String imageStoreId;
|
||||
private Integer isDefault;
|
||||
|
||||
public String getZoneId() {
|
||||
return this.zoneId;
|
||||
}
|
||||
|
||||
public void setZoneId(String zoneId) {
|
||||
this.zoneId = zoneId;
|
||||
}
|
||||
|
||||
public String getZoneName() {
|
||||
return this.zoneName;
|
||||
}
|
||||
|
||||
public void setZoneName(String zoneName) {
|
||||
this.zoneName = zoneName;
|
||||
}
|
||||
|
||||
public String getBusinessId() {
|
||||
return this.businessId;
|
||||
}
|
||||
|
||||
public void setBusinessId(String businessId) {
|
||||
this.businessId = businessId;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return this.name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getValidDateCron() {
|
||||
return this.validDateCron;
|
||||
}
|
||||
|
||||
public void setValidDateCron(String validDateCron) {
|
||||
this.validDateCron = validDateCron;
|
||||
}
|
||||
|
||||
public String getValidDateJson() {
|
||||
return this.validDateJson;
|
||||
}
|
||||
|
||||
public void setValidDateJson(String validDateJson) {
|
||||
this.validDateJson = validDateJson;
|
||||
}
|
||||
|
||||
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 String getImageStoreId() {
|
||||
return this.imageStoreId;
|
||||
}
|
||||
|
||||
public void setImageStoreId(String imageStoreId) {
|
||||
this.imageStoreId = imageStoreId;
|
||||
}
|
||||
|
||||
public Integer getIsDefault() {
|
||||
return this.isDefault;
|
||||
}
|
||||
|
||||
public void setIsDefault(Integer isDefault) {
|
||||
this.isDefault = isDefault;
|
||||
}
|
||||
}
|
||||
|
||||
+67
@@ -0,0 +1,67 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package cn.cloudwalk.elevator.passrule.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
public class AcsPassRuleDeleteDto
|
||||
implements Serializable {
|
||||
private static final long serialVersionUID = -6255045079103336579L;
|
||||
private String businessId;
|
||||
private String deviceId;
|
||||
private List<String> ids;
|
||||
private String zoneId;
|
||||
private String orgId;
|
||||
private String labelId;
|
||||
|
||||
public String getZoneId() {
|
||||
return this.zoneId;
|
||||
}
|
||||
|
||||
public void setZoneId(String zoneId) {
|
||||
this.zoneId = zoneId;
|
||||
}
|
||||
|
||||
public String getOrgId() {
|
||||
return this.orgId;
|
||||
}
|
||||
|
||||
public void setOrgId(String orgId) {
|
||||
this.orgId = orgId;
|
||||
}
|
||||
|
||||
public String getLabelId() {
|
||||
return this.labelId;
|
||||
}
|
||||
|
||||
public void setLabelId(String labelId) {
|
||||
this.labelId = labelId;
|
||||
}
|
||||
|
||||
public String getDeviceId() {
|
||||
return this.deviceId;
|
||||
}
|
||||
|
||||
public void setDeviceId(String deviceId) {
|
||||
this.deviceId = deviceId;
|
||||
}
|
||||
|
||||
public String getBusinessId() {
|
||||
return this.businessId;
|
||||
}
|
||||
|
||||
public void setBusinessId(String businessId) {
|
||||
this.businessId = businessId;
|
||||
}
|
||||
|
||||
public List<String> getIds() {
|
||||
return this.ids;
|
||||
}
|
||||
|
||||
public void setIds(List<String> ids) {
|
||||
this.ids = ids;
|
||||
}
|
||||
}
|
||||
|
||||
+80
@@ -0,0 +1,80 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.cloud.entity.CloudwalkBaseTimes
|
||||
*/
|
||||
package cn.cloudwalk.elevator.passrule.dto;
|
||||
|
||||
import cn.cloudwalk.cloud.entity.CloudwalkBaseTimes;
|
||||
import java.io.Serializable;
|
||||
|
||||
public class AcsPassRuleEditDto
|
||||
extends CloudwalkBaseTimes
|
||||
implements Serializable {
|
||||
private static final long serialVersionUID = -9212159235737030371L;
|
||||
private String businessId;
|
||||
private String name;
|
||||
private String validDateCron;
|
||||
private String validDateJson;
|
||||
private Long beginDate;
|
||||
private Long endDate;
|
||||
private String imageStoreId;
|
||||
|
||||
public String getBusinessId() {
|
||||
return this.businessId;
|
||||
}
|
||||
|
||||
public void setBusinessId(String businessId) {
|
||||
this.businessId = businessId;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return this.name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getValidDateCron() {
|
||||
return this.validDateCron;
|
||||
}
|
||||
|
||||
public void setValidDateCron(String validDateCron) {
|
||||
this.validDateCron = validDateCron;
|
||||
}
|
||||
|
||||
public String getValidDateJson() {
|
||||
return this.validDateJson;
|
||||
}
|
||||
|
||||
public void setValidDateJson(String validDateJson) {
|
||||
this.validDateJson = validDateJson;
|
||||
}
|
||||
|
||||
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 String getImageStoreId() {
|
||||
return this.imageStoreId;
|
||||
}
|
||||
|
||||
public void setImageStoreId(String imageStoreId) {
|
||||
this.imageStoreId = imageStoreId;
|
||||
}
|
||||
}
|
||||
|
||||
+63
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.cloud.page.CloudwalkBasePageForm
|
||||
*/
|
||||
package cn.cloudwalk.elevator.passrule.dto;
|
||||
|
||||
import cn.cloudwalk.cloud.page.CloudwalkBasePageForm;
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
public class AcsPassRuleImageDto
|
||||
extends CloudwalkBasePageForm
|
||||
implements Serializable {
|
||||
private static final long serialVersionUID = -52687427633888290L;
|
||||
private List<String> imageStoreIds;
|
||||
private String businessId;
|
||||
private String personId;
|
||||
private List<String> includeOrganizations;
|
||||
private List<String> includeLabels;
|
||||
|
||||
public List<String> getImageStoreIds() {
|
||||
return this.imageStoreIds;
|
||||
}
|
||||
|
||||
public void setImageStoreIds(List<String> imageStoreIds) {
|
||||
this.imageStoreIds = imageStoreIds;
|
||||
}
|
||||
|
||||
public String getBusinessId() {
|
||||
return this.businessId;
|
||||
}
|
||||
|
||||
public void setBusinessId(String businessId) {
|
||||
this.businessId = businessId;
|
||||
}
|
||||
|
||||
public String getPersonId() {
|
||||
return this.personId;
|
||||
}
|
||||
|
||||
public void setPersonId(String personId) {
|
||||
this.personId = personId;
|
||||
}
|
||||
|
||||
public List<String> getIncludeOrganizations() {
|
||||
return this.includeOrganizations;
|
||||
}
|
||||
|
||||
public void setIncludeOrganizations(List<String> includeOrganizations) {
|
||||
this.includeOrganizations = includeOrganizations;
|
||||
}
|
||||
|
||||
public List<String> getIncludeLabels() {
|
||||
return this.includeLabels;
|
||||
}
|
||||
|
||||
public void setIncludeLabels(List<String> includeLabels) {
|
||||
this.includeLabels = includeLabels;
|
||||
}
|
||||
}
|
||||
|
||||
+35
@@ -0,0 +1,35 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package cn.cloudwalk.elevator.passrule.dto;
|
||||
|
||||
public class AcsPassRuleImageResultDto {
|
||||
private String zoneId;
|
||||
private String zoneName;
|
||||
private String imageStoreId;
|
||||
|
||||
public String getZoneId() {
|
||||
return this.zoneId;
|
||||
}
|
||||
|
||||
public void setZoneId(String zoneId) {
|
||||
this.zoneId = zoneId;
|
||||
}
|
||||
|
||||
public String getZoneName() {
|
||||
return this.zoneName;
|
||||
}
|
||||
|
||||
public void setZoneName(String zoneName) {
|
||||
this.zoneName = zoneName;
|
||||
}
|
||||
|
||||
public String getImageStoreId() {
|
||||
return this.imageStoreId;
|
||||
}
|
||||
|
||||
public void setImageStoreId(String imageStoreId) {
|
||||
this.imageStoreId = imageStoreId;
|
||||
}
|
||||
}
|
||||
|
||||
+35
@@ -0,0 +1,35 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.cloud.entity.CloudwalkBaseTimes
|
||||
*/
|
||||
package cn.cloudwalk.elevator.passrule.dto;
|
||||
|
||||
import cn.cloudwalk.cloud.entity.CloudwalkBaseTimes;
|
||||
import java.io.Serializable;
|
||||
|
||||
public class AcsPassRuleIsDefaultDto
|
||||
extends CloudwalkBaseTimes
|
||||
implements Serializable {
|
||||
private static final long serialVersionUID = 6909321999650444051L;
|
||||
private String businessId;
|
||||
private String zoneId;
|
||||
|
||||
public String getBusinessId() {
|
||||
return this.businessId;
|
||||
}
|
||||
|
||||
public void setBusinessId(String businessId) {
|
||||
this.businessId = businessId;
|
||||
}
|
||||
|
||||
public String getZoneId() {
|
||||
return this.zoneId;
|
||||
}
|
||||
|
||||
public void setZoneId(String zoneId) {
|
||||
this.zoneId = zoneId;
|
||||
}
|
||||
}
|
||||
|
||||
+35
@@ -0,0 +1,35 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package cn.cloudwalk.elevator.passrule.dto;
|
||||
|
||||
public class AcsPassRuleLabelResultDto {
|
||||
private String zoneId;
|
||||
private String zoneName;
|
||||
private String labelId;
|
||||
|
||||
public String getZoneId() {
|
||||
return this.zoneId;
|
||||
}
|
||||
|
||||
public void setZoneId(String zoneId) {
|
||||
this.zoneId = zoneId;
|
||||
}
|
||||
|
||||
public String getZoneName() {
|
||||
return this.zoneName;
|
||||
}
|
||||
|
||||
public void setZoneName(String zoneName) {
|
||||
this.zoneName = zoneName;
|
||||
}
|
||||
|
||||
public String getLabelId() {
|
||||
return this.labelId;
|
||||
}
|
||||
|
||||
public void setLabelId(String labelId) {
|
||||
this.labelId = labelId;
|
||||
}
|
||||
}
|
||||
|
||||
+49
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package cn.cloudwalk.elevator.passrule.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
public class AcsPassRulePersonListDto
|
||||
implements Serializable {
|
||||
private static final long serialVersionUID = -52687427633888290L;
|
||||
private String businessId;
|
||||
private List<String> personIds;
|
||||
private List<String> includeOrganizations;
|
||||
private List<String> includeLabels;
|
||||
|
||||
public String getBusinessId() {
|
||||
return this.businessId;
|
||||
}
|
||||
|
||||
public void setBusinessId(String businessId) {
|
||||
this.businessId = businessId;
|
||||
}
|
||||
|
||||
public List<String> getPersonIds() {
|
||||
return this.personIds;
|
||||
}
|
||||
|
||||
public void setPersonIds(List<String> personIds) {
|
||||
this.personIds = personIds;
|
||||
}
|
||||
|
||||
public List<String> getIncludeOrganizations() {
|
||||
return this.includeOrganizations;
|
||||
}
|
||||
|
||||
public void setIncludeOrganizations(List<String> includeOrganizations) {
|
||||
this.includeOrganizations = includeOrganizations;
|
||||
}
|
||||
|
||||
public List<String> getIncludeLabels() {
|
||||
return this.includeLabels;
|
||||
}
|
||||
|
||||
public void setIncludeLabels(List<String> includeLabels) {
|
||||
this.includeLabels = includeLabels;
|
||||
}
|
||||
}
|
||||
|
||||
+29
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package cn.cloudwalk.elevator.passrule.dto;
|
||||
|
||||
import cn.cloudwalk.elevator.passrule.dto.AcsPassRuleImageResultDto;
|
||||
import java.util.List;
|
||||
|
||||
public class AcsPassRulePersonListResultDto {
|
||||
private String personId;
|
||||
private List<AcsPassRuleImageResultDto> zoneList;
|
||||
|
||||
public String getPersonId() {
|
||||
return this.personId;
|
||||
}
|
||||
|
||||
public void setPersonId(String personId) {
|
||||
this.personId = personId;
|
||||
}
|
||||
|
||||
public List<AcsPassRuleImageResultDto> getZoneList() {
|
||||
return this.zoneList;
|
||||
}
|
||||
|
||||
public void setZoneList(List<AcsPassRuleImageResultDto> zoneList) {
|
||||
this.zoneList = zoneList;
|
||||
}
|
||||
}
|
||||
|
||||
+76
@@ -0,0 +1,76 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package cn.cloudwalk.elevator.passrule.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
public class AcsPassRuleQueryDto
|
||||
implements Serializable {
|
||||
private static final long serialVersionUID = 7280163220219331909L;
|
||||
private String id;
|
||||
private String zoneId;
|
||||
private String businessId;
|
||||
private String imageStoreId;
|
||||
private List<String> imageStoreIds;
|
||||
private List<String> ids;
|
||||
private List<String> zoneIds;
|
||||
|
||||
public List<String> getZoneIds() {
|
||||
return this.zoneIds;
|
||||
}
|
||||
|
||||
public void setZoneIds(List<String> zoneIds) {
|
||||
this.zoneIds = zoneIds;
|
||||
}
|
||||
|
||||
public List<String> getIds() {
|
||||
return this.ids;
|
||||
}
|
||||
|
||||
public void setIds(List<String> ids) {
|
||||
this.ids = ids;
|
||||
}
|
||||
|
||||
public String getZoneId() {
|
||||
return this.zoneId;
|
||||
}
|
||||
|
||||
public void setZoneId(String zoneId) {
|
||||
this.zoneId = zoneId;
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getBusinessId() {
|
||||
return this.businessId;
|
||||
}
|
||||
|
||||
public void setBusinessId(String businessId) {
|
||||
this.businessId = businessId;
|
||||
}
|
||||
|
||||
public String getImageStoreId() {
|
||||
return this.imageStoreId;
|
||||
}
|
||||
|
||||
public void setImageStoreId(String imageStoreId) {
|
||||
this.imageStoreId = imageStoreId;
|
||||
}
|
||||
|
||||
public List<String> getImageStoreIds() {
|
||||
return this.imageStoreIds;
|
||||
}
|
||||
|
||||
public void setImageStoreIds(List<String> imageStoreIds) {
|
||||
this.imageStoreIds = imageStoreIds;
|
||||
}
|
||||
}
|
||||
|
||||
+107
@@ -0,0 +1,107 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.cloud.entity.CloudwalkBaseTimes
|
||||
*/
|
||||
package cn.cloudwalk.elevator.passrule.dto;
|
||||
|
||||
import cn.cloudwalk.cloud.entity.CloudwalkBaseTimes;
|
||||
import java.io.Serializable;
|
||||
|
||||
public class AcsPassRuleResultDto
|
||||
extends CloudwalkBaseTimes
|
||||
implements Serializable {
|
||||
private static final long serialVersionUID = -8387459232695360257L;
|
||||
private String businessId;
|
||||
private String zoneId;
|
||||
private String zoneName;
|
||||
private String name;
|
||||
private String validDateCron;
|
||||
private String validDateJson;
|
||||
private Long beginDate;
|
||||
private Long endDate;
|
||||
private String imageStoreId;
|
||||
private Integer isDefault;
|
||||
|
||||
public String getZoneId() {
|
||||
return this.zoneId;
|
||||
}
|
||||
|
||||
public void setZoneId(String zoneId) {
|
||||
this.zoneId = zoneId;
|
||||
}
|
||||
|
||||
public String getBusinessId() {
|
||||
return this.businessId;
|
||||
}
|
||||
|
||||
public void setBusinessId(String businessId) {
|
||||
this.businessId = businessId;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return this.name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getValidDateCron() {
|
||||
return this.validDateCron;
|
||||
}
|
||||
|
||||
public void setValidDateCron(String validDateCron) {
|
||||
this.validDateCron = validDateCron;
|
||||
}
|
||||
|
||||
public String getValidDateJson() {
|
||||
return this.validDateJson;
|
||||
}
|
||||
|
||||
public void setValidDateJson(String validDateJson) {
|
||||
this.validDateJson = validDateJson;
|
||||
}
|
||||
|
||||
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 String getImageStoreId() {
|
||||
return this.imageStoreId;
|
||||
}
|
||||
|
||||
public void setImageStoreId(String imageStoreId) {
|
||||
this.imageStoreId = imageStoreId;
|
||||
}
|
||||
|
||||
public String getZoneName() {
|
||||
return this.zoneName;
|
||||
}
|
||||
|
||||
public void setZoneName(String zoneName) {
|
||||
this.zoneName = zoneName;
|
||||
}
|
||||
|
||||
public Integer getIsDefault() {
|
||||
return this.isDefault;
|
||||
}
|
||||
|
||||
public void setIsDefault(Integer isDefault) {
|
||||
this.isDefault = isDefault;
|
||||
}
|
||||
}
|
||||
|
||||
+250
@@ -0,0 +1,250 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.cloud.entity.CloudwalkBaseTimes
|
||||
*/
|
||||
package cn.cloudwalk.elevator.passrule.dto;
|
||||
|
||||
import cn.cloudwalk.cloud.entity.CloudwalkBaseTimes;
|
||||
import java.io.Serializable;
|
||||
|
||||
public class ImageRuleRefAddDto
|
||||
extends CloudwalkBaseTimes
|
||||
implements Serializable {
|
||||
private static final long serialVersionUID = 6909321999650444051L;
|
||||
private String businessId;
|
||||
private String name;
|
||||
private String zoneId;
|
||||
private String zoneName;
|
||||
private String personId;
|
||||
private String includeLabels;
|
||||
private String includeOrganizations;
|
||||
private String excludeLabels;
|
||||
private Long startTime;
|
||||
private Long endTime;
|
||||
private Integer isDefault;
|
||||
private String parentRule;
|
||||
private Integer personDelete;
|
||||
|
||||
public String getBusinessId() {
|
||||
return this.businessId;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return this.name;
|
||||
}
|
||||
|
||||
public String getZoneId() {
|
||||
return this.zoneId;
|
||||
}
|
||||
|
||||
public String getZoneName() {
|
||||
return this.zoneName;
|
||||
}
|
||||
|
||||
public String getPersonId() {
|
||||
return this.personId;
|
||||
}
|
||||
|
||||
public String getIncludeLabels() {
|
||||
return this.includeLabels;
|
||||
}
|
||||
|
||||
public String getIncludeOrganizations() {
|
||||
return this.includeOrganizations;
|
||||
}
|
||||
|
||||
public String getExcludeLabels() {
|
||||
return this.excludeLabels;
|
||||
}
|
||||
|
||||
public Long getStartTime() {
|
||||
return this.startTime;
|
||||
}
|
||||
|
||||
public Long getEndTime() {
|
||||
return this.endTime;
|
||||
}
|
||||
|
||||
public Integer getIsDefault() {
|
||||
return this.isDefault;
|
||||
}
|
||||
|
||||
public String getParentRule() {
|
||||
return this.parentRule;
|
||||
}
|
||||
|
||||
public Integer getPersonDelete() {
|
||||
return this.personDelete;
|
||||
}
|
||||
|
||||
public void setBusinessId(String businessId) {
|
||||
this.businessId = businessId;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public void setZoneId(String zoneId) {
|
||||
this.zoneId = zoneId;
|
||||
}
|
||||
|
||||
public void setZoneName(String zoneName) {
|
||||
this.zoneName = zoneName;
|
||||
}
|
||||
|
||||
public void setPersonId(String personId) {
|
||||
this.personId = personId;
|
||||
}
|
||||
|
||||
public void setIncludeLabels(String includeLabels) {
|
||||
this.includeLabels = includeLabels;
|
||||
}
|
||||
|
||||
public void setIncludeOrganizations(String includeOrganizations) {
|
||||
this.includeOrganizations = includeOrganizations;
|
||||
}
|
||||
|
||||
public void setExcludeLabels(String excludeLabels) {
|
||||
this.excludeLabels = excludeLabels;
|
||||
}
|
||||
|
||||
public void setStartTime(Long startTime) {
|
||||
this.startTime = startTime;
|
||||
}
|
||||
|
||||
public void setEndTime(Long endTime) {
|
||||
this.endTime = endTime;
|
||||
}
|
||||
|
||||
public void setIsDefault(Integer isDefault) {
|
||||
this.isDefault = isDefault;
|
||||
}
|
||||
|
||||
public void setParentRule(String parentRule) {
|
||||
this.parentRule = parentRule;
|
||||
}
|
||||
|
||||
public void setPersonDelete(Integer personDelete) {
|
||||
this.personDelete = personDelete;
|
||||
}
|
||||
|
||||
public boolean equals(Object o) {
|
||||
if (o == this) {
|
||||
return true;
|
||||
}
|
||||
if (!(o instanceof ImageRuleRefAddDto)) {
|
||||
return false;
|
||||
}
|
||||
ImageRuleRefAddDto other = (ImageRuleRefAddDto)o;
|
||||
if (!other.canEqual(this)) {
|
||||
return false;
|
||||
}
|
||||
String this$businessId = this.getBusinessId();
|
||||
String other$businessId = other.getBusinessId();
|
||||
if (this$businessId == null ? other$businessId != null : !this$businessId.equals(other$businessId)) {
|
||||
return false;
|
||||
}
|
||||
String this$name = this.getName();
|
||||
String other$name = other.getName();
|
||||
if (this$name == null ? other$name != null : !this$name.equals(other$name)) {
|
||||
return false;
|
||||
}
|
||||
String this$zoneId = this.getZoneId();
|
||||
String other$zoneId = other.getZoneId();
|
||||
if (this$zoneId == null ? other$zoneId != null : !this$zoneId.equals(other$zoneId)) {
|
||||
return false;
|
||||
}
|
||||
String this$zoneName = this.getZoneName();
|
||||
String other$zoneName = other.getZoneName();
|
||||
if (this$zoneName == null ? other$zoneName != null : !this$zoneName.equals(other$zoneName)) {
|
||||
return false;
|
||||
}
|
||||
String this$personId = this.getPersonId();
|
||||
String other$personId = other.getPersonId();
|
||||
if (this$personId == null ? other$personId != null : !this$personId.equals(other$personId)) {
|
||||
return false;
|
||||
}
|
||||
String this$includeLabels = this.getIncludeLabels();
|
||||
String other$includeLabels = other.getIncludeLabels();
|
||||
if (this$includeLabels == null ? other$includeLabels != null : !this$includeLabels.equals(other$includeLabels)) {
|
||||
return false;
|
||||
}
|
||||
String this$includeOrganizations = this.getIncludeOrganizations();
|
||||
String other$includeOrganizations = other.getIncludeOrganizations();
|
||||
if (this$includeOrganizations == null ? other$includeOrganizations != null : !this$includeOrganizations.equals(other$includeOrganizations)) {
|
||||
return false;
|
||||
}
|
||||
String this$excludeLabels = this.getExcludeLabels();
|
||||
String other$excludeLabels = other.getExcludeLabels();
|
||||
if (this$excludeLabels == null ? other$excludeLabels != null : !this$excludeLabels.equals(other$excludeLabels)) {
|
||||
return false;
|
||||
}
|
||||
Long this$startTime = this.getStartTime();
|
||||
Long other$startTime = other.getStartTime();
|
||||
if (this$startTime == null ? other$startTime != null : !((Object)this$startTime).equals(other$startTime)) {
|
||||
return false;
|
||||
}
|
||||
Long this$endTime = this.getEndTime();
|
||||
Long other$endTime = other.getEndTime();
|
||||
if (this$endTime == null ? other$endTime != null : !((Object)this$endTime).equals(other$endTime)) {
|
||||
return false;
|
||||
}
|
||||
Integer this$isDefault = this.getIsDefault();
|
||||
Integer other$isDefault = other.getIsDefault();
|
||||
if (this$isDefault == null ? other$isDefault != null : !((Object)this$isDefault).equals(other$isDefault)) {
|
||||
return false;
|
||||
}
|
||||
String this$parentRule = this.getParentRule();
|
||||
String other$parentRule = other.getParentRule();
|
||||
if (this$parentRule == null ? other$parentRule != null : !this$parentRule.equals(other$parentRule)) {
|
||||
return false;
|
||||
}
|
||||
Integer this$personDelete = this.getPersonDelete();
|
||||
Integer other$personDelete = other.getPersonDelete();
|
||||
return !(this$personDelete == null ? other$personDelete != null : !((Object)this$personDelete).equals(other$personDelete));
|
||||
}
|
||||
|
||||
protected boolean canEqual(Object other) {
|
||||
return other instanceof ImageRuleRefAddDto;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
int PRIME = 59;
|
||||
int result = 1;
|
||||
String $businessId = this.getBusinessId();
|
||||
result = result * 59 + ($businessId == null ? 43 : $businessId.hashCode());
|
||||
String $name = this.getName();
|
||||
result = result * 59 + ($name == null ? 43 : $name.hashCode());
|
||||
String $zoneId = this.getZoneId();
|
||||
result = result * 59 + ($zoneId == null ? 43 : $zoneId.hashCode());
|
||||
String $zoneName = this.getZoneName();
|
||||
result = result * 59 + ($zoneName == null ? 43 : $zoneName.hashCode());
|
||||
String $personId = this.getPersonId();
|
||||
result = result * 59 + ($personId == null ? 43 : $personId.hashCode());
|
||||
String $includeLabels = this.getIncludeLabels();
|
||||
result = result * 59 + ($includeLabels == null ? 43 : $includeLabels.hashCode());
|
||||
String $includeOrganizations = this.getIncludeOrganizations();
|
||||
result = result * 59 + ($includeOrganizations == null ? 43 : $includeOrganizations.hashCode());
|
||||
String $excludeLabels = this.getExcludeLabels();
|
||||
result = result * 59 + ($excludeLabels == null ? 43 : $excludeLabels.hashCode());
|
||||
Long $startTime = this.getStartTime();
|
||||
result = result * 59 + ($startTime == null ? 43 : ((Object)$startTime).hashCode());
|
||||
Long $endTime = this.getEndTime();
|
||||
result = result * 59 + ($endTime == null ? 43 : ((Object)$endTime).hashCode());
|
||||
Integer $isDefault = this.getIsDefault();
|
||||
result = result * 59 + ($isDefault == null ? 43 : ((Object)$isDefault).hashCode());
|
||||
String $parentRule = this.getParentRule();
|
||||
result = result * 59 + ($parentRule == null ? 43 : $parentRule.hashCode());
|
||||
Integer $personDelete = this.getPersonDelete();
|
||||
result = result * 59 + ($personDelete == null ? 43 : ((Object)$personDelete).hashCode());
|
||||
return result;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "ImageRuleRefAddDto(businessId=" + this.getBusinessId() + ", name=" + this.getName() + ", zoneId=" + this.getZoneId() + ", zoneName=" + this.getZoneName() + ", personId=" + this.getPersonId() + ", includeLabels=" + this.getIncludeLabels() + ", includeOrganizations=" + this.getIncludeOrganizations() + ", excludeLabels=" + this.getExcludeLabels() + ", startTime=" + this.getStartTime() + ", endTime=" + this.getEndTime() + ", isDefault=" + this.getIsDefault() + ", parentRule=" + this.getParentRule() + ", personDelete=" + this.getPersonDelete() + ")";
|
||||
}
|
||||
}
|
||||
|
||||
+171
@@ -0,0 +1,171 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.cloud.entity.CloudwalkBaseTimes
|
||||
*/
|
||||
package cn.cloudwalk.elevator.passrule.dto;
|
||||
|
||||
import cn.cloudwalk.cloud.entity.CloudwalkBaseTimes;
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
public class ImageRuleRefListResult
|
||||
extends CloudwalkBaseTimes
|
||||
implements Serializable {
|
||||
private static final long serialVersionUID = 6909321999650444051L;
|
||||
private String businessId;
|
||||
private String name;
|
||||
private String zoneId;
|
||||
private String zoneName;
|
||||
private String personId;
|
||||
private List<String> includeLabels;
|
||||
private List<String> includeOrganizations;
|
||||
private List<String> excludeLabels;
|
||||
|
||||
public String getBusinessId() {
|
||||
return this.businessId;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return this.name;
|
||||
}
|
||||
|
||||
public String getZoneId() {
|
||||
return this.zoneId;
|
||||
}
|
||||
|
||||
public String getZoneName() {
|
||||
return this.zoneName;
|
||||
}
|
||||
|
||||
public String getPersonId() {
|
||||
return this.personId;
|
||||
}
|
||||
|
||||
public List<String> getIncludeLabels() {
|
||||
return this.includeLabels;
|
||||
}
|
||||
|
||||
public List<String> getIncludeOrganizations() {
|
||||
return this.includeOrganizations;
|
||||
}
|
||||
|
||||
public List<String> getExcludeLabels() {
|
||||
return this.excludeLabels;
|
||||
}
|
||||
|
||||
public void setBusinessId(String businessId) {
|
||||
this.businessId = businessId;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public void setZoneId(String zoneId) {
|
||||
this.zoneId = zoneId;
|
||||
}
|
||||
|
||||
public void setZoneName(String zoneName) {
|
||||
this.zoneName = zoneName;
|
||||
}
|
||||
|
||||
public void setPersonId(String personId) {
|
||||
this.personId = personId;
|
||||
}
|
||||
|
||||
public void setIncludeLabels(List<String> includeLabels) {
|
||||
this.includeLabels = includeLabels;
|
||||
}
|
||||
|
||||
public void setIncludeOrganizations(List<String> includeOrganizations) {
|
||||
this.includeOrganizations = includeOrganizations;
|
||||
}
|
||||
|
||||
public void setExcludeLabels(List<String> excludeLabels) {
|
||||
this.excludeLabels = excludeLabels;
|
||||
}
|
||||
|
||||
public boolean equals(Object o) {
|
||||
if (o == this) {
|
||||
return true;
|
||||
}
|
||||
if (!(o instanceof ImageRuleRefListResult)) {
|
||||
return false;
|
||||
}
|
||||
ImageRuleRefListResult other = (ImageRuleRefListResult)o;
|
||||
if (!other.canEqual(this)) {
|
||||
return false;
|
||||
}
|
||||
String this$businessId = this.getBusinessId();
|
||||
String other$businessId = other.getBusinessId();
|
||||
if (this$businessId == null ? other$businessId != null : !this$businessId.equals(other$businessId)) {
|
||||
return false;
|
||||
}
|
||||
String this$name = this.getName();
|
||||
String other$name = other.getName();
|
||||
if (this$name == null ? other$name != null : !this$name.equals(other$name)) {
|
||||
return false;
|
||||
}
|
||||
String this$zoneId = this.getZoneId();
|
||||
String other$zoneId = other.getZoneId();
|
||||
if (this$zoneId == null ? other$zoneId != null : !this$zoneId.equals(other$zoneId)) {
|
||||
return false;
|
||||
}
|
||||
String this$zoneName = this.getZoneName();
|
||||
String other$zoneName = other.getZoneName();
|
||||
if (this$zoneName == null ? other$zoneName != null : !this$zoneName.equals(other$zoneName)) {
|
||||
return false;
|
||||
}
|
||||
String this$personId = this.getPersonId();
|
||||
String other$personId = other.getPersonId();
|
||||
if (this$personId == null ? other$personId != null : !this$personId.equals(other$personId)) {
|
||||
return false;
|
||||
}
|
||||
List<String> this$includeLabels = this.getIncludeLabels();
|
||||
List<String> other$includeLabels = other.getIncludeLabels();
|
||||
if (this$includeLabels == null ? other$includeLabels != null : !((Object)this$includeLabels).equals(other$includeLabels)) {
|
||||
return false;
|
||||
}
|
||||
List<String> this$includeOrganizations = this.getIncludeOrganizations();
|
||||
List<String> other$includeOrganizations = other.getIncludeOrganizations();
|
||||
if (this$includeOrganizations == null ? other$includeOrganizations != null : !((Object)this$includeOrganizations).equals(other$includeOrganizations)) {
|
||||
return false;
|
||||
}
|
||||
List<String> this$excludeLabels = this.getExcludeLabels();
|
||||
List<String> other$excludeLabels = other.getExcludeLabels();
|
||||
return !(this$excludeLabels == null ? other$excludeLabels != null : !((Object)this$excludeLabels).equals(other$excludeLabels));
|
||||
}
|
||||
|
||||
protected boolean canEqual(Object other) {
|
||||
return other instanceof ImageRuleRefListResult;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
int PRIME = 59;
|
||||
int result = 1;
|
||||
String $businessId = this.getBusinessId();
|
||||
result = result * 59 + ($businessId == null ? 43 : $businessId.hashCode());
|
||||
String $name = this.getName();
|
||||
result = result * 59 + ($name == null ? 43 : $name.hashCode());
|
||||
String $zoneId = this.getZoneId();
|
||||
result = result * 59 + ($zoneId == null ? 43 : $zoneId.hashCode());
|
||||
String $zoneName = this.getZoneName();
|
||||
result = result * 59 + ($zoneName == null ? 43 : $zoneName.hashCode());
|
||||
String $personId = this.getPersonId();
|
||||
result = result * 59 + ($personId == null ? 43 : $personId.hashCode());
|
||||
List<String> $includeLabels = this.getIncludeLabels();
|
||||
result = result * 59 + ($includeLabels == null ? 43 : ((Object)$includeLabels).hashCode());
|
||||
List<String> $includeOrganizations = this.getIncludeOrganizations();
|
||||
result = result * 59 + ($includeOrganizations == null ? 43 : ((Object)$includeOrganizations).hashCode());
|
||||
List<String> $excludeLabels = this.getExcludeLabels();
|
||||
result = result * 59 + ($excludeLabels == null ? 43 : ((Object)$excludeLabels).hashCode());
|
||||
return result;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "ImageRuleRefListResult(businessId=" + this.getBusinessId() + ", name=" + this.getName() + ", zoneId=" + this.getZoneId() + ", zoneName=" + this.getZoneName() + ", personId=" + this.getPersonId() + ", includeLabels=" + this.getIncludeLabels() + ", includeOrganizations=" + this.getIncludeOrganizations() + ", excludeLabels=" + this.getExcludeLabels() + ")";
|
||||
}
|
||||
}
|
||||
|
||||
+147
@@ -0,0 +1,147 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package cn.cloudwalk.elevator.passrule.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class ImageRuleRefResultDto
|
||||
implements Serializable {
|
||||
private static final long serialVersionUID = 6909321999650444051L;
|
||||
private String id;
|
||||
private Long createTime;
|
||||
private Long lastUpdateTime;
|
||||
private String businessId;
|
||||
private String name;
|
||||
private String zoneId;
|
||||
private String zoneName;
|
||||
private String personId;
|
||||
private String includeLabels;
|
||||
private String includeOrganizations;
|
||||
private String excludeLabels;
|
||||
private Long startTime;
|
||||
private Long endTime;
|
||||
private Integer isDefault;
|
||||
private String parentRule;
|
||||
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public Long getCreateTime() {
|
||||
return this.createTime;
|
||||
}
|
||||
|
||||
public Long getLastUpdateTime() {
|
||||
return this.lastUpdateTime;
|
||||
}
|
||||
|
||||
public String getBusinessId() {
|
||||
return this.businessId;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return this.name;
|
||||
}
|
||||
|
||||
public String getZoneId() {
|
||||
return this.zoneId;
|
||||
}
|
||||
|
||||
public String getZoneName() {
|
||||
return this.zoneName;
|
||||
}
|
||||
|
||||
public String getPersonId() {
|
||||
return this.personId;
|
||||
}
|
||||
|
||||
public String getIncludeLabels() {
|
||||
return this.includeLabels;
|
||||
}
|
||||
|
||||
public String getIncludeOrganizations() {
|
||||
return this.includeOrganizations;
|
||||
}
|
||||
|
||||
public String getExcludeLabels() {
|
||||
return this.excludeLabels;
|
||||
}
|
||||
|
||||
public Long getStartTime() {
|
||||
return this.startTime;
|
||||
}
|
||||
|
||||
public Long getEndTime() {
|
||||
return this.endTime;
|
||||
}
|
||||
|
||||
public Integer getIsDefault() {
|
||||
return this.isDefault;
|
||||
}
|
||||
|
||||
public String getParentRule() {
|
||||
return this.parentRule;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public void setCreateTime(Long createTime) {
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
public void setLastUpdateTime(Long lastUpdateTime) {
|
||||
this.lastUpdateTime = lastUpdateTime;
|
||||
}
|
||||
|
||||
public void setBusinessId(String businessId) {
|
||||
this.businessId = businessId;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public void setZoneId(String zoneId) {
|
||||
this.zoneId = zoneId;
|
||||
}
|
||||
|
||||
public void setZoneName(String zoneName) {
|
||||
this.zoneName = zoneName;
|
||||
}
|
||||
|
||||
public void setPersonId(String personId) {
|
||||
this.personId = personId;
|
||||
}
|
||||
|
||||
public void setIncludeLabels(String includeLabels) {
|
||||
this.includeLabels = includeLabels;
|
||||
}
|
||||
|
||||
public void setIncludeOrganizations(String includeOrganizations) {
|
||||
this.includeOrganizations = includeOrganizations;
|
||||
}
|
||||
|
||||
public void setExcludeLabels(String excludeLabels) {
|
||||
this.excludeLabels = excludeLabels;
|
||||
}
|
||||
|
||||
public void setStartTime(Long startTime) {
|
||||
this.startTime = startTime;
|
||||
}
|
||||
|
||||
public void setEndTime(Long endTime) {
|
||||
this.endTime = endTime;
|
||||
}
|
||||
|
||||
public void setIsDefault(Integer isDefault) {
|
||||
this.isDefault = isDefault;
|
||||
}
|
||||
|
||||
public void setParentRule(String parentRule) {
|
||||
this.parentRule = parentRule;
|
||||
}
|
||||
}
|
||||
|
||||
+40
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package cn.cloudwalk.elevator.passrule.form;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
public class AcsPassRuleDeleteForm
|
||||
implements Serializable {
|
||||
private static final long serialVersionUID = -52051042529262978L;
|
||||
private List<String> ids;
|
||||
private String zoneId;
|
||||
private String parentId;
|
||||
|
||||
public String getParentId() {
|
||||
return this.parentId;
|
||||
}
|
||||
|
||||
public void setParentId(String parentId) {
|
||||
this.parentId = parentId;
|
||||
}
|
||||
|
||||
public List<String> getIds() {
|
||||
return this.ids;
|
||||
}
|
||||
|
||||
public void setIds(List<String> ids) {
|
||||
this.ids = ids;
|
||||
}
|
||||
|
||||
public String getZoneId() {
|
||||
return this.zoneId;
|
||||
}
|
||||
|
||||
public void setZoneId(String zoneId) {
|
||||
this.zoneId = zoneId;
|
||||
}
|
||||
}
|
||||
|
||||
+112
@@ -0,0 +1,112 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package cn.cloudwalk.elevator.passrule.form;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
public class AcsPassRuleEditForm
|
||||
implements Serializable {
|
||||
private static final long serialVersionUID = -27068608402591250L;
|
||||
private String id;
|
||||
private String parentId;
|
||||
private String zoneId;
|
||||
private String zoneName;
|
||||
private String ruleName;
|
||||
private String oldName;
|
||||
private List<String> includeOrganizations;
|
||||
private List<String> includeLabels;
|
||||
private List<String> excludeLabels;
|
||||
private Long startTime;
|
||||
private Long endTime;
|
||||
|
||||
public String getParentId() {
|
||||
return this.parentId;
|
||||
}
|
||||
|
||||
public void setParentId(String parentId) {
|
||||
this.parentId = parentId;
|
||||
}
|
||||
|
||||
public String getOldName() {
|
||||
return this.oldName;
|
||||
}
|
||||
|
||||
public void setOldName(String oldName) {
|
||||
this.oldName = oldName;
|
||||
}
|
||||
|
||||
public String getZoneId() {
|
||||
return this.zoneId;
|
||||
}
|
||||
|
||||
public void setZoneId(String zoneId) {
|
||||
this.zoneId = zoneId;
|
||||
}
|
||||
|
||||
public String getZoneName() {
|
||||
return this.zoneName;
|
||||
}
|
||||
|
||||
public void setZoneName(String zoneName) {
|
||||
this.zoneName = zoneName;
|
||||
}
|
||||
|
||||
public String getRuleName() {
|
||||
return this.ruleName;
|
||||
}
|
||||
|
||||
public void setRuleName(String ruleName) {
|
||||
this.ruleName = ruleName;
|
||||
}
|
||||
|
||||
public List<String> getIncludeOrganizations() {
|
||||
return this.includeOrganizations;
|
||||
}
|
||||
|
||||
public void setIncludeOrganizations(List<String> includeOrganizations) {
|
||||
this.includeOrganizations = includeOrganizations;
|
||||
}
|
||||
|
||||
public List<String> getIncludeLabels() {
|
||||
return this.includeLabels;
|
||||
}
|
||||
|
||||
public void setIncludeLabels(List<String> includeLabels) {
|
||||
this.includeLabels = includeLabels;
|
||||
}
|
||||
|
||||
public List<String> getExcludeLabels() {
|
||||
return this.excludeLabels;
|
||||
}
|
||||
|
||||
public void setExcludeLabels(List<String> excludeLabels) {
|
||||
this.excludeLabels = excludeLabels;
|
||||
}
|
||||
|
||||
public Long getStartTime() {
|
||||
return this.startTime;
|
||||
}
|
||||
|
||||
public void setStartTime(Long startTime) {
|
||||
this.startTime = startTime;
|
||||
}
|
||||
|
||||
public Long getEndTime() {
|
||||
return this.endTime;
|
||||
}
|
||||
|
||||
public void setEndTime(Long endTime) {
|
||||
this.endTime = endTime;
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
}
|
||||
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.cloud.page.CloudwalkBasePageForm
|
||||
*/
|
||||
package cn.cloudwalk.elevator.passrule.form;
|
||||
|
||||
import cn.cloudwalk.cloud.page.CloudwalkBasePageForm;
|
||||
import java.io.Serializable;
|
||||
|
||||
public class AcsPassRuleFloorForm
|
||||
extends CloudwalkBasePageForm
|
||||
implements Serializable {
|
||||
private static final long serialVersionUID = -46113273262522744L;
|
||||
private String zoneId;
|
||||
|
||||
public String getZoneId() {
|
||||
return this.zoneId;
|
||||
}
|
||||
|
||||
public void setZoneId(String zoneId) {
|
||||
this.zoneId = zoneId;
|
||||
}
|
||||
}
|
||||
|
||||
+58
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package cn.cloudwalk.elevator.passrule.form;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
public class AcsPassRuleImageForm
|
||||
implements Serializable {
|
||||
private static final long serialVersionUID = -52687427633888290L;
|
||||
private List<String> imageStoreIds;
|
||||
private String businessId;
|
||||
private String personId;
|
||||
private List<String> includeOrganizations;
|
||||
private List<String> includeLabels;
|
||||
|
||||
public List<String> getImageStoreIds() {
|
||||
return this.imageStoreIds;
|
||||
}
|
||||
|
||||
public void setImageStoreIds(List<String> imageStoreIds) {
|
||||
this.imageStoreIds = imageStoreIds;
|
||||
}
|
||||
|
||||
public String getBusinessId() {
|
||||
return this.businessId;
|
||||
}
|
||||
|
||||
public void setBusinessId(String businessId) {
|
||||
this.businessId = businessId;
|
||||
}
|
||||
|
||||
public String getPersonId() {
|
||||
return this.personId;
|
||||
}
|
||||
|
||||
public void setPersonId(String personId) {
|
||||
this.personId = personId;
|
||||
}
|
||||
|
||||
public List<String> getIncludeOrganizations() {
|
||||
return this.includeOrganizations;
|
||||
}
|
||||
|
||||
public void setIncludeOrganizations(List<String> includeOrganizations) {
|
||||
this.includeOrganizations = includeOrganizations;
|
||||
}
|
||||
|
||||
public List<String> getIncludeLabels() {
|
||||
return this.includeLabels;
|
||||
}
|
||||
|
||||
public void setIncludeLabels(List<String> includeLabels) {
|
||||
this.includeLabels = includeLabels;
|
||||
}
|
||||
}
|
||||
|
||||
+94
@@ -0,0 +1,94 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package cn.cloudwalk.elevator.passrule.form;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
public class AcsPassRuleNewForm
|
||||
implements Serializable {
|
||||
private static final long serialVersionUID = -46113273262522744L;
|
||||
private String parentId;
|
||||
private String zoneId;
|
||||
private String zoneName;
|
||||
private String ruleName;
|
||||
private List<String> includeOrganizations;
|
||||
private List<String> includeLabels;
|
||||
private List<String> excludeLabels;
|
||||
private Long startTime;
|
||||
private Long endTime;
|
||||
|
||||
public String getParentId() {
|
||||
return this.parentId;
|
||||
}
|
||||
|
||||
public void setParentId(String parentId) {
|
||||
this.parentId = parentId;
|
||||
}
|
||||
|
||||
public String getZoneId() {
|
||||
return this.zoneId;
|
||||
}
|
||||
|
||||
public void setZoneId(String zoneId) {
|
||||
this.zoneId = zoneId;
|
||||
}
|
||||
|
||||
public String getZoneName() {
|
||||
return this.zoneName;
|
||||
}
|
||||
|
||||
public void setZoneName(String zoneName) {
|
||||
this.zoneName = zoneName;
|
||||
}
|
||||
|
||||
public String getRuleName() {
|
||||
return this.ruleName;
|
||||
}
|
||||
|
||||
public void setRuleName(String ruleName) {
|
||||
this.ruleName = ruleName;
|
||||
}
|
||||
|
||||
public List<String> getIncludeOrganizations() {
|
||||
return this.includeOrganizations;
|
||||
}
|
||||
|
||||
public void setIncludeOrganizations(List<String> includeOrganizations) {
|
||||
this.includeOrganizations = includeOrganizations;
|
||||
}
|
||||
|
||||
public List<String> getIncludeLabels() {
|
||||
return this.includeLabels;
|
||||
}
|
||||
|
||||
public void setIncludeLabels(List<String> includeLabels) {
|
||||
this.includeLabels = includeLabels;
|
||||
}
|
||||
|
||||
public List<String> getExcludeLabels() {
|
||||
return this.excludeLabels;
|
||||
}
|
||||
|
||||
public void setExcludeLabels(List<String> excludeLabels) {
|
||||
this.excludeLabels = excludeLabels;
|
||||
}
|
||||
|
||||
public Long getStartTime() {
|
||||
return this.startTime;
|
||||
}
|
||||
|
||||
public void setStartTime(Long startTime) {
|
||||
this.startTime = startTime;
|
||||
}
|
||||
|
||||
public Long getEndTime() {
|
||||
return this.endTime;
|
||||
}
|
||||
|
||||
public void setEndTime(Long endTime) {
|
||||
this.endTime = endTime;
|
||||
}
|
||||
}
|
||||
|
||||
+28
@@ -0,0 +1,28 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.cloud.page.CloudwalkBasePageForm
|
||||
*/
|
||||
package cn.cloudwalk.elevator.passrule.form;
|
||||
|
||||
import cn.cloudwalk.cloud.page.CloudwalkBasePageForm;
|
||||
import cn.cloudwalk.elevator.passrule.form.AcsPassRuleImageForm;
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
public class AcsPassRulePersonListForm
|
||||
extends CloudwalkBasePageForm
|
||||
implements Serializable {
|
||||
private static final long serialVersionUID = -52687427633888290L;
|
||||
private List<AcsPassRuleImageForm> personList;
|
||||
|
||||
public List<AcsPassRuleImageForm> getPersonList() {
|
||||
return this.personList;
|
||||
}
|
||||
|
||||
public void setPersonList(List<AcsPassRuleImageForm> personList) {
|
||||
this.personList = personList;
|
||||
}
|
||||
}
|
||||
|
||||
+75
@@ -0,0 +1,75 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package cn.cloudwalk.elevator.passrule.form;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class AcsPassRuleQueryForm
|
||||
implements Serializable {
|
||||
private static final long serialVersionUID = -52687427633888290L;
|
||||
private String id;
|
||||
private String parentId;
|
||||
private String zoneId;
|
||||
private String zoneName;
|
||||
private Integer isDefault;
|
||||
private Integer pageSize = 10;
|
||||
private Integer pageNo = 1;
|
||||
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Integer getPageSize() {
|
||||
return this.pageSize;
|
||||
}
|
||||
|
||||
public void setPageSize(Integer pageSize) {
|
||||
this.pageSize = pageSize;
|
||||
}
|
||||
|
||||
public Integer getPageNo() {
|
||||
return this.pageNo;
|
||||
}
|
||||
|
||||
public void setPageNo(Integer pageNo) {
|
||||
this.pageNo = pageNo;
|
||||
}
|
||||
|
||||
public String getParentId() {
|
||||
return this.parentId;
|
||||
}
|
||||
|
||||
public void setParentId(String parentId) {
|
||||
this.parentId = parentId;
|
||||
}
|
||||
|
||||
public String getZoneId() {
|
||||
return this.zoneId;
|
||||
}
|
||||
|
||||
public void setZoneId(String zoneId) {
|
||||
this.zoneId = zoneId;
|
||||
}
|
||||
|
||||
public String getZoneName() {
|
||||
return this.zoneName;
|
||||
}
|
||||
|
||||
public void setZoneName(String zoneName) {
|
||||
this.zoneName = zoneName;
|
||||
}
|
||||
|
||||
public Integer getIsDefault() {
|
||||
return this.isDefault;
|
||||
}
|
||||
|
||||
public void setIsDefault(Integer isDefault) {
|
||||
this.isDefault = isDefault;
|
||||
}
|
||||
}
|
||||
|
||||
+77
@@ -0,0 +1,77 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.param.ImageStoreEditParam
|
||||
* cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.param.ImageStorePersonData
|
||||
* cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.param.ImageStoreQueryParam
|
||||
* cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.result.ImageStoreDetailResult
|
||||
* cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.result.ImgStorePersonResult
|
||||
* cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.service.ImageStoreService
|
||||
* cn.cloudwalk.client.cwoscomponent.intelligent.label.result.LabelResult
|
||||
* cn.cloudwalk.client.cwoscomponent.intelligent.organization.result.OrganizationResult
|
||||
* cn.cloudwalk.cloud.context.CloudwalkCallContext
|
||||
* cn.cloudwalk.cloud.exception.ServiceException
|
||||
* cn.cloudwalk.cloud.result.CloudwalkResult
|
||||
* cn.cloudwalk.cloud.utils.BeanCopyUtils
|
||||
*/
|
||||
package cn.cloudwalk.elevator.passrule.impl;
|
||||
|
||||
import cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.param.ImageStoreEditParam;
|
||||
import cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.param.ImageStorePersonData;
|
||||
import cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.param.ImageStoreQueryParam;
|
||||
import cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.result.ImageStoreDetailResult;
|
||||
import cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.result.ImgStorePersonResult;
|
||||
import cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.service.ImageStoreService;
|
||||
import cn.cloudwalk.client.cwoscomponent.intelligent.label.result.LabelResult;
|
||||
import cn.cloudwalk.client.cwoscomponent.intelligent.organization.result.OrganizationResult;
|
||||
import cn.cloudwalk.cloud.context.CloudwalkCallContext;
|
||||
import cn.cloudwalk.cloud.exception.ServiceException;
|
||||
import cn.cloudwalk.cloud.result.CloudwalkResult;
|
||||
import cn.cloudwalk.cloud.utils.BeanCopyUtils;
|
||||
import cn.cloudwalk.elevator.common.AbstractCloudwalkService;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
import javax.annotation.Resource;
|
||||
|
||||
public class AbstractAcsPassService
|
||||
extends AbstractCloudwalkService {
|
||||
@Resource
|
||||
private ImageStoreService imageStoreService;
|
||||
|
||||
protected ImageStoreDetailResult getImageStoreDetail(String imageStoreId, CloudwalkCallContext context) throws ServiceException {
|
||||
ImageStoreQueryParam param = new ImageStoreQueryParam();
|
||||
param.setId(imageStoreId);
|
||||
param.setBusinessId(context.getCompany().getCompanyId());
|
||||
CloudwalkResult imageStoreDetail = this.imageStoreService.detail(param, context);
|
||||
if (!imageStoreDetail.isSuccess()) {
|
||||
this.logger.error("\u8fdc\u7a0b\u8c03\u7528\u67e5\u8be2\u56fe\u5e93\u8be6\u60c5\u5931\u8d25\uff0c\u539f\u56e0\uff1a" + imageStoreDetail.getMessage());
|
||||
throw new ServiceException("\u8fdc\u7a0b\u8c03\u7528\u67e5\u8be2\u56fe\u5e93\u8be6\u60c5\u5931\u8d25");
|
||||
}
|
||||
return (ImageStoreDetailResult)imageStoreDetail.getData();
|
||||
}
|
||||
|
||||
protected ImageStoreEditParam getEditParamByImageStore(ImageStoreDetailResult imageStoreDetail) {
|
||||
ImageStoreEditParam param = new ImageStoreEditParam();
|
||||
BeanCopyUtils.copyProperties((Object)imageStoreDetail, (Object)param);
|
||||
param.setIncludeOrganizations(imageStoreDetail.getIncludeOrganizations().stream().map(OrganizationResult::getId).collect(Collectors.toList()));
|
||||
param.setIncludeLabels(imageStoreDetail.getIncludeLabels().stream().map(LabelResult::getId).collect(Collectors.toList()));
|
||||
param.setIncludePersons(this.getImageStorePersonData(imageStoreDetail.getIncludePersons()));
|
||||
param.setExcludeLabels(imageStoreDetail.getExcludeLabels().stream().map(LabelResult::getId).collect(Collectors.toList()));
|
||||
param.setExcludePersons(imageStoreDetail.getExcludePersons().stream().map(ImgStorePersonResult::getId).collect(Collectors.toList()));
|
||||
return param;
|
||||
}
|
||||
|
||||
private List<ImageStorePersonData> getImageStorePersonData(List<ImgStorePersonResult> imgStorePersonResults) {
|
||||
ArrayList<ImageStorePersonData> personDataList = new ArrayList<ImageStorePersonData>();
|
||||
for (ImgStorePersonResult personResult : imgStorePersonResults) {
|
||||
ImageStorePersonData personData = new ImageStorePersonData();
|
||||
BeanCopyUtils.copyProperties((Object)personResult, (Object)personData);
|
||||
personData.setObjectId(personResult.getId());
|
||||
personDataList.add(personData);
|
||||
}
|
||||
return personDataList;
|
||||
}
|
||||
}
|
||||
|
||||
+102
@@ -0,0 +1,102 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.cloud.exception.DataAccessException
|
||||
* cn.cloudwalk.cloud.page.CloudwalkPageAble
|
||||
* cn.cloudwalk.cloud.page.CloudwalkPageInfo
|
||||
* cn.cloudwalk.cloud.utils.BeanCopyUtils
|
||||
* com.github.pagehelper.Page
|
||||
* com.github.pagehelper.PageHelper
|
||||
* org.slf4j.Logger
|
||||
* org.slf4j.LoggerFactory
|
||||
* org.springframework.stereotype.Repository
|
||||
*/
|
||||
package cn.cloudwalk.elevator.passrule.impl;
|
||||
|
||||
import cn.cloudwalk.cloud.exception.DataAccessException;
|
||||
import cn.cloudwalk.cloud.page.CloudwalkPageAble;
|
||||
import cn.cloudwalk.cloud.page.CloudwalkPageInfo;
|
||||
import cn.cloudwalk.cloud.utils.BeanCopyUtils;
|
||||
import cn.cloudwalk.elevator.passrule.dao.AcsPassRuleDao;
|
||||
import cn.cloudwalk.elevator.passrule.dto.AcsPassRuleAddDto;
|
||||
import cn.cloudwalk.elevator.passrule.dto.AcsPassRuleDeleteDto;
|
||||
import cn.cloudwalk.elevator.passrule.dto.AcsPassRuleEditDto;
|
||||
import cn.cloudwalk.elevator.passrule.dto.AcsPassRuleImageDto;
|
||||
import cn.cloudwalk.elevator.passrule.dto.AcsPassRuleImageResultDto;
|
||||
import cn.cloudwalk.elevator.passrule.dto.AcsPassRuleIsDefaultDto;
|
||||
import cn.cloudwalk.elevator.passrule.dto.AcsPassRuleQueryDto;
|
||||
import cn.cloudwalk.elevator.passrule.dto.AcsPassRuleResultDto;
|
||||
import cn.cloudwalk.elevator.passrule.mapper.AcsPassRuleMapper;
|
||||
import com.github.pagehelper.Page;
|
||||
import com.github.pagehelper.PageHelper;
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
import javax.annotation.Resource;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
@Repository
|
||||
public class AcsPassRuleDaoImpl
|
||||
implements AcsPassRuleDao {
|
||||
@Resource
|
||||
private AcsPassRuleMapper acsPassRuleMapper;
|
||||
protected final Logger logger = LoggerFactory.getLogger(this.getClass());
|
||||
|
||||
@Override
|
||||
public Integer insert(AcsPassRuleAddDto dto) {
|
||||
return this.acsPassRuleMapper.insert(dto);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer update(AcsPassRuleEditDto dto) {
|
||||
return this.acsPassRuleMapper.update(dto);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer delete(AcsPassRuleDeleteDto dto) {
|
||||
return this.acsPassRuleMapper.delete(dto);
|
||||
}
|
||||
|
||||
@Override
|
||||
public CloudwalkPageAble<AcsPassRuleResultDto> page(AcsPassRuleQueryDto dto, CloudwalkPageInfo page) {
|
||||
PageHelper.startPage((int)page.getCurrentPage(), (int)page.getPageSize());
|
||||
Page result = (Page)this.acsPassRuleMapper.list(dto);
|
||||
return new CloudwalkPageAble((Collection)BeanCopyUtils.copy((Collection)result.getResult(), AcsPassRuleResultDto.class), page, result.getTotal());
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<AcsPassRuleResultDto> list(AcsPassRuleQueryDto dto) throws DataAccessException {
|
||||
try {
|
||||
return this.acsPassRuleMapper.list(dto);
|
||||
}
|
||||
catch (Exception e) {
|
||||
this.logger.error("\u67e5\u8be2\u7d27\u901a\u884c\u89c4\u5219\u5f02\u5e38\uff0c\u539f\u56e0\uff1a[{}]", (Object)e.getMessage(), (Object)e);
|
||||
throw new DataAccessException((Throwable)e);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getIsDefaultByZoneId(AcsPassRuleIsDefaultDto dto) throws DataAccessException {
|
||||
try {
|
||||
return this.acsPassRuleMapper.getIsDefaultByZoneId(dto);
|
||||
}
|
||||
catch (Exception e) {
|
||||
this.logger.error("\u6839\u636e\u697c\u5c42id\u83b7\u53d6\u9ed8\u8ba4\u56fe\u5e93id\u5f02\u5e38\uff0c\u539f\u56e0\uff1a[{}]", (Object)e.getMessage(), (Object)e);
|
||||
throw new DataAccessException((Throwable)e);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<AcsPassRuleImageResultDto> listByImageId(AcsPassRuleImageDto dto) throws DataAccessException {
|
||||
try {
|
||||
return this.acsPassRuleMapper.listByImageId(dto);
|
||||
}
|
||||
catch (Exception e) {
|
||||
this.logger.error("\u6839\u636e\u56fe\u5e93id\u96c6\u5408\u67e5\u8be2\u5bf9\u5e94\u697c\u5c42\u4fe1\u606f\u5f02\u5e38\uff0c\u539f\u56e0\uff1a[{}]", (Object)e.getMessage(), (Object)e);
|
||||
throw new DataAccessException((Throwable)e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+522
@@ -0,0 +1,522 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.param.ImageStoreAddParam
|
||||
* cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.param.ImageStoreDelParam
|
||||
* cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.param.ImageStoreEditParam
|
||||
* cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.param.ImageStoreQueryParam
|
||||
* cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.result.ImageStoreDetailResult
|
||||
* cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.result.ImageStoreListResult
|
||||
* cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.service.ImageStorePersonService
|
||||
* cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.service.ImageStoreService
|
||||
* cn.cloudwalk.client.cwoscomponent.intelligent.person.service.PersonService
|
||||
* cn.cloudwalk.cloud.annotation.CloudwalkParamsValidate
|
||||
* cn.cloudwalk.cloud.context.CloudwalkCallContext
|
||||
* 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.dto.AcsElevatorDeviceListDto
|
||||
* cn.cloudwalk.elevator.device.dto.AcsElevatorDeviceResultDTO
|
||||
* cn.cloudwalk.elevator.em.AcsPassTypeEnum
|
||||
* cn.cloudwalk.elevator.passrule.dao.AcsPassRuleDao
|
||||
* cn.cloudwalk.elevator.passrule.dto.AcsPassRuleAddDto
|
||||
* cn.cloudwalk.elevator.passrule.dto.AcsPassRuleDeleteDto
|
||||
* cn.cloudwalk.elevator.passrule.dto.AcsPassRuleEditDto
|
||||
* cn.cloudwalk.elevator.passrule.dto.AcsPassRuleImageDto
|
||||
* cn.cloudwalk.elevator.passrule.dto.AcsPassRuleImageResultDto
|
||||
* cn.cloudwalk.elevator.passrule.dto.AcsPassRuleIsDefaultDto
|
||||
* cn.cloudwalk.elevator.passrule.dto.AcsPassRuleQueryDto
|
||||
* cn.cloudwalk.elevator.passrule.dto.AcsPassRuleResultDto
|
||||
* cn.cloudwalk.elevator.util.CollectionUtils
|
||||
* 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.passrule.impl;
|
||||
|
||||
import cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.param.ImageStoreAddParam;
|
||||
import cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.param.ImageStoreDelParam;
|
||||
import cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.param.ImageStoreEditParam;
|
||||
import cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.param.ImageStoreQueryParam;
|
||||
import cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.result.ImageStoreDetailResult;
|
||||
import cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.result.ImageStoreListResult;
|
||||
import cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.service.ImageStorePersonService;
|
||||
import cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.service.ImageStoreService;
|
||||
import cn.cloudwalk.client.cwoscomponent.intelligent.person.service.PersonService;
|
||||
import cn.cloudwalk.cloud.annotation.CloudwalkParamsValidate;
|
||||
import cn.cloudwalk.cloud.context.CloudwalkCallContext;
|
||||
import cn.cloudwalk.cloud.exception.DataAccessException;
|
||||
import cn.cloudwalk.cloud.exception.ServiceException;
|
||||
import cn.cloudwalk.cloud.page.CloudwalkPageAble;
|
||||
import cn.cloudwalk.cloud.page.CloudwalkPageInfo;
|
||||
import cn.cloudwalk.cloud.result.CloudwalkResult;
|
||||
import cn.cloudwalk.cloud.utils.BeanCopyUtils;
|
||||
import cn.cloudwalk.elevator.common.service.AcsApplicationService;
|
||||
import cn.cloudwalk.elevator.device.dao.AcsElevatorDeviceDao;
|
||||
import cn.cloudwalk.elevator.device.dto.AcsElevatorDeviceListDto;
|
||||
import cn.cloudwalk.elevator.device.dto.AcsElevatorDeviceResultDTO;
|
||||
import cn.cloudwalk.elevator.device.setting.param.DeviceImageStoreAppBindParam;
|
||||
import cn.cloudwalk.elevator.device.setting.param.DeviceImageStoreAppUnbindParam;
|
||||
import cn.cloudwalk.elevator.device.setting.service.AcsDeviceImageStoreAppBindService;
|
||||
import cn.cloudwalk.elevator.em.AcsPassTypeEnum;
|
||||
import cn.cloudwalk.elevator.passrule.dao.AcsPassRuleDao;
|
||||
import cn.cloudwalk.elevator.passrule.dto.AcsPassRuleAddDto;
|
||||
import cn.cloudwalk.elevator.passrule.dto.AcsPassRuleDeleteDto;
|
||||
import cn.cloudwalk.elevator.passrule.dto.AcsPassRuleEditDto;
|
||||
import cn.cloudwalk.elevator.passrule.dto.AcsPassRuleImageDto;
|
||||
import cn.cloudwalk.elevator.passrule.dto.AcsPassRuleImageResultDto;
|
||||
import cn.cloudwalk.elevator.passrule.dto.AcsPassRuleIsDefaultDto;
|
||||
import cn.cloudwalk.elevator.passrule.dto.AcsPassRuleQueryDto;
|
||||
import cn.cloudwalk.elevator.passrule.dto.AcsPassRuleResultDto;
|
||||
import cn.cloudwalk.elevator.passrule.impl.AbstractAcsPassService;
|
||||
import cn.cloudwalk.elevator.passrule.param.AcsPassRuleDeleteParam;
|
||||
import cn.cloudwalk.elevator.passrule.param.AcsPassRuleEditParam;
|
||||
import cn.cloudwalk.elevator.passrule.param.AcsPassRuleFloorParam;
|
||||
import cn.cloudwalk.elevator.passrule.param.AcsPassRuleImageParam;
|
||||
import cn.cloudwalk.elevator.passrule.param.AcsPassRuleIsDefaultParam;
|
||||
import cn.cloudwalk.elevator.passrule.param.AcsPassRuleNewParam;
|
||||
import cn.cloudwalk.elevator.passrule.param.AcsPassRuleQueryParam;
|
||||
import cn.cloudwalk.elevator.passrule.param.AcsPassTimeCycleParam;
|
||||
import cn.cloudwalk.elevator.passrule.result.AcsPassRuleDetailResult;
|
||||
import cn.cloudwalk.elevator.passrule.result.AcsPassRuleFloorResult;
|
||||
import cn.cloudwalk.elevator.passrule.result.AcsPassRuleResult;
|
||||
import cn.cloudwalk.elevator.passrule.service.AcsPassRuleService;
|
||||
import cn.cloudwalk.elevator.person.param.AcsPersonQueryParam;
|
||||
import cn.cloudwalk.elevator.person.result.AcsPersonResult;
|
||||
import cn.cloudwalk.elevator.person.service.AcsPersonService;
|
||||
import cn.cloudwalk.elevator.util.CollectionUtils;
|
||||
import cn.cloudwalk.elevator.zone.param.ZoneNextTreeParam;
|
||||
import cn.cloudwalk.elevator.zone.result.ZoneTreeResult;
|
||||
import cn.cloudwalk.elevator.zone.service.ZoneService;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.stream.Collectors;
|
||||
import javax.annotation.Resource;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Propagation;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
import org.springframework.util.ObjectUtils;
|
||||
|
||||
@Service
|
||||
public class AcsPassRuleServiceImpl
|
||||
extends AbstractAcsPassService
|
||||
implements AcsPassRuleService {
|
||||
@Resource
|
||||
private ImageStoreService imageStoreService;
|
||||
@Resource
|
||||
private ImageStorePersonService imageStorePersonService;
|
||||
@Resource
|
||||
private PersonService personService;
|
||||
@Resource
|
||||
private ZoneService zoneService;
|
||||
@Autowired
|
||||
private AcsApplicationService acsApplicationService;
|
||||
@Autowired
|
||||
private AcsPersonService acsPersonService;
|
||||
@Resource
|
||||
private AcsPassRuleDao acsPassRuleDao;
|
||||
@Resource
|
||||
private AcsDeviceImageStoreAppBindService acsDeviceImageStoreAppBindService;
|
||||
@Resource
|
||||
private AcsElevatorDeviceDao acsElevatorDeviceDao;
|
||||
|
||||
@Override
|
||||
public CloudwalkResult<List<AcsPassRuleFloorResult>> listFloor(AcsPassRuleFloorParam param, CloudwalkCallContext context) throws ServiceException {
|
||||
ZoneNextTreeParam treeParam = new ZoneNextTreeParam();
|
||||
treeParam.setParentId(param.getZoneId());
|
||||
CloudwalkResult<List<ZoneTreeResult>> zoneTree = this.zoneService.tree(treeParam, context);
|
||||
if (!zoneTree.isSuccess()) {
|
||||
this.logger.info("\u8fdc\u7a0b\u8c03\u7528\u67e5\u8be2\u533a\u57df\u6811\u72b6\u56fe\u5931\u8d25,\u539f\u56e0\uff1a" + zoneTree.getMessage());
|
||||
throw new ServiceException(zoneTree.getCode(), zoneTree.getMessage());
|
||||
}
|
||||
try {
|
||||
ArrayList<AcsPassRuleFloorResult> passRuleResults = new ArrayList<AcsPassRuleFloorResult>();
|
||||
if (!CollectionUtils.isEmpty((Collection)((Collection)zoneTree.getData()))) {
|
||||
for (ZoneTreeResult zoneTreeResult : (List)zoneTree.getData()) {
|
||||
this.getZoneTypeIsThree(zoneTreeResult, passRuleResults);
|
||||
}
|
||||
} else {
|
||||
return CloudwalkResult.success(passRuleResults);
|
||||
}
|
||||
for (AcsPassRuleFloorResult passRuleResult : passRuleResults) {
|
||||
AcsElevatorDeviceListDto dto = new AcsElevatorDeviceListDto();
|
||||
dto.setBusinessId(context.getCompany().getCompanyId());
|
||||
dto.setCurrentFloorId(passRuleResult.getId());
|
||||
List deviceList = this.acsElevatorDeviceDao.listByZoneId(dto);
|
||||
passRuleResult.setDeviceNumber(deviceList.size());
|
||||
AcsPersonQueryParam personParam = new AcsPersonQueryParam();
|
||||
personParam.setZoneId(passRuleResult.getId());
|
||||
CloudwalkPageInfo pageInfo = new CloudwalkPageInfo(1, 10);
|
||||
CloudwalkResult<CloudwalkPageAble<AcsPersonResult>> page = this.acsPersonService.page(personParam, pageInfo, context);
|
||||
passRuleResult.setPersonNumber(((CloudwalkPageAble)page.getData()).getTotalRows());
|
||||
}
|
||||
return CloudwalkResult.success(passRuleResults);
|
||||
}
|
||||
catch (DataAccessException e) {
|
||||
this.logger.error("\u67e5\u8be2\u6240\u6709\u697c\u5c42\u4fe1\u606f\u5931\u8d25");
|
||||
throw new ServiceException("76260520", this.getMessage("76260520"));
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public CloudwalkResult<String> getIsDefaultByZoneId(AcsPassRuleIsDefaultParam param, CloudwalkCallContext context) throws ServiceException {
|
||||
try {
|
||||
AcsPassRuleIsDefaultDto dto = new AcsPassRuleIsDefaultDto();
|
||||
dto.setZoneId(param.getZoneId());
|
||||
dto.setBusinessId(context.getCompany().getCompanyId());
|
||||
return CloudwalkResult.success((Object)this.acsPassRuleDao.getIsDefaultByZoneId(dto));
|
||||
}
|
||||
catch (DataAccessException e) {
|
||||
this.logger.error("\u6839\u636e\u697c\u5c42id\u83b7\u53d6\u9ed8\u8ba4\u56fe\u5e93id\u5931\u8d25");
|
||||
throw new ServiceException("76260524", this.getMessage("76260524"));
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
@CloudwalkParamsValidate(argsIndexs={0, 1})
|
||||
@Transactional(propagation=Propagation.REQUIRED, rollbackFor={Exception.class})
|
||||
public CloudwalkResult<String> add(AcsPassRuleNewParam param, CloudwalkCallContext context) throws ServiceException {
|
||||
String imageStoreId = this.addImageStore(param, context);
|
||||
AcsPassRuleAddDto dto = new AcsPassRuleAddDto();
|
||||
dto.setId(this.genUUID());
|
||||
dto.setBusinessId(context.getCompany().getCompanyId());
|
||||
dto.setName(param.getRuleName());
|
||||
dto.setImageStoreId(imageStoreId);
|
||||
dto.setZoneId(param.getZoneId());
|
||||
dto.setZoneName(param.getZoneName());
|
||||
dto.setBeginDate(param.getStartTime());
|
||||
dto.setEndDate(param.getEndTime());
|
||||
dto.setIsDefault(param.getIsDefault());
|
||||
try {
|
||||
this.acsPassRuleDao.insert(dto);
|
||||
return CloudwalkResult.success((Object)imageStoreId);
|
||||
}
|
||||
catch (DataAccessException e) {
|
||||
this.logger.error("\u6dfb\u52a0\u901a\u884c\u89c4\u5219\u5931\u8d25");
|
||||
throw new ServiceException("76260505", this.getMessage("76260505"));
|
||||
}
|
||||
}
|
||||
|
||||
private String addImageStore(AcsPassRuleNewParam param, CloudwalkCallContext context) throws ServiceException {
|
||||
ImageStoreAddParam imageStoreAddParam = new ImageStoreAddParam();
|
||||
String applicationId = this.acsApplicationService.getApplicationId(context.getCompany().getCompanyId());
|
||||
BeanCopyUtils.copyProperties((Object)param, (Object)imageStoreAddParam);
|
||||
imageStoreAddParam.setExpiryBeginDate(param.getStartTime());
|
||||
imageStoreAddParam.setExpiryEndDate(param.getEndTime());
|
||||
imageStoreAddParam.setName(param.getZoneName() + "-" + param.getRuleName());
|
||||
imageStoreAddParam.setType(Short.valueOf((short)1));
|
||||
imageStoreAddParam.setSourceApplicationId(applicationId);
|
||||
imageStoreAddParam.setBusinessId(context.getCompany().getCompanyId());
|
||||
CloudwalkResult imageStoreId = this.imageStoreService.add(imageStoreAddParam, context);
|
||||
if (!imageStoreId.isSuccess()) {
|
||||
this.logger.info("\u8fdc\u7a0b\u8c03\u7528\u65b0\u589e\u56fe\u5e93\u5931\u8d25,\u539f\u56e0\uff1a" + imageStoreId.getMessage());
|
||||
throw new ServiceException(imageStoreId.getCode(), imageStoreId.getMessage());
|
||||
}
|
||||
AcsElevatorDeviceListDto dto = new AcsElevatorDeviceListDto();
|
||||
dto.setBusinessId(context.getCompany().getCompanyId());
|
||||
dto.setCurrentFloorId(param.getZoneId());
|
||||
List deviceList = null;
|
||||
try {
|
||||
deviceList = this.acsElevatorDeviceDao.listByZoneId(dto);
|
||||
}
|
||||
catch (DataAccessException e) {
|
||||
this.logger.error("\u6839\u636e\u697c\u5c42id\u83b7\u53d6\u8bbe\u5907\u4fe1\u606f\u5931\u8d25\uff0c\u539f\u56e0\u662f\uff1a{}", (Object)e.getMessage());
|
||||
}
|
||||
DeviceImageStoreAppBindParam appBindParam = new DeviceImageStoreAppBindParam();
|
||||
appBindParam.setImageStoreId((String)imageStoreId.getData());
|
||||
appBindParam.setApplicationId(applicationId);
|
||||
this.acsDeviceImageStoreAppBindService.bindAppImageStoreDevice(appBindParam, context);
|
||||
if (!CollectionUtils.isEmpty((Collection)deviceList)) {
|
||||
for (AcsElevatorDeviceResultDTO device : deviceList) {
|
||||
try {
|
||||
DeviceImageStoreAppBindParam bindParam = new DeviceImageStoreAppBindParam();
|
||||
bindParam.setImageStoreId((String)imageStoreId.getData());
|
||||
bindParam.setDeviceId(device.getDeviceId());
|
||||
bindParam.setApplicationId(applicationId);
|
||||
this.acsDeviceImageStoreAppBindService.bindDeviceAndImageStore(bindParam, context);
|
||||
}
|
||||
catch (ServiceException e) {
|
||||
this.logger.error("\u56fe\u5e93\u5173\u8054\u5931\u8d25,\u56fe\u5e93id={},\u539f\u56e0:{}", imageStoreId.getData(), (Object)e.getMessage());
|
||||
ImageStoreDelParam delParam = new ImageStoreDelParam();
|
||||
delParam.setId((String)imageStoreId.getData());
|
||||
delParam.setBusinessId(context.getCompany().getCompanyId());
|
||||
this.logger.info("\u56de\u6eda\u5220\u9664\u56fe\u5e93\u5f00\u59cb,delParam={},context={}", JSONObject.toJSON((Object)delParam), JSONObject.toJSON((Object)context));
|
||||
CloudwalkResult deleteResult = this.imageStoreService.delete(delParam, context);
|
||||
this.logger.info("\u5220\u9664\u56fe\u5e93\uff1a\u56fe\u5e93id={},\u7ed3\u679c:{}", (Object)imageStoreId, (Object)deleteResult.getMessage());
|
||||
throw new ServiceException(e.getCode(), e.getMessage());
|
||||
}
|
||||
}
|
||||
}
|
||||
return (String)imageStoreId.getData();
|
||||
}
|
||||
|
||||
@Override
|
||||
@CloudwalkParamsValidate(argsIndexs={0, 1})
|
||||
@Transactional(propagation=Propagation.REQUIRED, rollbackFor={Exception.class})
|
||||
public CloudwalkResult<Boolean> update(AcsPassRuleEditParam param, CloudwalkCallContext context) throws ServiceException {
|
||||
this.checkDefaultRule(Collections.singletonList(param.getId()), context);
|
||||
AcsPassRuleEditDto dto = new AcsPassRuleEditDto();
|
||||
BeanCopyUtils.copyProperties((Object)param, (CloudwalkCallContext)context, (Object)dto);
|
||||
dto.setValidDateCron(null);
|
||||
dto.setValidDateJson(null);
|
||||
dto.setBeginDate(param.getStartTime());
|
||||
dto.setEndDate(param.getEndTime());
|
||||
dto.setBusinessId(context.getCompany().getCompanyId());
|
||||
dto.setName(param.getRuleName());
|
||||
try {
|
||||
this.acsPassRuleDao.update(dto);
|
||||
List<AcsPassRuleResultDto> ruleList = this.getRuleByIds(Collections.singletonList(dto.getId()), context);
|
||||
this.updateImageStore(param, ruleList.get(0), context);
|
||||
return CloudwalkResult.success((Object)true);
|
||||
}
|
||||
catch (DataAccessException e) {
|
||||
this.logger.error("\u7f16\u8f91\u901a\u884c\u89c4\u5219\u7f16\u8f91\u5931\u8d25");
|
||||
throw new ServiceException("76260506", this.getMessage("76260506"));
|
||||
}
|
||||
}
|
||||
|
||||
private List<AcsPassRuleResultDto> checkDefaultRule(List<String> ruleIds, CloudwalkCallContext context) throws ServiceException {
|
||||
List<AcsPassRuleResultDto> resultDtoList = this.getRuleByIds(ruleIds, context);
|
||||
for (AcsPassRuleResultDto resultDto : resultDtoList) {
|
||||
if (ObjectUtils.isEmpty((Object)resultDto.getIsDefault()) || resultDto.getIsDefault() != 1) continue;
|
||||
throw new ServiceException("\u95e8\u7981\u9ed8\u8ba4\u89c4\u5219\u4e0d\u53ef\u7f16\u8f91\u548c\u5220\u9664");
|
||||
}
|
||||
return resultDtoList;
|
||||
}
|
||||
|
||||
private void updateImageStore(AcsPassRuleEditParam param, AcsPassRuleResultDto ruleResultDto, CloudwalkCallContext context) throws ServiceException {
|
||||
ImageStoreDetailResult imageStoreDetail = this.getImageStoreDetail(ruleResultDto.getImageStoreId(), context);
|
||||
ImageStoreEditParam imageStoreEditParam = this.getEditParamByImageStore(imageStoreDetail);
|
||||
BeanCopyUtils.copyProperties((Object)ruleResultDto, (Object)imageStoreEditParam);
|
||||
BeanCopyUtils.copyProperties((Object)param, (Object)imageStoreEditParam);
|
||||
imageStoreEditParam.setName(param.getZoneName() + "-" + param.getRuleName());
|
||||
imageStoreEditParam.setExpiryBeginDate(param.getStartTime());
|
||||
imageStoreEditParam.setExpiryEndDate(param.getEndTime());
|
||||
imageStoreEditParam.setValidDateCron(null);
|
||||
imageStoreEditParam.setBusinessId(context.getCompany().getCompanyId());
|
||||
CloudwalkResult result = this.imageStoreService.edit(imageStoreEditParam, context);
|
||||
if (!result.isSuccess()) {
|
||||
this.logger.info("\u8fdc\u7a0b\u8c03\u7528\u7f16\u8f91\u56fe\u5e93\u5931\u8d25\uff1a\u539f\u56e0:" + result.getMessage());
|
||||
throw new ServiceException(result.getCode(), result.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
private List<AcsPassRuleResultDto> getRuleByIds(List<String> ruleIds, CloudwalkCallContext context) throws ServiceException {
|
||||
AcsPassRuleQueryDto dto = new AcsPassRuleQueryDto();
|
||||
dto.setIds(ruleIds);
|
||||
dto.setBusinessId(context.getCompany().getCompanyId());
|
||||
try {
|
||||
return this.acsPassRuleDao.list(dto);
|
||||
}
|
||||
catch (DataAccessException e) {
|
||||
this.logger.error("\u901a\u884c\u89c4\u5219\u67e5\u8be2\u5931\u8d25");
|
||||
throw new ServiceException("\u901a\u884c\u89c4\u5219\u67e5\u8be2\u5931\u8d25");
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
@CloudwalkParamsValidate(argsIndexs={0, 1})
|
||||
@Transactional(propagation=Propagation.REQUIRED, rollbackFor={Exception.class})
|
||||
public CloudwalkResult<Boolean> delete(AcsPassRuleDeleteParam param, CloudwalkCallContext context) throws ServiceException {
|
||||
List<AcsPassRuleResultDto> resultDtos = this.checkDefaultRule(param.getIds(), context);
|
||||
String applicationId = this.acsApplicationService.getApplicationId(context.getCompany().getCompanyId());
|
||||
AcsElevatorDeviceListDto deviceListDto = new AcsElevatorDeviceListDto();
|
||||
deviceListDto.setBusinessId(context.getCompany().getCompanyId());
|
||||
deviceListDto.setCurrentFloorId(param.getZoneId());
|
||||
List deviceList = null;
|
||||
try {
|
||||
deviceList = this.acsElevatorDeviceDao.listByZoneId(deviceListDto);
|
||||
}
|
||||
catch (DataAccessException e) {
|
||||
this.logger.error("\u6839\u636e\u697c\u5c42id\u83b7\u53d6\u8bbe\u5907\u4fe1\u606f\u5931\u8d25\uff0c\u539f\u56e0\u662f\uff1a{}", (Object)e.getMessage());
|
||||
}
|
||||
for (AcsPassRuleResultDto dto : resultDtos) {
|
||||
if (!CollectionUtils.isEmpty((Collection)deviceList)) {
|
||||
for (AcsElevatorDeviceResultDTO device : deviceList) {
|
||||
DeviceImageStoreAppUnbindParam unbindParam = new DeviceImageStoreAppUnbindParam();
|
||||
unbindParam.setApplicationId(applicationId);
|
||||
unbindParam.setDeviceId(device.getDeviceId());
|
||||
unbindParam.setDeviceCode(device.getDeviceCode());
|
||||
unbindParam.setImageStoreId(dto.getImageStoreId());
|
||||
this.acsDeviceImageStoreAppBindService.unbindAppImageStoreDevice(unbindParam, context);
|
||||
}
|
||||
continue;
|
||||
}
|
||||
DeviceImageStoreAppUnbindParam unbindParam = new DeviceImageStoreAppUnbindParam();
|
||||
unbindParam.setApplicationId(applicationId);
|
||||
unbindParam.setImageStoreId(dto.getImageStoreId());
|
||||
this.acsDeviceImageStoreAppBindService.deleteImageStore(unbindParam, context);
|
||||
}
|
||||
AcsPassRuleDeleteDto dto = new AcsPassRuleDeleteDto();
|
||||
dto.setBusinessId(context.getCompany().getCompanyId());
|
||||
dto.setIds(param.getIds());
|
||||
try {
|
||||
this.acsPassRuleDao.delete(dto);
|
||||
return CloudwalkResult.success((Object)true);
|
||||
}
|
||||
catch (DataAccessException e) {
|
||||
this.logger.error("\u901a\u884c\u89c4\u5219\u5220\u9664\u5931\u8d25");
|
||||
throw new ServiceException("76260507", this.getMessage("76260507"));
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
@CloudwalkParamsValidate(argsIndexs={0, 1})
|
||||
public CloudwalkResult<AcsPassRuleDetailResult> detail(AcsPassRuleQueryParam param, CloudwalkCallContext context) throws ServiceException {
|
||||
try {
|
||||
AcsPassRuleQueryDto dto = new AcsPassRuleQueryDto();
|
||||
BeanCopyUtils.copyProperties((Object)param, (Object)dto);
|
||||
dto.setBusinessId(context.getCompany().getCompanyId());
|
||||
List passRuleResult = this.acsPassRuleDao.list(dto);
|
||||
if (CollectionUtils.isEmpty((Collection)passRuleResult)) {
|
||||
return CloudwalkResult.fail((String)"76260517", (String)this.getMessage("76260517"));
|
||||
}
|
||||
AcsPassRuleDetailResult result = this.coverRuleDetailResult((AcsPassRuleResultDto)passRuleResult.get(0), context);
|
||||
return CloudwalkResult.success((Object)result);
|
||||
}
|
||||
catch (DataAccessException e) {
|
||||
this.logger.error("\u67e5\u8be2\u901a\u884c\u89c4\u5219\u8be6\u60c5\u5931\u8d25");
|
||||
throw new ServiceException("76260508", this.getMessage("76260508"));
|
||||
}
|
||||
}
|
||||
|
||||
private List<AcsPassRuleResult> coverRulePageResult(List<AcsPassRuleResultDto> passRuleResultDtos, CloudwalkCallContext context, boolean needDetail) throws ServiceException {
|
||||
ArrayList<AcsPassRuleResult> results = new ArrayList<AcsPassRuleResult>();
|
||||
Map<String, ImageStoreListResult> imageStoreResultMap = null;
|
||||
if (needDetail) {
|
||||
List<String> imageStoreIds = passRuleResultDtos.stream().map(AcsPassRuleResultDto::getImageStoreId).collect(Collectors.toList());
|
||||
List<ImageStoreListResult> imageStoreListResult = this.getImageStorePageResult(imageStoreIds, context);
|
||||
imageStoreResultMap = imageStoreListResult.stream().collect(Collectors.toMap(ImageStoreListResult::getId, ImageStoreListResult2 -> ImageStoreListResult2));
|
||||
}
|
||||
for (AcsPassRuleResultDto dto : passRuleResultDtos) {
|
||||
AcsPassRuleResult result = new AcsPassRuleResult();
|
||||
BeanCopyUtils.copyProperties((Object)dto, (Object)result);
|
||||
result.setRuleName(dto.getName());
|
||||
result.setPassType(AcsPassTypeEnum.LONG_TIME.getCode());
|
||||
if (dto.getBeginDate() != null || dto.getEndDate() != null) {
|
||||
result.setPassType(AcsPassTypeEnum.AUTO_PASS.getCode());
|
||||
}
|
||||
if (needDetail && imageStoreResultMap.containsKey(dto.getImageStoreId())) {
|
||||
ImageStoreListResult imageStoreListResult = imageStoreResultMap.get(dto.getImageStoreId());
|
||||
result.setPersonSum(imageStoreListResult.getPersonNum());
|
||||
result.setIncludeOrganizations(imageStoreListResult.getIncludeOrganizations());
|
||||
result.setIncludeLabels(imageStoreListResult.getIncludeLabels());
|
||||
result.setExcludeLabels(imageStoreListResult.getExcludeLabels());
|
||||
}
|
||||
results.add(result);
|
||||
}
|
||||
return results;
|
||||
}
|
||||
|
||||
private List<ImageStoreListResult> getImageStorePageResult(List<String> imageStoreIds, CloudwalkCallContext context) throws ServiceException {
|
||||
ImageStoreQueryParam param = new ImageStoreQueryParam();
|
||||
param.setIds(imageStoreIds);
|
||||
param.setBusinessId(context.getCompany().getCompanyId());
|
||||
CloudwalkResult imageStoreResult = this.imageStoreService.list(param, context);
|
||||
if (!imageStoreResult.isSuccess()) {
|
||||
this.logger.info("\u8fdc\u7a0b\u8c03\u7528\u5206\u9875\u67e5\u8be2\u56fe\u5e93\u5931\u8d25\uff0c\u539f\u56e0\uff1a" + imageStoreResult.getMessage());
|
||||
throw new ServiceException(imageStoreResult.getCode(), imageStoreResult.getMessage());
|
||||
}
|
||||
return (List)imageStoreResult.getData();
|
||||
}
|
||||
|
||||
private AcsPassRuleDetailResult coverRuleDetailResult(AcsPassRuleResultDto dto, CloudwalkCallContext context) throws ServiceException {
|
||||
AcsPassRuleDetailResult result = new AcsPassRuleDetailResult();
|
||||
BeanCopyUtils.copyProperties((Object)dto, (Object)result);
|
||||
result.setRuleName(dto.getName());
|
||||
ImageStoreDetailResult imageStoreDetailResult = this.getImageStoreDetail(dto.getImageStoreId(), context);
|
||||
result.setIncludeOrganizations(imageStoreDetailResult.getIncludeOrganizations());
|
||||
result.setIncludeLabels(imageStoreDetailResult.getIncludeLabels());
|
||||
result.setExcludeLabels(imageStoreDetailResult.getExcludeLabels());
|
||||
List timeCycleParams = JSONObject.parseArray((String)dto.getValidDateJson(), AcsPassTimeCycleParam.class);
|
||||
result.setPassableCycle(timeCycleParams);
|
||||
result.setPassType(AcsPassTypeEnum.LONG_TIME.getCode());
|
||||
if (dto.getBeginDate() != null || dto.getEndDate() != null) {
|
||||
result.setPassType(AcsPassTypeEnum.AUTO_PASS.getCode());
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
@Override
|
||||
@CloudwalkParamsValidate(argsIndexs={0, 1})
|
||||
public CloudwalkResult<CloudwalkPageAble<AcsPassRuleResult>> page(AcsPassRuleQueryParam param, CloudwalkPageInfo page, CloudwalkCallContext context) throws ServiceException {
|
||||
try {
|
||||
AcsPassRuleQueryDto dto = new AcsPassRuleQueryDto();
|
||||
dto.setZoneId(param.getZoneId());
|
||||
dto.setBusinessId(context.getCompany().getCompanyId());
|
||||
CloudwalkPageAble passRuleResult = this.acsPassRuleDao.page(dto, page);
|
||||
if (CollectionUtils.isEmpty((Collection)passRuleResult.getDatas()) && ObjectUtils.isEmpty((Object)param.getIsDefault())) {
|
||||
AcsPassRuleNewParam ruleNewParam = new AcsPassRuleNewParam();
|
||||
ruleNewParam.setZoneId(param.getZoneId());
|
||||
ruleNewParam.setZoneName(param.getZoneName());
|
||||
ruleNewParam.setRuleName("\u9ed8\u8ba4\u89c4\u5219");
|
||||
ruleNewParam.setIsDefault(1);
|
||||
this.add(ruleNewParam, context);
|
||||
passRuleResult = this.acsPassRuleDao.page(dto, page);
|
||||
}
|
||||
List<AcsPassRuleResult> results = this.coverRulePageResult((List)passRuleResult.getDatas(), context, true);
|
||||
return CloudwalkResult.success((Object)new CloudwalkPageAble(results, page, passRuleResult.getTotalRows()));
|
||||
}
|
||||
catch (DataAccessException e) {
|
||||
this.logger.error("\u5206\u9875\u67e5\u8be2\u901a\u884c\u89c4\u5219\u5931\u8d25");
|
||||
throw new ServiceException("76260508", this.getMessage("76260508"));
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public CloudwalkResult<List<AcsPassRuleResult>> list(AcsPassRuleQueryParam param, CloudwalkCallContext context) throws ServiceException {
|
||||
try {
|
||||
AcsPassRuleQueryDto dto = new AcsPassRuleQueryDto();
|
||||
BeanCopyUtils.copyProperties((Object)param, (Object)dto);
|
||||
dto.setBusinessId(context.getCompany().getCompanyId());
|
||||
List passRuleResult = this.acsPassRuleDao.list(dto);
|
||||
return CloudwalkResult.success(this.coverRulePageResult(passRuleResult, context, false));
|
||||
}
|
||||
catch (DataAccessException e) {
|
||||
this.logger.error("\u67e5\u8be2\u901a\u884c\u89c4\u5219\u5931\u8d25");
|
||||
throw new ServiceException("76260508", this.getMessage("76260508"));
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public CloudwalkResult<List<AcsPassRuleImageResultDto>> listByImageId(AcsPassRuleImageParam param, CloudwalkCallContext context) throws ServiceException {
|
||||
try {
|
||||
AcsPassRuleImageDto dto = new AcsPassRuleImageDto();
|
||||
BeanCopyUtils.copyProperties((Object)param, (Object)dto);
|
||||
List resultDtos = this.acsPassRuleDao.listByImageId(dto);
|
||||
return CloudwalkResult.success((Object)resultDtos);
|
||||
}
|
||||
catch (DataAccessException e) {
|
||||
this.logger.error("\u6839\u636e\u56fe\u5e93id\u96c6\u5408\u67e5\u8be2\u5bf9\u5e94\u697c\u5c42\u4fe1\u606f\u5931\u8d25");
|
||||
throw new ServiceException("76260526", this.getMessage("76260526"));
|
||||
}
|
||||
}
|
||||
|
||||
private void getZoneTypeIsThree(ZoneTreeResult zoneTreeResult, List<AcsPassRuleFloorResult> passRuleResults) {
|
||||
if ("FLOOR".equals(zoneTreeResult.getType())) {
|
||||
AcsPassRuleFloorResult result = new AcsPassRuleFloorResult();
|
||||
result.setId(zoneTreeResult.getId());
|
||||
result.setName(zoneTreeResult.getName());
|
||||
result.setUnitNumber(zoneTreeResult.getUnitCount());
|
||||
passRuleResults.add(result);
|
||||
} else if (!CollectionUtils.isEmpty(zoneTreeResult.getChildren())) {
|
||||
for (ZoneTreeResult treeResult : zoneTreeResult.getChildren()) {
|
||||
this.getZoneTypeIsThree(treeResult, passRuleResults);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+186
@@ -0,0 +1,186 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.cloud.exception.DataAccessException
|
||||
* cn.cloudwalk.cloud.page.CloudwalkPageAble
|
||||
* cn.cloudwalk.cloud.page.CloudwalkPageInfo
|
||||
* cn.cloudwalk.cloud.utils.BeanCopyUtils
|
||||
* com.github.pagehelper.Page
|
||||
* com.github.pagehelper.PageHelper
|
||||
* org.slf4j.Logger
|
||||
* org.slf4j.LoggerFactory
|
||||
* org.springframework.stereotype.Repository
|
||||
*/
|
||||
package cn.cloudwalk.elevator.passrule.impl;
|
||||
|
||||
import cn.cloudwalk.cloud.exception.DataAccessException;
|
||||
import cn.cloudwalk.cloud.page.CloudwalkPageAble;
|
||||
import cn.cloudwalk.cloud.page.CloudwalkPageInfo;
|
||||
import cn.cloudwalk.cloud.utils.BeanCopyUtils;
|
||||
import cn.cloudwalk.elevator.passrule.dao.ImageRuleRefDao;
|
||||
import cn.cloudwalk.elevator.passrule.dto.AcsPassRuleDeleteDto;
|
||||
import cn.cloudwalk.elevator.passrule.dto.AcsPassRuleImageDto;
|
||||
import cn.cloudwalk.elevator.passrule.dto.AcsPassRuleImageResultDto;
|
||||
import cn.cloudwalk.elevator.passrule.dto.AcsPassRuleLabelResultDto;
|
||||
import cn.cloudwalk.elevator.passrule.dto.AcsPassRulePersonListDto;
|
||||
import cn.cloudwalk.elevator.passrule.dto.AcsPassRuleQueryDto;
|
||||
import cn.cloudwalk.elevator.passrule.dto.ImageRuleRefAddDto;
|
||||
import cn.cloudwalk.elevator.passrule.dto.ImageRuleRefResultDto;
|
||||
import cn.cloudwalk.elevator.passrule.mapper.ImageRuleRefMapper;
|
||||
import com.github.pagehelper.Page;
|
||||
import com.github.pagehelper.PageHelper;
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
import javax.annotation.Resource;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
@Repository
|
||||
public class ImageRuleRefDaoImpl
|
||||
implements ImageRuleRefDao {
|
||||
@Resource
|
||||
private ImageRuleRefMapper imageRuleRefMapper;
|
||||
protected final Logger logger = LoggerFactory.getLogger(this.getClass());
|
||||
|
||||
@Override
|
||||
public CloudwalkPageAble<ImageRuleRefResultDto> page(AcsPassRuleQueryDto dto, CloudwalkPageInfo page) throws DataAccessException {
|
||||
PageHelper.startPage((int)page.getCurrentPage(), (int)page.getPageSize());
|
||||
Page result = (Page)this.imageRuleRefMapper.page(dto);
|
||||
return new CloudwalkPageAble((Collection)BeanCopyUtils.copy((Collection)result.getResult(), ImageRuleRefResultDto.class), page, result.getTotal());
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<String> listRuleByZoneIdExtDefault(String zoneId) {
|
||||
return this.imageRuleRefMapper.listRuleByZoneIdExtDefault(zoneId);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<ImageRuleRefResultDto> listByParentRule(List<String> parentRuleIds) {
|
||||
return this.imageRuleRefMapper.listByParentRule(parentRuleIds);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<ImageRuleRefResultDto> listByPersonId(String personId) throws DataAccessException {
|
||||
return this.imageRuleRefMapper.listByPersonId(personId);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<ImageRuleRefResultDto> listByLabelId(String labelId) throws DataAccessException {
|
||||
return this.imageRuleRefMapper.listByLabelId(labelId);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<ImageRuleRefResultDto> listByOrgId(String orgId) throws DataAccessException {
|
||||
return this.imageRuleRefMapper.listByOrgId(orgId);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<AcsPassRuleImageResultDto> listByPersonInfo(AcsPassRuleImageDto dto) throws DataAccessException {
|
||||
return this.imageRuleRefMapper.listByPersonInfo(dto);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<AcsPassRuleImageResultDto> listByRestructure(AcsPassRuleImageDto dto) throws DataAccessException {
|
||||
return this.imageRuleRefMapper.listByRestructure(dto);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<AcsPassRuleLabelResultDto> listFloorsByRestructure(AcsPassRuleImageDto dto) throws DataAccessException {
|
||||
return this.imageRuleRefMapper.listFloorsByRestructure(dto);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<AcsPassRuleImageResultDto> listZoneInfoByIds(List<String> zoneIds) throws DataAccessException {
|
||||
return this.imageRuleRefMapper.listZoneInfoByIds(zoneIds);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<AcsPassRuleImageResultDto> listByNotZoneIds(AcsPassRuleQueryDto dto) throws DataAccessException {
|
||||
return this.imageRuleRefMapper.listByNotZoneIds(dto);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<ImageRuleRefResultDto> listByPersonList(AcsPassRulePersonListDto dto) throws DataAccessException {
|
||||
return this.imageRuleRefMapper.listByPersonList(dto);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<String> listPersonDelByZoneId(String zoneId) throws DataAccessException {
|
||||
return this.imageRuleRefMapper.listPersonDelByZoneId(zoneId);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<String> listPersonDelByPersonId(String personId) throws DataAccessException {
|
||||
return this.imageRuleRefMapper.listPersonDelByPersonId(personId);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ImageRuleRefResultDto getDefaultByZoneId(String zoneId) throws DataAccessException {
|
||||
return this.imageRuleRefMapper.getDefaultByZoneId(zoneId);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ImageRuleRefResultDto getById(String id) throws DataAccessException {
|
||||
return this.imageRuleRefMapper.getById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getByRuleName(String ruleName, String zoneId) throws DataAccessException {
|
||||
return this.imageRuleRefMapper.getByRuleName(ruleName, zoneId);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ImageRuleRefResultDto getByPersonIdAndZoneId(List<String> personId, String zoneId) throws DataAccessException {
|
||||
return this.imageRuleRefMapper.getByPersonIdAndZoneId(personId, zoneId);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ImageRuleRefResultDto getDelByPersonIdAndZoneId(String personId, String zoneId) throws DataAccessException {
|
||||
return this.imageRuleRefMapper.getDelByPersonIdAndZoneId(personId, zoneId);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<String> countPersonIdByZoneId(String zoneId) throws DataAccessException {
|
||||
return this.imageRuleRefMapper.countPersonIdByZoneId(zoneId);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Boolean insert(ImageRuleRefAddDto dto) {
|
||||
return this.imageRuleRefMapper.insert(dto);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Boolean insertList(List<ImageRuleRefAddDto> insertList) throws DataAccessException {
|
||||
return this.imageRuleRefMapper.insertList(insertList);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Boolean deleteById(String id) throws DataAccessException {
|
||||
this.imageRuleRefMapper.deleteById(id);
|
||||
this.imageRuleRefMapper.deleteByParentRule(id);
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Boolean deleteByZoneIdAndName(String zoneId, String oldName) throws DataAccessException {
|
||||
return this.imageRuleRefMapper.deleteByZoneIdAndName(zoneId, oldName);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Boolean deleteByPersonIdsIsDel(List<String> personId, String zoneId) throws DataAccessException {
|
||||
return this.imageRuleRefMapper.deleteByPersonIdsIsDel(personId, zoneId);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Boolean deleteByPersonId(String personId, String zoneId) throws DataAccessException {
|
||||
return this.imageRuleRefMapper.deleteByPersonId(personId, zoneId);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Boolean deleteByOrgAndLabel(AcsPassRuleDeleteDto dto) throws DataAccessException {
|
||||
return this.imageRuleRefMapper.deleteByOrgAndLabel(dto);
|
||||
}
|
||||
}
|
||||
|
||||
+797
@@ -0,0 +1,797 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.param.ImageStoreEditParam
|
||||
* cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.param.ImageStorePersonData
|
||||
* cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.param.ImageStorePersonQueryParam
|
||||
* cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.param.ImageStoreQueryParam
|
||||
* cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.param.UpdateGroupPersonRefParam
|
||||
* cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.result.ImageStoreDetailResult
|
||||
* cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.result.ImageStorePersonResult
|
||||
* cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.result.ImgStorePersonResult
|
||||
* cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.service.ImageStorePersonService
|
||||
* cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.service.ImageStoreService
|
||||
* cn.cloudwalk.client.cwoscomponent.intelligent.label.param.LabelDetailParam
|
||||
* cn.cloudwalk.client.cwoscomponent.intelligent.label.result.LabelDetailResult
|
||||
* cn.cloudwalk.client.cwoscomponent.intelligent.label.result.LabelResult
|
||||
* cn.cloudwalk.client.cwoscomponent.intelligent.label.service.LabelService
|
||||
* cn.cloudwalk.client.cwoscomponent.intelligent.organization.param.OrganizationListParam
|
||||
* cn.cloudwalk.client.cwoscomponent.intelligent.organization.result.OrganizationResult
|
||||
* cn.cloudwalk.client.cwoscomponent.intelligent.organization.service.OrganizationService
|
||||
* cn.cloudwalk.cloud.annotation.CloudwalkParamsValidate
|
||||
* cn.cloudwalk.cloud.context.CloudwalkCallContext
|
||||
* 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.device.dto.AcsElevatorDeviceListDto
|
||||
* cn.cloudwalk.elevator.em.AcsPassTypeEnum
|
||||
* cn.cloudwalk.elevator.passrule.dao.ImageRuleRefDao
|
||||
* cn.cloudwalk.elevator.passrule.dto.AcsPassRuleImageDto
|
||||
* cn.cloudwalk.elevator.passrule.dto.AcsPassRuleImageResultDto
|
||||
* cn.cloudwalk.elevator.passrule.dto.AcsPassRulePersonListDto
|
||||
* cn.cloudwalk.elevator.passrule.dto.AcsPassRulePersonListResultDto
|
||||
* cn.cloudwalk.elevator.passrule.dto.AcsPassRuleQueryDto
|
||||
* cn.cloudwalk.elevator.passrule.dto.ImageRuleRefAddDto
|
||||
* cn.cloudwalk.elevator.passrule.dto.ImageRuleRefListResult
|
||||
* cn.cloudwalk.elevator.passrule.dto.ImageRuleRefResultDto
|
||||
* cn.cloudwalk.elevator.util.CollectionUtils
|
||||
* 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.passrule.impl;
|
||||
|
||||
import cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.param.ImageStoreEditParam;
|
||||
import cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.param.ImageStorePersonData;
|
||||
import cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.param.ImageStorePersonQueryParam;
|
||||
import cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.param.ImageStoreQueryParam;
|
||||
import cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.param.UpdateGroupPersonRefParam;
|
||||
import cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.result.ImageStoreDetailResult;
|
||||
import cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.result.ImageStorePersonResult;
|
||||
import cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.result.ImgStorePersonResult;
|
||||
import cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.service.ImageStorePersonService;
|
||||
import cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.service.ImageStoreService;
|
||||
import cn.cloudwalk.client.cwoscomponent.intelligent.label.param.LabelDetailParam;
|
||||
import cn.cloudwalk.client.cwoscomponent.intelligent.label.result.LabelDetailResult;
|
||||
import cn.cloudwalk.client.cwoscomponent.intelligent.label.result.LabelResult;
|
||||
import cn.cloudwalk.client.cwoscomponent.intelligent.label.service.LabelService;
|
||||
import cn.cloudwalk.client.cwoscomponent.intelligent.organization.param.OrganizationListParam;
|
||||
import cn.cloudwalk.client.cwoscomponent.intelligent.organization.result.OrganizationResult;
|
||||
import cn.cloudwalk.client.cwoscomponent.intelligent.organization.service.OrganizationService;
|
||||
import cn.cloudwalk.cloud.annotation.CloudwalkParamsValidate;
|
||||
import cn.cloudwalk.cloud.context.CloudwalkCallContext;
|
||||
import cn.cloudwalk.cloud.exception.DataAccessException;
|
||||
import cn.cloudwalk.cloud.exception.ServiceException;
|
||||
import cn.cloudwalk.cloud.page.CloudwalkPageAble;
|
||||
import cn.cloudwalk.cloud.page.CloudwalkPageInfo;
|
||||
import cn.cloudwalk.cloud.result.CloudwalkResult;
|
||||
import cn.cloudwalk.cloud.utils.BeanCopyUtils;
|
||||
import cn.cloudwalk.elevator.device.dao.AcsElevatorDeviceDao;
|
||||
import cn.cloudwalk.elevator.device.dao.DeviceImageStoreDao;
|
||||
import cn.cloudwalk.elevator.device.dto.AcsElevatorDeviceListByBuildingIdDto;
|
||||
import cn.cloudwalk.elevator.device.dto.AcsElevatorDeviceListDto;
|
||||
import cn.cloudwalk.elevator.em.AcsPassTypeEnum;
|
||||
import cn.cloudwalk.elevator.passrule.dao.ImageRuleRefDao;
|
||||
import cn.cloudwalk.elevator.passrule.dto.AcsPassRuleImageDto;
|
||||
import cn.cloudwalk.elevator.passrule.dto.AcsPassRuleImageResultDto;
|
||||
import cn.cloudwalk.elevator.passrule.dto.AcsPassRulePersonListDto;
|
||||
import cn.cloudwalk.elevator.passrule.dto.AcsPassRulePersonListResultDto;
|
||||
import cn.cloudwalk.elevator.passrule.dto.AcsPassRuleQueryDto;
|
||||
import cn.cloudwalk.elevator.passrule.dto.ImageRuleRefAddDto;
|
||||
import cn.cloudwalk.elevator.passrule.dto.ImageRuleRefListResult;
|
||||
import cn.cloudwalk.elevator.passrule.dto.ImageRuleRefResultDto;
|
||||
import cn.cloudwalk.elevator.passrule.impl.AbstractAcsPassService;
|
||||
import cn.cloudwalk.elevator.passrule.param.AcsPassRuleDeleteParam;
|
||||
import cn.cloudwalk.elevator.passrule.param.AcsPassRuleEditParam;
|
||||
import cn.cloudwalk.elevator.passrule.param.AcsPassRuleFloorParam;
|
||||
import cn.cloudwalk.elevator.passrule.param.AcsPassRuleImageParam;
|
||||
import cn.cloudwalk.elevator.passrule.param.AcsPassRuleNewParam;
|
||||
import cn.cloudwalk.elevator.passrule.param.AcsPassRulePersonListParam;
|
||||
import cn.cloudwalk.elevator.passrule.param.AcsPassRuleQueryParam;
|
||||
import cn.cloudwalk.elevator.passrule.result.AcsPassRuleFloorResult;
|
||||
import cn.cloudwalk.elevator.passrule.result.ImageRuleRefDetailResult;
|
||||
import cn.cloudwalk.elevator.passrule.result.ImageRuleRefPageResult;
|
||||
import cn.cloudwalk.elevator.passrule.service.ImageRuleRefService;
|
||||
import cn.cloudwalk.elevator.person.param.AcsPersonQueryParam;
|
||||
import cn.cloudwalk.elevator.person.result.AcsPersonResult;
|
||||
import cn.cloudwalk.elevator.person.service.PersonRuleService;
|
||||
import cn.cloudwalk.elevator.util.CollectionUtils;
|
||||
import cn.cloudwalk.elevator.zone.param.ZoneQueryParam;
|
||||
import cn.cloudwalk.elevator.zone.result.ZoneResult;
|
||||
import cn.cloudwalk.elevator.zone.service.ZoneService;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import javax.annotation.Resource;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Propagation;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
import org.springframework.util.ObjectUtils;
|
||||
|
||||
@Service
|
||||
public class ImageRuleRefServiceImpl
|
||||
extends AbstractAcsPassService
|
||||
implements ImageRuleRefService {
|
||||
@Autowired
|
||||
private ImageStorePersonService imageStorePersonService;
|
||||
@Autowired
|
||||
private OrganizationService organizationService;
|
||||
@Autowired
|
||||
private LabelService labelService;
|
||||
@Resource
|
||||
private ImageRuleRefDao imageRuleRefDao;
|
||||
@Resource
|
||||
private DeviceImageStoreDao deviceImageStoreDao;
|
||||
@Resource
|
||||
private ImageStoreService imageStoreService;
|
||||
@Resource
|
||||
private ZoneService zoneService;
|
||||
@Resource
|
||||
private AcsElevatorDeviceDao acsElevatorDeviceDao;
|
||||
@Resource
|
||||
private PersonRuleService personRuleService;
|
||||
|
||||
@Override
|
||||
public CloudwalkResult<CloudwalkPageAble<ImageRuleRefPageResult>> page(AcsPassRuleQueryParam param, CloudwalkPageInfo page, CloudwalkCallContext context) throws ServiceException {
|
||||
try {
|
||||
AcsPassRuleQueryDto dto = new AcsPassRuleQueryDto();
|
||||
dto.setZoneId(param.getZoneId());
|
||||
dto.setBusinessId(context.getCompany().getCompanyId());
|
||||
CloudwalkPageAble passRuleResult = this.imageRuleRefDao.page(dto, page);
|
||||
if (CollectionUtils.isEmpty((Collection)passRuleResult.getDatas()) && ObjectUtils.isEmpty((Object)param.getIsDefault())) {
|
||||
AcsPassRuleNewParam ruleNewParam = new AcsPassRuleNewParam();
|
||||
ruleNewParam.setZoneId(param.getZoneId());
|
||||
ruleNewParam.setZoneName(param.getZoneName());
|
||||
ruleNewParam.setRuleName("\u9ed8\u8ba4\u89c4\u5219");
|
||||
ruleNewParam.setIsDefault(1);
|
||||
ruleNewParam.setParentId(param.getParentId());
|
||||
this.addOnlyRule(ruleNewParam, context);
|
||||
passRuleResult = this.imageRuleRefDao.page(dto, page);
|
||||
}
|
||||
List<ImageRuleRefPageResult> results = this.coverRulePageResult((List)passRuleResult.getDatas(), param.getParentId(), context);
|
||||
return CloudwalkResult.success((Object)new CloudwalkPageAble(results, page, passRuleResult.getTotalRows()));
|
||||
}
|
||||
catch (Exception e) {
|
||||
this.logger.error("\u5206\u9875\u67e5\u8be2\u901a\u884c\u89c4\u5219\u5931\u8d25", (Throwable)e);
|
||||
throw new ServiceException("76260508", this.getMessage("76260508"));
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public CloudwalkResult<CloudwalkPageAble<AcsPassRuleFloorResult>> listFloor(AcsPassRuleFloorParam param, CloudwalkCallContext context) throws ServiceException {
|
||||
ZoneQueryParam queryParam = new ZoneQueryParam();
|
||||
queryParam.setParentId(param.getZoneId());
|
||||
queryParam.setRowsOfPage(param.getRowsOfPage());
|
||||
queryParam.setCurrentPage(param.getCurrentPage());
|
||||
CloudwalkResult<CloudwalkPageAble<ZoneResult>> zonePageData = this.zoneService.page(queryParam, context);
|
||||
if (!zonePageData.isSuccess()) {
|
||||
this.logger.info("\u8fdc\u7a0b\u8c03\u7528\u5206\u9875\u67e5\u8be2\u533a\u57df\u5931\u8d25,\u539f\u56e0\uff1a" + zonePageData.getMessage());
|
||||
throw new ServiceException(zonePageData.getCode(), zonePageData.getMessage());
|
||||
}
|
||||
try {
|
||||
CloudwalkPageInfo page = new CloudwalkPageInfo(param.getCurrentPage(), param.getRowsOfPage());
|
||||
CloudwalkPageAble ruleFloorResult = null;
|
||||
if (!ObjectUtils.isEmpty((Object)zonePageData.getData()) && !CollectionUtils.isEmpty((Collection)((CloudwalkPageAble)zonePageData.getData()).getDatas())) {
|
||||
List resultList = BeanCopyUtils.copy((Collection)((CloudwalkPageAble)zonePageData.getData()).getDatas(), AcsPassRuleFloorResult.class);
|
||||
String imageStoreId = this.deviceImageStoreDao.getByBuildingId(param.getZoneId());
|
||||
for (AcsPassRuleFloorResult floorResult : resultList) {
|
||||
AcsElevatorDeviceListDto dto = new AcsElevatorDeviceListDto();
|
||||
dto.setBusinessId(context.getCompany().getCompanyId());
|
||||
dto.setCurrentFloorId(floorResult.getId());
|
||||
List deviceList = this.acsElevatorDeviceDao.listByZoneId(dto);
|
||||
floorResult.setDeviceNumber(deviceList.size());
|
||||
Long number = 0L;
|
||||
floorResult.setPersonNumber(number);
|
||||
if (ObjectUtils.isEmpty((Object)imageStoreId)) continue;
|
||||
AcsPersonQueryParam personQueryParam = new AcsPersonQueryParam();
|
||||
personQueryParam.setImageStoreId(imageStoreId);
|
||||
personQueryParam.setZoneId(floorResult.getId());
|
||||
personQueryParam.setParentId(param.getZoneId());
|
||||
CloudwalkPageInfo pageInfo = new CloudwalkPageInfo(1, 10);
|
||||
CloudwalkResult<CloudwalkPageAble<AcsPersonResult>> result = this.personRuleService.page(personQueryParam, pageInfo, context);
|
||||
floorResult.setPersonNumber(((CloudwalkPageAble)result.getData()).getTotalRows());
|
||||
}
|
||||
ruleFloorResult = new CloudwalkPageAble((Collection)resultList, page, ((CloudwalkPageAble)zonePageData.getData()).getTotalRows());
|
||||
}
|
||||
return CloudwalkResult.success(ruleFloorResult);
|
||||
}
|
||||
catch (DataAccessException e) {
|
||||
this.logger.error("\u67e5\u8be2\u6240\u6709\u697c\u5c42\u4fe1\u606f\u5931\u8d25", (Throwable)e);
|
||||
throw new ServiceException("76260520", this.getMessage("76260520"));
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public CloudwalkResult<List<AcsPassRuleImageResultDto>> listByPersonInfo(AcsPassRuleImageParam param, CloudwalkCallContext context) throws ServiceException {
|
||||
try {
|
||||
AcsPassRuleImageDto dto = new AcsPassRuleImageDto();
|
||||
BeanCopyUtils.copyProperties((Object)param, (Object)dto);
|
||||
List resultDtos = this.imageRuleRefDao.listByPersonInfo(dto);
|
||||
return CloudwalkResult.success((Object)resultDtos);
|
||||
}
|
||||
catch (DataAccessException e) {
|
||||
this.logger.error("\u6839\u636e\u4eba\u5458id\u3001\u6807\u7b7e\u96c6\u5408\u3001\u673a\u6784\u96c6\u5408\u83b7\u53d6\u697c\u5c42\u6743\u9650\u5931\u8d25", (Throwable)e);
|
||||
throw new ServiceException("76260526", this.getMessage("76260526"));
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public CloudwalkResult<List<AcsPassRulePersonListResultDto>> listByPersonList(AcsPassRulePersonListParam param, CloudwalkCallContext context) throws ServiceException {
|
||||
try {
|
||||
AcsPassRulePersonListDto dto = new AcsPassRulePersonListDto();
|
||||
ArrayList<String> personIds = new ArrayList<String>();
|
||||
ArrayList<String> labelIds = new ArrayList<String>();
|
||||
ArrayList<String> orgIds = new ArrayList<String>();
|
||||
for (AcsPassRuleImageParam imageParam : param.getPersonList()) {
|
||||
personIds.add(imageParam.getPersonId());
|
||||
if (!CollectionUtils.isEmpty(imageParam.getIncludeLabels())) {
|
||||
labelIds.addAll(imageParam.getIncludeLabels());
|
||||
}
|
||||
if (CollectionUtils.isEmpty(imageParam.getIncludeOrganizations())) continue;
|
||||
orgIds.addAll(imageParam.getIncludeOrganizations());
|
||||
}
|
||||
dto.setPersonIds(personIds);
|
||||
dto.setIncludeLabels(labelIds);
|
||||
dto.setIncludeOrganizations(orgIds);
|
||||
List resultDtos = this.imageRuleRefDao.listByPersonList(dto);
|
||||
HashMap personIdMap = new HashMap();
|
||||
HashMap labelIdMap = new HashMap();
|
||||
HashMap orgIdMap = new HashMap();
|
||||
for (ImageRuleRefResultDto resultDto : resultDtos) {
|
||||
if (!ObjectUtils.isEmpty((Object)resultDto.getPersonId())) {
|
||||
List personList = (List)personIdMap.get(resultDto.getPersonId());
|
||||
if (!CollectionUtils.isEmpty((Collection)personList)) {
|
||||
personList.add(resultDto);
|
||||
continue;
|
||||
}
|
||||
ArrayList<ImageRuleRefResultDto> personListDto = new ArrayList<ImageRuleRefResultDto>();
|
||||
personListDto.add(resultDto);
|
||||
personIdMap.put(resultDto.getPersonId(), personListDto);
|
||||
continue;
|
||||
}
|
||||
if (!ObjectUtils.isEmpty((Object)resultDto.getIncludeLabels())) {
|
||||
List labelList = (List)labelIdMap.get(resultDto.getIncludeLabels());
|
||||
if (!CollectionUtils.isEmpty((Collection)labelList)) {
|
||||
labelList.add(resultDto);
|
||||
continue;
|
||||
}
|
||||
ArrayList<ImageRuleRefResultDto> labelListDto = new ArrayList<ImageRuleRefResultDto>();
|
||||
labelListDto.add(resultDto);
|
||||
labelIdMap.put(resultDto.getIncludeLabels(), labelListDto);
|
||||
continue;
|
||||
}
|
||||
if (ObjectUtils.isEmpty((Object)resultDto.getIncludeOrganizations())) continue;
|
||||
List orgList = (List)orgIdMap.get(resultDto.getIncludeOrganizations());
|
||||
if (!CollectionUtils.isEmpty((Collection)orgList)) {
|
||||
orgList.add(resultDto);
|
||||
continue;
|
||||
}
|
||||
ArrayList<ImageRuleRefResultDto> orgListDto = new ArrayList<ImageRuleRefResultDto>();
|
||||
orgListDto.add(resultDto);
|
||||
orgIdMap.put(resultDto.getIncludeOrganizations(), orgListDto);
|
||||
}
|
||||
ArrayList<AcsPassRulePersonListResultDto> returnList = new ArrayList<AcsPassRulePersonListResultDto>();
|
||||
for (AcsPassRuleImageParam imageParam : param.getPersonList()) {
|
||||
AcsPassRuleImageResultDto result;
|
||||
List zoneIdList = this.imageRuleRefDao.listPersonDelByPersonId(imageParam.getPersonId());
|
||||
AcsPassRulePersonListResultDto listResultDto = new AcsPassRulePersonListResultDto();
|
||||
listResultDto.setPersonId(imageParam.getPersonId());
|
||||
ArrayList<AcsPassRuleImageResultDto> zoneList = new ArrayList<AcsPassRuleImageResultDto>();
|
||||
ArrayList<String> listZoneIds = new ArrayList<String>();
|
||||
List personMapDto = (List)personIdMap.get(imageParam.getPersonId());
|
||||
if (!CollectionUtils.isEmpty((Collection)personMapDto)) {
|
||||
for (ImageRuleRefResultDto resultDto : personMapDto) {
|
||||
if (zoneIdList.contains(resultDto.getZoneId())) continue;
|
||||
listZoneIds.add(resultDto.getZoneId());
|
||||
AcsPassRuleImageResultDto result2 = new AcsPassRuleImageResultDto();
|
||||
result2.setZoneId(resultDto.getZoneId());
|
||||
result2.setZoneName(resultDto.getZoneName());
|
||||
zoneList.add(result2);
|
||||
}
|
||||
}
|
||||
if (!CollectionUtils.isEmpty(imageParam.getIncludeLabels())) {
|
||||
for (String labelId : imageParam.getIncludeLabels()) {
|
||||
List labelMapDto = (List)labelIdMap.get(labelId);
|
||||
if (CollectionUtils.isEmpty((Collection)labelMapDto)) continue;
|
||||
for (ImageRuleRefResultDto resultDto : labelMapDto) {
|
||||
if (zoneIdList.contains(resultDto.getZoneId()) || listZoneIds.contains(resultDto.getZoneId())) continue;
|
||||
listZoneIds.add(resultDto.getZoneId());
|
||||
result = new AcsPassRuleImageResultDto();
|
||||
result.setZoneId(resultDto.getZoneId());
|
||||
result.setZoneName(resultDto.getZoneName());
|
||||
zoneList.add(result);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!CollectionUtils.isEmpty(imageParam.getIncludeOrganizations())) {
|
||||
for (String orgId : imageParam.getIncludeOrganizations()) {
|
||||
List orgMapDto = (List)orgIdMap.get(orgId);
|
||||
if (CollectionUtils.isEmpty((Collection)orgMapDto)) continue;
|
||||
for (ImageRuleRefResultDto resultDto : orgMapDto) {
|
||||
if (zoneIdList.contains(resultDto.getZoneId()) || listZoneIds.contains(resultDto.getZoneId())) continue;
|
||||
listZoneIds.add(resultDto.getZoneId());
|
||||
result = new AcsPassRuleImageResultDto();
|
||||
result.setZoneId(resultDto.getZoneId());
|
||||
result.setZoneName(resultDto.getZoneName());
|
||||
zoneList.add(result);
|
||||
}
|
||||
}
|
||||
}
|
||||
listResultDto.setZoneList(zoneList);
|
||||
returnList.add(listResultDto);
|
||||
}
|
||||
return CloudwalkResult.success(returnList);
|
||||
}
|
||||
catch (DataAccessException e) {
|
||||
this.logger.error("\u6839\u636e\u4eba\u5458id\u3001\u6807\u7b7e\u96c6\u5408\u3001\u673a\u6784\u96c6\u5408\u6279\u91cf\u83b7\u53d6\u697c\u5c42\u6743\u9650\u5931\u8d25", (Throwable)e);
|
||||
throw new ServiceException("76260526", this.getMessage("76260526"));
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public CloudwalkResult<ImageRuleRefDetailResult> detail(AcsPassRuleQueryParam param, CloudwalkCallContext context) throws ServiceException {
|
||||
try {
|
||||
ImageRuleRefResultDto byId = this.imageRuleRefDao.getById(param.getId());
|
||||
ArrayList<String> includeLabels = new ArrayList<String>();
|
||||
ArrayList<String> includeOrganizations = new ArrayList<String>();
|
||||
List child = this.imageRuleRefDao.listByParentRule(Collections.singletonList(param.getId()));
|
||||
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());
|
||||
}
|
||||
}
|
||||
ImageRuleRefDetailResult result = (ImageRuleRefDetailResult)BeanCopyUtils.copyProperties((Object)byId, ImageRuleRefDetailResult.class);
|
||||
result.setRuleName(byId.getName());
|
||||
if (!CollectionUtils.isEmpty(includeLabels)) {
|
||||
ArrayList<LabelDetailResult> labelDetailResultList = new ArrayList<LabelDetailResult>();
|
||||
for (String label : includeLabels) {
|
||||
LabelDetailParam labelDetailParam = new LabelDetailParam();
|
||||
labelDetailParam.setId(label);
|
||||
CloudwalkResult detail = this.labelService.detail(labelDetailParam, context);
|
||||
labelDetailResultList.add((LabelDetailResult)detail.getData());
|
||||
}
|
||||
result.setIncludeLabels(labelDetailResultList);
|
||||
}
|
||||
if (!CollectionUtils.isEmpty(includeOrganizations)) {
|
||||
OrganizationListParam orgParam = new OrganizationListParam();
|
||||
orgParam.setIds(includeOrganizations);
|
||||
CloudwalkResult orglist = this.organizationService.list(orgParam, context);
|
||||
result.setIncludeOrganizations((List)orglist.getData());
|
||||
}
|
||||
return CloudwalkResult.success((Object)result);
|
||||
}
|
||||
catch (DataAccessException e) {
|
||||
this.logger.error("\u67e5\u8be2\u901a\u884c\u89c4\u5219\u8be6\u60c5\u5931\u8d25", (Throwable)e);
|
||||
throw new ServiceException("76260508", this.getMessage("76260508"));
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
@CloudwalkParamsValidate(argsIndexs={0, 1})
|
||||
@Transactional(propagation=Propagation.REQUIRED, rollbackFor={Exception.class})
|
||||
public CloudwalkResult<Boolean> addOnlyRule(AcsPassRuleNewParam param, CloudwalkCallContext context) throws ServiceException {
|
||||
try {
|
||||
ImageRuleRefAddDto dto;
|
||||
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"));
|
||||
}
|
||||
String imageStoreId = this.deviceImageStoreDao.getByBuildingId(param.getParentId());
|
||||
ImageRuleRefAddDto addDto = this.createAddDto(param, context);
|
||||
this.imageRuleRefDao.insert(addDto);
|
||||
if (!ObjectUtils.isEmpty((Object)param.getIsDefault()) && param.getIsDefault() == 1) {
|
||||
return CloudwalkResult.success((Object)true);
|
||||
}
|
||||
ImageStoreQueryParam queryParam = new ImageStoreQueryParam();
|
||||
queryParam.setId(imageStoreId);
|
||||
queryParam.setBusinessId(context.getCompany().getCompanyId());
|
||||
CloudwalkResult imageDetail = this.imageStoreService.detail(queryParam, context);
|
||||
ImageStoreEditParam editParam = (ImageStoreEditParam)BeanCopyUtils.copyProperties((Object)imageDetail.getData(), ImageStoreEditParam.class);
|
||||
editParam.setImageStoreId(((ImageStoreDetailResult)imageDetail.getData()).getId());
|
||||
if (!CollectionUtils.isEmpty((Collection)((ImageStoreDetailResult)imageDetail.getData()).getIncludePersons())) {
|
||||
ArrayList<ImageStorePersonData> includePersons = new ArrayList<ImageStorePersonData>();
|
||||
for (ImgStorePersonResult personResult : ((ImageStoreDetailResult)imageDetail.getData()).getIncludePersons()) {
|
||||
ImageStorePersonData data = new ImageStorePersonData();
|
||||
data.setObjectId(personResult.getId());
|
||||
includePersons.add(data);
|
||||
}
|
||||
editParam.setIncludePersons(includePersons);
|
||||
}
|
||||
ArrayList<String> oldIncludeLabels = new ArrayList<String>();
|
||||
ArrayList<String> oldIncludeOrganizations = new ArrayList<String>();
|
||||
ArrayList<String> includeLabels = new ArrayList<String>();
|
||||
ArrayList<String> includeOrganizations = new ArrayList<String>();
|
||||
if (!CollectionUtils.isEmpty((Collection)((ImageStoreDetailResult)imageDetail.getData()).getIncludeLabels())) {
|
||||
for (LabelResult labelResult : ((ImageStoreDetailResult)imageDetail.getData()).getIncludeLabels()) {
|
||||
oldIncludeLabels.add(labelResult.getId());
|
||||
}
|
||||
}
|
||||
if (!CollectionUtils.isEmpty((Collection)((ImageStoreDetailResult)imageDetail.getData()).getIncludeOrganizations())) {
|
||||
for (OrganizationResult organizationResult : ((ImageStoreDetailResult)imageDetail.getData()).getIncludeOrganizations()) {
|
||||
oldIncludeOrganizations.add(organizationResult.getId());
|
||||
}
|
||||
}
|
||||
if (!CollectionUtils.isEmpty(param.getIncludeLabels())) {
|
||||
for (String label : param.getIncludeLabels()) {
|
||||
dto = this.createAddDto(param, context);
|
||||
dto.setParentRule(addDto.getId());
|
||||
dto.setIncludeLabels(label);
|
||||
this.imageRuleRefDao.insert(dto);
|
||||
if (oldIncludeLabels.contains(label)) continue;
|
||||
includeLabels.add(label);
|
||||
}
|
||||
}
|
||||
if (!CollectionUtils.isEmpty(param.getIncludeOrganizations())) {
|
||||
for (String org : param.getIncludeOrganizations()) {
|
||||
dto = this.createAddDto(param, context);
|
||||
dto.setParentRule(addDto.getId());
|
||||
dto.setIncludeOrganizations(org);
|
||||
this.imageRuleRefDao.insert(dto);
|
||||
if (oldIncludeOrganizations.contains(org)) continue;
|
||||
includeOrganizations.add(org);
|
||||
}
|
||||
}
|
||||
if (!CollectionUtils.isEmpty(includeLabels) || !CollectionUtils.isEmpty(includeOrganizations)) {
|
||||
CloudwalkResult edit;
|
||||
includeLabels.addAll(oldIncludeLabels);
|
||||
includeOrganizations.addAll(oldIncludeOrganizations);
|
||||
editParam.setIncludeLabels(includeLabels);
|
||||
editParam.setIncludeOrganizations(includeOrganizations);
|
||||
editParam.setBusinessId(context.getCompany().getCompanyId());
|
||||
if (!CollectionUtils.isEmpty((Collection)((ImageStoreDetailResult)imageDetail.getData()).getExcludePersons())) {
|
||||
ArrayList<String> excPersonIds = new ArrayList<String>();
|
||||
for (ImgStorePersonResult personResult : ((ImageStoreDetailResult)imageDetail.getData()).getExcludePersons()) {
|
||||
excPersonIds.add(personResult.getId());
|
||||
}
|
||||
editParam.setExcludePersons(excPersonIds);
|
||||
}
|
||||
if (ObjectUtils.isEmpty((Object)(edit = this.imageStoreService.edit(editParam, context)).getData()) || !((Boolean)edit.getData()).booleanValue()) {
|
||||
throw new ServiceException(edit.getCode(), edit.getMessage());
|
||||
}
|
||||
}
|
||||
UpdateGroupPersonRefParam refParam = new UpdateGroupPersonRefParam();
|
||||
refParam.setImageStoreId(imageStoreId);
|
||||
refParam.setBusinessId(context.getCompany().getCompanyId());
|
||||
refParam.setLabelIds(param.getIncludeLabels());
|
||||
refParam.setOrganizationIds(param.getIncludeOrganizations());
|
||||
this.imageStorePersonService.updateGroupPersonRef(refParam, context);
|
||||
return CloudwalkResult.success((Object)true);
|
||||
}
|
||||
catch (DataAccessException e) {
|
||||
this.logger.error("\u6dfb\u52a0\u901a\u884c\u89c4\u5219\u5931\u8d25", (Throwable)e);
|
||||
throw new ServiceException("76260505", this.getMessage("76260505"));
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public CloudwalkResult<Boolean> update(AcsPassRuleEditParam param, CloudwalkCallContext context) throws ServiceException {
|
||||
this.checkDefaultRule(param.getId());
|
||||
String imageStoreId = this.deviceImageStoreDao.getByBuildingId(param.getParentId());
|
||||
ImageStoreQueryParam queryParam = new ImageStoreQueryParam();
|
||||
queryParam.setId(imageStoreId);
|
||||
queryParam.setBusinessId(context.getCompany().getCompanyId());
|
||||
CloudwalkResult imageDetail = this.imageStoreService.detail(queryParam, context);
|
||||
ImageStoreEditParam editParam = (ImageStoreEditParam)BeanCopyUtils.copyProperties((Object)imageDetail.getData(), ImageStoreEditParam.class);
|
||||
editParam.setImageStoreId(imageStoreId);
|
||||
ArrayList<String> oldIncludeLabels = new ArrayList<String>();
|
||||
ArrayList<String> oldIncludeOrganizations = new ArrayList<String>();
|
||||
ArrayList<String> includeLabels = new ArrayList<String>();
|
||||
ArrayList<String> includeOrganizations = new ArrayList<String>();
|
||||
ArrayList<String> includeLabels2 = new ArrayList<String>();
|
||||
ArrayList<String> includeOrganizations2 = new ArrayList<String>();
|
||||
if (!CollectionUtils.isEmpty((Collection)((ImageStoreDetailResult)imageDetail.getData()).getIncludeLabels())) {
|
||||
for (LabelResult labelResult : ((ImageStoreDetailResult)imageDetail.getData()).getIncludeLabels()) {
|
||||
oldIncludeLabels.add(labelResult.getId());
|
||||
}
|
||||
}
|
||||
if (!CollectionUtils.isEmpty((Collection)((ImageStoreDetailResult)imageDetail.getData()).getIncludeOrganizations())) {
|
||||
for (OrganizationResult organizationResult : ((ImageStoreDetailResult)imageDetail.getData()).getIncludeOrganizations()) {
|
||||
oldIncludeOrganizations.add(organizationResult.getId());
|
||||
}
|
||||
}
|
||||
try {
|
||||
ImageRuleRefAddDto dto;
|
||||
List oldRule = this.imageRuleRefDao.listByParentRule(Collections.singletonList(param.getId()));
|
||||
ArrayList<String> updateLabels = new ArrayList<String>(param.getIncludeLabels());
|
||||
ArrayList<String> updateOrgIds = new ArrayList<String>(param.getIncludeOrganizations());
|
||||
Boolean isTrue = true;
|
||||
if (!CollectionUtils.isEmpty((Collection)oldRule)) {
|
||||
for (Object dto2 : oldRule) {
|
||||
if (!ObjectUtils.isEmpty((Object)dto2.getIncludeLabels()) && !updateLabels.contains(dto2.getIncludeLabels())) {
|
||||
updateLabels.add(dto2.getIncludeLabels());
|
||||
isTrue = false;
|
||||
}
|
||||
if (ObjectUtils.isEmpty((Object)dto2.getIncludeOrganizations()) || updateOrgIds.contains(dto2.getIncludeOrganizations())) continue;
|
||||
updateOrgIds.add(dto2.getIncludeOrganizations());
|
||||
isTrue = false;
|
||||
}
|
||||
}
|
||||
this.imageRuleRefDao.deleteById(param.getId());
|
||||
ImageRuleRefAddDto addDto = this.createUpdateDto(param, context);
|
||||
this.imageRuleRefDao.insert(addDto);
|
||||
if (!CollectionUtils.isEmpty(param.getIncludeLabels())) {
|
||||
for (String label : param.getIncludeLabels()) {
|
||||
dto = this.createUpdateDto(param, context);
|
||||
dto.setIncludeLabels(label);
|
||||
dto.setParentRule(addDto.getId());
|
||||
this.imageRuleRefDao.insert(dto);
|
||||
if (editParam.getIncludeLabels().contains(label)) continue;
|
||||
includeLabels.add(label);
|
||||
includeLabels2.add(label);
|
||||
}
|
||||
}
|
||||
if (!CollectionUtils.isEmpty(param.getExcludeLabels())) {
|
||||
for (String label : param.getExcludeLabels()) {
|
||||
dto = this.createUpdateDto(param, context);
|
||||
dto.setExcludeLabels(label);
|
||||
dto.setParentRule(addDto.getId());
|
||||
this.imageRuleRefDao.insert(dto);
|
||||
}
|
||||
}
|
||||
if (!CollectionUtils.isEmpty(param.getIncludeOrganizations())) {
|
||||
for (String org : param.getIncludeOrganizations()) {
|
||||
dto = this.createUpdateDto(param, context);
|
||||
dto.setIncludeOrganizations(org);
|
||||
dto.setParentRule(addDto.getId());
|
||||
this.imageRuleRefDao.insert(dto);
|
||||
if (editParam.getIncludeOrganizations().contains(org)) continue;
|
||||
includeOrganizations.add(org);
|
||||
includeOrganizations2.add(org);
|
||||
}
|
||||
}
|
||||
if (!CollectionUtils.isEmpty(includeLabels) || !CollectionUtils.isEmpty(includeOrganizations)) {
|
||||
CloudwalkResult includePersons;
|
||||
includeLabels.addAll(oldIncludeLabels);
|
||||
includeOrganizations.addAll(oldIncludeOrganizations);
|
||||
editParam.setIncludeLabels(includeLabels);
|
||||
editParam.setIncludeOrganizations(includeOrganizations);
|
||||
if (!CollectionUtils.isEmpty((Collection)((ImageStoreDetailResult)imageDetail.getData()).getExcludePersons())) {
|
||||
ArrayList<String> excPersonIds = new ArrayList<String>();
|
||||
for (ImgStorePersonResult personResult : ((ImageStoreDetailResult)imageDetail.getData()).getExcludePersons()) {
|
||||
excPersonIds.add(personResult.getId());
|
||||
}
|
||||
editParam.setExcludePersons(excPersonIds);
|
||||
}
|
||||
if (!CollectionUtils.isEmpty((Collection)((ImageStoreDetailResult)imageDetail.getData()).getIncludePersons())) {
|
||||
includePersons = new ArrayList();
|
||||
for (ImgStorePersonResult personResult : ((ImageStoreDetailResult)imageDetail.getData()).getIncludePersons()) {
|
||||
ImageStorePersonData personData = new ImageStorePersonData();
|
||||
personData.setObjectId(personResult.getId());
|
||||
includePersons.add(personData);
|
||||
}
|
||||
editParam.setIncludePersons((List)includePersons);
|
||||
}
|
||||
editParam.setBusinessId(context.getCompany().getCompanyId());
|
||||
includePersons = this.imageStoreService.edit(editParam, context);
|
||||
}
|
||||
if (!isTrue.booleanValue()) {
|
||||
UpdateGroupPersonRefParam refParam = new UpdateGroupPersonRefParam();
|
||||
refParam.setImageStoreId(imageStoreId);
|
||||
refParam.setBusinessId(context.getCompany().getCompanyId());
|
||||
refParam.setLabelIds(updateLabels);
|
||||
refParam.setOrganizationIds(updateOrgIds);
|
||||
this.imageStorePersonService.updateGroupPersonRef(refParam, context);
|
||||
}
|
||||
return CloudwalkResult.success((Object)true);
|
||||
}
|
||||
catch (DataAccessException e) {
|
||||
this.logger.error("\u6dfb\u52a0\u901a\u884c\u89c4\u5219\u5931\u8d25", (Throwable)e);
|
||||
throw new ServiceException("76260505", this.getMessage("76260505"));
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public CloudwalkResult<Boolean> delete(AcsPassRuleDeleteParam param, CloudwalkCallContext context) throws ServiceException {
|
||||
try {
|
||||
String imageStoreId = this.deviceImageStoreDao.getByBuildingId(param.getParentId());
|
||||
for (String id : param.getIds()) {
|
||||
this.checkDefaultRule(id);
|
||||
ArrayList<String> includeLabels = new ArrayList<String>();
|
||||
ArrayList<String> includeOrganizations = new ArrayList<String>();
|
||||
List child = this.imageRuleRefDao.listByParentRule(Collections.singletonList(id));
|
||||
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());
|
||||
}
|
||||
}
|
||||
this.imageRuleRefDao.deleteById(id);
|
||||
UpdateGroupPersonRefParam refParam = new UpdateGroupPersonRefParam();
|
||||
refParam.setBusinessId(context.getCompany().getCompanyId());
|
||||
refParam.setImageStoreId(imageStoreId);
|
||||
refParam.setLabelIds(includeLabels);
|
||||
refParam.setOrganizationIds(includeOrganizations);
|
||||
this.imageStorePersonService.updateGroupPersonRef(refParam, context);
|
||||
}
|
||||
return CloudwalkResult.success((Object)true);
|
||||
}
|
||||
catch (DataAccessException e) {
|
||||
this.logger.error("\u901a\u884c\u89c4\u5219\u5220\u9664\u5931\u8d25", (Throwable)e);
|
||||
throw new ServiceException("76260507", this.getMessage("76260507"));
|
||||
}
|
||||
}
|
||||
|
||||
private List<ImageRuleRefPageResult> coverRulePageResult(List<ImageRuleRefResultDto> datas, String parentId, CloudwalkCallContext context) throws Exception {
|
||||
ArrayList<ImageRuleRefPageResult> detailResultList = new ArrayList<ImageRuleRefPageResult>();
|
||||
if (CollectionUtils.isEmpty(datas)) {
|
||||
return detailResultList;
|
||||
}
|
||||
List personSum = this.imageRuleRefDao.countPersonIdByZoneId(datas.get(0).getZoneId());
|
||||
for (ImageRuleRefResultDto data : datas) {
|
||||
ImageRuleRefPageResult detailResult = new ImageRuleRefPageResult();
|
||||
AcsPersonQueryParam personQueryParam = new AcsPersonQueryParam();
|
||||
BeanCopyUtils.copyProperties((Object)data, (Object)detailResult);
|
||||
detailResult.setRuleName(data.getName());
|
||||
detailResult.setPassType(AcsPassTypeEnum.LONG_TIME.getCode());
|
||||
if (data.getIsDefault() == 1) {
|
||||
detailResult.setPersonSum(personSum.size());
|
||||
} else {
|
||||
personQueryParam.setDelPersonIds(personSum);
|
||||
ArrayList<String> includeLabels = new ArrayList<String>();
|
||||
ArrayList<String> includeOrganizations = new ArrayList<String>();
|
||||
List child = this.imageRuleRefDao.listByParentRule(Collections.singletonList(data.getId()));
|
||||
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());
|
||||
}
|
||||
String imageStoreId = this.deviceImageStoreDao.getByBuildingId(parentId);
|
||||
personQueryParam.setImageStoreId(imageStoreId);
|
||||
personQueryParam.setLabelIds(includeLabels);
|
||||
personQueryParam.setOrganizationIds(includeOrganizations);
|
||||
if (!CollectionUtils.isEmpty(personQueryParam.getOrganizationIds()) && !CollectionUtils.isEmpty(personQueryParam.getLabelIds())) {
|
||||
personQueryParam.setIsElevator(3);
|
||||
} else if (!CollectionUtils.isEmpty(personQueryParam.getOrganizationIds())) {
|
||||
personQueryParam.setIsElevator(1);
|
||||
} else if (!CollectionUtils.isEmpty(personQueryParam.getLabelIds())) {
|
||||
personQueryParam.setIsElevator(2);
|
||||
}
|
||||
CloudwalkPageInfo page = new CloudwalkPageInfo(1, 10);
|
||||
CloudwalkPageAble<ImageStorePersonResult> pageResult = this.getImageStorePerson(personQueryParam, page, context);
|
||||
List delPerson = this.imageRuleRefDao.listPersonDelByZoneId(data.getZoneId());
|
||||
if (!ObjectUtils.isEmpty((Object)pageResult.getDatas())) {
|
||||
detailResult.setPersonSum(Math.toIntExact(pageResult.getTotalRows()) - delPerson.size());
|
||||
} else {
|
||||
detailResult.setPersonSum(0);
|
||||
}
|
||||
if (!CollectionUtils.isEmpty(includeLabels)) {
|
||||
ArrayList<LabelDetailResult> labelDetailResultList = new ArrayList<LabelDetailResult>();
|
||||
for (String label : includeLabels) {
|
||||
LabelDetailParam param = new LabelDetailParam();
|
||||
param.setId(label);
|
||||
CloudwalkResult detail = this.labelService.detail(param, context);
|
||||
labelDetailResultList.add((LabelDetailResult)detail.getData());
|
||||
}
|
||||
detailResult.setIncludeLabels(labelDetailResultList);
|
||||
}
|
||||
if (!CollectionUtils.isEmpty(includeOrganizations)) {
|
||||
OrganizationListParam orgParam = new OrganizationListParam();
|
||||
orgParam.setIds(includeOrganizations);
|
||||
CloudwalkResult orglist = this.organizationService.list(orgParam, context);
|
||||
detailResult.setIncludeOrganizations((List)orglist.getData());
|
||||
}
|
||||
}
|
||||
}
|
||||
detailResultList.add(detailResult);
|
||||
}
|
||||
return detailResultList;
|
||||
}
|
||||
|
||||
private CloudwalkPageAble<ImageStorePersonResult> getImageStorePerson(AcsPersonQueryParam param, CloudwalkPageInfo pageInfo, CloudwalkCallContext context) throws ServiceException {
|
||||
CloudwalkPageAble results = new CloudwalkPageAble();
|
||||
ImageStorePersonQueryParam imageStorePersonQueryParam = new ImageStorePersonQueryParam();
|
||||
imageStorePersonQueryParam.setImageStoreId(param.getImageStoreId());
|
||||
imageStorePersonQueryParam.setOrganizationIds(param.getOrganizationIds());
|
||||
imageStorePersonQueryParam.setLabelIds(param.getLabelIds());
|
||||
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 ImageRuleRefListResult refListByZoneId(String zoneId) {
|
||||
List child;
|
||||
ImageRuleRefListResult listResult = new ImageRuleRefListResult();
|
||||
ArrayList<String> includeLabels = new ArrayList<String>();
|
||||
ArrayList<String> includeOrganizations = new ArrayList<String>();
|
||||
List parentRuleList = this.imageRuleRefDao.listRuleByZoneIdExtDefault(zoneId);
|
||||
if (!CollectionUtils.isEmpty((Collection)parentRuleList) && !CollectionUtils.isEmpty((Collection)(child = this.imageRuleRefDao.listByParentRule(parentRuleList)))) {
|
||||
for (ImageRuleRefResultDto resultDto : child) {
|
||||
if (!ObjectUtils.isEmpty((Object)resultDto.getIncludeLabels())) {
|
||||
includeLabels.add(resultDto.getExcludeLabels());
|
||||
continue;
|
||||
}
|
||||
if (ObjectUtils.isEmpty((Object)resultDto.getIncludeOrganizations())) continue;
|
||||
includeOrganizations.add(resultDto.getIncludeOrganizations());
|
||||
}
|
||||
}
|
||||
listResult.setIncludeLabels(includeLabels);
|
||||
listResult.setIncludeOrganizations(includeOrganizations);
|
||||
return listResult;
|
||||
}
|
||||
|
||||
private ImageRuleRefAddDto createAddDto(AcsPassRuleNewParam param, CloudwalkCallContext context) {
|
||||
ImageRuleRefAddDto dto = new ImageRuleRefAddDto();
|
||||
dto.setId(this.genUUID());
|
||||
dto.setBusinessId(context.getCompany().getCompanyId());
|
||||
dto.setName(param.getRuleName());
|
||||
dto.setZoneId(param.getZoneId());
|
||||
dto.setZoneName(param.getZoneName());
|
||||
dto.setStartTime(param.getStartTime());
|
||||
dto.setEndTime(param.getEndTime());
|
||||
if (!ObjectUtils.isEmpty((Object)param.getIsDefault())) {
|
||||
dto.setIsDefault(param.getIsDefault());
|
||||
} else {
|
||||
dto.setIsDefault(Integer.valueOf(0));
|
||||
}
|
||||
dto.setCreateTime(Long.valueOf(System.currentTimeMillis()));
|
||||
dto.setLastUpdateTime(Long.valueOf(System.currentTimeMillis()));
|
||||
return dto;
|
||||
}
|
||||
|
||||
private ImageRuleRefAddDto createUpdateDto(AcsPassRuleEditParam param, CloudwalkCallContext context) {
|
||||
ImageRuleRefAddDto dto = new ImageRuleRefAddDto();
|
||||
dto.setId(this.genUUID());
|
||||
dto.setBusinessId(context.getCompany().getCompanyId());
|
||||
dto.setName(param.getRuleName());
|
||||
dto.setZoneId(param.getZoneId());
|
||||
dto.setZoneName(param.getZoneName());
|
||||
dto.setStartTime(param.getStartTime());
|
||||
dto.setEndTime(param.getEndTime());
|
||||
dto.setCreateTime(Long.valueOf(System.currentTimeMillis()));
|
||||
dto.setLastUpdateTime(Long.valueOf(System.currentTimeMillis()));
|
||||
dto.setIsDefault(Integer.valueOf(0));
|
||||
return dto;
|
||||
}
|
||||
|
||||
private ImageRuleRefResultDto checkDefaultRule(String id) throws ServiceException {
|
||||
try {
|
||||
ImageRuleRefResultDto resultDto = this.imageRuleRefDao.getById(id);
|
||||
if (!ObjectUtils.isEmpty((Object)resultDto.getIsDefault()) && resultDto.getIsDefault() == 1) {
|
||||
throw new ServiceException("\u6d3e\u68af\u9ed8\u8ba4\u89c4\u5219\u4e0d\u53ef\u7f16\u8f91\u548c\u5220\u9664");
|
||||
}
|
||||
return resultDto;
|
||||
}
|
||||
catch (DataAccessException e) {
|
||||
throw new ServiceException("\u6d3e\u68af\u9ed8\u8ba4\u89c4\u5219\u4e0d\u53ef\u7f16\u8f91\u548c\u5220\u9664");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+29
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package cn.cloudwalk.elevator.passrule.mapper;
|
||||
|
||||
import cn.cloudwalk.elevator.passrule.dto.AcsPassRuleAddDto;
|
||||
import cn.cloudwalk.elevator.passrule.dto.AcsPassRuleDeleteDto;
|
||||
import cn.cloudwalk.elevator.passrule.dto.AcsPassRuleEditDto;
|
||||
import cn.cloudwalk.elevator.passrule.dto.AcsPassRuleImageDto;
|
||||
import cn.cloudwalk.elevator.passrule.dto.AcsPassRuleImageResultDto;
|
||||
import cn.cloudwalk.elevator.passrule.dto.AcsPassRuleIsDefaultDto;
|
||||
import cn.cloudwalk.elevator.passrule.dto.AcsPassRuleQueryDto;
|
||||
import cn.cloudwalk.elevator.passrule.dto.AcsPassRuleResultDto;
|
||||
import java.util.List;
|
||||
|
||||
public interface AcsPassRuleMapper {
|
||||
public Integer insert(AcsPassRuleAddDto var1);
|
||||
|
||||
public Integer update(AcsPassRuleEditDto var1);
|
||||
|
||||
public Integer delete(AcsPassRuleDeleteDto var1);
|
||||
|
||||
public List<AcsPassRuleResultDto> list(AcsPassRuleQueryDto var1);
|
||||
|
||||
public String getIsDefaultByZoneId(AcsPassRuleIsDefaultDto var1);
|
||||
|
||||
public List<AcsPassRuleImageResultDto> listByImageId(AcsPassRuleImageDto var1);
|
||||
}
|
||||
|
||||
+77
@@ -0,0 +1,77 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* org.apache.ibatis.annotations.Param
|
||||
*/
|
||||
package cn.cloudwalk.elevator.passrule.mapper;
|
||||
|
||||
import cn.cloudwalk.elevator.passrule.dto.AcsPassRuleDeleteDto;
|
||||
import cn.cloudwalk.elevator.passrule.dto.AcsPassRuleImageDto;
|
||||
import cn.cloudwalk.elevator.passrule.dto.AcsPassRuleImageResultDto;
|
||||
import cn.cloudwalk.elevator.passrule.dto.AcsPassRuleLabelResultDto;
|
||||
import cn.cloudwalk.elevator.passrule.dto.AcsPassRulePersonListDto;
|
||||
import cn.cloudwalk.elevator.passrule.dto.AcsPassRuleQueryDto;
|
||||
import cn.cloudwalk.elevator.passrule.dto.ImageRuleRefAddDto;
|
||||
import cn.cloudwalk.elevator.passrule.dto.ImageRuleRefResultDto;
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
public interface ImageRuleRefMapper {
|
||||
public List<ImageRuleRefResultDto> page(AcsPassRuleQueryDto var1);
|
||||
|
||||
public List<String> listRuleByZoneIdExtDefault(String var1);
|
||||
|
||||
public List<String> listPersonDelByZoneId(@Param(value="zoneId") String var1);
|
||||
|
||||
public List<String> listPersonDelByPersonId(@Param(value="personId") String var1);
|
||||
|
||||
public List<ImageRuleRefResultDto> listByParentRule(@Param(value="parentRuleIds") List<String> var1);
|
||||
|
||||
public List<ImageRuleRefResultDto> listByPersonId(@Param(value="personId") String var1);
|
||||
|
||||
public List<ImageRuleRefResultDto> listByLabelId(@Param(value="labelId") String var1);
|
||||
|
||||
public List<ImageRuleRefResultDto> listByOrgId(@Param(value="orgId") String var1);
|
||||
|
||||
public List<AcsPassRuleImageResultDto> listByPersonInfo(AcsPassRuleImageDto var1);
|
||||
|
||||
public List<AcsPassRuleImageResultDto> listByRestructure(AcsPassRuleImageDto var1);
|
||||
|
||||
public List<AcsPassRuleLabelResultDto> listFloorsByRestructure(AcsPassRuleImageDto var1);
|
||||
|
||||
public List<AcsPassRuleImageResultDto> listZoneInfoByIds(@Param(value="zoneIds") List<String> var1);
|
||||
|
||||
public List<AcsPassRuleImageResultDto> listByNotZoneIds(@Param(value="request") AcsPassRuleQueryDto var1);
|
||||
|
||||
public List<ImageRuleRefResultDto> listByPersonList(AcsPassRulePersonListDto var1);
|
||||
|
||||
public ImageRuleRefResultDto getDefaultByZoneId(String var1);
|
||||
|
||||
public ImageRuleRefResultDto getById(String var1);
|
||||
|
||||
public String getByRuleName(@Param(value="ruleName") String var1, @Param(value="zoneId") String var2);
|
||||
|
||||
public ImageRuleRefResultDto getByPersonIdAndZoneId(@Param(value="personIds") List<String> var1, @Param(value="zoneId") String var2);
|
||||
|
||||
public ImageRuleRefResultDto getDelByPersonIdAndZoneId(@Param(value="personId") String var1, @Param(value="zoneId") String var2);
|
||||
|
||||
public List<String> countPersonIdByZoneId(String var1);
|
||||
|
||||
public Boolean insert(ImageRuleRefAddDto var1);
|
||||
|
||||
public Boolean insertList(@Param(value="dtoList") List<ImageRuleRefAddDto> var1);
|
||||
|
||||
public Boolean deleteByZoneIdAndName(String var1, String var2);
|
||||
|
||||
public Boolean deleteById(String var1);
|
||||
|
||||
public Boolean deleteByParentRule(String var1);
|
||||
|
||||
public Boolean deleteByPersonIdsIsDel(@Param(value="personIds") List<String> var1, @Param(value="zoneId") String var2);
|
||||
|
||||
public Boolean deleteByPersonId(@Param(value="personId") String var1, @Param(value="zoneId") String var2);
|
||||
|
||||
public Boolean deleteByOrgAndLabel(AcsPassRuleDeleteDto var1);
|
||||
}
|
||||
|
||||
+45
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* org.hibernate.validator.constraints.NotEmpty
|
||||
*/
|
||||
package cn.cloudwalk.elevator.passrule.param;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
import org.hibernate.validator.constraints.NotEmpty;
|
||||
|
||||
public class AcsPassRuleDeleteParam
|
||||
implements Serializable {
|
||||
private static final long serialVersionUID = -40026518356914854L;
|
||||
@NotEmpty(message="76260515")
|
||||
private List<String> ids;
|
||||
private String zoneId;
|
||||
private String parentId;
|
||||
|
||||
public List<String> getIds() {
|
||||
return this.ids;
|
||||
}
|
||||
|
||||
public void setIds(List<String> ids) {
|
||||
this.ids = ids;
|
||||
}
|
||||
|
||||
public String getZoneId() {
|
||||
return this.zoneId;
|
||||
}
|
||||
|
||||
public void setZoneId(String zoneId) {
|
||||
this.zoneId = zoneId;
|
||||
}
|
||||
|
||||
public String getParentId() {
|
||||
return this.parentId;
|
||||
}
|
||||
|
||||
public void setParentId(String parentId) {
|
||||
this.parentId = parentId;
|
||||
}
|
||||
}
|
||||
|
||||
+121
@@ -0,0 +1,121 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* javax.validation.constraints.Size
|
||||
* org.hibernate.validator.constraints.NotBlank
|
||||
*/
|
||||
package cn.cloudwalk.elevator.passrule.param;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
import javax.validation.constraints.Size;
|
||||
import org.hibernate.validator.constraints.NotBlank;
|
||||
|
||||
public class AcsPassRuleEditParam
|
||||
implements Serializable {
|
||||
private static final long serialVersionUID = 924203126937866288L;
|
||||
@NotBlank(message="76260515")
|
||||
private String id;
|
||||
private String parentId;
|
||||
private String zoneId;
|
||||
private String zoneName;
|
||||
@NotBlank(message="76260514")
|
||||
@Size(min=1, max=32, message="76260518")
|
||||
private String ruleName;
|
||||
private String oldName;
|
||||
private List<String> includeOrganizations;
|
||||
private List<String> includeLabels;
|
||||
private List<String> excludeLabels;
|
||||
private Long startTime;
|
||||
private Long endTime;
|
||||
|
||||
public String getParentId() {
|
||||
return this.parentId;
|
||||
}
|
||||
|
||||
public void setParentId(String parentId) {
|
||||
this.parentId = parentId;
|
||||
}
|
||||
|
||||
public String getOldName() {
|
||||
return this.oldName;
|
||||
}
|
||||
|
||||
public void setOldName(String oldName) {
|
||||
this.oldName = oldName;
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getZoneId() {
|
||||
return this.zoneId;
|
||||
}
|
||||
|
||||
public void setZoneId(String zoneId) {
|
||||
this.zoneId = zoneId;
|
||||
}
|
||||
|
||||
public String getZoneName() {
|
||||
return this.zoneName;
|
||||
}
|
||||
|
||||
public void setZoneName(String zoneName) {
|
||||
this.zoneName = zoneName;
|
||||
}
|
||||
|
||||
public String getRuleName() {
|
||||
return this.ruleName;
|
||||
}
|
||||
|
||||
public void setRuleName(String ruleName) {
|
||||
this.ruleName = ruleName;
|
||||
}
|
||||
|
||||
public List<String> getIncludeOrganizations() {
|
||||
return this.includeOrganizations;
|
||||
}
|
||||
|
||||
public void setIncludeOrganizations(List<String> includeOrganizations) {
|
||||
this.includeOrganizations = includeOrganizations;
|
||||
}
|
||||
|
||||
public List<String> getIncludeLabels() {
|
||||
return this.includeLabels;
|
||||
}
|
||||
|
||||
public void setIncludeLabels(List<String> includeLabels) {
|
||||
this.includeLabels = includeLabels;
|
||||
}
|
||||
|
||||
public List<String> getExcludeLabels() {
|
||||
return this.excludeLabels;
|
||||
}
|
||||
|
||||
public void setExcludeLabels(List<String> excludeLabels) {
|
||||
this.excludeLabels = excludeLabels;
|
||||
}
|
||||
|
||||
public Long getStartTime() {
|
||||
return this.startTime;
|
||||
}
|
||||
|
||||
public void setStartTime(Long startTime) {
|
||||
this.startTime = startTime;
|
||||
}
|
||||
|
||||
public Long getEndTime() {
|
||||
return this.endTime;
|
||||
}
|
||||
|
||||
public void setEndTime(Long endTime) {
|
||||
this.endTime = endTime;
|
||||
}
|
||||
}
|
||||
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.cloud.page.CloudwalkBasePageForm
|
||||
*/
|
||||
package cn.cloudwalk.elevator.passrule.param;
|
||||
|
||||
import cn.cloudwalk.cloud.page.CloudwalkBasePageForm;
|
||||
import java.io.Serializable;
|
||||
|
||||
public class AcsPassRuleFloorParam
|
||||
extends CloudwalkBasePageForm
|
||||
implements Serializable {
|
||||
private static final long serialVersionUID = 137892620174267456L;
|
||||
private String zoneId;
|
||||
|
||||
public String getZoneId() {
|
||||
return this.zoneId;
|
||||
}
|
||||
|
||||
public void setZoneId(String zoneId) {
|
||||
this.zoneId = zoneId;
|
||||
}
|
||||
}
|
||||
|
||||
+58
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package cn.cloudwalk.elevator.passrule.param;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
public class AcsPassRuleImageParam
|
||||
implements Serializable {
|
||||
private static final long serialVersionUID = -52687427633888290L;
|
||||
private List<String> imageStoreIds;
|
||||
private String businessId;
|
||||
private String personId;
|
||||
private List<String> includeOrganizations;
|
||||
private List<String> includeLabels;
|
||||
|
||||
public List<String> getImageStoreIds() {
|
||||
return this.imageStoreIds;
|
||||
}
|
||||
|
||||
public void setImageStoreIds(List<String> imageStoreIds) {
|
||||
this.imageStoreIds = imageStoreIds;
|
||||
}
|
||||
|
||||
public String getBusinessId() {
|
||||
return this.businessId;
|
||||
}
|
||||
|
||||
public void setBusinessId(String businessId) {
|
||||
this.businessId = businessId;
|
||||
}
|
||||
|
||||
public String getPersonId() {
|
||||
return this.personId;
|
||||
}
|
||||
|
||||
public void setPersonId(String personId) {
|
||||
this.personId = personId;
|
||||
}
|
||||
|
||||
public List<String> getIncludeOrganizations() {
|
||||
return this.includeOrganizations;
|
||||
}
|
||||
|
||||
public void setIncludeOrganizations(List<String> includeOrganizations) {
|
||||
this.includeOrganizations = includeOrganizations;
|
||||
}
|
||||
|
||||
public List<String> getIncludeLabels() {
|
||||
return this.includeLabels;
|
||||
}
|
||||
|
||||
public void setIncludeLabels(List<String> includeLabels) {
|
||||
this.includeLabels = includeLabels;
|
||||
}
|
||||
}
|
||||
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package cn.cloudwalk.elevator.passrule.param;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class AcsPassRuleIsDefaultParam
|
||||
implements Serializable {
|
||||
private static final long serialVersionUID = 137892620174267456L;
|
||||
private String zoneId;
|
||||
|
||||
public String getZoneId() {
|
||||
return this.zoneId;
|
||||
}
|
||||
|
||||
public void setZoneId(String zoneId) {
|
||||
this.zoneId = zoneId;
|
||||
}
|
||||
}
|
||||
|
||||
+111
@@ -0,0 +1,111 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* javax.validation.constraints.Size
|
||||
* org.hibernate.validator.constraints.NotBlank
|
||||
*/
|
||||
package cn.cloudwalk.elevator.passrule.param;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
import javax.validation.constraints.Size;
|
||||
import org.hibernate.validator.constraints.NotBlank;
|
||||
|
||||
public class AcsPassRuleNewParam
|
||||
implements Serializable {
|
||||
private static final long serialVersionUID = 137892620174267456L;
|
||||
private String parentId;
|
||||
private String zoneId;
|
||||
private String zoneName;
|
||||
@NotBlank(message="76260514")
|
||||
@Size(min=1, max=32, message="76260518")
|
||||
private String ruleName;
|
||||
private List<String> includeLabels;
|
||||
private List<String> includeOrganizations;
|
||||
private List<String> excludeLabels;
|
||||
private Long startTime;
|
||||
private Long endTime;
|
||||
private Integer isDefault;
|
||||
|
||||
public String getParentId() {
|
||||
return this.parentId;
|
||||
}
|
||||
|
||||
public void setParentId(String parentId) {
|
||||
this.parentId = parentId;
|
||||
}
|
||||
|
||||
public String getZoneId() {
|
||||
return this.zoneId;
|
||||
}
|
||||
|
||||
public void setZoneId(String zoneId) {
|
||||
this.zoneId = zoneId;
|
||||
}
|
||||
|
||||
public String getZoneName() {
|
||||
return this.zoneName;
|
||||
}
|
||||
|
||||
public void setZoneName(String zoneName) {
|
||||
this.zoneName = zoneName;
|
||||
}
|
||||
|
||||
public String getRuleName() {
|
||||
return this.ruleName;
|
||||
}
|
||||
|
||||
public void setRuleName(String ruleName) {
|
||||
this.ruleName = ruleName;
|
||||
}
|
||||
|
||||
public List<String> getIncludeLabels() {
|
||||
return this.includeLabels;
|
||||
}
|
||||
|
||||
public void setIncludeLabels(List<String> includeLabels) {
|
||||
this.includeLabels = includeLabels;
|
||||
}
|
||||
|
||||
public List<String> getIncludeOrganizations() {
|
||||
return this.includeOrganizations;
|
||||
}
|
||||
|
||||
public void setIncludeOrganizations(List<String> includeOrganizations) {
|
||||
this.includeOrganizations = includeOrganizations;
|
||||
}
|
||||
|
||||
public List<String> getExcludeLabels() {
|
||||
return this.excludeLabels;
|
||||
}
|
||||
|
||||
public void setExcludeLabels(List<String> excludeLabels) {
|
||||
this.excludeLabels = excludeLabels;
|
||||
}
|
||||
|
||||
public Long getStartTime() {
|
||||
return this.startTime;
|
||||
}
|
||||
|
||||
public void setStartTime(Long startTime) {
|
||||
this.startTime = startTime;
|
||||
}
|
||||
|
||||
public Long getEndTime() {
|
||||
return this.endTime;
|
||||
}
|
||||
|
||||
public void setEndTime(Long endTime) {
|
||||
this.endTime = endTime;
|
||||
}
|
||||
|
||||
public Integer getIsDefault() {
|
||||
return this.isDefault;
|
||||
}
|
||||
|
||||
public void setIsDefault(Integer isDefault) {
|
||||
this.isDefault = isDefault;
|
||||
}
|
||||
}
|
||||
|
||||
+28
@@ -0,0 +1,28 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.cloud.page.CloudwalkBasePageForm
|
||||
*/
|
||||
package cn.cloudwalk.elevator.passrule.param;
|
||||
|
||||
import cn.cloudwalk.cloud.page.CloudwalkBasePageForm;
|
||||
import cn.cloudwalk.elevator.passrule.param.AcsPassRuleImageParam;
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
public class AcsPassRulePersonListParam
|
||||
extends CloudwalkBasePageForm
|
||||
implements Serializable {
|
||||
private static final long serialVersionUID = -52687427633888290L;
|
||||
private List<AcsPassRuleImageParam> personList;
|
||||
|
||||
public List<AcsPassRuleImageParam> getPersonList() {
|
||||
return this.personList;
|
||||
}
|
||||
|
||||
public void setPersonList(List<AcsPassRuleImageParam> personList) {
|
||||
this.personList = personList;
|
||||
}
|
||||
}
|
||||
|
||||
+66
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package cn.cloudwalk.elevator.passrule.param;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class AcsPassRuleQueryParam
|
||||
implements Serializable {
|
||||
private static final long serialVersionUID = -31004388036379268L;
|
||||
private String id;
|
||||
private String parentId;
|
||||
private String zoneId;
|
||||
private String zoneName;
|
||||
private String imageStoreId;
|
||||
private Integer isDefault;
|
||||
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getParentId() {
|
||||
return this.parentId;
|
||||
}
|
||||
|
||||
public void setParentId(String parentId) {
|
||||
this.parentId = parentId;
|
||||
}
|
||||
|
||||
public String getZoneId() {
|
||||
return this.zoneId;
|
||||
}
|
||||
|
||||
public void setZoneId(String zoneId) {
|
||||
this.zoneId = zoneId;
|
||||
}
|
||||
|
||||
public String getImageStoreId() {
|
||||
return this.imageStoreId;
|
||||
}
|
||||
|
||||
public void setImageStoreId(String imageStoreId) {
|
||||
this.imageStoreId = imageStoreId;
|
||||
}
|
||||
|
||||
public String getZoneName() {
|
||||
return this.zoneName;
|
||||
}
|
||||
|
||||
public void setZoneName(String zoneName) {
|
||||
this.zoneName = zoneName;
|
||||
}
|
||||
|
||||
public Integer getIsDefault() {
|
||||
return this.isDefault;
|
||||
}
|
||||
|
||||
public void setIsDefault(Integer isDefault) {
|
||||
this.isDefault = isDefault;
|
||||
}
|
||||
}
|
||||
|
||||
+58
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* javax.validation.constraints.Size
|
||||
* org.hibernate.validator.constraints.NotBlank
|
||||
*/
|
||||
package cn.cloudwalk.elevator.passrule.param;
|
||||
|
||||
import cn.cloudwalk.elevator.passrule.param.AcsPassTimeCycleParam;
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
import javax.validation.constraints.Size;
|
||||
import org.hibernate.validator.constraints.NotBlank;
|
||||
|
||||
public class AcsPassTimeAddParam
|
||||
implements Serializable {
|
||||
private static final long serialVersionUID = 8600793178515359164L;
|
||||
@NotBlank(message="76260512")
|
||||
@Size(min=1, max=64, message="76260519")
|
||||
private String passableTimeName;
|
||||
private Long beginDate;
|
||||
private Long endDate;
|
||||
private List<AcsPassTimeCycleParam> passableCycle;
|
||||
|
||||
public String getPassableTimeName() {
|
||||
return this.passableTimeName;
|
||||
}
|
||||
|
||||
public void setPassableTimeName(String passableTimeName) {
|
||||
this.passableTimeName = passableTimeName;
|
||||
}
|
||||
|
||||
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 List<AcsPassTimeCycleParam> getPassableCycle() {
|
||||
return this.passableCycle;
|
||||
}
|
||||
|
||||
public void setPassableCycle(List<AcsPassTimeCycleParam> passableCycle) {
|
||||
this.passableCycle = passableCycle;
|
||||
}
|
||||
}
|
||||
|
||||
+32
@@ -0,0 +1,32 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package cn.cloudwalk.elevator.passrule.param;
|
||||
|
||||
import cn.cloudwalk.elevator.passrule.param.AcsPassTimeParam;
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
public class AcsPassTimeCycleParam
|
||||
implements Serializable {
|
||||
private static final long serialVersionUID = 9084516985152275888L;
|
||||
private int weekday;
|
||||
private List<AcsPassTimeParam> time;
|
||||
|
||||
public int getWeekday() {
|
||||
return this.weekday;
|
||||
}
|
||||
|
||||
public void setWeekday(int weekday) {
|
||||
this.weekday = weekday;
|
||||
}
|
||||
|
||||
public List<AcsPassTimeParam> getTime() {
|
||||
return this.time;
|
||||
}
|
||||
|
||||
public void setTime(List<AcsPassTimeParam> time) {
|
||||
this.time = time;
|
||||
}
|
||||
}
|
||||
|
||||
+27
@@ -0,0 +1,27 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* org.hibernate.validator.constraints.NotEmpty
|
||||
*/
|
||||
package cn.cloudwalk.elevator.passrule.param;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
import org.hibernate.validator.constraints.NotEmpty;
|
||||
|
||||
public class AcsPassTimeDeleteParam
|
||||
implements Serializable {
|
||||
private static final long serialVersionUID = -1142611457619464538L;
|
||||
@NotEmpty(message="76260513")
|
||||
private List<String> ids;
|
||||
|
||||
public List<String> getIds() {
|
||||
return this.ids;
|
||||
}
|
||||
|
||||
public void setIds(List<String> ids) {
|
||||
this.ids = ids;
|
||||
}
|
||||
}
|
||||
|
||||
+68
@@ -0,0 +1,68 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* javax.validation.constraints.Size
|
||||
* org.hibernate.validator.constraints.NotBlank
|
||||
*/
|
||||
package cn.cloudwalk.elevator.passrule.param;
|
||||
|
||||
import cn.cloudwalk.elevator.passrule.param.AcsPassTimeCycleParam;
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
import javax.validation.constraints.Size;
|
||||
import org.hibernate.validator.constraints.NotBlank;
|
||||
|
||||
public class AcsPassTimeEditParam
|
||||
implements Serializable {
|
||||
private static final long serialVersionUID = -8271994630899900554L;
|
||||
@NotBlank(message="76260513")
|
||||
private String id;
|
||||
@NotBlank(message="76260512")
|
||||
@Size(min=1, max=64, message="76260519")
|
||||
private String passableTimeName;
|
||||
private Long beginDate;
|
||||
private Long endDate;
|
||||
private List<AcsPassTimeCycleParam> passableCycle;
|
||||
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getPassableTimeName() {
|
||||
return this.passableTimeName;
|
||||
}
|
||||
|
||||
public void setPassableTimeName(String passableTimeName) {
|
||||
this.passableTimeName = passableTimeName;
|
||||
}
|
||||
|
||||
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 List<AcsPassTimeCycleParam> getPassableCycle() {
|
||||
return this.passableCycle;
|
||||
}
|
||||
|
||||
public void setPassableCycle(List<AcsPassTimeCycleParam> passableCycle) {
|
||||
this.passableCycle = passableCycle;
|
||||
}
|
||||
}
|
||||
|
||||
+30
@@ -0,0 +1,30 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package cn.cloudwalk.elevator.passrule.param;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class AcsPassTimeParam
|
||||
implements Serializable {
|
||||
private static final long serialVersionUID = 7496987389322298594L;
|
||||
private String beginTime;
|
||||
private String endTime;
|
||||
|
||||
public String getBeginTime() {
|
||||
return this.beginTime;
|
||||
}
|
||||
|
||||
public void setBeginTime(String beginTime) {
|
||||
this.beginTime = beginTime;
|
||||
}
|
||||
|
||||
public String getEndTime() {
|
||||
return this.endTime;
|
||||
}
|
||||
|
||||
public void setEndTime(String endTime) {
|
||||
this.endTime = endTime;
|
||||
}
|
||||
}
|
||||
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* org.hibernate.validator.constraints.NotBlank
|
||||
*/
|
||||
package cn.cloudwalk.elevator.passrule.param;
|
||||
|
||||
import java.io.Serializable;
|
||||
import org.hibernate.validator.constraints.NotBlank;
|
||||
|
||||
public class AcsPassTimeQueryParam
|
||||
implements Serializable {
|
||||
private static final long serialVersionUID = 7311660131290856391L;
|
||||
@NotBlank(message="76260513")
|
||||
private String id;
|
||||
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
}
|
||||
|
||||
+144
@@ -0,0 +1,144 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.client.cwoscomponent.intelligent.label.result.LabelResult
|
||||
* cn.cloudwalk.client.cwoscomponent.intelligent.organization.result.OrganizationResult
|
||||
*/
|
||||
package cn.cloudwalk.elevator.passrule.result;
|
||||
|
||||
import cn.cloudwalk.client.cwoscomponent.intelligent.label.result.LabelResult;
|
||||
import cn.cloudwalk.client.cwoscomponent.intelligent.organization.result.OrganizationResult;
|
||||
import cn.cloudwalk.elevator.passrule.param.AcsPassTimeCycleParam;
|
||||
import java.util.List;
|
||||
|
||||
public class AcsPassRuleDetailResult {
|
||||
private static final long serialVersionUID = -90554404684210529L;
|
||||
private String id;
|
||||
private String ruleName;
|
||||
private String imageStoreId;
|
||||
private String zoneId;
|
||||
private String zoneName;
|
||||
private Long beginDate;
|
||||
private Long endDate;
|
||||
private String validDateCron;
|
||||
private String validDateJson;
|
||||
private List<LabelResult> excludeLabels;
|
||||
private List<OrganizationResult> includeOrganizations;
|
||||
private List<LabelResult> includeLabels;
|
||||
private List<AcsPassTimeCycleParam> passableCycle;
|
||||
private Integer passType;
|
||||
|
||||
public String getRuleName() {
|
||||
return this.ruleName;
|
||||
}
|
||||
|
||||
public void setRuleName(String ruleName) {
|
||||
this.ruleName = ruleName;
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getImageStoreId() {
|
||||
return this.imageStoreId;
|
||||
}
|
||||
|
||||
public void setImageStoreId(String imageStoreId) {
|
||||
this.imageStoreId = imageStoreId;
|
||||
}
|
||||
|
||||
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 String getValidDateCron() {
|
||||
return this.validDateCron;
|
||||
}
|
||||
|
||||
public void setValidDateCron(String validDateCron) {
|
||||
this.validDateCron = validDateCron;
|
||||
}
|
||||
|
||||
public String getValidDateJson() {
|
||||
return this.validDateJson;
|
||||
}
|
||||
|
||||
public void setValidDateJson(String validDateJson) {
|
||||
this.validDateJson = validDateJson;
|
||||
}
|
||||
|
||||
public List<LabelResult> getExcludeLabels() {
|
||||
return this.excludeLabels;
|
||||
}
|
||||
|
||||
public void setExcludeLabels(List<LabelResult> excludeLabels) {
|
||||
this.excludeLabels = excludeLabels;
|
||||
}
|
||||
|
||||
public List<OrganizationResult> getIncludeOrganizations() {
|
||||
return this.includeOrganizations;
|
||||
}
|
||||
|
||||
public void setIncludeOrganizations(List<OrganizationResult> includeOrganizations) {
|
||||
this.includeOrganizations = includeOrganizations;
|
||||
}
|
||||
|
||||
public List<LabelResult> getIncludeLabels() {
|
||||
return this.includeLabels;
|
||||
}
|
||||
|
||||
public void setIncludeLabels(List<LabelResult> includeLabels) {
|
||||
this.includeLabels = includeLabels;
|
||||
}
|
||||
|
||||
public List<AcsPassTimeCycleParam> getPassableCycle() {
|
||||
return this.passableCycle;
|
||||
}
|
||||
|
||||
public void setPassableCycle(List<AcsPassTimeCycleParam> passableCycle) {
|
||||
this.passableCycle = passableCycle;
|
||||
}
|
||||
|
||||
public Integer getPassType() {
|
||||
return this.passType;
|
||||
}
|
||||
|
||||
public void setPassType(Integer passType) {
|
||||
this.passType = passType;
|
||||
}
|
||||
|
||||
public String getZoneId() {
|
||||
return this.zoneId;
|
||||
}
|
||||
|
||||
public void setZoneId(String zoneId) {
|
||||
this.zoneId = zoneId;
|
||||
}
|
||||
|
||||
public String getZoneName() {
|
||||
return this.zoneName;
|
||||
}
|
||||
|
||||
public void setZoneName(String zoneName) {
|
||||
this.zoneName = zoneName;
|
||||
}
|
||||
}
|
||||
|
||||
+117
@@ -0,0 +1,117 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package cn.cloudwalk.elevator.passrule.result;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class AcsPassRuleFloorResult
|
||||
implements Serializable {
|
||||
private static final long serialVersionUID = -90554404684210529L;
|
||||
private String id;
|
||||
private String name;
|
||||
private Integer deviceNumber;
|
||||
private Integer unitNumber;
|
||||
private Long personNumber;
|
||||
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return this.name;
|
||||
}
|
||||
|
||||
public Integer getDeviceNumber() {
|
||||
return this.deviceNumber;
|
||||
}
|
||||
|
||||
public Integer getUnitNumber() {
|
||||
return this.unitNumber;
|
||||
}
|
||||
|
||||
public Long getPersonNumber() {
|
||||
return this.personNumber;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public void setDeviceNumber(Integer deviceNumber) {
|
||||
this.deviceNumber = deviceNumber;
|
||||
}
|
||||
|
||||
public void setUnitNumber(Integer unitNumber) {
|
||||
this.unitNumber = unitNumber;
|
||||
}
|
||||
|
||||
public void setPersonNumber(Long personNumber) {
|
||||
this.personNumber = personNumber;
|
||||
}
|
||||
|
||||
public boolean equals(Object o) {
|
||||
if (o == this) {
|
||||
return true;
|
||||
}
|
||||
if (!(o instanceof AcsPassRuleFloorResult)) {
|
||||
return false;
|
||||
}
|
||||
AcsPassRuleFloorResult other = (AcsPassRuleFloorResult)o;
|
||||
if (!other.canEqual(this)) {
|
||||
return false;
|
||||
}
|
||||
String this$id = this.getId();
|
||||
String other$id = other.getId();
|
||||
if (this$id == null ? other$id != null : !this$id.equals(other$id)) {
|
||||
return false;
|
||||
}
|
||||
String this$name = this.getName();
|
||||
String other$name = other.getName();
|
||||
if (this$name == null ? other$name != null : !this$name.equals(other$name)) {
|
||||
return false;
|
||||
}
|
||||
Integer this$deviceNumber = this.getDeviceNumber();
|
||||
Integer other$deviceNumber = other.getDeviceNumber();
|
||||
if (this$deviceNumber == null ? other$deviceNumber != null : !((Object)this$deviceNumber).equals(other$deviceNumber)) {
|
||||
return false;
|
||||
}
|
||||
Integer this$unitNumber = this.getUnitNumber();
|
||||
Integer other$unitNumber = other.getUnitNumber();
|
||||
if (this$unitNumber == null ? other$unitNumber != null : !((Object)this$unitNumber).equals(other$unitNumber)) {
|
||||
return false;
|
||||
}
|
||||
Long this$personNumber = this.getPersonNumber();
|
||||
Long other$personNumber = other.getPersonNumber();
|
||||
return !(this$personNumber == null ? other$personNumber != null : !((Object)this$personNumber).equals(other$personNumber));
|
||||
}
|
||||
|
||||
protected boolean canEqual(Object other) {
|
||||
return other instanceof AcsPassRuleFloorResult;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
int PRIME = 59;
|
||||
int result = 1;
|
||||
String $id = this.getId();
|
||||
result = result * 59 + ($id == null ? 43 : $id.hashCode());
|
||||
String $name = this.getName();
|
||||
result = result * 59 + ($name == null ? 43 : $name.hashCode());
|
||||
Integer $deviceNumber = this.getDeviceNumber();
|
||||
result = result * 59 + ($deviceNumber == null ? 43 : ((Object)$deviceNumber).hashCode());
|
||||
Integer $unitNumber = this.getUnitNumber();
|
||||
result = result * 59 + ($unitNumber == null ? 43 : ((Object)$unitNumber).hashCode());
|
||||
Long $personNumber = this.getPersonNumber();
|
||||
result = result * 59 + ($personNumber == null ? 43 : ((Object)$personNumber).hashCode());
|
||||
return result;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "AcsPassRuleFloorResult(id=" + this.getId() + ", name=" + this.getName() + ", deviceNumber=" + this.getDeviceNumber() + ", unitNumber=" + this.getUnitNumber() + ", personNumber=" + this.getPersonNumber() + ")";
|
||||
}
|
||||
}
|
||||
|
||||
+165
@@ -0,0 +1,165 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.result.ImgStorePersonResult
|
||||
* cn.cloudwalk.client.cwoscomponent.intelligent.label.result.LabelResult
|
||||
* cn.cloudwalk.client.cwoscomponent.intelligent.organization.result.OrganizationResult
|
||||
*/
|
||||
package cn.cloudwalk.elevator.passrule.result;
|
||||
|
||||
import cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.result.ImgStorePersonResult;
|
||||
import cn.cloudwalk.client.cwoscomponent.intelligent.label.result.LabelResult;
|
||||
import cn.cloudwalk.client.cwoscomponent.intelligent.organization.result.OrganizationResult;
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
public class AcsPassRuleResult
|
||||
implements Serializable {
|
||||
private static final long serialVersionUID = -90554404684210529L;
|
||||
private String id;
|
||||
private String ruleName;
|
||||
private int personSum;
|
||||
private String imageStoreId;
|
||||
private String passableTimeName;
|
||||
private String zoneId;
|
||||
private Long beginDate;
|
||||
private Long endDate;
|
||||
private String validDateCron;
|
||||
private String validDateJson;
|
||||
private List<LabelResult> excludeLabels;
|
||||
private List<OrganizationResult> includeOrganizations;
|
||||
private List<LabelResult> includeLabels;
|
||||
private List<ImgStorePersonResult> includePersons;
|
||||
private Integer passType;
|
||||
private Integer isDefault;
|
||||
|
||||
public String getRuleName() {
|
||||
return this.ruleName;
|
||||
}
|
||||
|
||||
public void setRuleName(String ruleName) {
|
||||
this.ruleName = ruleName;
|
||||
}
|
||||
|
||||
public int getPersonSum() {
|
||||
return this.personSum;
|
||||
}
|
||||
|
||||
public void setPersonSum(int personSum) {
|
||||
this.personSum = personSum;
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getImageStoreId() {
|
||||
return this.imageStoreId;
|
||||
}
|
||||
|
||||
public void setImageStoreId(String imageStoreId) {
|
||||
this.imageStoreId = imageStoreId;
|
||||
}
|
||||
|
||||
public String getZoneId() {
|
||||
return this.zoneId;
|
||||
}
|
||||
|
||||
public void setZoneId(String zoneId) {
|
||||
this.zoneId = zoneId;
|
||||
}
|
||||
|
||||
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 String getValidDateCron() {
|
||||
return this.validDateCron;
|
||||
}
|
||||
|
||||
public void setValidDateCron(String validDateCron) {
|
||||
this.validDateCron = validDateCron;
|
||||
}
|
||||
|
||||
public String getValidDateJson() {
|
||||
return this.validDateJson;
|
||||
}
|
||||
|
||||
public void setValidDateJson(String validDateJson) {
|
||||
this.validDateJson = validDateJson;
|
||||
}
|
||||
|
||||
public List<LabelResult> getExcludeLabels() {
|
||||
return this.excludeLabels;
|
||||
}
|
||||
|
||||
public void setExcludeLabels(List<LabelResult> excludeLabels) {
|
||||
this.excludeLabels = excludeLabels;
|
||||
}
|
||||
|
||||
public List<OrganizationResult> getIncludeOrganizations() {
|
||||
return this.includeOrganizations;
|
||||
}
|
||||
|
||||
public void setIncludeOrganizations(List<OrganizationResult> includeOrganizations) {
|
||||
this.includeOrganizations = includeOrganizations;
|
||||
}
|
||||
|
||||
public List<LabelResult> getIncludeLabels() {
|
||||
return this.includeLabels;
|
||||
}
|
||||
|
||||
public void setIncludeLabels(List<LabelResult> includeLabels) {
|
||||
this.includeLabels = includeLabels;
|
||||
}
|
||||
|
||||
public String getPassableTimeName() {
|
||||
return this.passableTimeName;
|
||||
}
|
||||
|
||||
public void setPassableTimeName(String passableTimeName) {
|
||||
this.passableTimeName = passableTimeName;
|
||||
}
|
||||
|
||||
public List<ImgStorePersonResult> getIncludePersons() {
|
||||
return this.includePersons;
|
||||
}
|
||||
|
||||
public void setIncludePersons(List<ImgStorePersonResult> includePersons) {
|
||||
this.includePersons = includePersons;
|
||||
}
|
||||
|
||||
public Integer getPassType() {
|
||||
return this.passType;
|
||||
}
|
||||
|
||||
public void setPassType(Integer passType) {
|
||||
this.passType = passType;
|
||||
}
|
||||
|
||||
public Integer getIsDefault() {
|
||||
return this.isDefault;
|
||||
}
|
||||
|
||||
public void setIsDefault(Integer isDefault) {
|
||||
this.isDefault = isDefault;
|
||||
}
|
||||
}
|
||||
|
||||
+144
@@ -0,0 +1,144 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.client.cwoscomponent.intelligent.label.result.LabelDetailResult
|
||||
* cn.cloudwalk.client.cwoscomponent.intelligent.organization.result.OrganizationResult
|
||||
*/
|
||||
package cn.cloudwalk.elevator.passrule.result;
|
||||
|
||||
import cn.cloudwalk.client.cwoscomponent.intelligent.label.result.LabelDetailResult;
|
||||
import cn.cloudwalk.client.cwoscomponent.intelligent.organization.result.OrganizationResult;
|
||||
import cn.cloudwalk.elevator.passrule.param.AcsPassTimeCycleParam;
|
||||
import java.util.List;
|
||||
|
||||
public class ImageRuleRefDetailResult {
|
||||
private static final long serialVersionUID = -90554404684210529L;
|
||||
private String id;
|
||||
private String ruleName;
|
||||
private String imageStoreId;
|
||||
private String zoneId;
|
||||
private String zoneName;
|
||||
private Long beginDate;
|
||||
private Long endDate;
|
||||
private String validDateCron;
|
||||
private String validDateJson;
|
||||
private List<String> excludeLabels;
|
||||
private List<OrganizationResult> includeOrganizations;
|
||||
private List<LabelDetailResult> includeLabels;
|
||||
private List<AcsPassTimeCycleParam> passableCycle;
|
||||
private Integer passType;
|
||||
|
||||
public String getRuleName() {
|
||||
return this.ruleName;
|
||||
}
|
||||
|
||||
public void setRuleName(String ruleName) {
|
||||
this.ruleName = ruleName;
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getImageStoreId() {
|
||||
return this.imageStoreId;
|
||||
}
|
||||
|
||||
public void setImageStoreId(String imageStoreId) {
|
||||
this.imageStoreId = imageStoreId;
|
||||
}
|
||||
|
||||
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 String getValidDateCron() {
|
||||
return this.validDateCron;
|
||||
}
|
||||
|
||||
public void setValidDateCron(String validDateCron) {
|
||||
this.validDateCron = validDateCron;
|
||||
}
|
||||
|
||||
public String getValidDateJson() {
|
||||
return this.validDateJson;
|
||||
}
|
||||
|
||||
public void setValidDateJson(String validDateJson) {
|
||||
this.validDateJson = validDateJson;
|
||||
}
|
||||
|
||||
public List<String> getExcludeLabels() {
|
||||
return this.excludeLabels;
|
||||
}
|
||||
|
||||
public void setExcludeLabels(List<String> excludeLabels) {
|
||||
this.excludeLabels = excludeLabels;
|
||||
}
|
||||
|
||||
public List<OrganizationResult> getIncludeOrganizations() {
|
||||
return this.includeOrganizations;
|
||||
}
|
||||
|
||||
public void setIncludeOrganizations(List<OrganizationResult> includeOrganizations) {
|
||||
this.includeOrganizations = includeOrganizations;
|
||||
}
|
||||
|
||||
public List<LabelDetailResult> getIncludeLabels() {
|
||||
return this.includeLabels;
|
||||
}
|
||||
|
||||
public void setIncludeLabels(List<LabelDetailResult> includeLabels) {
|
||||
this.includeLabels = includeLabels;
|
||||
}
|
||||
|
||||
public List<AcsPassTimeCycleParam> getPassableCycle() {
|
||||
return this.passableCycle;
|
||||
}
|
||||
|
||||
public void setPassableCycle(List<AcsPassTimeCycleParam> passableCycle) {
|
||||
this.passableCycle = passableCycle;
|
||||
}
|
||||
|
||||
public Integer getPassType() {
|
||||
return this.passType;
|
||||
}
|
||||
|
||||
public void setPassType(Integer passType) {
|
||||
this.passType = passType;
|
||||
}
|
||||
|
||||
public String getZoneId() {
|
||||
return this.zoneId;
|
||||
}
|
||||
|
||||
public void setZoneId(String zoneId) {
|
||||
this.zoneId = zoneId;
|
||||
}
|
||||
|
||||
public String getZoneName() {
|
||||
return this.zoneName;
|
||||
}
|
||||
|
||||
public void setZoneName(String zoneName) {
|
||||
this.zoneName = zoneName;
|
||||
}
|
||||
}
|
||||
|
||||
+163
@@ -0,0 +1,163 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.result.ImgStorePersonResult
|
||||
* cn.cloudwalk.client.cwoscomponent.intelligent.label.result.LabelDetailResult
|
||||
* cn.cloudwalk.client.cwoscomponent.intelligent.organization.result.OrganizationResult
|
||||
*/
|
||||
package cn.cloudwalk.elevator.passrule.result;
|
||||
|
||||
import cn.cloudwalk.client.cwoscomponent.intelligent.imagestore.result.ImgStorePersonResult;
|
||||
import cn.cloudwalk.client.cwoscomponent.intelligent.label.result.LabelDetailResult;
|
||||
import cn.cloudwalk.client.cwoscomponent.intelligent.organization.result.OrganizationResult;
|
||||
import java.util.List;
|
||||
|
||||
public class ImageRuleRefPageResult {
|
||||
private static final long serialVersionUID = -90554404684210529L;
|
||||
private String id;
|
||||
private String ruleName;
|
||||
private int personSum;
|
||||
private String imageStoreId;
|
||||
private String passableTimeName;
|
||||
private String zoneId;
|
||||
private Long beginDate;
|
||||
private Long endDate;
|
||||
private String validDateCron;
|
||||
private String validDateJson;
|
||||
private List<String> excludeLabels;
|
||||
private List<OrganizationResult> includeOrganizations;
|
||||
private List<LabelDetailResult> includeLabels;
|
||||
private List<ImgStorePersonResult> includePersons;
|
||||
private Integer passType;
|
||||
private Integer isDefault;
|
||||
|
||||
public String getRuleName() {
|
||||
return this.ruleName;
|
||||
}
|
||||
|
||||
public void setRuleName(String ruleName) {
|
||||
this.ruleName = ruleName;
|
||||
}
|
||||
|
||||
public int getPersonSum() {
|
||||
return this.personSum;
|
||||
}
|
||||
|
||||
public void setPersonSum(int personSum) {
|
||||
this.personSum = personSum;
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getImageStoreId() {
|
||||
return this.imageStoreId;
|
||||
}
|
||||
|
||||
public void setImageStoreId(String imageStoreId) {
|
||||
this.imageStoreId = imageStoreId;
|
||||
}
|
||||
|
||||
public String getZoneId() {
|
||||
return this.zoneId;
|
||||
}
|
||||
|
||||
public void setZoneId(String zoneId) {
|
||||
this.zoneId = zoneId;
|
||||
}
|
||||
|
||||
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 String getValidDateCron() {
|
||||
return this.validDateCron;
|
||||
}
|
||||
|
||||
public void setValidDateCron(String validDateCron) {
|
||||
this.validDateCron = validDateCron;
|
||||
}
|
||||
|
||||
public String getValidDateJson() {
|
||||
return this.validDateJson;
|
||||
}
|
||||
|
||||
public void setValidDateJson(String validDateJson) {
|
||||
this.validDateJson = validDateJson;
|
||||
}
|
||||
|
||||
public List<String> getExcludeLabels() {
|
||||
return this.excludeLabels;
|
||||
}
|
||||
|
||||
public void setExcludeLabels(List<String> excludeLabels) {
|
||||
this.excludeLabels = excludeLabels;
|
||||
}
|
||||
|
||||
public List<OrganizationResult> getIncludeOrganizations() {
|
||||
return this.includeOrganizations;
|
||||
}
|
||||
|
||||
public void setIncludeOrganizations(List<OrganizationResult> includeOrganizations) {
|
||||
this.includeOrganizations = includeOrganizations;
|
||||
}
|
||||
|
||||
public List<LabelDetailResult> getIncludeLabels() {
|
||||
return this.includeLabels;
|
||||
}
|
||||
|
||||
public void setIncludeLabels(List<LabelDetailResult> includeLabels) {
|
||||
this.includeLabels = includeLabels;
|
||||
}
|
||||
|
||||
public String getPassableTimeName() {
|
||||
return this.passableTimeName;
|
||||
}
|
||||
|
||||
public void setPassableTimeName(String passableTimeName) {
|
||||
this.passableTimeName = passableTimeName;
|
||||
}
|
||||
|
||||
public List<ImgStorePersonResult> getIncludePersons() {
|
||||
return this.includePersons;
|
||||
}
|
||||
|
||||
public void setIncludePersons(List<ImgStorePersonResult> includePersons) {
|
||||
this.includePersons = includePersons;
|
||||
}
|
||||
|
||||
public Integer getPassType() {
|
||||
return this.passType;
|
||||
}
|
||||
|
||||
public void setPassType(Integer passType) {
|
||||
this.passType = passType;
|
||||
}
|
||||
|
||||
public Integer getIsDefault() {
|
||||
return this.isDefault;
|
||||
}
|
||||
|
||||
public void setIsDefault(Integer isDefault) {
|
||||
this.isDefault = isDefault;
|
||||
}
|
||||
}
|
||||
|
||||
+51
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* 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
|
||||
* cn.cloudwalk.elevator.passrule.dto.AcsPassRuleImageResultDto
|
||||
*/
|
||||
package cn.cloudwalk.elevator.passrule.service;
|
||||
|
||||
import cn.cloudwalk.cloud.context.CloudwalkCallContext;
|
||||
import cn.cloudwalk.cloud.exception.ServiceException;
|
||||
import cn.cloudwalk.cloud.page.CloudwalkPageAble;
|
||||
import cn.cloudwalk.cloud.page.CloudwalkPageInfo;
|
||||
import cn.cloudwalk.cloud.result.CloudwalkResult;
|
||||
import cn.cloudwalk.elevator.passrule.dto.AcsPassRuleImageResultDto;
|
||||
import cn.cloudwalk.elevator.passrule.param.AcsPassRuleDeleteParam;
|
||||
import cn.cloudwalk.elevator.passrule.param.AcsPassRuleEditParam;
|
||||
import cn.cloudwalk.elevator.passrule.param.AcsPassRuleFloorParam;
|
||||
import cn.cloudwalk.elevator.passrule.param.AcsPassRuleImageParam;
|
||||
import cn.cloudwalk.elevator.passrule.param.AcsPassRuleIsDefaultParam;
|
||||
import cn.cloudwalk.elevator.passrule.param.AcsPassRuleNewParam;
|
||||
import cn.cloudwalk.elevator.passrule.param.AcsPassRuleQueryParam;
|
||||
import cn.cloudwalk.elevator.passrule.result.AcsPassRuleDetailResult;
|
||||
import cn.cloudwalk.elevator.passrule.result.AcsPassRuleFloorResult;
|
||||
import cn.cloudwalk.elevator.passrule.result.AcsPassRuleResult;
|
||||
import java.util.List;
|
||||
|
||||
public interface AcsPassRuleService {
|
||||
public CloudwalkResult<List<AcsPassRuleFloorResult>> listFloor(AcsPassRuleFloorParam var1, CloudwalkCallContext var2) throws ServiceException;
|
||||
|
||||
public CloudwalkResult<String> getIsDefaultByZoneId(AcsPassRuleIsDefaultParam var1, CloudwalkCallContext var2) throws ServiceException;
|
||||
|
||||
public CloudwalkResult<String> add(AcsPassRuleNewParam var1, CloudwalkCallContext var2) throws ServiceException;
|
||||
|
||||
public CloudwalkResult<Boolean> update(AcsPassRuleEditParam var1, CloudwalkCallContext var2) throws ServiceException;
|
||||
|
||||
public CloudwalkResult<Boolean> delete(AcsPassRuleDeleteParam var1, CloudwalkCallContext var2) throws ServiceException;
|
||||
|
||||
public CloudwalkResult<AcsPassRuleDetailResult> detail(AcsPassRuleQueryParam var1, CloudwalkCallContext var2) throws ServiceException;
|
||||
|
||||
public CloudwalkResult<CloudwalkPageAble<AcsPassRuleResult>> page(AcsPassRuleQueryParam var1, CloudwalkPageInfo var2, CloudwalkCallContext var3) throws ServiceException;
|
||||
|
||||
public CloudwalkResult<List<AcsPassRuleResult>> list(AcsPassRuleQueryParam var1, CloudwalkCallContext var2) throws ServiceException;
|
||||
|
||||
public CloudwalkResult<List<AcsPassRuleImageResultDto>> listByImageId(AcsPassRuleImageParam var1, CloudwalkCallContext var2) throws ServiceException;
|
||||
}
|
||||
|
||||
+51
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* 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
|
||||
* cn.cloudwalk.elevator.passrule.dto.AcsPassRuleImageResultDto
|
||||
* cn.cloudwalk.elevator.passrule.dto.AcsPassRulePersonListResultDto
|
||||
*/
|
||||
package cn.cloudwalk.elevator.passrule.service;
|
||||
|
||||
import cn.cloudwalk.cloud.context.CloudwalkCallContext;
|
||||
import cn.cloudwalk.cloud.exception.ServiceException;
|
||||
import cn.cloudwalk.cloud.page.CloudwalkPageAble;
|
||||
import cn.cloudwalk.cloud.page.CloudwalkPageInfo;
|
||||
import cn.cloudwalk.cloud.result.CloudwalkResult;
|
||||
import cn.cloudwalk.elevator.passrule.dto.AcsPassRuleImageResultDto;
|
||||
import cn.cloudwalk.elevator.passrule.dto.AcsPassRulePersonListResultDto;
|
||||
import cn.cloudwalk.elevator.passrule.param.AcsPassRuleDeleteParam;
|
||||
import cn.cloudwalk.elevator.passrule.param.AcsPassRuleEditParam;
|
||||
import cn.cloudwalk.elevator.passrule.param.AcsPassRuleFloorParam;
|
||||
import cn.cloudwalk.elevator.passrule.param.AcsPassRuleImageParam;
|
||||
import cn.cloudwalk.elevator.passrule.param.AcsPassRuleNewParam;
|
||||
import cn.cloudwalk.elevator.passrule.param.AcsPassRulePersonListParam;
|
||||
import cn.cloudwalk.elevator.passrule.param.AcsPassRuleQueryParam;
|
||||
import cn.cloudwalk.elevator.passrule.result.AcsPassRuleFloorResult;
|
||||
import cn.cloudwalk.elevator.passrule.result.ImageRuleRefDetailResult;
|
||||
import cn.cloudwalk.elevator.passrule.result.ImageRuleRefPageResult;
|
||||
import java.util.List;
|
||||
|
||||
public interface ImageRuleRefService {
|
||||
public CloudwalkResult<CloudwalkPageAble<ImageRuleRefPageResult>> page(AcsPassRuleQueryParam var1, CloudwalkPageInfo var2, CloudwalkCallContext var3) throws ServiceException;
|
||||
|
||||
public CloudwalkResult<CloudwalkPageAble<AcsPassRuleFloorResult>> listFloor(AcsPassRuleFloorParam var1, CloudwalkCallContext var2) throws ServiceException;
|
||||
|
||||
public CloudwalkResult<List<AcsPassRuleImageResultDto>> listByPersonInfo(AcsPassRuleImageParam var1, CloudwalkCallContext var2) throws ServiceException;
|
||||
|
||||
public CloudwalkResult<List<AcsPassRulePersonListResultDto>> listByPersonList(AcsPassRulePersonListParam var1, CloudwalkCallContext var2) throws ServiceException;
|
||||
|
||||
public CloudwalkResult<ImageRuleRefDetailResult> detail(AcsPassRuleQueryParam var1, CloudwalkCallContext var2) throws ServiceException;
|
||||
|
||||
public CloudwalkResult<Boolean> addOnlyRule(AcsPassRuleNewParam var1, CloudwalkCallContext var2) throws ServiceException;
|
||||
|
||||
public CloudwalkResult<Boolean> update(AcsPassRuleEditParam var1, CloudwalkCallContext var2) throws ServiceException;
|
||||
|
||||
public CloudwalkResult<Boolean> delete(AcsPassRuleDeleteParam var1, CloudwalkCallContext var2) throws ServiceException;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user