mirror of
https://github.com/hpd840321/starRiverProperty.git
synced 2026-06-10 00:40:30 +08:00
fix: relocate cwos-portal decompiled output to correct path; remove nested directory
Former-commit-id: dc30d42a8c55ed8b2382a41dc2434233fbed9930
This commit is contained in:
+24
@@ -0,0 +1,24 @@
|
||||
package cn.cloudwalk.elevator.zone.client;
|
||||
|
||||
import cn.cloudwalk.cloud.exception.ServiceException;
|
||||
import cn.cloudwalk.cloud.page.CloudwalkPageAble;
|
||||
import cn.cloudwalk.cloud.result.CloudwalkResult;
|
||||
import cn.cloudwalk.elevator.zone.fallback.ZoneFeignClientFallback;
|
||||
import cn.cloudwalk.elevator.zone.param.ZoneNextTreeParam;
|
||||
import cn.cloudwalk.elevator.zone.param.ZoneQueryParam;
|
||||
import cn.cloudwalk.elevator.zone.result.ZoneResult;
|
||||
import cn.cloudwalk.elevator.zone.result.ZoneTreeResult;
|
||||
import java.util.List;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMethod;
|
||||
|
||||
@FeignClient(name = "${feign.ninca-common.name:ninca-common}", path = "/sysetting/zone",
|
||||
fallback = ZoneFeignClientFallback.class)
|
||||
public interface ZoneFeignClient {
|
||||
@RequestMapping(value = {"/tree"}, method = {RequestMethod.POST})
|
||||
CloudwalkResult<List<ZoneTreeResult>> tree(ZoneNextTreeParam paramZoneNextTreeParam) throws ServiceException;
|
||||
|
||||
@RequestMapping(value = {"/page"}, method = {RequestMethod.POST})
|
||||
CloudwalkResult<CloudwalkPageAble<ZoneResult>> page(ZoneQueryParam paramZoneQueryParam) throws ServiceException;
|
||||
}
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
package cn.cloudwalk.elevator.zone.fallback;
|
||||
|
||||
import cn.cloudwalk.cloud.exception.ServiceException;
|
||||
import cn.cloudwalk.cloud.page.CloudwalkPageAble;
|
||||
import cn.cloudwalk.cloud.result.CloudwalkResult;
|
||||
import cn.cloudwalk.elevator.zone.client.ZoneFeignClient;
|
||||
import cn.cloudwalk.elevator.zone.param.ZoneNextTreeParam;
|
||||
import cn.cloudwalk.elevator.zone.param.ZoneQueryParam;
|
||||
import cn.cloudwalk.elevator.zone.result.ZoneResult;
|
||||
import cn.cloudwalk.elevator.zone.result.ZoneTreeResult;
|
||||
import java.util.List;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
@Component
|
||||
public class ZoneFeignClientFallback implements ZoneFeignClient {
|
||||
public CloudwalkResult<List<ZoneTreeResult>> tree(ZoneNextTreeParam param) throws ServiceException {
|
||||
throw new RuntimeException("查询区域树结构失败");
|
||||
}
|
||||
|
||||
public CloudwalkResult<CloudwalkPageAble<ZoneResult>> page(ZoneQueryParam param) throws ServiceException {
|
||||
throw new RuntimeException("分页查询区域失败");
|
||||
}
|
||||
}
|
||||
+33
@@ -0,0 +1,33 @@
|
||||
package cn.cloudwalk.elevator.zone.impl;
|
||||
|
||||
import cn.cloudwalk.cloud.context.CloudwalkCallContext;
|
||||
import cn.cloudwalk.cloud.exception.ServiceException;
|
||||
import cn.cloudwalk.cloud.page.CloudwalkPageAble;
|
||||
import cn.cloudwalk.cloud.result.CloudwalkResult;
|
||||
import cn.cloudwalk.elevator.zone.client.ZoneFeignClient;
|
||||
import cn.cloudwalk.elevator.zone.param.ZoneNextTreeParam;
|
||||
import cn.cloudwalk.elevator.zone.param.ZoneQueryParam;
|
||||
import cn.cloudwalk.elevator.zone.result.ZoneResult;
|
||||
import cn.cloudwalk.elevator.zone.result.ZoneTreeResult;
|
||||
import cn.cloudwalk.elevator.zone.service.ZoneService;
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
@Service
|
||||
public class ZoneServiceImpl implements ZoneService {
|
||||
@Qualifier("cn.cloudwalk.elevator.zone.client.ZoneFeignClient")
|
||||
@Autowired
|
||||
private ZoneFeignClient zoneFeignClient;
|
||||
|
||||
public CloudwalkResult<List<ZoneTreeResult>> tree(ZoneNextTreeParam param, CloudwalkCallContext context)
|
||||
throws ServiceException {
|
||||
return this.zoneFeignClient.tree(param);
|
||||
}
|
||||
|
||||
public CloudwalkResult<CloudwalkPageAble<ZoneResult>> page(ZoneQueryParam param, CloudwalkCallContext context)
|
||||
throws ServiceException {
|
||||
return this.zoneFeignClient.page(param);
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
/**
|
||||
* 区域(园区/楼栋/楼层等)树与下一级树查询,供设备、通行与前端级联选择使用。
|
||||
* <p>
|
||||
* 多通过 Feign 拉取平台区域数据并在本包内做组装与 {@code result} 封装。
|
||||
*/
|
||||
package cn.cloudwalk.elevator.zone;
|
||||
+49
@@ -0,0 +1,49 @@
|
||||
package cn.cloudwalk.elevator.zone.param;
|
||||
|
||||
public class ZoneNextTreeParam {
|
||||
private String parentId;
|
||||
private Boolean byLoginUser = Boolean.valueOf(false);
|
||||
private String businessId;
|
||||
private Integer isValid;
|
||||
private String type;
|
||||
|
||||
public String getType() {
|
||||
return this.type;
|
||||
}
|
||||
|
||||
public void setType(String type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public String getParentId() {
|
||||
return this.parentId;
|
||||
}
|
||||
|
||||
public void setParentId(String parentId) {
|
||||
this.parentId = parentId;
|
||||
}
|
||||
|
||||
public Boolean getByLoginUser() {
|
||||
return this.byLoginUser;
|
||||
}
|
||||
|
||||
public void setByLoginUser(Boolean byLoginUser) {
|
||||
this.byLoginUser = byLoginUser;
|
||||
}
|
||||
|
||||
public Integer getIsValid() {
|
||||
return this.isValid;
|
||||
}
|
||||
|
||||
public void setIsValid(Integer isValid) {
|
||||
this.isValid = isValid;
|
||||
}
|
||||
|
||||
public String getBusinessId() {
|
||||
return this.businessId;
|
||||
}
|
||||
|
||||
public void setBusinessId(String businessId) {
|
||||
this.businessId = businessId;
|
||||
}
|
||||
}
|
||||
+133
@@ -0,0 +1,133 @@
|
||||
package cn.cloudwalk.elevator.zone.param;
|
||||
|
||||
import cn.cloudwalk.cloud.page.CloudwalkBasePageForm;
|
||||
import java.util.List;
|
||||
|
||||
public class ZoneQueryParam extends CloudwalkBasePageForm {
|
||||
private String id;
|
||||
private List<String> ids;
|
||||
private String name;
|
||||
private Integer level;
|
||||
private String typeId;
|
||||
private String businessId;
|
||||
private String parentId;
|
||||
private Integer hasCascade;
|
||||
private Integer retainParent;
|
||||
private Boolean byLoginUser = Boolean.valueOf(false);
|
||||
private Integer isValid;
|
||||
private String type;
|
||||
private String code;
|
||||
private String unitId;
|
||||
|
||||
public String getUnitId() {
|
||||
return this.unitId;
|
||||
}
|
||||
|
||||
public void setUnitId(String unitId) {
|
||||
this.unitId = unitId;
|
||||
}
|
||||
|
||||
public String getCode() {
|
||||
return this.code;
|
||||
}
|
||||
|
||||
public void setCode(String code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public String getType() {
|
||||
return this.type;
|
||||
}
|
||||
|
||||
public void setType(String type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return this.name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public Integer getLevel() {
|
||||
return this.level;
|
||||
}
|
||||
|
||||
public void setLevel(Integer level) {
|
||||
this.level = level;
|
||||
}
|
||||
|
||||
public String getTypeId() {
|
||||
return this.typeId;
|
||||
}
|
||||
|
||||
public void setTypeId(String typeId) {
|
||||
this.typeId = typeId;
|
||||
}
|
||||
|
||||
public List<String> getIds() {
|
||||
return this.ids;
|
||||
}
|
||||
|
||||
public void setIds(List<String> ids) {
|
||||
this.ids = ids;
|
||||
}
|
||||
|
||||
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 getParentId() {
|
||||
return this.parentId;
|
||||
}
|
||||
|
||||
public void setParentId(String parentId) {
|
||||
this.parentId = parentId;
|
||||
}
|
||||
|
||||
public Integer getHasCascade() {
|
||||
return this.hasCascade;
|
||||
}
|
||||
|
||||
public void setHasCascade(Integer hasCascade) {
|
||||
this.hasCascade = hasCascade;
|
||||
}
|
||||
|
||||
public Integer getRetainParent() {
|
||||
return this.retainParent;
|
||||
}
|
||||
|
||||
public void setRetainParent(Integer retainParent) {
|
||||
this.retainParent = retainParent;
|
||||
}
|
||||
|
||||
public Boolean getByLoginUser() {
|
||||
return this.byLoginUser;
|
||||
}
|
||||
|
||||
public void setByLoginUser(Boolean byLoginUser) {
|
||||
this.byLoginUser = byLoginUser;
|
||||
}
|
||||
|
||||
public Integer getIsValid() {
|
||||
return this.isValid;
|
||||
}
|
||||
|
||||
public void setIsValid(Integer isValid) {
|
||||
this.isValid = isValid;
|
||||
}
|
||||
}
|
||||
+25
@@ -0,0 +1,25 @@
|
||||
package cn.cloudwalk.elevator.zone.result;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class AgImageUploadResult implements Serializable {
|
||||
private static final long serialVersionUID = 2801838494878813855L;
|
||||
private String id;
|
||||
private String path;
|
||||
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getPath() {
|
||||
return this.path;
|
||||
}
|
||||
|
||||
public void setPath(String path) {
|
||||
this.path = path;
|
||||
}
|
||||
}
|
||||
+310
@@ -0,0 +1,310 @@
|
||||
package cn.cloudwalk.elevator.zone.result;
|
||||
|
||||
public class ZoneResult {
|
||||
private String id;
|
||||
private String name;
|
||||
private Integer orderBy;
|
||||
private String parentId;
|
||||
private Integer level;
|
||||
private Short isDel;
|
||||
private String createUserId;
|
||||
private Long createTime;
|
||||
private String lastUpdateUserId;
|
||||
private Long lastUpdateTime;
|
||||
private String businessId;
|
||||
private String typeId;
|
||||
private String type;
|
||||
private Integer hasLowerLevel;
|
||||
private Integer unitCount;
|
||||
private Integer isValid;
|
||||
private String ext1;
|
||||
private String ext2;
|
||||
private String ext3;
|
||||
private String ext4;
|
||||
private String ext5;
|
||||
private String ext6;
|
||||
private String ext7;
|
||||
private String ext8;
|
||||
private String ext9;
|
||||
private String ext10;
|
||||
private String ext11;
|
||||
private String ext12;
|
||||
private String ext13;
|
||||
private String ext14;
|
||||
private String ext15;
|
||||
private String mapName;
|
||||
private String mapImg;
|
||||
private String mapId;
|
||||
|
||||
public String getMapName() {
|
||||
return this.mapName;
|
||||
}
|
||||
|
||||
public void setMapName(String mapName) {
|
||||
this.mapName = mapName;
|
||||
}
|
||||
|
||||
public String getMapImg() {
|
||||
return this.mapImg;
|
||||
}
|
||||
|
||||
public void setMapImg(String mapImg) {
|
||||
this.mapImg = mapImg;
|
||||
}
|
||||
|
||||
public String getMapId() {
|
||||
return this.mapId;
|
||||
}
|
||||
|
||||
public void setMapId(String mapId) {
|
||||
this.mapId = mapId;
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = (id == null) ? null : id.trim();
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return this.name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = (name == null) ? null : name.trim();
|
||||
}
|
||||
|
||||
public Integer getOrderBy() {
|
||||
return this.orderBy;
|
||||
}
|
||||
|
||||
public void setOrderBy(Integer orderBy) {
|
||||
this.orderBy = orderBy;
|
||||
}
|
||||
|
||||
public String getParentId() {
|
||||
return this.parentId;
|
||||
}
|
||||
|
||||
public void setParentId(String parentId) {
|
||||
this.parentId = (parentId == null) ? null : parentId.trim();
|
||||
}
|
||||
|
||||
public Integer getLevel() {
|
||||
return this.level;
|
||||
}
|
||||
|
||||
public void setLevel(Integer level) {
|
||||
this.level = level;
|
||||
}
|
||||
|
||||
public Short getIsDel() {
|
||||
return this.isDel;
|
||||
}
|
||||
|
||||
public void setIsDel(Short isDel) {
|
||||
this.isDel = isDel;
|
||||
}
|
||||
|
||||
public String getCreateUserId() {
|
||||
return this.createUserId;
|
||||
}
|
||||
|
||||
public void setCreateUserId(String createUserId) {
|
||||
this.createUserId = (createUserId == null) ? null : createUserId.trim();
|
||||
}
|
||||
|
||||
public Long getCreateTime() {
|
||||
return this.createTime;
|
||||
}
|
||||
|
||||
public void setCreateTime(Long createTime) {
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
public String getLastUpdateUserId() {
|
||||
return this.lastUpdateUserId;
|
||||
}
|
||||
|
||||
public void setLastUpdateUserId(String lastUpdateUserId) {
|
||||
this.lastUpdateUserId = (lastUpdateUserId == null) ? null : lastUpdateUserId.trim();
|
||||
}
|
||||
|
||||
public Long getLastUpdateTime() {
|
||||
return this.lastUpdateTime;
|
||||
}
|
||||
|
||||
public void setLastUpdateTime(Long lastUpdateTime) {
|
||||
this.lastUpdateTime = lastUpdateTime;
|
||||
}
|
||||
|
||||
public String getBusinessId() {
|
||||
return this.businessId;
|
||||
}
|
||||
|
||||
public void setBusinessId(String businessId) {
|
||||
this.businessId = businessId;
|
||||
}
|
||||
|
||||
public String getTypeId() {
|
||||
return this.typeId;
|
||||
}
|
||||
|
||||
public void setTypeId(String typeId) {
|
||||
this.typeId = typeId;
|
||||
}
|
||||
|
||||
public String getType() {
|
||||
return this.type;
|
||||
}
|
||||
|
||||
public void setType(String type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public Integer getUnitCount() {
|
||||
return this.unitCount;
|
||||
}
|
||||
|
||||
public void setUnitCount(Integer unitCount) {
|
||||
this.unitCount = unitCount;
|
||||
}
|
||||
|
||||
public Integer getIsValid() {
|
||||
return this.isValid;
|
||||
}
|
||||
|
||||
public void setIsValid(Integer isValid) {
|
||||
this.isValid = isValid;
|
||||
}
|
||||
|
||||
public String getExt1() {
|
||||
return this.ext1;
|
||||
}
|
||||
|
||||
public void setExt1(String ext1) {
|
||||
this.ext1 = ext1;
|
||||
}
|
||||
|
||||
public String getExt2() {
|
||||
return this.ext2;
|
||||
}
|
||||
|
||||
public void setExt2(String ext2) {
|
||||
this.ext2 = ext2;
|
||||
}
|
||||
|
||||
public String getExt3() {
|
||||
return this.ext3;
|
||||
}
|
||||
|
||||
public void setExt3(String ext3) {
|
||||
this.ext3 = ext3;
|
||||
}
|
||||
|
||||
public String getExt4() {
|
||||
return this.ext4;
|
||||
}
|
||||
|
||||
public void setExt4(String ext4) {
|
||||
this.ext4 = ext4;
|
||||
}
|
||||
|
||||
public String getExt5() {
|
||||
return this.ext5;
|
||||
}
|
||||
|
||||
public void setExt5(String ext5) {
|
||||
this.ext5 = ext5;
|
||||
}
|
||||
|
||||
public String getExt6() {
|
||||
return this.ext6;
|
||||
}
|
||||
|
||||
public void setExt6(String ext6) {
|
||||
this.ext6 = ext6;
|
||||
}
|
||||
|
||||
public String getExt7() {
|
||||
return this.ext7;
|
||||
}
|
||||
|
||||
public void setExt7(String ext7) {
|
||||
this.ext7 = ext7;
|
||||
}
|
||||
|
||||
public String getExt8() {
|
||||
return this.ext8;
|
||||
}
|
||||
|
||||
public void setExt8(String ext8) {
|
||||
this.ext8 = ext8;
|
||||
}
|
||||
|
||||
public String getExt9() {
|
||||
return this.ext9;
|
||||
}
|
||||
|
||||
public void setExt9(String ext9) {
|
||||
this.ext9 = ext9;
|
||||
}
|
||||
|
||||
public String getExt10() {
|
||||
return this.ext10;
|
||||
}
|
||||
|
||||
public void setExt10(String ext10) {
|
||||
this.ext10 = ext10;
|
||||
}
|
||||
|
||||
public String getExt11() {
|
||||
return this.ext11;
|
||||
}
|
||||
|
||||
public void setExt11(String ext11) {
|
||||
this.ext11 = ext11;
|
||||
}
|
||||
|
||||
public String getExt12() {
|
||||
return this.ext12;
|
||||
}
|
||||
|
||||
public void setExt12(String ext12) {
|
||||
this.ext12 = ext12;
|
||||
}
|
||||
|
||||
public String getExt13() {
|
||||
return this.ext13;
|
||||
}
|
||||
|
||||
public void setExt13(String ext13) {
|
||||
this.ext13 = ext13;
|
||||
}
|
||||
|
||||
public String getExt14() {
|
||||
return this.ext14;
|
||||
}
|
||||
|
||||
public void setExt14(String ext14) {
|
||||
this.ext14 = ext14;
|
||||
}
|
||||
|
||||
public String getExt15() {
|
||||
return this.ext15;
|
||||
}
|
||||
|
||||
public void setExt15(String ext15) {
|
||||
this.ext15 = ext15;
|
||||
}
|
||||
|
||||
public Integer getHasLowerLevel() {
|
||||
return this.hasLowerLevel;
|
||||
}
|
||||
|
||||
public void setHasLowerLevel(Integer hasLowerLevel) {
|
||||
this.hasLowerLevel = hasLowerLevel;
|
||||
}
|
||||
}
|
||||
+295
@@ -0,0 +1,295 @@
|
||||
package cn.cloudwalk.elevator.zone.result;
|
||||
|
||||
import cn.cloudwalk.cloud.entity.CloudwalkBaseTimes;
|
||||
import java.util.List;
|
||||
|
||||
public class ZoneTreeResult extends CloudwalkBaseTimes {
|
||||
private String code;
|
||||
private String elevatorCode;
|
||||
private Integer level;
|
||||
private String name;
|
||||
private String parentId;
|
||||
private String businessId;
|
||||
private Short isDel;
|
||||
private String typeId;
|
||||
private Integer orderBy;
|
||||
private String ext1;
|
||||
private String ext2;
|
||||
private String ext3;
|
||||
private String ext4;
|
||||
private String ext5;
|
||||
private String ext6;
|
||||
private String ext7;
|
||||
private String ext8;
|
||||
private String ext9;
|
||||
private String ext10;
|
||||
private String ext11;
|
||||
private String ext12;
|
||||
private String ext13;
|
||||
private String ext14;
|
||||
private String ext15;
|
||||
private Integer unitCount;
|
||||
private String type;
|
||||
private Integer hasLowerLevel;
|
||||
private List<ZoneTreeResult> children;
|
||||
private String mapName;
|
||||
private String mapImg;
|
||||
private String mapId;
|
||||
private Integer isFirst;
|
||||
|
||||
public String getElevatorCode() {
|
||||
return this.elevatorCode;
|
||||
}
|
||||
|
||||
public void setElevatorCode(String elevatorCode) {
|
||||
this.elevatorCode = elevatorCode;
|
||||
}
|
||||
|
||||
public String getMapName() {
|
||||
return this.mapName;
|
||||
}
|
||||
|
||||
public void setMapName(String mapName) {
|
||||
this.mapName = mapName;
|
||||
}
|
||||
|
||||
public String getMapImg() {
|
||||
return this.mapImg;
|
||||
}
|
||||
|
||||
public void setMapImg(String mapImg) {
|
||||
this.mapImg = mapImg;
|
||||
}
|
||||
|
||||
public String getMapId() {
|
||||
return this.mapId;
|
||||
}
|
||||
|
||||
public void setMapId(String mapId) {
|
||||
this.mapId = mapId;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return this.name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getParentId() {
|
||||
return this.parentId;
|
||||
}
|
||||
|
||||
public void setParentId(String parentId) {
|
||||
this.parentId = parentId;
|
||||
}
|
||||
|
||||
public List<ZoneTreeResult> getChildren() {
|
||||
return this.children;
|
||||
}
|
||||
|
||||
public void setChildren(List<ZoneTreeResult> children) {
|
||||
this.children = children;
|
||||
}
|
||||
|
||||
public Integer getLevel() {
|
||||
return this.level;
|
||||
}
|
||||
|
||||
public void setLevel(Integer level) {
|
||||
this.level = level;
|
||||
}
|
||||
|
||||
public Integer getUnitCount() {
|
||||
return this.unitCount;
|
||||
}
|
||||
|
||||
public void setUnitCount(Integer unitCount) {
|
||||
this.unitCount = unitCount;
|
||||
}
|
||||
|
||||
public String getType() {
|
||||
return this.type;
|
||||
}
|
||||
|
||||
public void setType(String type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public String getTypeId() {
|
||||
return this.typeId;
|
||||
}
|
||||
|
||||
public void setTypeId(String typeId) {
|
||||
this.typeId = typeId;
|
||||
}
|
||||
|
||||
public String getExt1() {
|
||||
return this.ext1;
|
||||
}
|
||||
|
||||
public void setExt1(String ext1) {
|
||||
this.ext1 = ext1;
|
||||
}
|
||||
|
||||
public String getExt2() {
|
||||
return this.ext2;
|
||||
}
|
||||
|
||||
public void setExt2(String ext2) {
|
||||
this.ext2 = ext2;
|
||||
}
|
||||
|
||||
public String getExt3() {
|
||||
return this.ext3;
|
||||
}
|
||||
|
||||
public void setExt3(String ext3) {
|
||||
this.ext3 = ext3;
|
||||
}
|
||||
|
||||
public String getExt4() {
|
||||
return this.ext4;
|
||||
}
|
||||
|
||||
public void setExt4(String ext4) {
|
||||
this.ext4 = ext4;
|
||||
}
|
||||
|
||||
public String getExt5() {
|
||||
return this.ext5;
|
||||
}
|
||||
|
||||
public void setExt5(String ext5) {
|
||||
this.ext5 = ext5;
|
||||
}
|
||||
|
||||
public String getExt6() {
|
||||
return this.ext6;
|
||||
}
|
||||
|
||||
public void setExt6(String ext6) {
|
||||
this.ext6 = ext6;
|
||||
}
|
||||
|
||||
public String getExt7() {
|
||||
return this.ext7;
|
||||
}
|
||||
|
||||
public void setExt7(String ext7) {
|
||||
this.ext7 = ext7;
|
||||
}
|
||||
|
||||
public String getExt8() {
|
||||
return this.ext8;
|
||||
}
|
||||
|
||||
public void setExt8(String ext8) {
|
||||
this.ext8 = ext8;
|
||||
}
|
||||
|
||||
public String getExt9() {
|
||||
return this.ext9;
|
||||
}
|
||||
|
||||
public void setExt9(String ext9) {
|
||||
this.ext9 = ext9;
|
||||
}
|
||||
|
||||
public String getExt10() {
|
||||
return this.ext10;
|
||||
}
|
||||
|
||||
public void setExt10(String ext10) {
|
||||
this.ext10 = ext10;
|
||||
}
|
||||
|
||||
public String getExt11() {
|
||||
return this.ext11;
|
||||
}
|
||||
|
||||
public void setExt11(String ext11) {
|
||||
this.ext11 = ext11;
|
||||
}
|
||||
|
||||
public String getExt12() {
|
||||
return this.ext12;
|
||||
}
|
||||
|
||||
public void setExt12(String ext12) {
|
||||
this.ext12 = ext12;
|
||||
}
|
||||
|
||||
public String getExt13() {
|
||||
return this.ext13;
|
||||
}
|
||||
|
||||
public void setExt13(String ext13) {
|
||||
this.ext13 = ext13;
|
||||
}
|
||||
|
||||
public String getExt14() {
|
||||
return this.ext14;
|
||||
}
|
||||
|
||||
public void setExt14(String ext14) {
|
||||
this.ext14 = ext14;
|
||||
}
|
||||
|
||||
public String getExt15() {
|
||||
return this.ext15;
|
||||
}
|
||||
|
||||
public void setExt15(String ext15) {
|
||||
this.ext15 = ext15;
|
||||
}
|
||||
|
||||
public Integer getHasLowerLevel() {
|
||||
return this.hasLowerLevel;
|
||||
}
|
||||
|
||||
public void setHasLowerLevel(Integer hasLowerLevel) {
|
||||
this.hasLowerLevel = hasLowerLevel;
|
||||
}
|
||||
|
||||
public String getCode() {
|
||||
return this.code;
|
||||
}
|
||||
|
||||
public void setCode(String code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public String getBusinessId() {
|
||||
return this.businessId;
|
||||
}
|
||||
|
||||
public void setBusinessId(String businessId) {
|
||||
this.businessId = businessId;
|
||||
}
|
||||
|
||||
public Short getIsDel() {
|
||||
return this.isDel;
|
||||
}
|
||||
|
||||
public void setIsDel(Short isDel) {
|
||||
this.isDel = isDel;
|
||||
}
|
||||
|
||||
public Integer getOrderBy() {
|
||||
return this.orderBy;
|
||||
}
|
||||
|
||||
public void setOrderBy(Integer orderBy) {
|
||||
this.orderBy = orderBy;
|
||||
}
|
||||
|
||||
public Integer getIsFirst() {
|
||||
return this.isFirst;
|
||||
}
|
||||
|
||||
public void setIsFirst(Integer isFirst) {
|
||||
this.isFirst = isFirst;
|
||||
}
|
||||
}
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
package cn.cloudwalk.elevator.zone.service;
|
||||
|
||||
import cn.cloudwalk.cloud.context.CloudwalkCallContext;
|
||||
import cn.cloudwalk.cloud.exception.ServiceException;
|
||||
import cn.cloudwalk.cloud.page.CloudwalkPageAble;
|
||||
import cn.cloudwalk.cloud.result.CloudwalkResult;
|
||||
import cn.cloudwalk.elevator.zone.param.ZoneNextTreeParam;
|
||||
import cn.cloudwalk.elevator.zone.param.ZoneQueryParam;
|
||||
import cn.cloudwalk.elevator.zone.result.ZoneResult;
|
||||
import cn.cloudwalk.elevator.zone.result.ZoneTreeResult;
|
||||
import java.util.List;
|
||||
|
||||
public interface ZoneService {
|
||||
CloudwalkResult<List<ZoneTreeResult>> tree(ZoneNextTreeParam paramZoneNextTreeParam,
|
||||
CloudwalkCallContext paramCloudwalkCallContext) throws ServiceException;
|
||||
|
||||
CloudwalkResult<CloudwalkPageAble<ZoneResult>> page(ZoneQueryParam paramZoneQueryParam,
|
||||
CloudwalkCallContext paramCloudwalkCallContext) throws ServiceException;
|
||||
}
|
||||
+25
@@ -0,0 +1,25 @@
|
||||
package cn.cloudwalk.elevator.zone.util;
|
||||
|
||||
import cn.cloudwalk.elevator.util.StringUtils;
|
||||
import cn.cloudwalk.elevator.zone.result.ZoneTreeResult;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
|
||||
/** 区域树遍历辅助,供批量查询电梯编码等场景复用。 */
|
||||
public final class ZoneTreeCollectors {
|
||||
|
||||
private ZoneTreeCollectors() {}
|
||||
|
||||
/** 深度优先收集树上各节点 {@link ZoneTreeResult#getId()}(去重由调用方 {@link Set} 保证)。 */
|
||||
public static void collectNodeIds(List<ZoneTreeResult> nodes, Set<String> out) {
|
||||
if (nodes == null || out == null) {
|
||||
return;
|
||||
}
|
||||
for (ZoneTreeResult n : nodes) {
|
||||
if (StringUtils.isNotBlank(n.getId())) {
|
||||
out.add(n.getId());
|
||||
}
|
||||
collectNodeIds(n.getChildren(), out);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user