java 实体类型long改int
Some checks are pending
Gitea Actions Demo / Explore-Gitea-Actions (push) Waiting to run
Some checks are pending
Gitea Actions Demo / Explore-Gitea-Actions (push) Waiting to run
This commit is contained in:
parent
f85f2a75e0
commit
e55ecffb98
22
pom.xml
22
pom.xml
@ -68,6 +68,23 @@
|
||||
</properties>
|
||||
|
||||
<profiles>
|
||||
<profile>
|
||||
<id>localhost</id>
|
||||
<properties>
|
||||
<!-- 环境标识,需要与配置文件的名称相对应 -->
|
||||
<profiles.active>dev</profiles.active>
|
||||
<nacos.server>127.0.0.1:8848</nacos.server>
|
||||
<logstash.address>127.0.0.1:4560</logstash.address>
|
||||
<nacos.discovery.group>DEFAULT_GROUP</nacos.discovery.group>
|
||||
<nacos.config.group>DEFAULT_GROUP</nacos.config.group>
|
||||
<nacos.username>nacos</nacos.username>
|
||||
<nacos.password>nacos</nacos.password>
|
||||
</properties>
|
||||
<activation>
|
||||
<!-- 默认环境 -->
|
||||
<activeByDefault>true</activeByDefault>
|
||||
</activation>
|
||||
</profile>
|
||||
<profile>
|
||||
<id>dev</id>
|
||||
<properties>
|
||||
@ -83,10 +100,7 @@
|
||||
<nacos.password>nacos</nacos.password>
|
||||
<!-- <logstash.address>127.0.0.1:4560</logstash.address>-->
|
||||
</properties>
|
||||
<activation>
|
||||
<!-- 默认环境 -->
|
||||
<activeByDefault>true</activeByDefault>
|
||||
</activation>
|
||||
|
||||
</profile>
|
||||
<profile>
|
||||
<id>prod</id>
|
||||
|
@ -42,15 +42,4 @@ public class TdFactory extends TenantEntity {
|
||||
*/
|
||||
private String remark;
|
||||
|
||||
/**
|
||||
* 数据状态:1有效,0无效
|
||||
*/
|
||||
private Long dataState;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
private String searchValue;
|
||||
|
||||
|
||||
}
|
||||
|
@ -43,16 +43,5 @@ public class TdFactoryBo extends BaseEntity {
|
||||
*/
|
||||
private String remark;
|
||||
|
||||
/**
|
||||
* 数据状态:1有效,0无效
|
||||
*/
|
||||
@NotNull(message = "数据状态:1有效,0无效不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private Long dataState;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
private String searchValue;
|
||||
|
||||
|
||||
}
|
||||
|
@ -52,17 +52,5 @@ public class TdFactoryVo implements Serializable {
|
||||
@ExcelProperty(value = "备注")
|
||||
private String remark;
|
||||
|
||||
/**
|
||||
* 数据状态:1有效,0无效
|
||||
*/
|
||||
@ExcelProperty(value = "数据状态:1有效,0无效")
|
||||
private Long dataState;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
@ExcelProperty(value = "搜索值")
|
||||
private String searchValue;
|
||||
|
||||
|
||||
}
|
||||
|
@ -1,9 +1,10 @@
|
||||
package org.dromara.sis.domain;
|
||||
|
||||
import org.dromara.common.tenant.core.TenantEntity;
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import org.dromara.common.tenant.core.TenantEntity;
|
||||
|
||||
import java.io.Serial;
|
||||
|
||||
@ -55,12 +56,12 @@ public class SisAccessControl extends TenantEntity {
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private Long accessPort;
|
||||
private Integer accessPort;
|
||||
|
||||
/**
|
||||
* 门禁设备类型
|
||||
*/
|
||||
private Long accessType;
|
||||
private Integer accessType;
|
||||
|
||||
/**
|
||||
*
|
||||
@ -70,7 +71,7 @@ public class SisAccessControl extends TenantEntity {
|
||||
/**
|
||||
* 控制卡类型:1-系统,2-E8
|
||||
*/
|
||||
private Long controlType;
|
||||
private Integer controlType;
|
||||
|
||||
/**
|
||||
* 控制卡类型编码
|
||||
@ -82,15 +83,5 @@ public class SisAccessControl extends TenantEntity {
|
||||
*/
|
||||
private String outCode;
|
||||
|
||||
/**
|
||||
* 组织编码
|
||||
*/
|
||||
private String orgCode;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
private String searchValue;
|
||||
|
||||
|
||||
}
|
||||
|
@ -60,7 +60,7 @@ public class SisAccessControlDevice extends TenantEntity {
|
||||
/**
|
||||
* 设备端口
|
||||
*/
|
||||
private Long eqpPort;
|
||||
private Integer eqpPort;
|
||||
|
||||
/**
|
||||
* 设备账号
|
||||
|
@ -1,9 +1,10 @@
|
||||
package org.dromara.sis.domain;
|
||||
|
||||
import org.dromara.common.mybatis.core.domain.BaseEntity;
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import org.dromara.common.mybatis.core.domain.BaseEntity;
|
||||
|
||||
import java.io.Serial;
|
||||
|
||||
@ -55,7 +56,7 @@ public class SisDeviceManage extends BaseEntity {
|
||||
/**
|
||||
* 设备在线状态 0:离线 1:在线 2:未知
|
||||
*/
|
||||
private Long deviceStatus;
|
||||
private Integer deviceStatus;
|
||||
|
||||
/**
|
||||
* 父级设备id
|
||||
@ -70,7 +71,7 @@ public class SisDeviceManage extends BaseEntity {
|
||||
/**
|
||||
* 录像机端口
|
||||
*/
|
||||
private Long vcrPort;
|
||||
private Integer vcrPort;
|
||||
|
||||
/**
|
||||
* 门禁id
|
||||
|
@ -35,12 +35,12 @@ public class SisDevicePoint extends TenantEntity {
|
||||
/**
|
||||
* 视频协议 1:onvif 2:rtsp
|
||||
*/
|
||||
private Long video;
|
||||
private Integer video;
|
||||
|
||||
/**
|
||||
* 传输协议(AIBOX 需要,一体机不需要) 1: tcp 2:udp
|
||||
*/
|
||||
private Long transportType;
|
||||
private Integer transportType;
|
||||
|
||||
/**
|
||||
* 点位名称
|
||||
@ -60,7 +60,7 @@ public class SisDevicePoint extends TenantEntity {
|
||||
/**
|
||||
* 端口
|
||||
*/
|
||||
private Long port;
|
||||
private Integer port;
|
||||
|
||||
/**
|
||||
* 通道相机账号
|
||||
@ -75,7 +75,7 @@ public class SisDevicePoint extends TenantEntity {
|
||||
/**
|
||||
* onvif 设备码流添加方式:1:主码流 2:自定义码流
|
||||
*/
|
||||
private Long videoType;
|
||||
private Integer videoType;
|
||||
|
||||
/**
|
||||
* 码流 id:当选择自定义码流时,该字段必填,
|
||||
|
@ -46,7 +46,7 @@ public class SisLibDeviceRef extends TenantEntity {
|
||||
/**
|
||||
* 第三方设备库添加状态 1: 成功,2:失败
|
||||
*/
|
||||
private Long eqpLibState;
|
||||
private Integer eqpLibState;
|
||||
|
||||
|
||||
}
|
||||
|
@ -45,12 +45,12 @@ public class SisPersonLib extends TenantEntity {
|
||||
/**
|
||||
* 库类型,1:人员库,2:工服库
|
||||
*/
|
||||
private Long libType;
|
||||
private Integer libType;
|
||||
|
||||
/**
|
||||
* 库的业务类型 1: 门禁库,2: 黑名单库
|
||||
*/
|
||||
private Long busiType;
|
||||
private Integer busiType;
|
||||
|
||||
|
||||
}
|
||||
|
@ -52,7 +52,7 @@ public class SisPersonLibImg extends TenantEntity {
|
||||
* 性别 1:男
|
||||
2:女 99:未说明
|
||||
*/
|
||||
private Long sex;
|
||||
private Integer sex;
|
||||
|
||||
/**
|
||||
* 邮箱
|
||||
@ -69,7 +69,7 @@ public class SisPersonLibImg extends TenantEntity {
|
||||
1:身份证 2:护照
|
||||
3:行驶证 99:其它
|
||||
*/
|
||||
private Long certificateType;
|
||||
private Integer certificateType;
|
||||
|
||||
/**
|
||||
* 证件号码
|
||||
|
@ -1,10 +1,10 @@
|
||||
package org.dromara.sis.domain;
|
||||
|
||||
import org.dromara.common.mybatis.core.domain.BaseEntity;
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import java.util.Date;
|
||||
import org.dromara.common.mybatis.core.domain.BaseEntity;
|
||||
|
||||
import java.io.Serial;
|
||||
|
||||
@ -43,15 +43,5 @@ public class TdFactory extends BaseEntity {
|
||||
*/
|
||||
private String remark;
|
||||
|
||||
/**
|
||||
* 数据状态:1有效,0无效
|
||||
*/
|
||||
private Long dataState;
|
||||
|
||||
/**
|
||||
* 修改时间
|
||||
*/
|
||||
private Date modifyTime;
|
||||
|
||||
|
||||
}
|
||||
|
@ -46,12 +46,12 @@ public class TdMeter extends BaseEntity {
|
||||
/**
|
||||
* 设备类型(1-电表,2-水表,3-气表)
|
||||
*/
|
||||
private Long meterType;
|
||||
private Integer meterType;
|
||||
|
||||
/**
|
||||
* 表用途(1-分表,2-总表,3-公摊表)
|
||||
*/
|
||||
private Long meterPurpose;
|
||||
private Integer meterPurpose;
|
||||
|
||||
/**
|
||||
* 分摊类型
|
||||
@ -61,12 +61,12 @@ public class TdMeter extends BaseEntity {
|
||||
* 4-按房源数量
|
||||
* 5-按固定比例
|
||||
*/
|
||||
private Long shareType;
|
||||
private Integer shareType;
|
||||
|
||||
/**
|
||||
* 付费类型(1-先付费,2-后付费)
|
||||
*/
|
||||
private Long payType;
|
||||
private Integer payType;
|
||||
|
||||
/**
|
||||
* 当前表显示读数
|
||||
@ -91,12 +91,12 @@ public class TdMeter extends BaseEntity {
|
||||
/**
|
||||
* 通信状态
|
||||
*/
|
||||
private Long communicationState;
|
||||
private Integer communicationState;
|
||||
|
||||
/**
|
||||
* 运行状态
|
||||
*/
|
||||
private Long runningState;
|
||||
private Integer runningState;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
|
@ -30,27 +30,27 @@ public class TdMeterConfig extends BaseEntity {
|
||||
/**
|
||||
* 设备类型(1-电表,2-水表,3-气表)
|
||||
*/
|
||||
private Long meterType;
|
||||
private Integer meterType;
|
||||
|
||||
/**
|
||||
* 付费类型(1-先付费,2-后付费)
|
||||
*/
|
||||
private Long payType;
|
||||
private Integer payType;
|
||||
|
||||
/**
|
||||
* 欠费是否断电/水/气(0-是,1-否)
|
||||
*/
|
||||
private Long arrearsOutage;
|
||||
private Integer arrearsOutage;
|
||||
|
||||
/**
|
||||
* 后付费模式下是否自动断电/水/气(0-是,1-否)
|
||||
*/
|
||||
private Long autoOutage;
|
||||
private Integer autoOutage;
|
||||
|
||||
/**
|
||||
* 当auto_outage=0的时候生效,逾期多少天自动断水/电/气
|
||||
*/
|
||||
private Long overdueDay;
|
||||
private Integer overdueDay;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
|
@ -1,9 +1,10 @@
|
||||
package org.dromara.sis.domain;
|
||||
|
||||
import org.dromara.common.mybatis.core.domain.BaseEntity;
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import org.dromara.common.mybatis.core.domain.BaseEntity;
|
||||
|
||||
import java.io.Serial;
|
||||
|
||||
|
@ -60,7 +60,7 @@ public class SisAccessControlBo extends BaseEntity {
|
||||
*
|
||||
*/
|
||||
@NotNull(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private Long accessPort;
|
||||
private Integer accessPort;
|
||||
|
||||
/**
|
||||
* 门禁设备类型
|
||||
@ -96,17 +96,6 @@ public class SisAccessControlBo extends BaseEntity {
|
||||
@NotBlank(message = "组织编码不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private String orgCode;
|
||||
|
||||
/**
|
||||
* 数据状态:1有效,0无效
|
||||
*/
|
||||
@NotNull(message = "数据状态:1有效,0无效不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private Long dataState;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
private String searchValue;
|
||||
|
||||
/**
|
||||
* 绑定设备Id
|
||||
*/
|
||||
|
@ -41,12 +41,12 @@ public class SisAccessControlDeviceBo extends BaseEntity {
|
||||
/**
|
||||
* 设备类型
|
||||
*/
|
||||
private Long eqpType;
|
||||
private Integer eqpType;
|
||||
|
||||
/**
|
||||
* 接入类型(1: 平台接入,2:设备接入)
|
||||
*/
|
||||
private Long accessType;
|
||||
private Integer accessType;
|
||||
|
||||
/**
|
||||
* 设备ip
|
||||
@ -58,7 +58,7 @@ public class SisAccessControlDeviceBo extends BaseEntity {
|
||||
* 设备端口
|
||||
*/
|
||||
@NotNull(message = "设备端口不能为空", groups = {AddGroup.class, EditGroup.class})
|
||||
private Long eqpPort;
|
||||
private Integer eqpPort;
|
||||
|
||||
/**
|
||||
* 设备账号
|
||||
|
@ -48,18 +48,13 @@ public class SisDeviceManageBo extends BaseEntity {
|
||||
* 设备端口
|
||||
*/
|
||||
@NotNull(message = "设备端口不能为空", groups = {AddGroup.class, EditGroup.class})
|
||||
private Long devicePort;
|
||||
private Integer devicePort;
|
||||
|
||||
/**
|
||||
* 设备
|
||||
*/
|
||||
private String deviceMac;
|
||||
|
||||
/**
|
||||
* 设备在线状态 0:离线 1:在线 2:未知
|
||||
*/
|
||||
private Long deviceStatus;
|
||||
|
||||
/**
|
||||
* 父级设备id
|
||||
*/
|
||||
|
@ -36,14 +36,14 @@ public class SisDevicePointBo extends BaseEntity {
|
||||
* 视频协议 1:onvif 2:
|
||||
rtsp
|
||||
*/
|
||||
private Long video;
|
||||
private Integer video;
|
||||
|
||||
/**
|
||||
* 传输协议(AIBOX 需要,一
|
||||
体机不需要) 1: tcp 2:
|
||||
udp
|
||||
*/
|
||||
private Long transportType;
|
||||
private Integer transportType;
|
||||
|
||||
/**
|
||||
* 点位名称
|
||||
@ -64,7 +64,7 @@ rtsp 时,该字段必填)
|
||||
/**
|
||||
* 端口
|
||||
*/
|
||||
private Long port;
|
||||
private Integer port;
|
||||
|
||||
/**
|
||||
* 通道相机账号
|
||||
@ -81,7 +81,7 @@ rtsp 时,该字段必填)
|
||||
式:1:主码流 2:自定
|
||||
义码流
|
||||
*/
|
||||
private Long videoType;
|
||||
private Integer videoType;
|
||||
|
||||
/**
|
||||
* 码流 id:当选择自定义码
|
||||
@ -89,22 +89,6 @@ rtsp 时,该字段必填)
|
||||
获取设备码流信息接口返
|
||||
回的码流 id
|
||||
*/
|
||||
private Long videoId;
|
||||
|
||||
/**
|
||||
* 创建人id
|
||||
*/
|
||||
private Long createById;
|
||||
|
||||
/**
|
||||
* 更新人id
|
||||
*/
|
||||
private Long updateById;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
private String searchValue;
|
||||
|
||||
private Integer videoId;
|
||||
|
||||
}
|
||||
|
@ -56,20 +56,4 @@ public class SisLibDeviceImgRefBo extends BaseEntity {
|
||||
@NotNull(message = "设备库图片id不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private Long eqpLibImgId;
|
||||
|
||||
/**
|
||||
* 创建人id
|
||||
*/
|
||||
private Long createById;
|
||||
|
||||
/**
|
||||
* 更新人id
|
||||
*/
|
||||
private Long updateById;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
private String searchValue;
|
||||
|
||||
|
||||
}
|
||||
|
@ -49,22 +49,6 @@ public class SisLibDeviceRefBo extends BaseEntity {
|
||||
* 第三方设备库添加状态 1: 成功,2:失败
|
||||
*/
|
||||
@NotNull(message = "第三方设备库添加状态 1: 成功,2:失败不能为空", groups = {AddGroup.class, EditGroup.class})
|
||||
private Long eqpLibState;
|
||||
|
||||
/**
|
||||
* 创建人id
|
||||
*/
|
||||
private Long createById;
|
||||
|
||||
/**
|
||||
* 更新人id
|
||||
*/
|
||||
private Long updateById;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
private String searchValue;
|
||||
|
||||
private Integer eqpLibState;
|
||||
|
||||
}
|
||||
|
@ -42,7 +42,7 @@ public class SisPersonLibBo extends BaseEntity {
|
||||
/**
|
||||
* 设备编码,需要同步创建到设备中
|
||||
*/
|
||||
@NotBlank(message = "人像设备不能为空", groups = {AddGroup.class, EditGroup.class})
|
||||
@NotNull(message = "人像设备不能为空", groups = {AddGroup.class, EditGroup.class})
|
||||
private List<Long> eqpIds;
|
||||
|
||||
/**
|
||||
@ -53,7 +53,7 @@ public class SisPersonLibBo extends BaseEntity {
|
||||
/**
|
||||
* 库类型,1:人员库,2:工服库
|
||||
*/
|
||||
private Long libType;
|
||||
private Integer libType;
|
||||
|
||||
/**
|
||||
* 库类型名称
|
||||
@ -65,7 +65,7 @@ public class SisPersonLibBo extends BaseEntity {
|
||||
/**
|
||||
* 库的业务类型 1: 门禁库,2: 黑名单库
|
||||
*/
|
||||
private Long busiType = 1L;
|
||||
private Integer busiType = 1;
|
||||
|
||||
|
||||
}
|
||||
|
@ -53,7 +53,7 @@ public class SisPersonLibImgBo extends BaseEntity {
|
||||
* 性别 1:男
|
||||
* 2:女 99:未说明
|
||||
*/
|
||||
private Long sex;
|
||||
private Integer sex;
|
||||
|
||||
/**
|
||||
* 邮箱
|
||||
@ -70,7 +70,7 @@ public class SisPersonLibImgBo extends BaseEntity {
|
||||
* 1:身份证 2:护照
|
||||
* 3:行驶证 99:其它
|
||||
*/
|
||||
private Long certificateType;
|
||||
private Integer certificateType;
|
||||
|
||||
/**
|
||||
* 证件号码
|
||||
@ -81,21 +81,4 @@ public class SisPersonLibImgBo extends BaseEntity {
|
||||
* 出生日期
|
||||
*/
|
||||
private String birthDate;
|
||||
|
||||
/**
|
||||
* 创建人id
|
||||
*/
|
||||
private Long createById;
|
||||
|
||||
/**
|
||||
* 更新人id
|
||||
*/
|
||||
private Long updateById;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
private String searchValue;
|
||||
|
||||
|
||||
}
|
||||
|
@ -43,12 +43,4 @@ public class TdFactoryBo extends BaseEntity {
|
||||
* 备注
|
||||
*/
|
||||
private String remark;
|
||||
|
||||
/**
|
||||
* 数据状态:1有效,0无效
|
||||
*/
|
||||
@NotNull(message = "数据状态:1有效,0无效不能为空", groups = {AddGroup.class, EditGroup.class})
|
||||
private Long dataState;
|
||||
|
||||
|
||||
}
|
||||
|
@ -49,12 +49,12 @@ public class TdMeterBo extends BaseEntity {
|
||||
/**
|
||||
* 设备类型(1-电表,2-水表,3-气表)
|
||||
*/
|
||||
private Long meterType;
|
||||
private Integer meterType;
|
||||
|
||||
/**
|
||||
* 表用途(1-分表,2-总表,3-公摊表)
|
||||
*/
|
||||
private Long meterPurpose;
|
||||
private Integer meterPurpose;
|
||||
|
||||
/**
|
||||
* 分摊类型
|
||||
@ -64,17 +64,17 @@ public class TdMeterBo extends BaseEntity {
|
||||
* 4-按房源数量
|
||||
* 5-按固定比例
|
||||
*/
|
||||
private Long shareType;
|
||||
private Integer shareType;
|
||||
|
||||
/**
|
||||
* 付费类型(1-先付费,2-后付费)
|
||||
*/
|
||||
private Long payType;
|
||||
private Integer payType;
|
||||
|
||||
/**
|
||||
* 最大表显读数(超过归0)
|
||||
*/
|
||||
private Long maxDisplay;
|
||||
private Integer maxDisplay;
|
||||
|
||||
/**
|
||||
* 计费倍率
|
||||
|
@ -29,31 +29,31 @@ public class TdMeterConfigBo extends BaseEntity {
|
||||
/**
|
||||
* 设备类型(1-电表,2-水表,3-气表)
|
||||
*/
|
||||
private Long meterType;
|
||||
private Integer meterType;
|
||||
|
||||
/**
|
||||
* 付费类型(1-先付费,2-后付费)
|
||||
*/
|
||||
@NotNull(message = "付费类型(1-先付费,2-后付费)不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private Long payType;
|
||||
private Integer payType;
|
||||
|
||||
/**
|
||||
* 欠费是否断电/水/气(0-是,1-否)
|
||||
*/
|
||||
@NotNull(message = "欠费是否断电/水/气(0-是,1-否)不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private Long arrearsOutage;
|
||||
private Integer arrearsOutage;
|
||||
|
||||
/**
|
||||
* 后付费模式下是否自动断电/水/气(0-是,1-否)
|
||||
*/
|
||||
@NotNull(message = "后付费模式下是否自动断电/水/气(0-是,1-否)不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private Long autoOutage;
|
||||
private Integer autoOutage;
|
||||
|
||||
/**
|
||||
* 当auto_outage=0的时候生效,逾期多少天自动断水/电/气
|
||||
*/
|
||||
@NotNull(message = "当auto_outage=0的时候生效,逾期多少天自动断水/电/气不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private Long overdueDay;
|
||||
private Integer overdueDay;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
|
@ -76,7 +76,7 @@ public class SisAccessControlDeviceVo implements Serializable {
|
||||
* 设备端口
|
||||
*/
|
||||
@ExcelProperty(value = "设备端口")
|
||||
private Long eqpPort;
|
||||
private Integer eqpPort;
|
||||
|
||||
/**
|
||||
* 设备账号
|
||||
|
@ -68,13 +68,13 @@ public class SisAccessControlVo implements Serializable {
|
||||
*
|
||||
*/
|
||||
@ExcelProperty(value = "")
|
||||
private Long accessPort;
|
||||
private Integer accessPort;
|
||||
|
||||
/**
|
||||
* 门禁设备类型
|
||||
*/
|
||||
@ExcelProperty(value = "门禁设备类型")
|
||||
private Long accessType;
|
||||
private Integer accessType;
|
||||
|
||||
/**
|
||||
*
|
||||
@ -86,7 +86,7 @@ public class SisAccessControlVo implements Serializable {
|
||||
* 控制卡类型:1-系统,2-E8
|
||||
*/
|
||||
@ExcelProperty(value = "控制卡类型:1-系统,2-E8")
|
||||
private Long controlType;
|
||||
private Integer controlType;
|
||||
|
||||
/**
|
||||
* 控制卡类型编码
|
||||
@ -106,17 +106,4 @@ public class SisAccessControlVo implements Serializable {
|
||||
@ExcelProperty(value = "组织编码")
|
||||
private String orgCode;
|
||||
|
||||
/**
|
||||
* 数据状态:1有效,0无效
|
||||
*/
|
||||
@ExcelProperty(value = "数据状态:1有效,0无效")
|
||||
private Long dataState;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
@ExcelProperty(value = "搜索值")
|
||||
private String searchValue;
|
||||
|
||||
|
||||
}
|
||||
|
@ -53,7 +53,7 @@ public class SisDeviceManageVo implements Serializable {
|
||||
* 设备端口
|
||||
*/
|
||||
@ExcelProperty(value = "设备端口")
|
||||
private Long devicePort;
|
||||
private Integer devicePort;
|
||||
|
||||
/**
|
||||
* 设备
|
||||
@ -61,12 +61,6 @@ public class SisDeviceManageVo implements Serializable {
|
||||
@ExcelProperty(value = "设备")
|
||||
private String deviceMac;
|
||||
|
||||
/**
|
||||
* 设备在线状态 0:离线 1:在线 2:未知
|
||||
*/
|
||||
@ExcelProperty(value = "设备在线状态 0:离线 1:在线 2:未知")
|
||||
private Long deviceStatus;
|
||||
|
||||
/**
|
||||
* 父级设备id
|
||||
*/
|
||||
@ -83,7 +77,7 @@ public class SisDeviceManageVo implements Serializable {
|
||||
* 录像机端口
|
||||
*/
|
||||
@ExcelProperty(value = "录像机端口")
|
||||
private Long vcrPort;
|
||||
private Integer vcrPort;
|
||||
|
||||
/**
|
||||
* 门禁id
|
||||
|
@ -43,7 +43,7 @@ public class SisDevicePointVo implements Serializable {
|
||||
* rtsp
|
||||
*/
|
||||
@ExcelProperty(value = "视频协议")
|
||||
private Long video;
|
||||
private Integer video;
|
||||
|
||||
/**
|
||||
* 传输协议(AIBOX 需要,一
|
||||
@ -51,7 +51,7 @@ public class SisDevicePointVo implements Serializable {
|
||||
* udp
|
||||
*/
|
||||
@ExcelProperty(value = "传输协议")
|
||||
private Long transportType;
|
||||
private Integer transportType;
|
||||
|
||||
/**
|
||||
* 点位名称
|
||||
@ -77,7 +77,7 @@ public class SisDevicePointVo implements Serializable {
|
||||
* 端口
|
||||
*/
|
||||
@ExcelProperty(value = "端口")
|
||||
private Long port;
|
||||
private Integer port;
|
||||
|
||||
/**
|
||||
* 通道相机账号
|
||||
@ -97,7 +97,7 @@ public class SisDevicePointVo implements Serializable {
|
||||
* 义码流
|
||||
*/
|
||||
@ExcelProperty(value = "码流")
|
||||
private Long videoType;
|
||||
private Integer videoType;
|
||||
|
||||
/**
|
||||
* 码流 id:当选择自定义码
|
||||
@ -108,11 +108,4 @@ public class SisDevicePointVo implements Serializable {
|
||||
@ExcelProperty(value = "码流id")
|
||||
private Long videoId;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
@ExcelProperty(value = "搜索值")
|
||||
private String searchValue;
|
||||
|
||||
|
||||
}
|
||||
|
@ -60,23 +60,4 @@ public class SisLibDeviceImgRefVo implements Serializable {
|
||||
@ExcelProperty(value = "设备库图片id")
|
||||
private Long eqpLibImgId;
|
||||
|
||||
/**
|
||||
* 创建人id
|
||||
*/
|
||||
@ExcelProperty(value = "创建人id")
|
||||
private Long createById;
|
||||
|
||||
/**
|
||||
* 更新人id
|
||||
*/
|
||||
@ExcelProperty(value = "更新人id")
|
||||
private Long updateById;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
@ExcelProperty(value = "搜索值")
|
||||
private String searchValue;
|
||||
|
||||
|
||||
}
|
||||
|
@ -52,25 +52,6 @@ public class SisLibDeviceRefVo implements Serializable {
|
||||
* 第三方设备库添加状态 1: 成功,2:失败
|
||||
*/
|
||||
@ExcelProperty(value = "第三方设备库添加状态 1: 成功,2:失败")
|
||||
private Long eqpLibState;
|
||||
|
||||
/**
|
||||
* 创建人id
|
||||
*/
|
||||
@ExcelProperty(value = "创建人id")
|
||||
private Long createById;
|
||||
|
||||
/**
|
||||
* 更新人id
|
||||
*/
|
||||
@ExcelProperty(value = "更新人id")
|
||||
private Long updateById;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
@ExcelProperty(value = "搜索值")
|
||||
private String searchValue;
|
||||
|
||||
private Integer eqpLibState;
|
||||
|
||||
}
|
||||
|
@ -60,7 +60,7 @@ public class SisPersonLibImgVo implements Serializable {
|
||||
2:女 99:未说明
|
||||
*/
|
||||
@ExcelProperty(value = "性别 1")
|
||||
private Long sex;
|
||||
private Integer sex;
|
||||
|
||||
/**
|
||||
* 邮箱
|
||||
@ -80,7 +80,7 @@ public class SisPersonLibImgVo implements Serializable {
|
||||
3:行驶证 99:其它
|
||||
*/
|
||||
@ExcelProperty(value = "证件类型")
|
||||
private Long certificateType;
|
||||
private Integer certificateType;
|
||||
|
||||
/**
|
||||
* 证件号码
|
||||
@ -94,23 +94,4 @@ public class SisPersonLibImgVo implements Serializable {
|
||||
@ExcelProperty(value = "出生日期")
|
||||
private String birthDate;
|
||||
|
||||
/**
|
||||
* 创建人id
|
||||
*/
|
||||
@ExcelProperty(value = "创建人id")
|
||||
private Long createById;
|
||||
|
||||
/**
|
||||
* 更新人id
|
||||
*/
|
||||
@ExcelProperty(value = "更新人id")
|
||||
private Long updateById;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
@ExcelProperty(value = "搜索值")
|
||||
private String searchValue;
|
||||
|
||||
|
||||
}
|
||||
|
@ -52,31 +52,12 @@ public class SisPersonLibVo implements Serializable {
|
||||
* 库类型,1:人员库,2:工服库
|
||||
*/
|
||||
@ExcelProperty(value = "库类型,1:人员库,2:工服库")
|
||||
private Long libType;
|
||||
private Integer libType;
|
||||
|
||||
/**
|
||||
* 库的业务类型 1: 门禁库,2: 黑名单库
|
||||
*/
|
||||
@ExcelProperty(value = "库的业务类型 1: 门禁库,2: 黑名单库")
|
||||
private Long busiType;
|
||||
|
||||
/**
|
||||
* 创建人id
|
||||
*/
|
||||
@ExcelProperty(value = "创建人id")
|
||||
private Long createById;
|
||||
|
||||
/**
|
||||
* 更新人id
|
||||
*/
|
||||
@ExcelProperty(value = "更新人id")
|
||||
private Long updateById;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
@ExcelProperty(value = "搜索值")
|
||||
private String searchValue;
|
||||
|
||||
private Integer busiType;
|
||||
|
||||
}
|
||||
|
@ -48,11 +48,4 @@ public class TdFactoryVo implements Serializable {
|
||||
@ExcelProperty(value = "备注")
|
||||
private String remark;
|
||||
|
||||
/**
|
||||
* 数据状态:1有效,0无效
|
||||
*/
|
||||
@ExcelProperty(value = "数据状态:1有效,0无效")
|
||||
private Long dataState;
|
||||
|
||||
|
||||
}
|
||||
|
@ -36,32 +36,32 @@ public class TdMeterConfigVo implements Serializable {
|
||||
* 设备类型(1-电表,2-水表,3-气表)
|
||||
*/
|
||||
@ExcelProperty(value = "设备类型(1-电表,2-水表,3-气表)")
|
||||
private Long meterType;
|
||||
private Integer meterType;
|
||||
|
||||
/**
|
||||
* 付费类型(1-先付费,2-后付费)
|
||||
*/
|
||||
@ExcelProperty(value = "付费类型(1-先付费,2-后付费)")
|
||||
private Long payType;
|
||||
private Integer payType;
|
||||
|
||||
/**
|
||||
* 欠费是否断电/水/气(0-是,1-否)
|
||||
*/
|
||||
@ExcelProperty(value = "欠费是否断电/水/气(0-是,1-否)")
|
||||
private Long arrearsOutage;
|
||||
private Integer arrearsOutage;
|
||||
|
||||
/**
|
||||
* 后付费模式下是否自动断电/水/气(0-是,1-否)
|
||||
*/
|
||||
@ExcelProperty(value = "后付费模式下是否自动断电/水/气", converter = ExcelDictConvert.class)
|
||||
@ExcelDictFormat(readConverterExp = "0=-是,1-否")
|
||||
private Long autoOutage;
|
||||
private Integer autoOutage;
|
||||
|
||||
/**
|
||||
* 当auto_outage=0的时候生效,逾期多少天自动断水/电/气
|
||||
*/
|
||||
@ExcelProperty(value = "当auto_outage=0的时候生效,逾期多少天自动断水/电/气")
|
||||
private Long overdueDay;
|
||||
private Integer overdueDay;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
|
@ -53,13 +53,13 @@ public class TdMeterVo implements Serializable {
|
||||
* 设备类型(1-电表,2-水表,3-气表)
|
||||
*/
|
||||
@ExcelProperty(value = "设备类型(1-电表,2-水表,3-气表)")
|
||||
private Long meterType;
|
||||
private Integer meterType;
|
||||
|
||||
/**
|
||||
* 表用途(1-分表,2-总表,3-公摊表)
|
||||
*/
|
||||
@ExcelProperty(value = "表用途(1-分表,2-总表,3-公摊表)")
|
||||
private Long meterPurpose;
|
||||
private Integer meterPurpose;
|
||||
|
||||
/**
|
||||
* 分摊类型
|
||||
@ -70,13 +70,13 @@ public class TdMeterVo implements Serializable {
|
||||
* 5-按固定比例
|
||||
*/
|
||||
@ExcelProperty(value = "分摊类型 1-不公摊 2-按分表用量 3-按租客面积 4-按房源数量 5-按固定比例")
|
||||
private Long shareType;
|
||||
private Integer shareType;
|
||||
|
||||
/**
|
||||
* 付费类型(1-先付费,2-后付费)
|
||||
*/
|
||||
@ExcelProperty(value = "付费类型(1-先付费,2-后付费)")
|
||||
private Long payType;
|
||||
private Integer payType;
|
||||
|
||||
/**
|
||||
* 当前表显示读数
|
||||
@ -94,13 +94,13 @@ public class TdMeterVo implements Serializable {
|
||||
* 通信状态
|
||||
*/
|
||||
@ExcelProperty(value = "通信状态")
|
||||
private Long communicationState;
|
||||
private Integer communicationState;
|
||||
|
||||
/**
|
||||
* 运行状态
|
||||
*/
|
||||
@ExcelProperty(value = "运行状态")
|
||||
private Long runningState;
|
||||
private Integer runningState;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
|
@ -28,7 +28,7 @@ public class DoorDeviceAddReq {
|
||||
/**
|
||||
* 设备端口
|
||||
*/
|
||||
private Long port;
|
||||
private Integer port;
|
||||
|
||||
/**
|
||||
* 设备MAC
|
||||
@ -56,7 +56,7 @@ public class DoorDeviceAddReq {
|
||||
* 2201:一体式门禁 2202:分体式门禁 2203:人脸门禁 2204:梯控 2207:人脸盒子终端
|
||||
* 2208:人脸盒子面板机 2209:一体式读头 2211:梯控读头 2102:电子哨兵
|
||||
*/
|
||||
private Long type;
|
||||
private Integer type;
|
||||
|
||||
/**
|
||||
* 业务逻辑设备类
|
||||
|
@ -106,14 +106,13 @@ public class UniViewHttp {
|
||||
if (data == null) {
|
||||
requestEntity = new HttpEntity<>(null, headers);
|
||||
}
|
||||
if (data instanceof JSONObject) {
|
||||
JSONObject obj = (JSONObject) data;
|
||||
if (data instanceof JSONObject obj) {
|
||||
requestEntity = new HttpEntity<>(obj.toJSONString(), headers);
|
||||
} else {
|
||||
requestEntity = new HttpEntity<>(JSONObject.toJSONString(data), headers);
|
||||
}
|
||||
ResponseEntity<String> exchange = restTemplate.exchange(requestUrl, api.getMethod(), requestEntity, String.class);
|
||||
int statusCode = exchange.getStatusCodeValue();
|
||||
int statusCode = exchange.getStatusCode().value();
|
||||
String body = exchange.getBody();
|
||||
|
||||
if (HttpStatus.HTTP_UNAUTHORIZED == statusCode) {
|
||||
|
@ -92,7 +92,6 @@ public class SisAccessControlServiceImpl implements ISisAccessControlService {
|
||||
lqw.eq(bo.getControlType() != null, SisAccessControl::getControlType, bo.getControlType());
|
||||
lqw.eq(StringUtils.isNotBlank(bo.getControlCode()), SisAccessControl::getControlCode, bo.getControlCode());
|
||||
lqw.eq(StringUtils.isNotBlank(bo.getOutCode()), SisAccessControl::getOutCode, bo.getOutCode());
|
||||
lqw.eq(StringUtils.isNotBlank(bo.getOrgCode()), SisAccessControl::getOrgCode, bo.getOrgCode());
|
||||
lqw.eq(StringUtils.isNotBlank(bo.getSearchValue()), SisAccessControl::getSearchValue, bo.getSearchValue());
|
||||
return lqw;
|
||||
}
|
||||
|
@ -79,7 +79,6 @@ public class SisDeviceManageServiceImpl implements ISisDeviceManageService {
|
||||
lqw.eq(StringUtils.isNotBlank(bo.getDeviceIp()), SisDeviceManage::getDeviceIp, bo.getDeviceIp());
|
||||
lqw.eq(bo.getDevicePort() != null, SisDeviceManage::getDevicePort, bo.getDevicePort());
|
||||
lqw.eq(StringUtils.isNotBlank(bo.getDeviceMac()), SisDeviceManage::getDeviceMac, bo.getDeviceMac());
|
||||
lqw.eq(bo.getDeviceStatus() != null, SisDeviceManage::getDeviceStatus, bo.getDeviceStatus());
|
||||
lqw.eq(bo.getParentId() != null, SisDeviceManage::getParentId, bo.getParentId());
|
||||
lqw.eq(StringUtils.isNotBlank(bo.getVcrIp()), SisDeviceManage::getVcrIp, bo.getVcrIp());
|
||||
lqw.eq(bo.getVcrPort() != null, SisDeviceManage::getVcrPort, bo.getVcrPort());
|
||||
|
@ -122,7 +122,7 @@ public class SisPersonLibServiceImpl implements ISisPersonLibService {
|
||||
systemInfo.setAccount(sisAccessControlDeviceVo.getEqpAccount());
|
||||
systemInfo.setPassword(sisAccessControlDeviceVo.getEqpPwd());
|
||||
systemInfo.setIp(sisAccessControlDeviceVo.getEqpIp());
|
||||
systemInfo.setPort(systemInfo.getPort());
|
||||
systemInfo.setPort(sisAccessControlDeviceVo.getEqpPort());
|
||||
// libType =1 人像库,否则工服库
|
||||
Integer outLibCode = null;
|
||||
if (bo.getLibType() == 1) {
|
||||
@ -138,7 +138,7 @@ public class SisPersonLibServiceImpl implements ISisPersonLibService {
|
||||
ref.setLibId(add.getId());
|
||||
ref.setEqpId(sisAccessControlDeviceVo.getId());
|
||||
ref.setEqpLibCode(Long.valueOf(outLibCode));
|
||||
ref.setEqpLibState(1L);
|
||||
ref.setEqpLibState(1);
|
||||
Boolean insert = sisLibDeviceRefService.insert(ref);
|
||||
Assert.isTrue(insert, "写入库关联关系表失败!");
|
||||
log.info("同步建库完成!");
|
||||
|
@ -76,7 +76,6 @@ public class TdFactoryServiceImpl implements ITdFactoryService {
|
||||
lqw.orderByAsc(TdFactory::getId);
|
||||
lqw.eq(StringUtils.isNotBlank(bo.getFactoryNo()), TdFactory::getFactoryNo, bo.getFactoryNo());
|
||||
lqw.like(StringUtils.isNotBlank(bo.getFactoryName()), TdFactory::getFactoryName, bo.getFactoryName());
|
||||
lqw.eq(bo.getDataState() != null, TdFactory::getDataState, bo.getDataState());
|
||||
return lqw;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user