feat: 物联平台分支创建及代码整合。
This commit is contained in:
28
intc-api/intc-api-iot-basics/pom.xml
Normal file
28
intc-api/intc-api-iot-basics/pom.xml
Normal file
@@ -0,0 +1,28 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<parent>
|
||||
<groupId>com.intc</groupId>
|
||||
<artifactId>intc-api</artifactId>
|
||||
<version>3.6.3</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>intc-api-iot-basics</artifactId>
|
||||
|
||||
<description>
|
||||
intc-api-basics
|
||||
</description>
|
||||
|
||||
<dependencies>
|
||||
|
||||
<!-- RuoYi Common Core-->
|
||||
<dependency>
|
||||
<groupId>com.intc</groupId>
|
||||
<artifactId>intc-common-core</artifactId>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
|
||||
</project>
|
||||
@@ -0,0 +1,27 @@
|
||||
package com.intc.api.basics;
|
||||
|
||||
import com.intc.api.basics.domain.dto.AlarmInfoApiDto;
|
||||
import com.intc.api.basics.domain.vo.AlarmInfoApiVo;
|
||||
import com.intc.common.core.constant.ServiceNameConstants;
|
||||
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.cloud.openfeign.SpringQueryMap;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import com.intc.api.basics.factory.RemoteAlarmFallbackFactory;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 照明调用
|
||||
*/
|
||||
@FeignClient(contextId = "remoteAlarmService", value = ServiceNameConstants.BASICS_SERVICE, fallbackFactory = RemoteAlarmFallbackFactory.class)
|
||||
public interface RemoteAlarmService {
|
||||
|
||||
/**
|
||||
* 查询报警列表
|
||||
*
|
||||
* @return 结果
|
||||
*/
|
||||
@GetMapping("/alarm/alarmManage/listAll")
|
||||
List<AlarmInfoApiVo> listAll(@SpringQueryMap AlarmInfoApiDto alarmInfoApiDto);
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
package com.intc.api.basics;
|
||||
|
||||
import com.intc.api.basics.domain.*;
|
||||
import com.intc.api.basics.domain.dto.BuildingApiDto;
|
||||
import com.intc.api.basics.domain.vo.BuildingApiVo;
|
||||
import com.intc.api.basics.factory.RemoteBuildingFallbackFactory;
|
||||
import com.intc.common.core.constant.ServiceNameConstants;
|
||||
import com.intc.common.core.domain.R;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.cloud.openfeign.SpringQueryMap;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 基础服务
|
||||
*
|
||||
* @author YaphetS
|
||||
*/
|
||||
@FeignClient(contextId = "remoteBuildingService", value = ServiceNameConstants.BASICS_SERVICE, fallbackFactory = RemoteBuildingFallbackFactory.class)
|
||||
public interface RemoteBuildingService {
|
||||
/**
|
||||
* 入廊管线统计-管线最大值
|
||||
*
|
||||
* @return 结果
|
||||
*/
|
||||
@GetMapping("/view/building/selectBuildingPipeLineType")
|
||||
R<List<BuildingVolumeLengthByType>> selectBuildingPipeLineType();
|
||||
|
||||
|
||||
@ApiOperation(value = "查询安装区域信息列表-不分页")
|
||||
@GetMapping("/building/buildingInfo/allList")
|
||||
R<List<BuildingInfoApiVo>> allList(@SpringQueryMap BuildingInfoApiDto buildingInfoApiDto);
|
||||
|
||||
/**
|
||||
* 获取设备基础信息列表数据
|
||||
*
|
||||
* @return 结果
|
||||
*/
|
||||
@PostMapping("/device/deviceInfo/getAllList")
|
||||
public List<DeviceInfoApiVo> getDeviceInfoVoList(@RequestBody DeviceInfoApiDto dto);
|
||||
|
||||
|
||||
/**
|
||||
* 获取区域信息列表数据
|
||||
*
|
||||
* @return 结果
|
||||
*/
|
||||
@PostMapping("/building/buildingInfo/getAllList")
|
||||
public List<BuildingApiVo> getBuildingVoList(@RequestBody BuildingApiDto dto);
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
package com.intc.api.basics;
|
||||
|
||||
import com.intc.api.basics.domain.DeviceInfoApiDto;
|
||||
import com.intc.api.basics.domain.DeviceInfoApiVo;
|
||||
import com.intc.api.basics.domain.TagBasicInfoApiDto;
|
||||
import com.intc.api.basics.domain.TagBasicInfoApiVo;
|
||||
import com.intc.api.basics.factory.RemoteDeviceFallbackFactory;
|
||||
import com.intc.common.core.constant.ServiceNameConstants;
|
||||
import com.intc.common.core.domain.R;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 基础服务
|
||||
*
|
||||
* @author YaphetS
|
||||
*/
|
||||
@FeignClient(contextId = "remoteDeviceService", value = ServiceNameConstants.BASICS_SERVICE, fallbackFactory = RemoteDeviceFallbackFactory.class)
|
||||
public interface RemoteDeviceService {
|
||||
/**
|
||||
* 查询设备列表
|
||||
*
|
||||
* @return 结果
|
||||
*/
|
||||
@GetMapping("/device/deviceInfo/listAll")
|
||||
List<DeviceInfoApiVo> listAll(DeviceInfoApiDto deviceInfoApiDto);
|
||||
|
||||
|
||||
|
||||
@GetMapping("/device/tagBasicInfo/listAll")
|
||||
R<List<TagBasicInfoApiVo>> tagListAll(TagBasicInfoApiDto tagBasicInfoApiDto);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,117 @@
|
||||
package com.intc.api.basics.domain;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.intc.common.core.web.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @author wangjun
|
||||
* @date 2024-01-02
|
||||
*/
|
||||
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@ApiOperation("报警信息对象")
|
||||
public class AlarmInfoApi extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** ID */
|
||||
private String id;
|
||||
|
||||
/** 报警级别 */
|
||||
@ApiModelProperty(value="报警级别")
|
||||
private String alarmLevel;
|
||||
|
||||
/** 报警类型 */
|
||||
@ApiModelProperty(value="报警类型")
|
||||
private String alarmType;
|
||||
|
||||
/** 报警值 */
|
||||
@ApiModelProperty(value="报警值")
|
||||
private String alarmValue;
|
||||
|
||||
/** 报警内容 */
|
||||
@ApiModelProperty(value="报警内容")
|
||||
private String alarmDesc;
|
||||
|
||||
/** 报警开始时间 */
|
||||
@ApiModelProperty(value="报警开始时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date alarmStartTime;
|
||||
|
||||
/** 报警结束时间 */
|
||||
@ApiModelProperty(value="报警结束时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date alarmEndTime;
|
||||
|
||||
/** 报警来源 */
|
||||
@ApiModelProperty(value="报警来源")
|
||||
private String alarmSource;
|
||||
|
||||
/** 报警上报人 */
|
||||
@ApiModelProperty(value="报警上报人")
|
||||
private String alarmReportPeople;
|
||||
|
||||
/** 报警上报时间 */
|
||||
@ApiModelProperty(value="报警上报时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date alarmReportTime;
|
||||
|
||||
/** 测点id */
|
||||
@ApiModelProperty(value="测点id")
|
||||
private String tagId;
|
||||
|
||||
/** 设备ID */
|
||||
@ApiModelProperty(value="设备ID")
|
||||
private String deviceId;
|
||||
|
||||
/** 设备名称 */
|
||||
@ApiModelProperty(value="设备名称")
|
||||
private String deviceName;
|
||||
|
||||
/** 正常范围 */
|
||||
@ApiModelProperty(value="正常范围")
|
||||
private String normalRange;
|
||||
|
||||
/** 报警状态 */
|
||||
@ApiModelProperty(value="报警状态(待确认、已解除、待处置、已处置)")
|
||||
private String state;
|
||||
|
||||
/** 确认人 */
|
||||
@ApiModelProperty(value="确认人")
|
||||
private String confirmer;
|
||||
|
||||
/** 确认时间 */
|
||||
@ApiModelProperty(value="确认时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date confirmTime;
|
||||
|
||||
/** 确认信息 */
|
||||
@ApiModelProperty(value="确认信息")
|
||||
private String confirmInfo;
|
||||
|
||||
/** 处置人 */
|
||||
@ApiModelProperty(value="处置人")
|
||||
private String disposer;
|
||||
|
||||
/** 处置时间 */
|
||||
@ApiModelProperty(value="处置时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date disposerTime;
|
||||
|
||||
/** 处置信息 */
|
||||
@ApiModelProperty(value="处置信息")
|
||||
private String disposerInfo;
|
||||
|
||||
/** 是否生成维修工单标志(0否 1是) */
|
||||
@ApiModelProperty(value="是否生成维修工单标志(0否 1是)")
|
||||
private String repairFlag;
|
||||
|
||||
/** 删除标志(0代表存在 1代表删除) */
|
||||
private String delFlag;
|
||||
}
|
||||
@@ -0,0 +1,122 @@
|
||||
package com.intc.api.basics.domain;
|
||||
|
||||
|
||||
import com.intc.common.core.annotation.Excel;
|
||||
import com.intc.common.core.web.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
/**
|
||||
* 安装区域信息对象 b_building
|
||||
*
|
||||
* @author YaphetS
|
||||
* @date 2023-03-13
|
||||
*/
|
||||
@ApiModel("安装区域信息对象")
|
||||
@Data
|
||||
public class BuildingApi extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** ID */
|
||||
private String id;
|
||||
|
||||
/** 编号(唯一) */
|
||||
@ApiModelProperty(value="区域编码")
|
||||
@Excel(name = "区域编码",sort = 2)
|
||||
private String buildingCode;
|
||||
|
||||
/** 名称 */
|
||||
@ApiModelProperty(value="区域名称")
|
||||
@NotNull(message="区域名称不能为空")
|
||||
@Excel(name = "区域名称",sort = 1)
|
||||
private String buildingName;
|
||||
|
||||
/** 经纬度 */
|
||||
@ApiModelProperty(value="经纬度")
|
||||
@Excel(name = "经纬度",sort = 5)
|
||||
private String lonLat;
|
||||
|
||||
/** 长度 */
|
||||
@ApiModelProperty(value="长度")
|
||||
// @Excel(name = "长度")
|
||||
private String length;
|
||||
|
||||
/** $column.columnComment */
|
||||
@ApiModelProperty(value="BIM_ID")
|
||||
private String bimId;
|
||||
|
||||
/** 状态 */
|
||||
@ApiModelProperty(value="状态")
|
||||
// @Excel(name = "状态", handler = DictHandler.class, args = { "building_state" })
|
||||
private String state;
|
||||
|
||||
/** 父ID */
|
||||
@ApiModelProperty(value="父ID)")
|
||||
// @NotNull(message="父ID不能为空")
|
||||
// @Excel(name = "父ID")
|
||||
private String parentId;
|
||||
|
||||
/** 祖级 */
|
||||
@ApiModelProperty(value="祖级")
|
||||
// @Excel(name = "祖级")
|
||||
private String ancestors;
|
||||
|
||||
/** 类型 */
|
||||
@ApiModelProperty(value="区域类型")
|
||||
@NotNull(message="区域类型不能为空")
|
||||
private String buildingType;
|
||||
|
||||
/** 版本号 */
|
||||
@ApiModelProperty(value="版本号")
|
||||
// @Excel(name = "版本号")
|
||||
private String version;
|
||||
|
||||
/** 删除标志(0代表存在 1代表删除) */
|
||||
private String delFlag;
|
||||
|
||||
/** 所属部门ID */
|
||||
@ApiModelProperty(value="所属部门ID")
|
||||
// @Excel(name = "所属部门ID")
|
||||
private String deptId;
|
||||
|
||||
/** 创建人名称 */
|
||||
@ApiModelProperty(value="创建人名称")
|
||||
// @Excel(name = "创建人名称")
|
||||
private String createName;
|
||||
|
||||
@ApiModelProperty(value="排序")
|
||||
@Excel(name = "排序",sort = 7)
|
||||
private int orderNum;
|
||||
@Excel(name = "简介",sort = 6)
|
||||
private String remark;
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("buildingCode", getBuildingCode())
|
||||
.append("buildingName", getBuildingName())
|
||||
.append("lonLat", getLonLat())
|
||||
.append("length", getLength())
|
||||
.append("bimId", getBimId())
|
||||
.append("state", getState())
|
||||
.append("parentId", getParentId())
|
||||
.append("ancestors", getAncestors())
|
||||
.append("buildingType", getBuildingType())
|
||||
.append("version", getVersion())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("delFlag", getDelFlag())
|
||||
.append("remark", getRemark())
|
||||
.append("deptId", getDeptId())
|
||||
.append("createName", getCreateName())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,180 @@
|
||||
package com.intc.api.basics.domain;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 区域信息ApiDto对象 b_building
|
||||
*
|
||||
* @author cwl
|
||||
* @date 2023-12-29
|
||||
*/
|
||||
public class BuildingInfoApiDto implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 编号(唯一) */
|
||||
@ApiModelProperty(value="编号(唯一)")
|
||||
private String buildingCode;
|
||||
|
||||
/** 名称 */
|
||||
@ApiModelProperty(value="名称")
|
||||
private String buildingName;
|
||||
|
||||
@ApiModelProperty(value="父ID")
|
||||
private String parentId;
|
||||
|
||||
/** 经纬度 */
|
||||
@ApiModelProperty(value="经纬度")
|
||||
private String lonLat;
|
||||
|
||||
/** 长度 */
|
||||
@ApiModelProperty(value="长度")
|
||||
private String length;
|
||||
|
||||
/** $column.columnComment */
|
||||
@ApiModelProperty(value="bimId")
|
||||
private String bimId;
|
||||
|
||||
/** 状态 */
|
||||
@ApiModelProperty(value="状态")
|
||||
private String state;
|
||||
|
||||
/** 祖先Id */
|
||||
@ApiModelProperty(value="祖先Id")
|
||||
private String ancestorId;
|
||||
|
||||
|
||||
/** 类型 */
|
||||
@ApiModelProperty(value="类型")
|
||||
private String buildingType;
|
||||
@ApiModelProperty(value="类型s")
|
||||
private List<String> buildingTypes;
|
||||
/** 版本号 */
|
||||
@ApiModelProperty(value="版本号")
|
||||
private String version;
|
||||
|
||||
/** 所属部门ID */
|
||||
@ApiModelProperty(value="所属部门ID")
|
||||
private String deptId;
|
||||
|
||||
/** 创建人名称 */
|
||||
@ApiModelProperty(value="创建人名称")
|
||||
private String createName;
|
||||
@ApiModelProperty("下级区域是否有BIM的标识(1有bim)")
|
||||
private Integer bimFlag;
|
||||
|
||||
public String getBuildingCode() {
|
||||
return buildingCode;
|
||||
}
|
||||
|
||||
public void setBuildingCode(String buildingCode) {
|
||||
this.buildingCode = buildingCode;
|
||||
}
|
||||
|
||||
public String getBuildingName() {
|
||||
return buildingName;
|
||||
}
|
||||
|
||||
public void setBuildingName(String buildingName) {
|
||||
this.buildingName = buildingName;
|
||||
}
|
||||
|
||||
public String getParentId() {
|
||||
return parentId;
|
||||
}
|
||||
|
||||
public void setParentId(String parentId) {
|
||||
this.parentId = parentId;
|
||||
}
|
||||
|
||||
public String getLonLat() {
|
||||
return lonLat;
|
||||
}
|
||||
|
||||
public void setLonLat(String lonLat) {
|
||||
this.lonLat = lonLat;
|
||||
}
|
||||
|
||||
public String getLength() {
|
||||
return length;
|
||||
}
|
||||
|
||||
public void setLength(String length) {
|
||||
this.length = length;
|
||||
}
|
||||
|
||||
public String getBimId() {
|
||||
return bimId;
|
||||
}
|
||||
|
||||
public void setBimId(String bimId) {
|
||||
this.bimId = bimId;
|
||||
}
|
||||
|
||||
public String getState() {
|
||||
return state;
|
||||
}
|
||||
|
||||
public void setState(String state) {
|
||||
this.state = state;
|
||||
}
|
||||
|
||||
public String getAncestorId() {
|
||||
return ancestorId;
|
||||
}
|
||||
|
||||
public void setAncestorId(String ancestorId) {
|
||||
this.ancestorId = ancestorId;
|
||||
}
|
||||
|
||||
public String getBuildingType() {
|
||||
return buildingType;
|
||||
}
|
||||
|
||||
public void setBuildingType(String buildingType) {
|
||||
this.buildingType = buildingType;
|
||||
}
|
||||
|
||||
public List<String> getBuildingTypes() {
|
||||
return buildingTypes;
|
||||
}
|
||||
|
||||
public void setBuildingTypes(List<String> buildingTypes) {
|
||||
this.buildingTypes = buildingTypes;
|
||||
}
|
||||
|
||||
public String getVersion() {
|
||||
return version;
|
||||
}
|
||||
|
||||
public void setVersion(String version) {
|
||||
this.version = version;
|
||||
}
|
||||
|
||||
public String getDeptId() {
|
||||
return deptId;
|
||||
}
|
||||
|
||||
public void setDeptId(String deptId) {
|
||||
this.deptId = deptId;
|
||||
}
|
||||
|
||||
public String getCreateName() {
|
||||
return createName;
|
||||
}
|
||||
|
||||
public void setCreateName(String createName) {
|
||||
this.createName = createName;
|
||||
}
|
||||
|
||||
public Integer getBimFlag() {
|
||||
return bimFlag;
|
||||
}
|
||||
|
||||
public void setBimFlag(Integer bimFlag) {
|
||||
this.bimFlag = bimFlag;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,225 @@
|
||||
package com.intc.api.basics.domain;
|
||||
|
||||
|
||||
import com.intc.common.core.annotation.Excel;
|
||||
import com.intc.common.core.web.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
/**
|
||||
* 区域信息ApiVo对象 b_building
|
||||
*
|
||||
* @author cwl
|
||||
* @date 2023-12-29
|
||||
*/
|
||||
public class BuildingInfoApiVo extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** ID */
|
||||
private String id;
|
||||
|
||||
/** 编号(唯一) */
|
||||
@ApiModelProperty(value="区域编码")
|
||||
private String buildingCode;
|
||||
|
||||
/** 名称 */
|
||||
@ApiModelProperty(value="区域名称")
|
||||
private String buildingName;
|
||||
|
||||
/** 经纬度 */
|
||||
@ApiModelProperty(value="经纬度")
|
||||
private String lonLat;
|
||||
|
||||
/** 长度 */
|
||||
@ApiModelProperty(value="长度")
|
||||
private String length;
|
||||
|
||||
/** $column.columnComment */
|
||||
@ApiModelProperty(value="BIM_ID")
|
||||
private String bimId;
|
||||
|
||||
/** 状态 */
|
||||
@ApiModelProperty(value="状态")
|
||||
private String state;
|
||||
|
||||
/** 父ID */
|
||||
@ApiModelProperty(value="父ID)")
|
||||
private String parentId;
|
||||
|
||||
/** 祖级 */
|
||||
@ApiModelProperty(value="祖级")
|
||||
private String ancestors;
|
||||
|
||||
/** 类型 */
|
||||
@ApiModelProperty(value="区域类型")
|
||||
private String buildingType;
|
||||
|
||||
/** 版本号 */
|
||||
@ApiModelProperty(value="版本号")
|
||||
private String version;
|
||||
|
||||
/** 删除标志(0代表存在 1代表删除) */
|
||||
private String delFlag;
|
||||
|
||||
/** 所属部门ID */
|
||||
@ApiModelProperty(value="所属部门ID")
|
||||
private String deptId;
|
||||
|
||||
@ApiModelProperty(value="排序")
|
||||
private int orderNum;
|
||||
|
||||
@ApiModelProperty("绘制类型")
|
||||
private String drawingType;
|
||||
|
||||
@ApiModelProperty("上级名称")
|
||||
@Excel(name = "父级名称",sort = 3)
|
||||
private String parentName;
|
||||
|
||||
@ApiModelProperty("祖籍名称")
|
||||
private String ancestorsName;
|
||||
@ApiModelProperty("下级区域是否有BIM的标识")
|
||||
private Integer bimFlagSub;
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getBuildingCode() {
|
||||
return buildingCode;
|
||||
}
|
||||
|
||||
public void setBuildingCode(String buildingCode) {
|
||||
this.buildingCode = buildingCode;
|
||||
}
|
||||
|
||||
public String getBuildingName() {
|
||||
return buildingName;
|
||||
}
|
||||
|
||||
public void setBuildingName(String buildingName) {
|
||||
this.buildingName = buildingName;
|
||||
}
|
||||
|
||||
public String getLonLat() {
|
||||
return lonLat;
|
||||
}
|
||||
|
||||
public void setLonLat(String lonLat) {
|
||||
this.lonLat = lonLat;
|
||||
}
|
||||
|
||||
public String getLength() {
|
||||
return length;
|
||||
}
|
||||
|
||||
public void setLength(String length) {
|
||||
this.length = length;
|
||||
}
|
||||
|
||||
public String getBimId() {
|
||||
return bimId;
|
||||
}
|
||||
|
||||
public void setBimId(String bimId) {
|
||||
this.bimId = bimId;
|
||||
}
|
||||
|
||||
public String getState() {
|
||||
return state;
|
||||
}
|
||||
|
||||
public void setState(String state) {
|
||||
this.state = state;
|
||||
}
|
||||
|
||||
public String getParentId() {
|
||||
return parentId;
|
||||
}
|
||||
|
||||
public void setParentId(String parentId) {
|
||||
this.parentId = parentId;
|
||||
}
|
||||
|
||||
public String getAncestors() {
|
||||
return ancestors;
|
||||
}
|
||||
|
||||
public void setAncestors(String ancestors) {
|
||||
this.ancestors = ancestors;
|
||||
}
|
||||
|
||||
public String getBuildingType() {
|
||||
return buildingType;
|
||||
}
|
||||
|
||||
public void setBuildingType(String buildingType) {
|
||||
this.buildingType = buildingType;
|
||||
}
|
||||
|
||||
public String getVersion() {
|
||||
return version;
|
||||
}
|
||||
|
||||
public void setVersion(String version) {
|
||||
this.version = version;
|
||||
}
|
||||
|
||||
public String getDelFlag() {
|
||||
return delFlag;
|
||||
}
|
||||
|
||||
public void setDelFlag(String delFlag) {
|
||||
this.delFlag = delFlag;
|
||||
}
|
||||
|
||||
public String getDeptId() {
|
||||
return deptId;
|
||||
}
|
||||
|
||||
public void setDeptId(String deptId) {
|
||||
this.deptId = deptId;
|
||||
}
|
||||
|
||||
public int getOrderNum() {
|
||||
return orderNum;
|
||||
}
|
||||
|
||||
public void setOrderNum(int orderNum) {
|
||||
this.orderNum = orderNum;
|
||||
}
|
||||
|
||||
public String getDrawingType() {
|
||||
return drawingType;
|
||||
}
|
||||
|
||||
public void setDrawingType(String drawingType) {
|
||||
this.drawingType = drawingType;
|
||||
}
|
||||
|
||||
public String getParentName() {
|
||||
return parentName;
|
||||
}
|
||||
|
||||
public void setParentName(String parentName) {
|
||||
this.parentName = parentName;
|
||||
}
|
||||
|
||||
public String getAncestorsName() {
|
||||
return ancestorsName;
|
||||
}
|
||||
|
||||
public void setAncestorsName(String ancestorsName) {
|
||||
this.ancestorsName = ancestorsName;
|
||||
}
|
||||
|
||||
public Integer getBimFlagSub() {
|
||||
return bimFlagSub;
|
||||
}
|
||||
|
||||
public void setBimFlagSub(Integer bimFlagSub) {
|
||||
this.bimFlagSub = bimFlagSub;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
package com.intc.api.basics.domain;
|
||||
|
||||
/**
|
||||
* @ClassName BuildingVolumeLengthByType
|
||||
* @Author YaphetS
|
||||
* @Date 2023/4/10 16:43
|
||||
* @Version 1.0
|
||||
* @Description TODO
|
||||
*/
|
||||
|
||||
public class BuildingVolumeLengthByType {
|
||||
private String type;
|
||||
private String length;
|
||||
|
||||
public String getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(String type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public String getLength() {
|
||||
return length;
|
||||
}
|
||||
|
||||
public void setLength(String length) {
|
||||
this.length = length;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,354 @@
|
||||
package com.intc.api.basics.domain;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.intc.common.core.annotation.Excel;
|
||||
import com.intc.common.core.web.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 设备基础信息对象 b_device_info
|
||||
*
|
||||
* @author tianyongbao
|
||||
* @date 2023-03-10
|
||||
*/
|
||||
public class DeviceInfoApi extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键ID */
|
||||
private String id;
|
||||
|
||||
/** 设备名称 */
|
||||
|
||||
@ApiModelProperty(value="设备名称)")
|
||||
@NotNull(message="设备名称不能为空")
|
||||
@Excel(sort=1,name = "设备名称")
|
||||
private String deviceName;
|
||||
|
||||
/** 设备编号 */
|
||||
|
||||
@ApiModelProperty(value="设备编号")
|
||||
@NotNull(message="设备编号不能为空")
|
||||
@Excel(sort=2,name = "设备编号")
|
||||
private String deviceCode;
|
||||
|
||||
/** 设备类型 */
|
||||
|
||||
@ApiModelProperty(value="设备类型)")
|
||||
@NotNull(message="设备类型不能为空")
|
||||
private Long deviceTypeId;
|
||||
|
||||
/** 厂商 */
|
||||
|
||||
@ApiModelProperty(value="厂商")
|
||||
private Long manufactorId;
|
||||
|
||||
/** 设备型号 */
|
||||
|
||||
@ApiModelProperty(value="设备型号")
|
||||
@Excel(sort=4,name = "设备型号")
|
||||
private String deviceModel;
|
||||
|
||||
/** 所在位置 */
|
||||
|
||||
@ApiModelProperty(value="所在位置)")
|
||||
@NotNull(message="所在位置不能为空")
|
||||
private String buildingId;
|
||||
|
||||
/** 位置类型 */
|
||||
private String buildingType;
|
||||
|
||||
@ApiModelProperty(value="位置)")
|
||||
private String position;
|
||||
|
||||
/** 设备状态 */
|
||||
|
||||
@ApiModelProperty(value="设备投用状态)")
|
||||
@NotNull(message="设备投用状态不能为空")
|
||||
private String state;
|
||||
|
||||
/** 投用时间 */
|
||||
|
||||
@ApiModelProperty(value="投用时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
// @Excel(sort=8,name = "投用时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date putIntoUseTime;
|
||||
|
||||
@ApiModelProperty(value="出厂编号")
|
||||
private String factoryNo;
|
||||
|
||||
@ApiModelProperty(value="出厂日期")
|
||||
private Date exFactoryDate;
|
||||
|
||||
@ApiModelProperty(value="采购时间")
|
||||
private Date purchaseTime;
|
||||
|
||||
@ApiModelProperty(value="采购人")
|
||||
private String purchaser;
|
||||
|
||||
@ApiModelProperty(value="构件ID")
|
||||
private String comId;
|
||||
|
||||
@ApiModelProperty(value="经纬度")
|
||||
private String lonLat;
|
||||
|
||||
@ApiModelProperty(value="文件地址")
|
||||
private String fileUrl;
|
||||
|
||||
@ApiModelProperty(value="构件UUID")
|
||||
private String comUuid;
|
||||
|
||||
/** 删除标志(0代表存在 1代表删除 )*/
|
||||
private String delFlag;
|
||||
|
||||
@ApiModelProperty(value="所属项目")
|
||||
private String projectId;
|
||||
|
||||
@ApiModelProperty(value="生命周期ID")
|
||||
private String lifeCycleId;
|
||||
|
||||
@ApiModelProperty(value="运行状态")
|
||||
private String runningState;
|
||||
|
||||
public void setId(String id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setDeviceName(String deviceName)
|
||||
{
|
||||
this.deviceName = deviceName;
|
||||
}
|
||||
|
||||
public String getDeviceName()
|
||||
{
|
||||
return deviceName;
|
||||
}
|
||||
public void setDeviceCode(String deviceCode)
|
||||
{
|
||||
this.deviceCode = deviceCode;
|
||||
}
|
||||
|
||||
public String getDeviceCode()
|
||||
{
|
||||
return deviceCode;
|
||||
}
|
||||
public void setDeviceTypeId(Long deviceTypeId)
|
||||
{
|
||||
this.deviceTypeId = deviceTypeId;
|
||||
}
|
||||
|
||||
public Long getDeviceTypeId()
|
||||
{
|
||||
return deviceTypeId;
|
||||
}
|
||||
public void setManufactorId(Long manufactorId)
|
||||
{
|
||||
this.manufactorId = manufactorId;
|
||||
}
|
||||
|
||||
public Long getManufactorId()
|
||||
{
|
||||
return manufactorId;
|
||||
}
|
||||
public void setDeviceModel(String deviceModel)
|
||||
{
|
||||
this.deviceModel = deviceModel;
|
||||
}
|
||||
|
||||
public String getDeviceModel()
|
||||
{
|
||||
return deviceModel;
|
||||
}
|
||||
public void setBuildingId(String buildingId)
|
||||
{
|
||||
this.buildingId = buildingId;
|
||||
}
|
||||
|
||||
public String getBuildingId()
|
||||
{
|
||||
return buildingId;
|
||||
}
|
||||
public void setBuildingType(String buildingType)
|
||||
{
|
||||
this.buildingType = buildingType;
|
||||
}
|
||||
|
||||
public String getBuildingType()
|
||||
{
|
||||
return buildingType;
|
||||
}
|
||||
public void setState(String state)
|
||||
{
|
||||
this.state = state;
|
||||
}
|
||||
|
||||
public String getState()
|
||||
{
|
||||
return state;
|
||||
}
|
||||
public void setPutIntoUseTime(Date putIntoUseTime)
|
||||
{
|
||||
this.putIntoUseTime = putIntoUseTime;
|
||||
}
|
||||
|
||||
public Date getPutIntoUseTime()
|
||||
{
|
||||
return putIntoUseTime;
|
||||
}
|
||||
public void setFactoryNo(String factoryNo)
|
||||
{
|
||||
this.factoryNo = factoryNo;
|
||||
}
|
||||
|
||||
public String getFactoryNo()
|
||||
{
|
||||
return factoryNo;
|
||||
}
|
||||
public void setExFactoryDate(Date exFactoryDate)
|
||||
{
|
||||
this.exFactoryDate = exFactoryDate;
|
||||
}
|
||||
|
||||
public Date getExFactoryDate()
|
||||
{
|
||||
return exFactoryDate;
|
||||
}
|
||||
public void setPurchaseTime(Date purchaseTime)
|
||||
{
|
||||
this.purchaseTime = purchaseTime;
|
||||
}
|
||||
|
||||
public Date getPurchaseTime()
|
||||
{
|
||||
return purchaseTime;
|
||||
}
|
||||
public void setPurchaser(String purchaser)
|
||||
{
|
||||
this.purchaser = purchaser;
|
||||
}
|
||||
|
||||
public String getPurchaser()
|
||||
{
|
||||
return purchaser;
|
||||
}
|
||||
public void setComId(String comId)
|
||||
{
|
||||
this.comId = comId;
|
||||
}
|
||||
|
||||
public String getComId()
|
||||
{
|
||||
return comId;
|
||||
}
|
||||
|
||||
public String getLonLat() {
|
||||
return lonLat;
|
||||
}
|
||||
|
||||
public void setLonLat(String lonLat) {
|
||||
this.lonLat = lonLat;
|
||||
}
|
||||
|
||||
public String getFileUrl() {
|
||||
return fileUrl;
|
||||
}
|
||||
|
||||
public void setFileUrl(String fileUrl) {
|
||||
this.fileUrl = fileUrl;
|
||||
}
|
||||
|
||||
public void setComUuid(String comUuid)
|
||||
{
|
||||
this.comUuid = comUuid;
|
||||
}
|
||||
|
||||
public String getComUuid()
|
||||
{
|
||||
return comUuid;
|
||||
}
|
||||
public void setDelFlag(String delFlag)
|
||||
{
|
||||
this.delFlag = delFlag;
|
||||
}
|
||||
|
||||
public String getDelFlag()
|
||||
{
|
||||
return delFlag;
|
||||
}
|
||||
public void setProjectId(String projectId)
|
||||
{
|
||||
this.projectId = projectId;
|
||||
}
|
||||
|
||||
public String getProjectId()
|
||||
{
|
||||
return projectId;
|
||||
}
|
||||
public void setLifeCycleId(String lifeCycleId)
|
||||
{
|
||||
this.lifeCycleId = lifeCycleId;
|
||||
}
|
||||
|
||||
public String getLifeCycleId()
|
||||
{
|
||||
return lifeCycleId;
|
||||
}
|
||||
|
||||
public String getPosition() {
|
||||
return position;
|
||||
}
|
||||
|
||||
public void setPosition(String position) {
|
||||
this.position = position;
|
||||
}
|
||||
|
||||
public String getRunningState() {
|
||||
return runningState;
|
||||
}
|
||||
|
||||
public void setRunningState(String runningState) {
|
||||
this.runningState = runningState;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("deviceName", getDeviceName())
|
||||
.append("deviceCode", getDeviceCode())
|
||||
.append("deviceTypeId", getDeviceTypeId())
|
||||
.append("manufactorId", getManufactorId())
|
||||
.append("deviceModel", getDeviceModel())
|
||||
.append("buildingId", getBuildingId())
|
||||
.append("buildingType", getBuildingType())
|
||||
.append("state", getState())
|
||||
.append("putIntoUseTime", getPutIntoUseTime())
|
||||
.append("factoryNo", getFactoryNo())
|
||||
.append("exFactoryDate", getExFactoryDate())
|
||||
.append("purchaseTime", getPurchaseTime())
|
||||
.append("purchaser", getPurchaser())
|
||||
.append("comId", getComId())
|
||||
.append("longitude", getLonLat())
|
||||
.append("latitude", getFileUrl())
|
||||
.append("comUuid", getComUuid())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("delFlag", getDelFlag())
|
||||
.append("remark", getRemark())
|
||||
.append("projectId", getProjectId())
|
||||
.append("lifeCycleId", getLifeCycleId())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
package com.intc.api.basics.domain;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class DeviceInfoApiDto implements Serializable
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 设备类型 */
|
||||
@ApiModelProperty(value="设备类型")
|
||||
private Long deviceTypeId;
|
||||
|
||||
/** 所在位置 */
|
||||
@ApiModelProperty(value="所在位置")
|
||||
private String buildingId;
|
||||
|
||||
public Long getDeviceTypeId() {
|
||||
return deviceTypeId;
|
||||
}
|
||||
|
||||
public void setDeviceTypeId(Long deviceTypeId) {
|
||||
this.deviceTypeId = deviceTypeId;
|
||||
}
|
||||
|
||||
public String getBuildingId() {
|
||||
return buildingId;
|
||||
}
|
||||
|
||||
public void setBuildingId(String buildingId) {
|
||||
this.buildingId = buildingId;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,370 @@
|
||||
package com.intc.api.basics.domain;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.intc.common.core.annotation.Excel;
|
||||
import com.intc.common.core.web.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
public class DeviceInfoApiVo extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键ID */
|
||||
private String id;
|
||||
|
||||
/** 设备名称 */
|
||||
|
||||
@ApiModelProperty(value="设备名称")
|
||||
private String deviceName;
|
||||
|
||||
/** 设备编号 */
|
||||
|
||||
@ApiModelProperty(value="设备编号")
|
||||
private String deviceCode;
|
||||
|
||||
/** 设备类型 */
|
||||
|
||||
@ApiModelProperty(value="设备类型)")
|
||||
private Long deviceTypeId;
|
||||
|
||||
/** 厂商 */
|
||||
|
||||
@ApiModelProperty(value="厂商")
|
||||
private Long manufactorId;
|
||||
|
||||
/** 设备型号 */
|
||||
|
||||
@ApiModelProperty(value="设备型号")
|
||||
private String deviceModel;
|
||||
|
||||
/** 所在位置 */
|
||||
|
||||
@ApiModelProperty(value="所在位置)")
|
||||
private String buildingId;
|
||||
|
||||
/** 位置类型 */
|
||||
private String buildingType;
|
||||
|
||||
@ApiModelProperty(value="位置)")
|
||||
private String position;
|
||||
|
||||
/** 设备状态 */
|
||||
|
||||
@ApiModelProperty(value="设备投用状态)")
|
||||
private String state;
|
||||
|
||||
/** 投用时间 */
|
||||
|
||||
@ApiModelProperty(value="投用时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
// @Excel(sort=8,name = "投用时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date putIntoUseTime;
|
||||
|
||||
@ApiModelProperty(value="出厂编号")
|
||||
private String factoryNo;
|
||||
|
||||
@ApiModelProperty(value="出厂日期")
|
||||
private Date exFactoryDate;
|
||||
|
||||
@ApiModelProperty(value="采购时间")
|
||||
private Date purchaseTime;
|
||||
|
||||
@ApiModelProperty(value="采购人")
|
||||
private String purchaser;
|
||||
|
||||
@ApiModelProperty(value="构件ID")
|
||||
private String comId;
|
||||
|
||||
@ApiModelProperty(value="经纬度")
|
||||
private String lonLat;
|
||||
|
||||
@ApiModelProperty(value="文件地址")
|
||||
private String fileUrl;
|
||||
|
||||
@ApiModelProperty(value="构件UUID")
|
||||
private String comUuid;
|
||||
|
||||
/** 删除标志(0代表存在 1代表删除 )*/
|
||||
private String delFlag;
|
||||
|
||||
@ApiModelProperty(value="所属项目")
|
||||
private String projectId;
|
||||
|
||||
@ApiModelProperty(value="生命周期ID")
|
||||
private String lifeCycleId;
|
||||
|
||||
@ApiModelProperty(value="运行状态")
|
||||
private String runningState;
|
||||
@Excel(sort=3,name = "设备类型")
|
||||
private String deviceTypeName;
|
||||
|
||||
@Excel(sort=5,name = "设备厂家")
|
||||
private String manufactorName;
|
||||
|
||||
@Excel(sort=7,name = "安装区域")
|
||||
private String buildingName;
|
||||
public void setId(String id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setDeviceName(String deviceName)
|
||||
{
|
||||
this.deviceName = deviceName;
|
||||
}
|
||||
|
||||
public String getDeviceName()
|
||||
{
|
||||
return deviceName;
|
||||
}
|
||||
public void setDeviceCode(String deviceCode)
|
||||
{
|
||||
this.deviceCode = deviceCode;
|
||||
}
|
||||
|
||||
public String getDeviceCode()
|
||||
{
|
||||
return deviceCode;
|
||||
}
|
||||
public void setDeviceTypeId(Long deviceTypeId)
|
||||
{
|
||||
this.deviceTypeId = deviceTypeId;
|
||||
}
|
||||
|
||||
public Long getDeviceTypeId()
|
||||
{
|
||||
return deviceTypeId;
|
||||
}
|
||||
public void setManufactorId(Long manufactorId)
|
||||
{
|
||||
this.manufactorId = manufactorId;
|
||||
}
|
||||
|
||||
public Long getManufactorId()
|
||||
{
|
||||
return manufactorId;
|
||||
}
|
||||
public void setDeviceModel(String deviceModel)
|
||||
{
|
||||
this.deviceModel = deviceModel;
|
||||
}
|
||||
|
||||
public String getDeviceModel()
|
||||
{
|
||||
return deviceModel;
|
||||
}
|
||||
public void setBuildingId(String buildingId)
|
||||
{
|
||||
this.buildingId = buildingId;
|
||||
}
|
||||
|
||||
public String getBuildingId()
|
||||
{
|
||||
return buildingId;
|
||||
}
|
||||
public void setBuildingType(String buildingType)
|
||||
{
|
||||
this.buildingType = buildingType;
|
||||
}
|
||||
|
||||
public String getBuildingType()
|
||||
{
|
||||
return buildingType;
|
||||
}
|
||||
public void setState(String state)
|
||||
{
|
||||
this.state = state;
|
||||
}
|
||||
|
||||
public String getState()
|
||||
{
|
||||
return state;
|
||||
}
|
||||
public void setPutIntoUseTime(Date putIntoUseTime)
|
||||
{
|
||||
this.putIntoUseTime = putIntoUseTime;
|
||||
}
|
||||
|
||||
public Date getPutIntoUseTime()
|
||||
{
|
||||
return putIntoUseTime;
|
||||
}
|
||||
public void setFactoryNo(String factoryNo)
|
||||
{
|
||||
this.factoryNo = factoryNo;
|
||||
}
|
||||
|
||||
public String getFactoryNo()
|
||||
{
|
||||
return factoryNo;
|
||||
}
|
||||
public void setExFactoryDate(Date exFactoryDate)
|
||||
{
|
||||
this.exFactoryDate = exFactoryDate;
|
||||
}
|
||||
|
||||
public Date getExFactoryDate()
|
||||
{
|
||||
return exFactoryDate;
|
||||
}
|
||||
public void setPurchaseTime(Date purchaseTime)
|
||||
{
|
||||
this.purchaseTime = purchaseTime;
|
||||
}
|
||||
|
||||
public Date getPurchaseTime()
|
||||
{
|
||||
return purchaseTime;
|
||||
}
|
||||
public void setPurchaser(String purchaser)
|
||||
{
|
||||
this.purchaser = purchaser;
|
||||
}
|
||||
|
||||
public String getPurchaser()
|
||||
{
|
||||
return purchaser;
|
||||
}
|
||||
public void setComId(String comId)
|
||||
{
|
||||
this.comId = comId;
|
||||
}
|
||||
|
||||
public String getComId()
|
||||
{
|
||||
return comId;
|
||||
}
|
||||
|
||||
public String getLonLat() {
|
||||
return lonLat;
|
||||
}
|
||||
|
||||
public void setLonLat(String lonLat) {
|
||||
this.lonLat = lonLat;
|
||||
}
|
||||
|
||||
public String getFileUrl() {
|
||||
return fileUrl;
|
||||
}
|
||||
|
||||
public void setFileUrl(String fileUrl) {
|
||||
this.fileUrl = fileUrl;
|
||||
}
|
||||
|
||||
public void setComUuid(String comUuid)
|
||||
{
|
||||
this.comUuid = comUuid;
|
||||
}
|
||||
|
||||
public String getComUuid()
|
||||
{
|
||||
return comUuid;
|
||||
}
|
||||
public void setDelFlag(String delFlag)
|
||||
{
|
||||
this.delFlag = delFlag;
|
||||
}
|
||||
|
||||
public String getDelFlag()
|
||||
{
|
||||
return delFlag;
|
||||
}
|
||||
public void setProjectId(String projectId)
|
||||
{
|
||||
this.projectId = projectId;
|
||||
}
|
||||
|
||||
public String getProjectId()
|
||||
{
|
||||
return projectId;
|
||||
}
|
||||
public void setLifeCycleId(String lifeCycleId)
|
||||
{
|
||||
this.lifeCycleId = lifeCycleId;
|
||||
}
|
||||
|
||||
public String getLifeCycleId()
|
||||
{
|
||||
return lifeCycleId;
|
||||
}
|
||||
|
||||
public String getPosition() {
|
||||
return position;
|
||||
}
|
||||
|
||||
public void setPosition(String position) {
|
||||
this.position = position;
|
||||
}
|
||||
|
||||
public String getRunningState() {
|
||||
return runningState;
|
||||
}
|
||||
|
||||
public void setRunningState(String runningState) {
|
||||
this.runningState = runningState;
|
||||
}
|
||||
|
||||
public String getDeviceTypeName() {
|
||||
return deviceTypeName;
|
||||
}
|
||||
|
||||
public void setDeviceTypeName(String deviceTypeName) {
|
||||
this.deviceTypeName = deviceTypeName;
|
||||
}
|
||||
|
||||
public String getManufactorName() {
|
||||
return manufactorName;
|
||||
}
|
||||
|
||||
public void setManufactorName(String manufactorName) {
|
||||
this.manufactorName = manufactorName;
|
||||
}
|
||||
|
||||
public String getBuildingName() {
|
||||
return buildingName;
|
||||
}
|
||||
|
||||
public void setBuildingName(String buildingName) {
|
||||
this.buildingName = buildingName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("deviceName", getDeviceName())
|
||||
.append("deviceCode", getDeviceCode())
|
||||
.append("deviceTypeId", getDeviceTypeId())
|
||||
.append("manufactorId", getManufactorId())
|
||||
.append("deviceModel", getDeviceModel())
|
||||
.append("buildingId", getBuildingId())
|
||||
.append("buildingType", getBuildingType())
|
||||
.append("state", getState())
|
||||
.append("putIntoUseTime", getPutIntoUseTime())
|
||||
.append("factoryNo", getFactoryNo())
|
||||
.append("exFactoryDate", getExFactoryDate())
|
||||
.append("purchaseTime", getPurchaseTime())
|
||||
.append("purchaser", getPurchaser())
|
||||
.append("comId", getComId())
|
||||
.append("longitude", getLonLat())
|
||||
.append("latitude", getFileUrl())
|
||||
.append("comUuid", getComUuid())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("delFlag", getDelFlag())
|
||||
.append("remark", getRemark())
|
||||
.append("projectId", getProjectId())
|
||||
.append("lifeCycleId", getLifeCycleId())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,130 @@
|
||||
package com.intc.api.basics.domain;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
public class TagBasicInfoApiDto implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 测点名称 */
|
||||
@ApiModelProperty(value="测点名称")
|
||||
private String tagName;
|
||||
|
||||
@ApiModelProperty(value="测点标识")
|
||||
private String tagLongName;
|
||||
/** 测点类型 */
|
||||
@ApiModelProperty(value="测点类型")
|
||||
private String tagTypeId;
|
||||
|
||||
/** 设备名称 */
|
||||
@ApiModelProperty(value="设备ID")
|
||||
private String deviceId;
|
||||
|
||||
|
||||
/** 设备名称 */
|
||||
@ApiModelProperty(value="设备名称")
|
||||
private String deviceName;
|
||||
|
||||
/** 控制类型 */
|
||||
@ApiModelProperty(value="控制类型")
|
||||
private String controlType;
|
||||
@ApiModelProperty("是否展示点")
|
||||
private String isShow;
|
||||
@ApiModelProperty("数值类型")
|
||||
private String valueType;
|
||||
@ApiModelProperty(value="报警类型")
|
||||
private String alarmType;
|
||||
private List<String> alarmTypes;
|
||||
|
||||
public List<String> getAlarmTypes() {
|
||||
return alarmTypes;
|
||||
}
|
||||
|
||||
public void setAlarmTypes(List<String> alarmTypes) {
|
||||
this.alarmTypes = alarmTypes;
|
||||
}
|
||||
|
||||
public String getAlarmType() {
|
||||
return alarmType;
|
||||
}
|
||||
|
||||
public void setAlarmType(String alarmType) {
|
||||
this.alarmType = alarmType;
|
||||
}
|
||||
|
||||
public void setTagName(String tagName)
|
||||
{
|
||||
this.tagName = tagName;
|
||||
}
|
||||
|
||||
public String getTagName()
|
||||
{
|
||||
return tagName;
|
||||
}
|
||||
|
||||
public String getTagLongName() {
|
||||
return tagLongName;
|
||||
}
|
||||
|
||||
public void setTagLongName(String tagLongName) {
|
||||
this.tagLongName = tagLongName;
|
||||
}
|
||||
|
||||
public void setTagTypeId(String tagTypeId)
|
||||
{
|
||||
this.tagTypeId = tagTypeId;
|
||||
}
|
||||
|
||||
public String getTagTypeId()
|
||||
{
|
||||
return tagTypeId;
|
||||
}
|
||||
|
||||
public void setDeviceId(String deviceId)
|
||||
{
|
||||
this.deviceId = deviceId;
|
||||
}
|
||||
|
||||
public String getDeviceId()
|
||||
{
|
||||
return deviceId;
|
||||
}
|
||||
|
||||
public void setDeviceName(String deviceName)
|
||||
{
|
||||
this.deviceName = deviceName;
|
||||
}
|
||||
|
||||
public String getDeviceName()
|
||||
{
|
||||
return deviceName;
|
||||
}
|
||||
|
||||
public void setControlType(String controlType)
|
||||
{
|
||||
this.controlType = controlType;
|
||||
}
|
||||
|
||||
public String getControlType()
|
||||
{
|
||||
return controlType;
|
||||
}
|
||||
|
||||
public String getIsShow() {
|
||||
return isShow;
|
||||
}
|
||||
|
||||
public void setIsShow(String isShow) {
|
||||
this.isShow = isShow;
|
||||
}
|
||||
|
||||
public String getValueType() {
|
||||
return valueType;
|
||||
}
|
||||
|
||||
public void setValueType(String valueType) {
|
||||
this.valueType = valueType;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,268 @@
|
||||
package com.intc.api.basics.domain;
|
||||
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||
import com.intc.common.core.web.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
;
|
||||
|
||||
/**
|
||||
* 测点信息Vo对象 b_tag_info
|
||||
*
|
||||
* @author tianyongbao
|
||||
* @date 2023-03-09
|
||||
*/
|
||||
public class TagBasicInfoApiVo extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键ID */
|
||||
@JsonSerialize(using = ToStringSerializer.class)
|
||||
private Long id;
|
||||
|
||||
/** 测点名称 */
|
||||
|
||||
@ApiModelProperty(value="测点名称")
|
||||
// @NotNull(message="测点名称不能为空")
|
||||
//@Excel(sort=1,name = "测点名称")
|
||||
private String tagName;
|
||||
|
||||
/** 测点长名 */
|
||||
|
||||
@ApiModelProperty(value="测点标识")
|
||||
// @NotNull(message="测点长名不能为空")
|
||||
//@Excel(sort=2,name = "测点标识")
|
||||
private String tagLongName;
|
||||
|
||||
/** 测点类型 */
|
||||
|
||||
@ApiModelProperty(value="测点类型ID")
|
||||
private Long tagTypeId;
|
||||
|
||||
/** 设备名称 */
|
||||
|
||||
@ApiModelProperty(value="设备ID")
|
||||
@NotNull(message="设备ID不能为空")
|
||||
private String deviceId;
|
||||
|
||||
/** 所在位置 */
|
||||
|
||||
@ApiModelProperty(value="所在位置")
|
||||
// @NotNull(message="所在位置不能为空")
|
||||
private String buildingId;
|
||||
@ApiModelProperty(value="图标")
|
||||
// @NotNull(message="所在位置不能为空")
|
||||
private String icon;
|
||||
/** 删除标志(0代表存在 1代表删除) */
|
||||
private String delFlag;
|
||||
|
||||
/** 是否展示 */
|
||||
|
||||
@ApiModelProperty(value="是否展示")
|
||||
@NotNull(message="是否展示不能为空")
|
||||
private String isShow;
|
||||
//@Excel(sort=5,name = "点位类型")
|
||||
private String tagTypeName;
|
||||
|
||||
// //@Excel(sort=4,name = "数值类型", handler = DictHandler.class, args = { "tag_value_type" })
|
||||
@ApiModelProperty("测点控制类型")
|
||||
private String tagControlType;
|
||||
@ApiModelProperty("数值类型")
|
||||
private String valueType;
|
||||
|
||||
private String unit;
|
||||
//@Excel(sort=4,name = "安装区域")
|
||||
private String buildingName;
|
||||
|
||||
private String buildingAncestorsName;
|
||||
//@Excel(sort=3,name = "设备名称")
|
||||
private String deviceName;
|
||||
@ApiModelProperty("控制类型")
|
||||
private String controlType;
|
||||
@ApiModelProperty("构件ID")
|
||||
private String comId;
|
||||
@ApiModelProperty("构件uuid")
|
||||
private String comUuid;
|
||||
@ApiModelProperty("设备状态")
|
||||
private String status;
|
||||
|
||||
@ApiModelProperty("测点值")
|
||||
private String value;
|
||||
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getTagName() {
|
||||
return tagName;
|
||||
}
|
||||
|
||||
public void setTagName(String tagName) {
|
||||
this.tagName = tagName;
|
||||
}
|
||||
|
||||
public String getTagLongName() {
|
||||
return tagLongName;
|
||||
}
|
||||
|
||||
public void setTagLongName(String tagLongName) {
|
||||
this.tagLongName = tagLongName;
|
||||
}
|
||||
|
||||
public Long getTagTypeId() {
|
||||
return tagTypeId;
|
||||
}
|
||||
|
||||
public void setTagTypeId(Long tagTypeId) {
|
||||
this.tagTypeId = tagTypeId;
|
||||
}
|
||||
|
||||
public String getDeviceId() {
|
||||
return deviceId;
|
||||
}
|
||||
|
||||
public void setDeviceId(String deviceId) {
|
||||
this.deviceId = deviceId;
|
||||
}
|
||||
|
||||
public String getBuildingId() {
|
||||
return buildingId;
|
||||
}
|
||||
|
||||
public void setBuildingId(String buildingId) {
|
||||
this.buildingId = buildingId;
|
||||
}
|
||||
|
||||
public String getIcon() {
|
||||
return icon;
|
||||
}
|
||||
|
||||
public void setIcon(String icon) {
|
||||
this.icon = icon;
|
||||
}
|
||||
|
||||
public String getDelFlag() {
|
||||
return delFlag;
|
||||
}
|
||||
|
||||
public void setDelFlag(String delFlag) {
|
||||
this.delFlag = delFlag;
|
||||
}
|
||||
|
||||
public String getIsShow() {
|
||||
return isShow;
|
||||
}
|
||||
|
||||
public void setIsShow(String isShow) {
|
||||
this.isShow = isShow;
|
||||
}
|
||||
|
||||
public String getBuildingAncestorsName() {
|
||||
return buildingAncestorsName;
|
||||
}
|
||||
|
||||
public void setBuildingAncestorsName(String buildingAncestorsName) {
|
||||
this.buildingAncestorsName = buildingAncestorsName;
|
||||
}
|
||||
|
||||
public String getControlType() {
|
||||
return controlType;
|
||||
}
|
||||
|
||||
public void setControlType(String controlType) {
|
||||
this.controlType = controlType;
|
||||
}
|
||||
|
||||
public void setTagTypeName(String tagTypeName)
|
||||
{
|
||||
this.tagTypeName = tagTypeName;
|
||||
}
|
||||
|
||||
public String getTagTypeName()
|
||||
{
|
||||
return tagTypeName;
|
||||
}
|
||||
|
||||
public String getUnit() {
|
||||
return unit;
|
||||
}
|
||||
|
||||
public void setUnit(String unit) {
|
||||
this.unit = unit;
|
||||
}
|
||||
|
||||
public String getValueType() {
|
||||
return valueType;
|
||||
}
|
||||
|
||||
public void setValueType(String valueType) {
|
||||
this.valueType = valueType;
|
||||
}
|
||||
|
||||
public void setDeviceName(String deviceName)
|
||||
{
|
||||
this.deviceName = deviceName;
|
||||
}
|
||||
|
||||
public String getDeviceName()
|
||||
{
|
||||
return deviceName;
|
||||
}
|
||||
|
||||
public void setBuildingName(String buildingName)
|
||||
{
|
||||
this.buildingName = buildingName;
|
||||
}
|
||||
|
||||
public String getBuildingName()
|
||||
{
|
||||
return buildingName;
|
||||
}
|
||||
|
||||
public String getComId() {
|
||||
return comId;
|
||||
}
|
||||
|
||||
public void setComId(String comId) {
|
||||
this.comId = comId;
|
||||
}
|
||||
|
||||
public String getComUuid() {
|
||||
return comUuid;
|
||||
}
|
||||
|
||||
public void setComUuid(String comUuid) {
|
||||
this.comUuid = comUuid;
|
||||
}
|
||||
|
||||
public String getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(String status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public void setValue(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public String getTagControlType() {
|
||||
return tagControlType;
|
||||
}
|
||||
|
||||
public void setTagControlType(String tagControlType) {
|
||||
this.tagControlType = tagControlType;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,82 @@
|
||||
package com.intc.api.basics.domain.dto;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 报警信息Dto对象 b_alarm_info
|
||||
*
|
||||
* @author cwl
|
||||
* @date 2023-11-29
|
||||
*/
|
||||
@ApiModel("报警信息Dto对象")
|
||||
@Data
|
||||
public class AlarmInfoApiDto implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 报警位置ID */
|
||||
@ApiModelProperty(value="报警位置ID")
|
||||
private String buildingId;
|
||||
@ApiModelProperty("数据下穿标识(0:不包含下级区域数据;1:包含下级区域数据)")
|
||||
private Integer subDataFlag=0;
|
||||
/** 设备类型ID */
|
||||
@ApiModelProperty(value="设备类型ID")
|
||||
private String deviceTypeId;
|
||||
|
||||
/** 报警级别 */
|
||||
@ApiModelProperty(value="报警级别")
|
||||
private String alarmLevel;
|
||||
|
||||
/** 报警类型 */
|
||||
@ApiModelProperty(value="报警类型")
|
||||
private String alarmType;
|
||||
|
||||
/** 报警开始时间 */
|
||||
@ApiModelProperty(value="报警开始时间-查询开始")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date alarmStartTimeBegin;
|
||||
|
||||
@ApiModelProperty(value="报警开始时间-查询结束")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date alarmStartTimeEnd;
|
||||
|
||||
// /** 报警结束时间 */
|
||||
// @ApiModelProperty(value="报警结束时间")
|
||||
// @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
// private Date alarmEndTime;
|
||||
|
||||
/** 测点id */
|
||||
@ApiModelProperty(value="测点id")
|
||||
private String tagId;
|
||||
|
||||
// /** 设备ID */
|
||||
// @ApiModelProperty(value="设备ID")
|
||||
// private String deviceId;
|
||||
|
||||
/** 设备名称 */
|
||||
@ApiModelProperty(value="设备名称")
|
||||
private String deviceName;
|
||||
|
||||
/** 报警来源 */
|
||||
@ApiModelProperty(value="报警来源")
|
||||
private String alarmSource;
|
||||
|
||||
/** 报警状态 */
|
||||
@ApiModelProperty(value="报警状态")
|
||||
private String state;
|
||||
|
||||
/** 报警状态 */
|
||||
@ApiModelProperty(value="报警状态数组")
|
||||
private String[] stateArray;
|
||||
|
||||
/** 是否生成维修工单标志(0否 1是) */
|
||||
@ApiModelProperty(value="是否生成维修工单标志(0否 1是)")
|
||||
private String repairFlag;
|
||||
@ApiModelProperty(value="排序标识(1:优先级排序)")
|
||||
private Integer orderFlag;
|
||||
}
|
||||
@@ -0,0 +1,67 @@
|
||||
package com.intc.api.basics.domain.dto;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 安装区域信息Dto对象 b_building
|
||||
*
|
||||
* @author YaphetS
|
||||
* @date 2023-03-13
|
||||
*/
|
||||
@ApiModel("安装区域信息Dto对象")
|
||||
@Data
|
||||
public class BuildingApiDto implements Serializable
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 编号(唯一) */
|
||||
@ApiModelProperty(value="编号(唯一)")
|
||||
private String buildingCode;
|
||||
|
||||
/** 名称 */
|
||||
@ApiModelProperty(value="名称")
|
||||
private String buildingName;
|
||||
|
||||
@ApiModelProperty(value="父ID")
|
||||
private String parentId;
|
||||
|
||||
/** 经纬度 */
|
||||
@ApiModelProperty(value="经纬度")
|
||||
private String lonLat;
|
||||
|
||||
/** 长度 */
|
||||
@ApiModelProperty(value="长度")
|
||||
private String length;
|
||||
|
||||
/** $column.columnComment */
|
||||
@ApiModelProperty(value="bimId")
|
||||
private String bimId;
|
||||
|
||||
/** 状态 */
|
||||
@ApiModelProperty(value="状态")
|
||||
private String state;
|
||||
|
||||
|
||||
|
||||
/** 类型 */
|
||||
@ApiModelProperty(value="类型")
|
||||
private String buildingType;
|
||||
|
||||
/** 版本号 */
|
||||
@ApiModelProperty(value="版本号")
|
||||
private String version;
|
||||
|
||||
/** 所属部门ID */
|
||||
@ApiModelProperty(value="所属部门ID")
|
||||
private String deptId;
|
||||
|
||||
/** 创建人名称 */
|
||||
@ApiModelProperty(value="创建人名称")
|
||||
private String createName;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package com.intc.api.basics.domain.vo;
|
||||
|
||||
import com.intc.api.basics.domain.AlarmInfoApi;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
/**
|
||||
* @author wangjun
|
||||
* @date 2024-01-02
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@ApiOperation("报警信息对象Vo")
|
||||
public class AlarmInfoApiVo extends AlarmInfoApi {
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
package com.intc.api.basics.domain.vo;
|
||||
|
||||
import com.intc.api.basics.domain.BuildingApi;
|
||||
import com.intc.common.core.annotation.Excel;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 安装区域信息Vo对象 b_building
|
||||
*
|
||||
* @author YaphetS
|
||||
* @date 2023-03-13
|
||||
*/
|
||||
@ApiModel("安装区域信息Vo对象")
|
||||
@Data
|
||||
public class BuildingApiVo extends BuildingApi
|
||||
{
|
||||
/** 子部门 */
|
||||
private List<BuildingApiVo> children = new ArrayList<BuildingApiVo>();
|
||||
|
||||
|
||||
@ApiModelProperty("上级名称")
|
||||
@Excel(name = "父级名称",sort = 3)
|
||||
private String parentName;
|
||||
|
||||
@ApiModelProperty("祖籍名称")
|
||||
private String ancestorsName;
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
package com.intc.api.basics.factory;
|
||||
|
||||
import com.intc.api.basics.RemoteAlarmService;
|
||||
import com.intc.api.basics.domain.dto.AlarmInfoApiDto;
|
||||
import com.intc.api.basics.domain.vo.AlarmInfoApiVo;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.cloud.openfeign.FallbackFactory;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 基础服务降级处理
|
||||
*/
|
||||
@Component
|
||||
public class RemoteAlarmFallbackFactory implements FallbackFactory<RemoteAlarmService> {
|
||||
private static final Logger log = LoggerFactory.getLogger(RemoteAlarmFallbackFactory.class);
|
||||
|
||||
@Override
|
||||
public RemoteAlarmService create(Throwable throwable) {
|
||||
log.error("基础服务调用失败:{}", throwable.getMessage());
|
||||
return new RemoteAlarmService(){
|
||||
@Override
|
||||
public List<AlarmInfoApiVo> listAll(AlarmInfoApiDto alarmInfoApiDto){ return new ArrayList<>();}
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,50 @@
|
||||
package com.intc.api.basics.factory;
|
||||
|
||||
import com.intc.api.basics.RemoteBuildingService;
|
||||
import com.intc.api.basics.domain.*;
|
||||
import com.intc.api.basics.domain.dto.BuildingApiDto;
|
||||
import com.intc.api.basics.domain.vo.BuildingApiVo;
|
||||
import com.intc.common.core.domain.R;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.cloud.openfeign.FallbackFactory;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 用户服务降级处理
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
@Component
|
||||
public class RemoteBuildingFallbackFactory implements FallbackFactory<RemoteBuildingService> {
|
||||
private static final Logger log = LoggerFactory.getLogger(RemoteBuildingFallbackFactory.class);
|
||||
|
||||
@Override
|
||||
public RemoteBuildingService create(Throwable throwable) {
|
||||
log.error("基础服务调用失败:{}", throwable.getMessage());
|
||||
return new RemoteBuildingService() {
|
||||
@Override
|
||||
public R<List<BuildingVolumeLengthByType>> selectBuildingPipeLineType() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public R<List<BuildingInfoApiVo>> allList(BuildingInfoApiDto buildingInfoApiDto) {
|
||||
return null;
|
||||
}
|
||||
@Override
|
||||
public List<BuildingApiVo> getBuildingVoList(@RequestBody BuildingApiDto dto){
|
||||
//test
|
||||
return null;
|
||||
}
|
||||
@Override
|
||||
public List<DeviceInfoApiVo> getDeviceInfoVoList(@RequestBody DeviceInfoApiDto dto){
|
||||
//test
|
||||
return null;
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
package com.intc.api.basics.factory;
|
||||
|
||||
import com.intc.api.basics.RemoteDeviceService;
|
||||
import com.intc.api.basics.domain.DeviceInfoApiDto;
|
||||
import com.intc.api.basics.domain.DeviceInfoApiVo;
|
||||
import com.intc.api.basics.domain.TagBasicInfoApiDto;
|
||||
import com.intc.api.basics.domain.TagBasicInfoApiVo;
|
||||
import com.intc.common.core.domain.R;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.cloud.openfeign.FallbackFactory;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 用户服务降级处理
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
@Component
|
||||
public class RemoteDeviceFallbackFactory implements FallbackFactory<RemoteDeviceService>
|
||||
{
|
||||
private static final Logger log = LoggerFactory.getLogger(RemoteDeviceFallbackFactory.class);
|
||||
|
||||
@Override
|
||||
public RemoteDeviceService create(Throwable throwable)
|
||||
{
|
||||
log.error("基础服务调用失败:{}", throwable.getMessage());
|
||||
return new RemoteDeviceService()
|
||||
{
|
||||
@Override
|
||||
public List<DeviceInfoApiVo> listAll(DeviceInfoApiDto deviceInfoApiDto) {
|
||||
return new ArrayList<>();
|
||||
}
|
||||
|
||||
@Override
|
||||
public R<List<TagBasicInfoApiVo>> tagListAll(TagBasicInfoApiDto tagBasicInfoApiDto) {
|
||||
return R.fail(new ArrayList<>());
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
com.intc.api.basics.factory.RemoteBuildingFallbackFactory
|
||||
Reference in New Issue
Block a user