java 实体类型long改int
Some checks are pending
Gitea Actions Demo / Explore-Gitea-Actions (push) Waiting to run

This commit is contained in:
15683799673 2025-06-27 20:28:33 +08:00
parent f85f2a75e0
commit e55ecffb98
43 changed files with 124 additions and 363 deletions

28
pom.xml
View File

@ -68,25 +68,39 @@
</properties> </properties>
<profiles> <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> <profile>
<id>dev</id> <id>dev</id>
<properties> <properties>
<!-- 环境标识,需要与配置文件的名称相对应 --> <!-- 环境标识,需要与配置文件的名称相对应 -->
<profiles.active>dev</profiles.active> <profiles.active>dev</profiles.active>
<!-- <nacos.server>127.0.0.1:8848</nacos.server>--> <!-- <nacos.server>127.0.0.1:8848</nacos.server>-->
<!-- <logstash.address>127.0.0.1:4560</logstash.address>--> <!-- <logstash.address>127.0.0.1:4560</logstash.address>-->
<nacos.server>47.109.37.87:8848</nacos.server> <nacos.server>47.109.37.87:8848</nacos.server>
<logstash.address>47.109.37.87:4560</logstash.address> <logstash.address>47.109.37.87:4560</logstash.address>
<nacos.discovery.group>DEFAULT_GROUP</nacos.discovery.group> <nacos.discovery.group>DEFAULT_GROUP</nacos.discovery.group>
<nacos.config.group>DEFAULT_GROUP</nacos.config.group> <nacos.config.group>DEFAULT_GROUP</nacos.config.group>
<nacos.username>nacos</nacos.username> <nacos.username>nacos</nacos.username>
<nacos.password>nacos</nacos.password> <nacos.password>nacos</nacos.password>
<!-- <logstash.address>127.0.0.1:4560</logstash.address>--> <!-- <logstash.address>127.0.0.1:4560</logstash.address>-->
</properties> </properties>
<activation>
<!-- 默认环境 -->
<activeByDefault>true</activeByDefault>
</activation>
</profile> </profile>
<profile> <profile>
<id>prod</id> <id>prod</id>

View File

@ -22,7 +22,7 @@ public class TdFactory extends TenantEntity {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/** /**
* *
*/ */
@TableId(value = "id") @TableId(value = "id")
private Long id; private Long id;
@ -42,15 +42,4 @@ public class TdFactory extends TenantEntity {
*/ */
private String remark; private String remark;
/**
* 数据状态1有效0无效
*/
private Long dataState;
/**
* 搜索值
*/
private String searchValue;
} }

View File

@ -21,7 +21,7 @@ import jakarta.validation.constraints.*;
public class TdFactoryBo extends BaseEntity { public class TdFactoryBo extends BaseEntity {
/** /**
* *
*/ */
@NotNull(message = "不能为空", groups = { EditGroup.class }) @NotNull(message = "不能为空", groups = { EditGroup.class })
private Long id; private Long id;
@ -43,16 +43,5 @@ public class TdFactoryBo extends BaseEntity {
*/ */
private String remark; private String remark;
/**
* 数据状态1有效0无效
*/
@NotNull(message = "数据状态1有效0无效不能为空", groups = { AddGroup.class, EditGroup.class })
private Long dataState;
/**
* 搜索值
*/
private String searchValue;
} }

View File

@ -29,7 +29,7 @@ public class TdFactoryVo implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/** /**
* *
*/ */
@ExcelProperty(value = "") @ExcelProperty(value = "")
private Long id; private Long id;
@ -52,17 +52,5 @@ public class TdFactoryVo implements Serializable {
@ExcelProperty(value = "备注") @ExcelProperty(value = "备注")
private String remark; private String remark;
/**
* 数据状态1有效0无效
*/
@ExcelProperty(value = "数据状态1有效0无效")
private Long dataState;
/**
* 搜索值
*/
@ExcelProperty(value = "搜索值")
private String searchValue;
} }

View File

@ -1,9 +1,10 @@
package org.dromara.sis.domain; package org.dromara.sis.domain;
import org.dromara.common.tenant.core.TenantEntity; import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.*; import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import org.dromara.common.tenant.core.TenantEntity;
import java.io.Serial; 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 * 控制卡类型1-系统2-E8
*/ */
private Long controlType; private Integer controlType;
/** /**
* 控制卡类型编码 * 控制卡类型编码
@ -82,15 +83,5 @@ public class SisAccessControl extends TenantEntity {
*/ */
private String outCode; private String outCode;
/**
* 组织编码
*/
private String orgCode;
/**
* 搜索值
*/
private String searchValue;
} }

View File

@ -60,7 +60,7 @@ public class SisAccessControlDevice extends TenantEntity {
/** /**
* 设备端口 * 设备端口
*/ */
private Long eqpPort; private Integer eqpPort;
/** /**
* 设备账号 * 设备账号

View File

@ -1,9 +1,10 @@
package org.dromara.sis.domain; package org.dromara.sis.domain;
import org.dromara.common.mybatis.core.domain.BaseEntity; import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.*; import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import java.io.Serial; import java.io.Serial;
@ -55,7 +56,7 @@ public class SisDeviceManage extends BaseEntity {
/** /**
* 设备在线状态 0:离线 1:在线 2:未知 * 设备在线状态 0:离线 1:在线 2:未知
*/ */
private Long deviceStatus; private Integer deviceStatus;
/** /**
* 父级设备id * 父级设备id
@ -70,7 +71,7 @@ public class SisDeviceManage extends BaseEntity {
/** /**
* 录像机端口 * 录像机端口
*/ */
private Long vcrPort; private Integer vcrPort;
/** /**
* 门禁id * 门禁id

View File

@ -35,12 +35,12 @@ public class SisDevicePoint extends TenantEntity {
/** /**
* 视频协议 1onvif 2rtsp * 视频协议 1onvif 2rtsp
*/ */
private Long video; private Integer video;
/** /**
* 传输协议(AIBOX 需要一体机不需要) 1: tcp 2:udp * 传输协议(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自定义码流 * onvif 设备码流添加方式1主码流 2自定义码流
*/ */
private Long videoType; private Integer videoType;
/** /**
* 码流 id当选择自定义码流时该字段必填 * 码流 id当选择自定义码流时该字段必填

View File

@ -46,7 +46,7 @@ public class SisLibDeviceRef extends TenantEntity {
/** /**
* 第三方设备库添加状态 1: 成功2失败 * 第三方设备库添加状态 1: 成功2失败
*/ */
private Long eqpLibState; private Integer eqpLibState;
} }

View File

@ -45,12 +45,12 @@ public class SisPersonLib extends TenantEntity {
/** /**
* 库类型1人员库2工服库 * 库类型1人员库2工服库
*/ */
private Long libType; private Integer libType;
/** /**
* 库的业务类型 1: 门禁库2: 黑名单库 * 库的业务类型 1: 门禁库2: 黑名单库
*/ */
private Long busiType; private Integer busiType;
} }

View File

@ -52,7 +52,7 @@ public class SisPersonLibImg extends TenantEntity {
* 性别 1 * 性别 1
2 99未说明 2 99未说明
*/ */
private Long sex; private Integer sex;
/** /**
* 邮箱 * 邮箱
@ -69,7 +69,7 @@ public class SisPersonLibImg extends TenantEntity {
1身份证 2护照 1身份证 2护照
3行驶证 99其它 3行驶证 99其它
*/ */
private Long certificateType; private Integer certificateType;
/** /**
* 证件号码 * 证件号码

View File

@ -1,10 +1,10 @@
package org.dromara.sis.domain; package org.dromara.sis.domain;
import org.dromara.common.mybatis.core.domain.BaseEntity; import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.*; import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import java.util.Date; import org.dromara.common.mybatis.core.domain.BaseEntity;
import java.io.Serial; import java.io.Serial;
@ -43,15 +43,5 @@ public class TdFactory extends BaseEntity {
*/ */
private String remark; private String remark;
/**
* 数据状态1有效0无效
*/
private Long dataState;
/**
* 修改时间
*/
private Date modifyTime;
} }

View File

@ -46,12 +46,12 @@ public class TdMeter extends BaseEntity {
/** /**
* 设备类型(1-电表2-水表3-气表) * 设备类型(1-电表2-水表3-气表)
*/ */
private Long meterType; private Integer meterType;
/** /**
* 表用途(1-分表2-总表3-公摊表) * 表用途(1-分表2-总表3-公摊表)
*/ */
private Long meterPurpose; private Integer meterPurpose;
/** /**
* 分摊类型 * 分摊类型
@ -61,12 +61,12 @@ public class TdMeter extends BaseEntity {
* 4-按房源数量 * 4-按房源数量
* 5-按固定比例 * 5-按固定比例
*/ */
private Long shareType; private Integer shareType;
/** /**
* 付费类型(1-先付费2-后付费) * 付费类型(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;
/** /**
* 备注 * 备注

View File

@ -30,27 +30,27 @@ public class TdMeterConfig extends BaseEntity {
/** /**
* 设备类型(1-电表2-水表3-气表) * 设备类型(1-电表2-水表3-气表)
*/ */
private Long meterType; private Integer meterType;
/** /**
* 付费类型(1-先付费2-后付费) * 付费类型(1-先付费2-后付费)
*/ */
private Long payType; private Integer payType;
/** /**
* 欠费是否断电//(0-1-) * 欠费是否断电//(0-1-)
*/ */
private Long arrearsOutage; private Integer arrearsOutage;
/** /**
* 后付费模式下是否自动断电//0-1- * 后付费模式下是否自动断电//0-1-
*/ */
private Long autoOutage; private Integer autoOutage;
/** /**
* 当auto_outage=0的时候生效逾期多少天自动断水// * 当auto_outage=0的时候生效逾期多少天自动断水//
*/ */
private Long overdueDay; private Integer overdueDay;
/** /**
* 备注 * 备注

View File

@ -1,9 +1,10 @@
package org.dromara.sis.domain; package org.dromara.sis.domain;
import org.dromara.common.mybatis.core.domain.BaseEntity; import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.*; import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import java.io.Serial; import java.io.Serial;

View File

@ -60,7 +60,7 @@ public class SisAccessControlBo extends BaseEntity {
* *
*/ */
@NotNull(message = "不能为空", groups = { AddGroup.class, EditGroup.class }) @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 }) @NotBlank(message = "组织编码不能为空", groups = { AddGroup.class, EditGroup.class })
private String orgCode; private String orgCode;
/**
* 数据状态1有效0无效
*/
@NotNull(message = "数据状态1有效0无效不能为空", groups = { AddGroup.class, EditGroup.class })
private Long dataState;
/**
* 搜索值
*/
private String searchValue;
/** /**
* 绑定设备Id * 绑定设备Id
*/ */

View File

@ -41,12 +41,12 @@ public class SisAccessControlDeviceBo extends BaseEntity {
/** /**
* 设备类型 * 设备类型
*/ */
private Long eqpType; private Integer eqpType;
/** /**
* 接入类型(1: 平台接入2:设备接入) * 接入类型(1: 平台接入2:设备接入)
*/ */
private Long accessType; private Integer accessType;
/** /**
* 设备ip * 设备ip
@ -58,7 +58,7 @@ public class SisAccessControlDeviceBo extends BaseEntity {
* 设备端口 * 设备端口
*/ */
@NotNull(message = "设备端口不能为空", groups = {AddGroup.class, EditGroup.class}) @NotNull(message = "设备端口不能为空", groups = {AddGroup.class, EditGroup.class})
private Long eqpPort; private Integer eqpPort;
/** /**
* 设备账号 * 设备账号

View File

@ -48,18 +48,13 @@ public class SisDeviceManageBo extends BaseEntity {
* 设备端口 * 设备端口
*/ */
@NotNull(message = "设备端口不能为空", groups = {AddGroup.class, EditGroup.class}) @NotNull(message = "设备端口不能为空", groups = {AddGroup.class, EditGroup.class})
private Long devicePort; private Integer devicePort;
/** /**
* 设备 * 设备
*/ */
private String deviceMac; private String deviceMac;
/**
* 设备在线状态 0:离线 1:在线 2:未知
*/
private Long deviceStatus;
/** /**
* 父级设备id * 父级设备id
*/ */

View File

@ -36,14 +36,14 @@ public class SisDevicePointBo extends BaseEntity {
* 视频协议 1onvif 2 * 视频协议 1onvif 2
rtsp rtsp
*/ */
private Long video; private Integer video;
/** /**
* 传输协议(AIBOX 需要 * 传输协议(AIBOX 需要
体机不需要) 1: tcp 2: 体机不需要) 1: tcp 2:
udp 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自定 1主码流 2自定
义码流 义码流
*/ */
private Long videoType; private Integer videoType;
/** /**
* 码流 id当选择自定义码 * 码流 id当选择自定义码
@ -89,22 +89,6 @@ rtsp 时,该字段必填)
获取设备码流信息接口返 获取设备码流信息接口返
回的码流 id 回的码流 id
*/ */
private Long videoId; private Integer videoId;
/**
* 创建人id
*/
private Long createById;
/**
* 更新人id
*/
private Long updateById;
/**
* 搜索值
*/
private String searchValue;
} }

View File

@ -56,20 +56,4 @@ public class SisLibDeviceImgRefBo extends BaseEntity {
@NotNull(message = "设备库图片id不能为空", groups = { AddGroup.class, EditGroup.class }) @NotNull(message = "设备库图片id不能为空", groups = { AddGroup.class, EditGroup.class })
private Long eqpLibImgId; private Long eqpLibImgId;
/**
* 创建人id
*/
private Long createById;
/**
* 更新人id
*/
private Long updateById;
/**
* 搜索值
*/
private String searchValue;
} }

View File

@ -49,22 +49,6 @@ public class SisLibDeviceRefBo extends BaseEntity {
* 第三方设备库添加状态 1: 成功2失败 * 第三方设备库添加状态 1: 成功2失败
*/ */
@NotNull(message = "第三方设备库添加状态 1: 成功2失败不能为空", groups = {AddGroup.class, EditGroup.class}) @NotNull(message = "第三方设备库添加状态 1: 成功2失败不能为空", groups = {AddGroup.class, EditGroup.class})
private Long eqpLibState; private Integer eqpLibState;
/**
* 创建人id
*/
private Long createById;
/**
* 更新人id
*/
private Long updateById;
/**
* 搜索值
*/
private String searchValue;
} }

View File

@ -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; private List<Long> eqpIds;
/** /**
@ -53,7 +53,7 @@ public class SisPersonLibBo extends BaseEntity {
/** /**
* 库类型1人员库2工服库 * 库类型1人员库2工服库
*/ */
private Long libType; private Integer libType;
/** /**
* 库类型名称 * 库类型名称
@ -65,7 +65,7 @@ public class SisPersonLibBo extends BaseEntity {
/** /**
* 库的业务类型 1: 门禁库2: 黑名单库 * 库的业务类型 1: 门禁库2: 黑名单库
*/ */
private Long busiType = 1L; private Integer busiType = 1;
} }

View File

@ -53,7 +53,7 @@ public class SisPersonLibImgBo extends BaseEntity {
* 性别 1 * 性别 1
* 2 99未说明 * 2 99未说明
*/ */
private Long sex; private Integer sex;
/** /**
* 邮箱 * 邮箱
@ -70,7 +70,7 @@ public class SisPersonLibImgBo extends BaseEntity {
* 1身份证 2护照 * 1身份证 2护照
* 3行驶证 99其它 * 3行驶证 99其它
*/ */
private Long certificateType; private Integer certificateType;
/** /**
* 证件号码 * 证件号码
@ -81,21 +81,4 @@ public class SisPersonLibImgBo extends BaseEntity {
* 出生日期 * 出生日期
*/ */
private String birthDate; private String birthDate;
/**
* 创建人id
*/
private Long createById;
/**
* 更新人id
*/
private Long updateById;
/**
* 搜索值
*/
private String searchValue;
} }

View File

@ -43,12 +43,4 @@ public class TdFactoryBo extends BaseEntity {
* 备注 * 备注
*/ */
private String remark; private String remark;
/**
* 数据状态1有效0无效
*/
@NotNull(message = "数据状态1有效0无效不能为空", groups = {AddGroup.class, EditGroup.class})
private Long dataState;
} }

View File

@ -49,12 +49,12 @@ public class TdMeterBo extends BaseEntity {
/** /**
* 设备类型(1-电表2-水表3-气表) * 设备类型(1-电表2-水表3-气表)
*/ */
private Long meterType; private Integer meterType;
/** /**
* 表用途(1-分表2-总表3-公摊表) * 表用途(1-分表2-总表3-公摊表)
*/ */
private Long meterPurpose; private Integer meterPurpose;
/** /**
* 分摊类型 * 分摊类型
@ -64,17 +64,17 @@ public class TdMeterBo extends BaseEntity {
* 4-按房源数量 * 4-按房源数量
* 5-按固定比例 * 5-按固定比例
*/ */
private Long shareType; private Integer shareType;
/** /**
* 付费类型(1-先付费2-后付费) * 付费类型(1-先付费2-后付费)
*/ */
private Long payType; private Integer payType;
/** /**
* 最大表显读数(超过归0) * 最大表显读数(超过归0)
*/ */
private Long maxDisplay; private Integer maxDisplay;
/** /**
* 计费倍率 * 计费倍率

View File

@ -29,31 +29,31 @@ public class TdMeterConfigBo extends BaseEntity {
/** /**
* 设备类型(1-电表2-水表3-气表) * 设备类型(1-电表2-水表3-气表)
*/ */
private Long meterType; private Integer meterType;
/** /**
* 付费类型(1-先付费2-后付费) * 付费类型(1-先付费2-后付费)
*/ */
@NotNull(message = "付费类型(1-先付费2-后付费)不能为空", groups = { AddGroup.class, EditGroup.class }) @NotNull(message = "付费类型(1-先付费2-后付费)不能为空", groups = { AddGroup.class, EditGroup.class })
private Long payType; private Integer payType;
/** /**
* 欠费是否断电//(0-1-) * 欠费是否断电//(0-1-)
*/ */
@NotNull(message = "欠费是否断电/水/气(0-是1-否)不能为空", groups = { AddGroup.class, EditGroup.class }) @NotNull(message = "欠费是否断电/水/气(0-是1-否)不能为空", groups = { AddGroup.class, EditGroup.class })
private Long arrearsOutage; private Integer arrearsOutage;
/** /**
* 后付费模式下是否自动断电//0-1- * 后付费模式下是否自动断电//0-1-
*/ */
@NotNull(message = "后付费模式下是否自动断电/水/气0-是1-否)不能为空", groups = { AddGroup.class, EditGroup.class }) @NotNull(message = "后付费模式下是否自动断电/水/气0-是1-否)不能为空", groups = { AddGroup.class, EditGroup.class })
private Long autoOutage; private Integer autoOutage;
/** /**
* 当auto_outage=0的时候生效逾期多少天自动断水// * 当auto_outage=0的时候生效逾期多少天自动断水//
*/ */
@NotNull(message = "当auto_outage=0的时候生效逾期多少天自动断水/电/气不能为空", groups = { AddGroup.class, EditGroup.class }) @NotNull(message = "当auto_outage=0的时候生效逾期多少天自动断水/电/气不能为空", groups = { AddGroup.class, EditGroup.class })
private Long overdueDay; private Integer overdueDay;
/** /**
* 备注 * 备注

View File

@ -76,7 +76,7 @@ public class SisAccessControlDeviceVo implements Serializable {
* 设备端口 * 设备端口
*/ */
@ExcelProperty(value = "设备端口") @ExcelProperty(value = "设备端口")
private Long eqpPort; private Integer eqpPort;
/** /**
* 设备账号 * 设备账号

View File

@ -29,7 +29,7 @@ public class SisAccessControlVo implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/** /**
* *
*/ */
@ExcelProperty(value = "") @ExcelProperty(value = "")
private Long id; private Long id;
@ -65,19 +65,19 @@ public class SisAccessControlVo implements Serializable {
private String accessIp; private String accessIp;
/** /**
* *
*/ */
@ExcelProperty(value = "") @ExcelProperty(value = "")
private Long accessPort; private Integer accessPort;
/** /**
* 门禁设备类型 * 门禁设备类型
*/ */
@ExcelProperty(value = "门禁设备类型") @ExcelProperty(value = "门禁设备类型")
private Long accessType; private Integer accessType;
/** /**
* *
*/ */
@ExcelProperty(value = "") @ExcelProperty(value = "")
private String factoryCode; private String factoryCode;
@ -86,7 +86,7 @@ public class SisAccessControlVo implements Serializable {
* 控制卡类型1-系统2-E8 * 控制卡类型1-系统2-E8
*/ */
@ExcelProperty(value = "控制卡类型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 = "组织编码") @ExcelProperty(value = "组织编码")
private String orgCode; private String orgCode;
/**
* 数据状态1有效0无效
*/
@ExcelProperty(value = "数据状态1有效0无效")
private Long dataState;
/**
* 搜索值
*/
@ExcelProperty(value = "搜索值")
private String searchValue;
} }

View File

@ -53,7 +53,7 @@ public class SisDeviceManageVo implements Serializable {
* 设备端口 * 设备端口
*/ */
@ExcelProperty(value = "设备端口") @ExcelProperty(value = "设备端口")
private Long devicePort; private Integer devicePort;
/** /**
* 设备 * 设备
@ -61,12 +61,6 @@ public class SisDeviceManageVo implements Serializable {
@ExcelProperty(value = "设备") @ExcelProperty(value = "设备")
private String deviceMac; private String deviceMac;
/**
* 设备在线状态 0:离线 1:在线 2:未知
*/
@ExcelProperty(value = "设备在线状态 0:离线 1:在线 2:未知")
private Long deviceStatus;
/** /**
* 父级设备id * 父级设备id
*/ */
@ -83,7 +77,7 @@ public class SisDeviceManageVo implements Serializable {
* 录像机端口 * 录像机端口
*/ */
@ExcelProperty(value = "录像机端口") @ExcelProperty(value = "录像机端口")
private Long vcrPort; private Integer vcrPort;
/** /**
* 门禁id * 门禁id

View File

@ -43,7 +43,7 @@ public class SisDevicePointVo implements Serializable {
* rtsp * rtsp
*/ */
@ExcelProperty(value = "视频协议") @ExcelProperty(value = "视频协议")
private Long video; private Integer video;
/** /**
* 传输协议(AIBOX 需要 * 传输协议(AIBOX 需要
@ -51,7 +51,7 @@ public class SisDevicePointVo implements Serializable {
* udp * udp
*/ */
@ExcelProperty(value = "传输协议") @ExcelProperty(value = "传输协议")
private Long transportType; private Integer transportType;
/** /**
* 点位名称 * 点位名称
@ -77,7 +77,7 @@ public class SisDevicePointVo implements Serializable {
* 端口 * 端口
*/ */
@ExcelProperty(value = "端口") @ExcelProperty(value = "端口")
private Long port; private Integer port;
/** /**
* 通道相机账号 * 通道相机账号
@ -97,7 +97,7 @@ public class SisDevicePointVo implements Serializable {
* 义码流 * 义码流
*/ */
@ExcelProperty(value = "码流") @ExcelProperty(value = "码流")
private Long videoType; private Integer videoType;
/** /**
* 码流 id当选择自定义码 * 码流 id当选择自定义码
@ -108,11 +108,4 @@ public class SisDevicePointVo implements Serializable {
@ExcelProperty(value = "码流id") @ExcelProperty(value = "码流id")
private Long videoId; private Long videoId;
/**
* 搜索值
*/
@ExcelProperty(value = "搜索值")
private String searchValue;
} }

View File

@ -60,23 +60,4 @@ public class SisLibDeviceImgRefVo implements Serializable {
@ExcelProperty(value = "设备库图片id") @ExcelProperty(value = "设备库图片id")
private Long eqpLibImgId; private Long eqpLibImgId;
/**
* 创建人id
*/
@ExcelProperty(value = "创建人id")
private Long createById;
/**
* 更新人id
*/
@ExcelProperty(value = "更新人id")
private Long updateById;
/**
* 搜索值
*/
@ExcelProperty(value = "搜索值")
private String searchValue;
} }

View File

@ -52,25 +52,6 @@ public class SisLibDeviceRefVo implements Serializable {
* 第三方设备库添加状态 1: 成功2失败 * 第三方设备库添加状态 1: 成功2失败
*/ */
@ExcelProperty(value = "第三方设备库添加状态 1: 成功2失败") @ExcelProperty(value = "第三方设备库添加状态 1: 成功2失败")
private Long eqpLibState; private Integer eqpLibState;
/**
* 创建人id
*/
@ExcelProperty(value = "创建人id")
private Long createById;
/**
* 更新人id
*/
@ExcelProperty(value = "更新人id")
private Long updateById;
/**
* 搜索值
*/
@ExcelProperty(value = "搜索值")
private String searchValue;
} }

View File

@ -60,7 +60,7 @@ public class SisPersonLibImgVo implements Serializable {
2 99未说明 2 99未说明
*/ */
@ExcelProperty(value = "性别 1") @ExcelProperty(value = "性别 1")
private Long sex; private Integer sex;
/** /**
* 邮箱 * 邮箱
@ -80,7 +80,7 @@ public class SisPersonLibImgVo implements Serializable {
3行驶证 99其它 3行驶证 99其它
*/ */
@ExcelProperty(value = "证件类型") @ExcelProperty(value = "证件类型")
private Long certificateType; private Integer certificateType;
/** /**
* 证件号码 * 证件号码
@ -94,23 +94,4 @@ public class SisPersonLibImgVo implements Serializable {
@ExcelProperty(value = "出生日期") @ExcelProperty(value = "出生日期")
private String birthDate; private String birthDate;
/**
* 创建人id
*/
@ExcelProperty(value = "创建人id")
private Long createById;
/**
* 更新人id
*/
@ExcelProperty(value = "更新人id")
private Long updateById;
/**
* 搜索值
*/
@ExcelProperty(value = "搜索值")
private String searchValue;
} }

View File

@ -52,31 +52,12 @@ public class SisPersonLibVo implements Serializable {
* 库类型1人员库2工服库 * 库类型1人员库2工服库
*/ */
@ExcelProperty(value = "库类型1人员库2工服库") @ExcelProperty(value = "库类型1人员库2工服库")
private Long libType; private Integer libType;
/** /**
* 库的业务类型 1: 门禁库2: 黑名单库 * 库的业务类型 1: 门禁库2: 黑名单库
*/ */
@ExcelProperty(value = "库的业务类型 1: 门禁库2: 黑名单库") @ExcelProperty(value = "库的业务类型 1: 门禁库2: 黑名单库")
private Long busiType; private Integer busiType;
/**
* 创建人id
*/
@ExcelProperty(value = "创建人id")
private Long createById;
/**
* 更新人id
*/
@ExcelProperty(value = "更新人id")
private Long updateById;
/**
* 搜索值
*/
@ExcelProperty(value = "搜索值")
private String searchValue;
} }

View File

@ -48,11 +48,4 @@ public class TdFactoryVo implements Serializable {
@ExcelProperty(value = "备注") @ExcelProperty(value = "备注")
private String remark; private String remark;
/**
* 数据状态1有效0无效
*/
@ExcelProperty(value = "数据状态1有效0无效")
private Long dataState;
} }

View File

@ -36,32 +36,32 @@ public class TdMeterConfigVo implements Serializable {
* 设备类型(1-电表2-水表3-气表) * 设备类型(1-电表2-水表3-气表)
*/ */
@ExcelProperty(value = "设备类型(1-电表2-水表3-气表)") @ExcelProperty(value = "设备类型(1-电表2-水表3-气表)")
private Long meterType; private Integer meterType;
/** /**
* 付费类型(1-先付费2-后付费) * 付费类型(1-先付费2-后付费)
*/ */
@ExcelProperty(value = "付费类型(1-先付费2-后付费)") @ExcelProperty(value = "付费类型(1-先付费2-后付费)")
private Long payType; private Integer payType;
/** /**
* 欠费是否断电//(0-1-) * 欠费是否断电//(0-1-)
*/ */
@ExcelProperty(value = "欠费是否断电/水/气(0-是1-否)") @ExcelProperty(value = "欠费是否断电/水/气(0-是1-否)")
private Long arrearsOutage; private Integer arrearsOutage;
/** /**
* 后付费模式下是否自动断电//0-1- * 后付费模式下是否自动断电//0-1-
*/ */
@ExcelProperty(value = "后付费模式下是否自动断电/水/气", converter = ExcelDictConvert.class) @ExcelProperty(value = "后付费模式下是否自动断电/水/气", converter = ExcelDictConvert.class)
@ExcelDictFormat(readConverterExp = "0=-是1-否") @ExcelDictFormat(readConverterExp = "0=-是1-否")
private Long autoOutage; private Integer autoOutage;
/** /**
* 当auto_outage=0的时候生效逾期多少天自动断水// * 当auto_outage=0的时候生效逾期多少天自动断水//
*/ */
@ExcelProperty(value = "当auto_outage=0的时候生效逾期多少天自动断水/电/气") @ExcelProperty(value = "当auto_outage=0的时候生效逾期多少天自动断水/电/气")
private Long overdueDay; private Integer overdueDay;
/** /**
* 备注 * 备注

View File

@ -53,13 +53,13 @@ public class TdMeterVo implements Serializable {
* 设备类型(1-电表2-水表3-气表) * 设备类型(1-电表2-水表3-气表)
*/ */
@ExcelProperty(value = "设备类型(1-电表2-水表3-气表)") @ExcelProperty(value = "设备类型(1-电表2-水表3-气表)")
private Long meterType; private Integer meterType;
/** /**
* 表用途(1-分表2-总表3-公摊表) * 表用途(1-分表2-总表3-公摊表)
*/ */
@ExcelProperty(value = "表用途(1-分表2-总表3-公摊表)") @ExcelProperty(value = "表用途(1-分表2-总表3-公摊表)")
private Long meterPurpose; private Integer meterPurpose;
/** /**
* 分摊类型 * 分摊类型
@ -70,13 +70,13 @@ public class TdMeterVo implements Serializable {
* 5-按固定比例 * 5-按固定比例
*/ */
@ExcelProperty(value = "分摊类型 1-不公摊 2-按分表用量 3-按租客面积 4-按房源数量 5-按固定比例") @ExcelProperty(value = "分摊类型 1-不公摊 2-按分表用量 3-按租客面积 4-按房源数量 5-按固定比例")
private Long shareType; private Integer shareType;
/** /**
* 付费类型(1-先付费2-后付费) * 付费类型(1-先付费2-后付费)
*/ */
@ExcelProperty(value = "付费类型(1-先付费2-后付费)") @ExcelProperty(value = "付费类型(1-先付费2-后付费)")
private Long payType; private Integer payType;
/** /**
* 当前表显示读数 * 当前表显示读数
@ -94,13 +94,13 @@ public class TdMeterVo implements Serializable {
* 通信状态 * 通信状态
*/ */
@ExcelProperty(value = "通信状态") @ExcelProperty(value = "通信状态")
private Long communicationState; private Integer communicationState;
/** /**
* 运行状态 * 运行状态
*/ */
@ExcelProperty(value = "运行状态") @ExcelProperty(value = "运行状态")
private Long runningState; private Integer runningState;
/** /**
* 备注 * 备注

View File

@ -28,7 +28,7 @@ public class DoorDeviceAddReq {
/** /**
* 设备端口 * 设备端口
*/ */
private Long port; private Integer port;
/** /**
* 设备MAC * 设备MAC
@ -56,7 +56,7 @@ public class DoorDeviceAddReq {
* 2201:一体式门禁 2202:分体式门禁 2203:人脸门禁 2204:梯控 2207:人脸盒子终端 * 2201:一体式门禁 2202:分体式门禁 2203:人脸门禁 2204:梯控 2207:人脸盒子终端
* 2208:人脸盒子面板机 2209:一体式读头 2211:梯控读头 2102:电子哨兵 * 2208:人脸盒子面板机 2209:一体式读头 2211:梯控读头 2102:电子哨兵
*/ */
private Long type; private Integer type;
/** /**
* 业务逻辑设备类 * 业务逻辑设备类

View File

@ -106,14 +106,13 @@ public class UniViewHttp {
if (data == null) { if (data == null) {
requestEntity = new HttpEntity<>(null, headers); requestEntity = new HttpEntity<>(null, headers);
} }
if (data instanceof JSONObject) { if (data instanceof JSONObject obj) {
JSONObject obj = (JSONObject) data;
requestEntity = new HttpEntity<>(obj.toJSONString(), headers); requestEntity = new HttpEntity<>(obj.toJSONString(), headers);
} else { } else {
requestEntity = new HttpEntity<>(JSONObject.toJSONString(data), headers); requestEntity = new HttpEntity<>(JSONObject.toJSONString(data), headers);
} }
ResponseEntity<String> exchange = restTemplate.exchange(requestUrl, api.getMethod(), requestEntity, String.class); ResponseEntity<String> exchange = restTemplate.exchange(requestUrl, api.getMethod(), requestEntity, String.class);
int statusCode = exchange.getStatusCodeValue(); int statusCode = exchange.getStatusCode().value();
String body = exchange.getBody(); String body = exchange.getBody();
if (HttpStatus.HTTP_UNAUTHORIZED == statusCode) { if (HttpStatus.HTTP_UNAUTHORIZED == statusCode) {

View File

@ -92,7 +92,6 @@ public class SisAccessControlServiceImpl implements ISisAccessControlService {
lqw.eq(bo.getControlType() != null, SisAccessControl::getControlType, bo.getControlType()); lqw.eq(bo.getControlType() != null, SisAccessControl::getControlType, bo.getControlType());
lqw.eq(StringUtils.isNotBlank(bo.getControlCode()), SisAccessControl::getControlCode, bo.getControlCode()); 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.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()); lqw.eq(StringUtils.isNotBlank(bo.getSearchValue()), SisAccessControl::getSearchValue, bo.getSearchValue());
return lqw; return lqw;
} }

View File

@ -79,7 +79,6 @@ public class SisDeviceManageServiceImpl implements ISisDeviceManageService {
lqw.eq(StringUtils.isNotBlank(bo.getDeviceIp()), SisDeviceManage::getDeviceIp, bo.getDeviceIp()); lqw.eq(StringUtils.isNotBlank(bo.getDeviceIp()), SisDeviceManage::getDeviceIp, bo.getDeviceIp());
lqw.eq(bo.getDevicePort() != null, SisDeviceManage::getDevicePort, bo.getDevicePort()); lqw.eq(bo.getDevicePort() != null, SisDeviceManage::getDevicePort, bo.getDevicePort());
lqw.eq(StringUtils.isNotBlank(bo.getDeviceMac()), SisDeviceManage::getDeviceMac, bo.getDeviceMac()); 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(bo.getParentId() != null, SisDeviceManage::getParentId, bo.getParentId());
lqw.eq(StringUtils.isNotBlank(bo.getVcrIp()), SisDeviceManage::getVcrIp, bo.getVcrIp()); lqw.eq(StringUtils.isNotBlank(bo.getVcrIp()), SisDeviceManage::getVcrIp, bo.getVcrIp());
lqw.eq(bo.getVcrPort() != null, SisDeviceManage::getVcrPort, bo.getVcrPort()); lqw.eq(bo.getVcrPort() != null, SisDeviceManage::getVcrPort, bo.getVcrPort());

View File

@ -122,7 +122,7 @@ public class SisPersonLibServiceImpl implements ISisPersonLibService {
systemInfo.setAccount(sisAccessControlDeviceVo.getEqpAccount()); systemInfo.setAccount(sisAccessControlDeviceVo.getEqpAccount());
systemInfo.setPassword(sisAccessControlDeviceVo.getEqpPwd()); systemInfo.setPassword(sisAccessControlDeviceVo.getEqpPwd());
systemInfo.setIp(sisAccessControlDeviceVo.getEqpIp()); systemInfo.setIp(sisAccessControlDeviceVo.getEqpIp());
systemInfo.setPort(systemInfo.getPort()); systemInfo.setPort(sisAccessControlDeviceVo.getEqpPort());
// libType =1 人像库否则工服库 // libType =1 人像库否则工服库
Integer outLibCode = null; Integer outLibCode = null;
if (bo.getLibType() == 1) { if (bo.getLibType() == 1) {
@ -138,7 +138,7 @@ public class SisPersonLibServiceImpl implements ISisPersonLibService {
ref.setLibId(add.getId()); ref.setLibId(add.getId());
ref.setEqpId(sisAccessControlDeviceVo.getId()); ref.setEqpId(sisAccessControlDeviceVo.getId());
ref.setEqpLibCode(Long.valueOf(outLibCode)); ref.setEqpLibCode(Long.valueOf(outLibCode));
ref.setEqpLibState(1L); ref.setEqpLibState(1);
Boolean insert = sisLibDeviceRefService.insert(ref); Boolean insert = sisLibDeviceRefService.insert(ref);
Assert.isTrue(insert, "写入库关联关系表失败!"); Assert.isTrue(insert, "写入库关联关系表失败!");
log.info("同步建库完成!"); log.info("同步建库完成!");

View File

@ -76,7 +76,6 @@ public class TdFactoryServiceImpl implements ITdFactoryService {
lqw.orderByAsc(TdFactory::getId); lqw.orderByAsc(TdFactory::getId);
lqw.eq(StringUtils.isNotBlank(bo.getFactoryNo()), TdFactory::getFactoryNo, bo.getFactoryNo()); lqw.eq(StringUtils.isNotBlank(bo.getFactoryNo()), TdFactory::getFactoryNo, bo.getFactoryNo());
lqw.like(StringUtils.isNotBlank(bo.getFactoryName()), TdFactory::getFactoryName, bo.getFactoryName()); lqw.like(StringUtils.isNotBlank(bo.getFactoryName()), TdFactory::getFactoryName, bo.getFactoryName());
lqw.eq(bo.getDataState() != null, TdFactory::getDataState, bo.getDataState());
return lqw; return lqw;
} }