diff --git a/gb28181-service/pom.xml b/gb28181-service/pom.xml
index 5e77728..98a2285 100644
--- a/gb28181-service/pom.xml
+++ b/gb28181-service/pom.xml
@@ -19,6 +19,12 @@
+
+ cn.skcks.docking.gb28181
+ orm
+ ${project.version}
+
+
cn.skcks.docking.gb28181
common
diff --git a/gb28181-service/src/main/java/cn/skcks/docking/gb28181/orm/DockingOrmInitService.java b/gb28181-service/src/main/java/cn/skcks/docking/gb28181/orm/DockingOrmInitService.java
new file mode 100644
index 0000000..32693f3
--- /dev/null
+++ b/gb28181-service/src/main/java/cn/skcks/docking/gb28181/orm/DockingOrmInitService.java
@@ -0,0 +1,28 @@
+package cn.skcks.docking.gb28181.orm;
+
+import cn.skcks.docking.gb28181.orm.mybatis.operation.OperateTableMapper;
+import jakarta.annotation.PostConstruct;
+import lombok.RequiredArgsConstructor;
+import lombok.extern.slf4j.Slf4j;
+import org.mybatis.spring.annotation.MapperScan;
+import org.mybatis.spring.annotation.MapperScans;
+import org.springframework.core.annotation.Order;
+import org.springframework.stereotype.Service;
+
+@Slf4j
+@Service
+@Order(0)
+@RequiredArgsConstructor
+@MapperScans({
+ @MapperScan("cn.skcks.docking.gb28181.orm.mybatis.dynamic"),
+ @MapperScan("cn.skcks.docking.gb28181.orm.mybatis.operation"),
+})
+public class DockingOrmInitService {
+ private final OperateTableMapper mapper;
+
+ @PostConstruct
+ public void init() {
+ log.info("[orm] 自动建表");
+ mapper.createDeviceTable();
+ }
+}
diff --git a/gb28181-service/src/main/java/cn/skcks/docking/gb28181/starter/SipStarter.java b/gb28181-service/src/main/java/cn/skcks/docking/gb28181/starter/SipStarter.java
index 265da54..37cd721 100644
--- a/gb28181-service/src/main/java/cn/skcks/docking/gb28181/starter/SipStarter.java
+++ b/gb28181-service/src/main/java/cn/skcks/docking/gb28181/starter/SipStarter.java
@@ -6,6 +6,7 @@ import cn.skcks.docking.gb28181.core.sip.service.SipService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.SmartLifecycle;
+import org.springframework.context.annotation.DependsOn;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;
import org.springframework.util.CollectionUtils;
@@ -14,6 +15,7 @@ import org.springframework.util.CollectionUtils;
@Slf4j
@RequiredArgsConstructor
@Component
+@DependsOn("dockingOrmInitService")
public class SipStarter implements SmartLifecycle {
private final SipConfig sipConfig;
private final SipService sipService;
diff --git a/orm/pom.xml b/orm/pom.xml
index 2d44e20..acc3cad 100644
--- a/orm/pom.xml
+++ b/orm/pom.xml
@@ -18,4 +18,115 @@
UTF-8
+
+
+
+ org.mybatis.spring.boot
+ mybatis-spring-boot-starter
+
+
+
+ org.mybatis.spring.boot
+ mybatis-spring-boot-starter-test
+ 3.0.2
+ test
+
+
+
+ com.github.pagehelper
+ pagehelper-spring-boot-starter
+
+
+
+
+ org.mybatis.dynamic-sql
+ mybatis-dynamic-sql
+
+
+
+ org.springframework.boot
+ spring-boot-starter
+
+
+
+ com.mysql
+ mysql-connector-j
+
+
+
+ org.springframework.boot
+ spring-boot-starter-test
+ test
+
+
+
+ org.junit.jupiter
+ junit-jupiter-api
+ test
+
+
+
+
+
+
+ src/main/java
+
+ **/**
+
+
+
+ src/main/resources
+
+ **/**
+
+
+
+
+
+
+ src/test/resources
+
+ **/**
+
+ true
+
+
+
+
+
+ org.springframework.boot
+ spring-boot-maven-plugin
+
+ true
+
+
+
+
+ org.mybatis.generator
+ mybatis-generator-maven-plugin
+ ${mybatis-generator-maven-plugin.version}
+
+
+ src/main/resources/config/generatorConfig.xml
+ true
+ true
+
+
+
+ Generate MyBatis Artifacts
+
+ generate
+
+
+
+
+
+ com.mysql
+ mysql-connector-j
+ ${mysql.version}
+
+
+
+
+
diff --git a/orm/src/main/java/cn/skcks/docking/gb28181/orm/mybatis/basic/mapper/DockingDeviceMapper.java b/orm/src/main/java/cn/skcks/docking/gb28181/orm/mybatis/basic/mapper/DockingDeviceMapper.java
new file mode 100644
index 0000000..21787e9
--- /dev/null
+++ b/orm/src/main/java/cn/skcks/docking/gb28181/orm/mybatis/basic/mapper/DockingDeviceMapper.java
@@ -0,0 +1,218 @@
+package cn.skcks.docking.gb28181.orm.mybatis.basic.mapper;
+
+import cn.skcks.docking.gb28181.orm.mybatis.basic.model.DockingDevice;
+import java.util.List;
+import org.apache.ibatis.annotations.Delete;
+import org.apache.ibatis.annotations.Insert;
+import org.apache.ibatis.annotations.Result;
+import org.apache.ibatis.annotations.Results;
+import org.apache.ibatis.annotations.Select;
+import org.apache.ibatis.annotations.Update;
+import org.apache.ibatis.type.JdbcType;
+
+public interface DockingDeviceMapper {
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table docking_device
+ *
+ * @mbg.generated
+ */
+ @Delete({
+ "delete from docking_device",
+ "where id = #{id,jdbcType=BIGINT}"
+ })
+ int deleteByPrimaryKey(Long id);
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table docking_device
+ *
+ * @mbg.generated
+ */
+ @Insert({
+ "insert into docking_device (id, device_id, ",
+ "name, manufacturer, ",
+ "model, firmware, ",
+ "transport, stream_mode, ",
+ "on_line, register_time, ",
+ "keepalive_time, ip, ",
+ "create_time, update_time, ",
+ "port, expires, subscribe_cycle_for_catalog, ",
+ "subscribe_cycle_for_mobile_position, mobile_position_submission_interval, ",
+ "subscribe_cycle_for_alarm, host_address, ",
+ "charset, ssrc_check, ",
+ "geo_coord_sys, media_server_id, ",
+ "custom_name, sdp_ip, ",
+ "local_ip, password, ",
+ "as_message_channel, keepalive_interval_time, ",
+ "switch_primary_sub_stream, broadcast_push_after_ack)",
+ "values (#{id,jdbcType=BIGINT}, #{deviceId,jdbcType=VARCHAR}, ",
+ "#{name,jdbcType=VARCHAR}, #{manufacturer,jdbcType=VARCHAR}, ",
+ "#{model,jdbcType=VARCHAR}, #{firmware,jdbcType=VARCHAR}, ",
+ "#{transport,jdbcType=VARCHAR}, #{streamMode,jdbcType=VARCHAR}, ",
+ "#{onLine,jdbcType=BIT}, #{registerTime,jdbcType=VARCHAR}, ",
+ "#{keepaliveTime,jdbcType=VARCHAR}, #{ip,jdbcType=VARCHAR}, ",
+ "#{createTime,jdbcType=VARCHAR}, #{updateTime,jdbcType=VARCHAR}, ",
+ "#{port,jdbcType=INTEGER}, #{expires,jdbcType=INTEGER}, #{subscribeCycleForCatalog,jdbcType=INTEGER}, ",
+ "#{subscribeCycleForMobilePosition,jdbcType=INTEGER}, #{mobilePositionSubmissionInterval,jdbcType=INTEGER}, ",
+ "#{subscribeCycleForAlarm,jdbcType=INTEGER}, #{hostAddress,jdbcType=VARCHAR}, ",
+ "#{charset,jdbcType=VARCHAR}, #{ssrcCheck,jdbcType=BIT}, ",
+ "#{geoCoordSys,jdbcType=VARCHAR}, #{mediaServerId,jdbcType=VARCHAR}, ",
+ "#{customName,jdbcType=VARCHAR}, #{sdpIp,jdbcType=VARCHAR}, ",
+ "#{localIp,jdbcType=VARCHAR}, #{password,jdbcType=VARCHAR}, ",
+ "#{asMessageChannel,jdbcType=BIT}, #{keepaliveIntervalTime,jdbcType=INTEGER}, ",
+ "#{switchPrimarySubStream,jdbcType=BIT}, #{broadcastPushAfterAck,jdbcType=BIT})"
+ })
+ int insert(DockingDevice row);
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table docking_device
+ *
+ * @mbg.generated
+ */
+ @Select({
+ "select",
+ "id, device_id, name, manufacturer, model, firmware, transport, stream_mode, ",
+ "on_line, register_time, keepalive_time, ip, create_time, update_time, port, ",
+ "expires, subscribe_cycle_for_catalog, subscribe_cycle_for_mobile_position, mobile_position_submission_interval, ",
+ "subscribe_cycle_for_alarm, host_address, charset, ssrc_check, geo_coord_sys, ",
+ "media_server_id, custom_name, sdp_ip, local_ip, password, as_message_channel, ",
+ "keepalive_interval_time, switch_primary_sub_stream, broadcast_push_after_ack",
+ "from docking_device",
+ "where id = #{id,jdbcType=BIGINT}"
+ })
+ @Results({
+ @Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true),
+ @Result(column="device_id", property="deviceId", jdbcType=JdbcType.VARCHAR),
+ @Result(column="name", property="name", jdbcType=JdbcType.VARCHAR),
+ @Result(column="manufacturer", property="manufacturer", jdbcType=JdbcType.VARCHAR),
+ @Result(column="model", property="model", jdbcType=JdbcType.VARCHAR),
+ @Result(column="firmware", property="firmware", jdbcType=JdbcType.VARCHAR),
+ @Result(column="transport", property="transport", jdbcType=JdbcType.VARCHAR),
+ @Result(column="stream_mode", property="streamMode", jdbcType=JdbcType.VARCHAR),
+ @Result(column="on_line", property="onLine", jdbcType=JdbcType.BIT),
+ @Result(column="register_time", property="registerTime", jdbcType=JdbcType.VARCHAR),
+ @Result(column="keepalive_time", property="keepaliveTime", jdbcType=JdbcType.VARCHAR),
+ @Result(column="ip", property="ip", jdbcType=JdbcType.VARCHAR),
+ @Result(column="create_time", property="createTime", jdbcType=JdbcType.VARCHAR),
+ @Result(column="update_time", property="updateTime", jdbcType=JdbcType.VARCHAR),
+ @Result(column="port", property="port", jdbcType=JdbcType.INTEGER),
+ @Result(column="expires", property="expires", jdbcType=JdbcType.INTEGER),
+ @Result(column="subscribe_cycle_for_catalog", property="subscribeCycleForCatalog", jdbcType=JdbcType.INTEGER),
+ @Result(column="subscribe_cycle_for_mobile_position", property="subscribeCycleForMobilePosition", jdbcType=JdbcType.INTEGER),
+ @Result(column="mobile_position_submission_interval", property="mobilePositionSubmissionInterval", jdbcType=JdbcType.INTEGER),
+ @Result(column="subscribe_cycle_for_alarm", property="subscribeCycleForAlarm", jdbcType=JdbcType.INTEGER),
+ @Result(column="host_address", property="hostAddress", jdbcType=JdbcType.VARCHAR),
+ @Result(column="charset", property="charset", jdbcType=JdbcType.VARCHAR),
+ @Result(column="ssrc_check", property="ssrcCheck", jdbcType=JdbcType.BIT),
+ @Result(column="geo_coord_sys", property="geoCoordSys", jdbcType=JdbcType.VARCHAR),
+ @Result(column="media_server_id", property="mediaServerId", jdbcType=JdbcType.VARCHAR),
+ @Result(column="custom_name", property="customName", jdbcType=JdbcType.VARCHAR),
+ @Result(column="sdp_ip", property="sdpIp", jdbcType=JdbcType.VARCHAR),
+ @Result(column="local_ip", property="localIp", jdbcType=JdbcType.VARCHAR),
+ @Result(column="password", property="password", jdbcType=JdbcType.VARCHAR),
+ @Result(column="as_message_channel", property="asMessageChannel", jdbcType=JdbcType.BIT),
+ @Result(column="keepalive_interval_time", property="keepaliveIntervalTime", jdbcType=JdbcType.INTEGER),
+ @Result(column="switch_primary_sub_stream", property="switchPrimarySubStream", jdbcType=JdbcType.BIT),
+ @Result(column="broadcast_push_after_ack", property="broadcastPushAfterAck", jdbcType=JdbcType.BIT)
+ })
+ DockingDevice selectByPrimaryKey(Long id);
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table docking_device
+ *
+ * @mbg.generated
+ */
+ @Select({
+ "select",
+ "id, device_id, name, manufacturer, model, firmware, transport, stream_mode, ",
+ "on_line, register_time, keepalive_time, ip, create_time, update_time, port, ",
+ "expires, subscribe_cycle_for_catalog, subscribe_cycle_for_mobile_position, mobile_position_submission_interval, ",
+ "subscribe_cycle_for_alarm, host_address, charset, ssrc_check, geo_coord_sys, ",
+ "media_server_id, custom_name, sdp_ip, local_ip, password, as_message_channel, ",
+ "keepalive_interval_time, switch_primary_sub_stream, broadcast_push_after_ack",
+ "from docking_device"
+ })
+ @Results({
+ @Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true),
+ @Result(column="device_id", property="deviceId", jdbcType=JdbcType.VARCHAR),
+ @Result(column="name", property="name", jdbcType=JdbcType.VARCHAR),
+ @Result(column="manufacturer", property="manufacturer", jdbcType=JdbcType.VARCHAR),
+ @Result(column="model", property="model", jdbcType=JdbcType.VARCHAR),
+ @Result(column="firmware", property="firmware", jdbcType=JdbcType.VARCHAR),
+ @Result(column="transport", property="transport", jdbcType=JdbcType.VARCHAR),
+ @Result(column="stream_mode", property="streamMode", jdbcType=JdbcType.VARCHAR),
+ @Result(column="on_line", property="onLine", jdbcType=JdbcType.BIT),
+ @Result(column="register_time", property="registerTime", jdbcType=JdbcType.VARCHAR),
+ @Result(column="keepalive_time", property="keepaliveTime", jdbcType=JdbcType.VARCHAR),
+ @Result(column="ip", property="ip", jdbcType=JdbcType.VARCHAR),
+ @Result(column="create_time", property="createTime", jdbcType=JdbcType.VARCHAR),
+ @Result(column="update_time", property="updateTime", jdbcType=JdbcType.VARCHAR),
+ @Result(column="port", property="port", jdbcType=JdbcType.INTEGER),
+ @Result(column="expires", property="expires", jdbcType=JdbcType.INTEGER),
+ @Result(column="subscribe_cycle_for_catalog", property="subscribeCycleForCatalog", jdbcType=JdbcType.INTEGER),
+ @Result(column="subscribe_cycle_for_mobile_position", property="subscribeCycleForMobilePosition", jdbcType=JdbcType.INTEGER),
+ @Result(column="mobile_position_submission_interval", property="mobilePositionSubmissionInterval", jdbcType=JdbcType.INTEGER),
+ @Result(column="subscribe_cycle_for_alarm", property="subscribeCycleForAlarm", jdbcType=JdbcType.INTEGER),
+ @Result(column="host_address", property="hostAddress", jdbcType=JdbcType.VARCHAR),
+ @Result(column="charset", property="charset", jdbcType=JdbcType.VARCHAR),
+ @Result(column="ssrc_check", property="ssrcCheck", jdbcType=JdbcType.BIT),
+ @Result(column="geo_coord_sys", property="geoCoordSys", jdbcType=JdbcType.VARCHAR),
+ @Result(column="media_server_id", property="mediaServerId", jdbcType=JdbcType.VARCHAR),
+ @Result(column="custom_name", property="customName", jdbcType=JdbcType.VARCHAR),
+ @Result(column="sdp_ip", property="sdpIp", jdbcType=JdbcType.VARCHAR),
+ @Result(column="local_ip", property="localIp", jdbcType=JdbcType.VARCHAR),
+ @Result(column="password", property="password", jdbcType=JdbcType.VARCHAR),
+ @Result(column="as_message_channel", property="asMessageChannel", jdbcType=JdbcType.BIT),
+ @Result(column="keepalive_interval_time", property="keepaliveIntervalTime", jdbcType=JdbcType.INTEGER),
+ @Result(column="switch_primary_sub_stream", property="switchPrimarySubStream", jdbcType=JdbcType.BIT),
+ @Result(column="broadcast_push_after_ack", property="broadcastPushAfterAck", jdbcType=JdbcType.BIT)
+ })
+ List selectAll();
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method corresponds to the database table docking_device
+ *
+ * @mbg.generated
+ */
+ @Update({
+ "update docking_device",
+ "set device_id = #{deviceId,jdbcType=VARCHAR},",
+ "name = #{name,jdbcType=VARCHAR},",
+ "manufacturer = #{manufacturer,jdbcType=VARCHAR},",
+ "model = #{model,jdbcType=VARCHAR},",
+ "firmware = #{firmware,jdbcType=VARCHAR},",
+ "transport = #{transport,jdbcType=VARCHAR},",
+ "stream_mode = #{streamMode,jdbcType=VARCHAR},",
+ "on_line = #{onLine,jdbcType=BIT},",
+ "register_time = #{registerTime,jdbcType=VARCHAR},",
+ "keepalive_time = #{keepaliveTime,jdbcType=VARCHAR},",
+ "ip = #{ip,jdbcType=VARCHAR},",
+ "create_time = #{createTime,jdbcType=VARCHAR},",
+ "update_time = #{updateTime,jdbcType=VARCHAR},",
+ "port = #{port,jdbcType=INTEGER},",
+ "expires = #{expires,jdbcType=INTEGER},",
+ "subscribe_cycle_for_catalog = #{subscribeCycleForCatalog,jdbcType=INTEGER},",
+ "subscribe_cycle_for_mobile_position = #{subscribeCycleForMobilePosition,jdbcType=INTEGER},",
+ "mobile_position_submission_interval = #{mobilePositionSubmissionInterval,jdbcType=INTEGER},",
+ "subscribe_cycle_for_alarm = #{subscribeCycleForAlarm,jdbcType=INTEGER},",
+ "host_address = #{hostAddress,jdbcType=VARCHAR},",
+ "charset = #{charset,jdbcType=VARCHAR},",
+ "ssrc_check = #{ssrcCheck,jdbcType=BIT},",
+ "geo_coord_sys = #{geoCoordSys,jdbcType=VARCHAR},",
+ "media_server_id = #{mediaServerId,jdbcType=VARCHAR},",
+ "custom_name = #{customName,jdbcType=VARCHAR},",
+ "sdp_ip = #{sdpIp,jdbcType=VARCHAR},",
+ "local_ip = #{localIp,jdbcType=VARCHAR},",
+ "password = #{password,jdbcType=VARCHAR},",
+ "as_message_channel = #{asMessageChannel,jdbcType=BIT},",
+ "keepalive_interval_time = #{keepaliveIntervalTime,jdbcType=INTEGER},",
+ "switch_primary_sub_stream = #{switchPrimarySubStream,jdbcType=BIT},",
+ "broadcast_push_after_ack = #{broadcastPushAfterAck,jdbcType=BIT}",
+ "where id = #{id,jdbcType=BIGINT}"
+ })
+ int updateByPrimaryKey(DockingDevice row);
+}
\ No newline at end of file
diff --git a/orm/src/main/java/cn/skcks/docking/gb28181/orm/mybatis/basic/model/DockingDevice.java b/orm/src/main/java/cn/skcks/docking/gb28181/orm/mybatis/basic/model/DockingDevice.java
new file mode 100644
index 0000000..1c53ed7
--- /dev/null
+++ b/orm/src/main/java/cn/skcks/docking/gb28181/orm/mybatis/basic/model/DockingDevice.java
@@ -0,0 +1,1097 @@
+package cn.skcks.docking.gb28181.orm.mybatis.basic.model;
+
+/**
+ *
+ * This class was generated by MyBatis Generator.
+ * This class corresponds to the database table docking_device
+ */
+public class DockingDevice {
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column docking_device.id
+ *
+ * @mbg.generated
+ */
+ private Long id;
+
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column docking_device.device_id
+ *
+ * @mbg.generated
+ */
+ private String deviceId;
+
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column docking_device.name
+ *
+ * @mbg.generated
+ */
+ private String name;
+
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column docking_device.manufacturer
+ *
+ * @mbg.generated
+ */
+ private String manufacturer;
+
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column docking_device.model
+ *
+ * @mbg.generated
+ */
+ private String model;
+
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column docking_device.firmware
+ *
+ * @mbg.generated
+ */
+ private String firmware;
+
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column docking_device.transport
+ *
+ * @mbg.generated
+ */
+ private String transport;
+
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column docking_device.stream_mode
+ *
+ * @mbg.generated
+ */
+ private String streamMode;
+
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column docking_device.on_line
+ *
+ * @mbg.generated
+ */
+ private Boolean onLine;
+
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column docking_device.register_time
+ *
+ * @mbg.generated
+ */
+ private String registerTime;
+
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column docking_device.keepalive_time
+ *
+ * @mbg.generated
+ */
+ private String keepaliveTime;
+
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column docking_device.ip
+ *
+ * @mbg.generated
+ */
+ private String ip;
+
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column docking_device.create_time
+ *
+ * @mbg.generated
+ */
+ private String createTime;
+
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column docking_device.update_time
+ *
+ * @mbg.generated
+ */
+ private String updateTime;
+
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column docking_device.port
+ *
+ * @mbg.generated
+ */
+ private Integer port;
+
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column docking_device.expires
+ *
+ * @mbg.generated
+ */
+ private Integer expires;
+
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column docking_device.subscribe_cycle_for_catalog
+ *
+ * @mbg.generated
+ */
+ private Integer subscribeCycleForCatalog;
+
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column docking_device.subscribe_cycle_for_mobile_position
+ *
+ * @mbg.generated
+ */
+ private Integer subscribeCycleForMobilePosition;
+
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column docking_device.mobile_position_submission_interval
+ *
+ * @mbg.generated
+ */
+ private Integer mobilePositionSubmissionInterval;
+
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column docking_device.subscribe_cycle_for_alarm
+ *
+ * @mbg.generated
+ */
+ private Integer subscribeCycleForAlarm;
+
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column docking_device.host_address
+ *
+ * @mbg.generated
+ */
+ private String hostAddress;
+
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column docking_device.charset
+ *
+ * @mbg.generated
+ */
+ private String charset;
+
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column docking_device.ssrc_check
+ *
+ * @mbg.generated
+ */
+ private Boolean ssrcCheck;
+
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column docking_device.geo_coord_sys
+ *
+ * @mbg.generated
+ */
+ private String geoCoordSys;
+
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column docking_device.media_server_id
+ *
+ * @mbg.generated
+ */
+ private String mediaServerId;
+
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column docking_device.custom_name
+ *
+ * @mbg.generated
+ */
+ private String customName;
+
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column docking_device.sdp_ip
+ *
+ * @mbg.generated
+ */
+ private String sdpIp;
+
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column docking_device.local_ip
+ *
+ * @mbg.generated
+ */
+ private String localIp;
+
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column docking_device.password
+ *
+ * @mbg.generated
+ */
+ private String password;
+
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column docking_device.as_message_channel
+ *
+ * @mbg.generated
+ */
+ private Boolean asMessageChannel;
+
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column docking_device.keepalive_interval_time
+ *
+ * @mbg.generated
+ */
+ private Integer keepaliveIntervalTime;
+
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column docking_device.switch_primary_sub_stream
+ *
+ * @mbg.generated
+ */
+ private Boolean switchPrimarySubStream;
+
+ /**
+ *
+ * This field was generated by MyBatis Generator.
+ * This field corresponds to the database column docking_device.broadcast_push_after_ack
+ *
+ * @mbg.generated
+ */
+ private Boolean broadcastPushAfterAck;
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method returns the value of the database column docking_device.id
+ *
+ * @return the value of docking_device.id
+ *
+ * @mbg.generated
+ */
+ public Long getId() {
+ return id;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method sets the value of the database column docking_device.id
+ *
+ * @param id the value for docking_device.id
+ *
+ * @mbg.generated
+ */
+ public void setId(Long id) {
+ this.id = id;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method returns the value of the database column docking_device.device_id
+ *
+ * @return the value of docking_device.device_id
+ *
+ * @mbg.generated
+ */
+ public String getDeviceId() {
+ return deviceId;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method sets the value of the database column docking_device.device_id
+ *
+ * @param deviceId the value for docking_device.device_id
+ *
+ * @mbg.generated
+ */
+ public void setDeviceId(String deviceId) {
+ this.deviceId = deviceId == null ? null : deviceId.trim();
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method returns the value of the database column docking_device.name
+ *
+ * @return the value of docking_device.name
+ *
+ * @mbg.generated
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method sets the value of the database column docking_device.name
+ *
+ * @param name the value for docking_device.name
+ *
+ * @mbg.generated
+ */
+ public void setName(String name) {
+ this.name = name == null ? null : name.trim();
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method returns the value of the database column docking_device.manufacturer
+ *
+ * @return the value of docking_device.manufacturer
+ *
+ * @mbg.generated
+ */
+ public String getManufacturer() {
+ return manufacturer;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method sets the value of the database column docking_device.manufacturer
+ *
+ * @param manufacturer the value for docking_device.manufacturer
+ *
+ * @mbg.generated
+ */
+ public void setManufacturer(String manufacturer) {
+ this.manufacturer = manufacturer == null ? null : manufacturer.trim();
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method returns the value of the database column docking_device.model
+ *
+ * @return the value of docking_device.model
+ *
+ * @mbg.generated
+ */
+ public String getModel() {
+ return model;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method sets the value of the database column docking_device.model
+ *
+ * @param model the value for docking_device.model
+ *
+ * @mbg.generated
+ */
+ public void setModel(String model) {
+ this.model = model == null ? null : model.trim();
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method returns the value of the database column docking_device.firmware
+ *
+ * @return the value of docking_device.firmware
+ *
+ * @mbg.generated
+ */
+ public String getFirmware() {
+ return firmware;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method sets the value of the database column docking_device.firmware
+ *
+ * @param firmware the value for docking_device.firmware
+ *
+ * @mbg.generated
+ */
+ public void setFirmware(String firmware) {
+ this.firmware = firmware == null ? null : firmware.trim();
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method returns the value of the database column docking_device.transport
+ *
+ * @return the value of docking_device.transport
+ *
+ * @mbg.generated
+ */
+ public String getTransport() {
+ return transport;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method sets the value of the database column docking_device.transport
+ *
+ * @param transport the value for docking_device.transport
+ *
+ * @mbg.generated
+ */
+ public void setTransport(String transport) {
+ this.transport = transport == null ? null : transport.trim();
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method returns the value of the database column docking_device.stream_mode
+ *
+ * @return the value of docking_device.stream_mode
+ *
+ * @mbg.generated
+ */
+ public String getStreamMode() {
+ return streamMode;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method sets the value of the database column docking_device.stream_mode
+ *
+ * @param streamMode the value for docking_device.stream_mode
+ *
+ * @mbg.generated
+ */
+ public void setStreamMode(String streamMode) {
+ this.streamMode = streamMode == null ? null : streamMode.trim();
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method returns the value of the database column docking_device.on_line
+ *
+ * @return the value of docking_device.on_line
+ *
+ * @mbg.generated
+ */
+ public Boolean getOnLine() {
+ return onLine;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method sets the value of the database column docking_device.on_line
+ *
+ * @param onLine the value for docking_device.on_line
+ *
+ * @mbg.generated
+ */
+ public void setOnLine(Boolean onLine) {
+ this.onLine = onLine;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method returns the value of the database column docking_device.register_time
+ *
+ * @return the value of docking_device.register_time
+ *
+ * @mbg.generated
+ */
+ public String getRegisterTime() {
+ return registerTime;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method sets the value of the database column docking_device.register_time
+ *
+ * @param registerTime the value for docking_device.register_time
+ *
+ * @mbg.generated
+ */
+ public void setRegisterTime(String registerTime) {
+ this.registerTime = registerTime == null ? null : registerTime.trim();
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method returns the value of the database column docking_device.keepalive_time
+ *
+ * @return the value of docking_device.keepalive_time
+ *
+ * @mbg.generated
+ */
+ public String getKeepaliveTime() {
+ return keepaliveTime;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method sets the value of the database column docking_device.keepalive_time
+ *
+ * @param keepaliveTime the value for docking_device.keepalive_time
+ *
+ * @mbg.generated
+ */
+ public void setKeepaliveTime(String keepaliveTime) {
+ this.keepaliveTime = keepaliveTime == null ? null : keepaliveTime.trim();
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method returns the value of the database column docking_device.ip
+ *
+ * @return the value of docking_device.ip
+ *
+ * @mbg.generated
+ */
+ public String getIp() {
+ return ip;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method sets the value of the database column docking_device.ip
+ *
+ * @param ip the value for docking_device.ip
+ *
+ * @mbg.generated
+ */
+ public void setIp(String ip) {
+ this.ip = ip == null ? null : ip.trim();
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method returns the value of the database column docking_device.create_time
+ *
+ * @return the value of docking_device.create_time
+ *
+ * @mbg.generated
+ */
+ public String getCreateTime() {
+ return createTime;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method sets the value of the database column docking_device.create_time
+ *
+ * @param createTime the value for docking_device.create_time
+ *
+ * @mbg.generated
+ */
+ public void setCreateTime(String createTime) {
+ this.createTime = createTime == null ? null : createTime.trim();
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method returns the value of the database column docking_device.update_time
+ *
+ * @return the value of docking_device.update_time
+ *
+ * @mbg.generated
+ */
+ public String getUpdateTime() {
+ return updateTime;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method sets the value of the database column docking_device.update_time
+ *
+ * @param updateTime the value for docking_device.update_time
+ *
+ * @mbg.generated
+ */
+ public void setUpdateTime(String updateTime) {
+ this.updateTime = updateTime == null ? null : updateTime.trim();
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method returns the value of the database column docking_device.port
+ *
+ * @return the value of docking_device.port
+ *
+ * @mbg.generated
+ */
+ public Integer getPort() {
+ return port;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method sets the value of the database column docking_device.port
+ *
+ * @param port the value for docking_device.port
+ *
+ * @mbg.generated
+ */
+ public void setPort(Integer port) {
+ this.port = port;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method returns the value of the database column docking_device.expires
+ *
+ * @return the value of docking_device.expires
+ *
+ * @mbg.generated
+ */
+ public Integer getExpires() {
+ return expires;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method sets the value of the database column docking_device.expires
+ *
+ * @param expires the value for docking_device.expires
+ *
+ * @mbg.generated
+ */
+ public void setExpires(Integer expires) {
+ this.expires = expires;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method returns the value of the database column docking_device.subscribe_cycle_for_catalog
+ *
+ * @return the value of docking_device.subscribe_cycle_for_catalog
+ *
+ * @mbg.generated
+ */
+ public Integer getSubscribeCycleForCatalog() {
+ return subscribeCycleForCatalog;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method sets the value of the database column docking_device.subscribe_cycle_for_catalog
+ *
+ * @param subscribeCycleForCatalog the value for docking_device.subscribe_cycle_for_catalog
+ *
+ * @mbg.generated
+ */
+ public void setSubscribeCycleForCatalog(Integer subscribeCycleForCatalog) {
+ this.subscribeCycleForCatalog = subscribeCycleForCatalog;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method returns the value of the database column docking_device.subscribe_cycle_for_mobile_position
+ *
+ * @return the value of docking_device.subscribe_cycle_for_mobile_position
+ *
+ * @mbg.generated
+ */
+ public Integer getSubscribeCycleForMobilePosition() {
+ return subscribeCycleForMobilePosition;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method sets the value of the database column docking_device.subscribe_cycle_for_mobile_position
+ *
+ * @param subscribeCycleForMobilePosition the value for docking_device.subscribe_cycle_for_mobile_position
+ *
+ * @mbg.generated
+ */
+ public void setSubscribeCycleForMobilePosition(Integer subscribeCycleForMobilePosition) {
+ this.subscribeCycleForMobilePosition = subscribeCycleForMobilePosition;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method returns the value of the database column docking_device.mobile_position_submission_interval
+ *
+ * @return the value of docking_device.mobile_position_submission_interval
+ *
+ * @mbg.generated
+ */
+ public Integer getMobilePositionSubmissionInterval() {
+ return mobilePositionSubmissionInterval;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method sets the value of the database column docking_device.mobile_position_submission_interval
+ *
+ * @param mobilePositionSubmissionInterval the value for docking_device.mobile_position_submission_interval
+ *
+ * @mbg.generated
+ */
+ public void setMobilePositionSubmissionInterval(Integer mobilePositionSubmissionInterval) {
+ this.mobilePositionSubmissionInterval = mobilePositionSubmissionInterval;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method returns the value of the database column docking_device.subscribe_cycle_for_alarm
+ *
+ * @return the value of docking_device.subscribe_cycle_for_alarm
+ *
+ * @mbg.generated
+ */
+ public Integer getSubscribeCycleForAlarm() {
+ return subscribeCycleForAlarm;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method sets the value of the database column docking_device.subscribe_cycle_for_alarm
+ *
+ * @param subscribeCycleForAlarm the value for docking_device.subscribe_cycle_for_alarm
+ *
+ * @mbg.generated
+ */
+ public void setSubscribeCycleForAlarm(Integer subscribeCycleForAlarm) {
+ this.subscribeCycleForAlarm = subscribeCycleForAlarm;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method returns the value of the database column docking_device.host_address
+ *
+ * @return the value of docking_device.host_address
+ *
+ * @mbg.generated
+ */
+ public String getHostAddress() {
+ return hostAddress;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method sets the value of the database column docking_device.host_address
+ *
+ * @param hostAddress the value for docking_device.host_address
+ *
+ * @mbg.generated
+ */
+ public void setHostAddress(String hostAddress) {
+ this.hostAddress = hostAddress == null ? null : hostAddress.trim();
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method returns the value of the database column docking_device.charset
+ *
+ * @return the value of docking_device.charset
+ *
+ * @mbg.generated
+ */
+ public String getCharset() {
+ return charset;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method sets the value of the database column docking_device.charset
+ *
+ * @param charset the value for docking_device.charset
+ *
+ * @mbg.generated
+ */
+ public void setCharset(String charset) {
+ this.charset = charset == null ? null : charset.trim();
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method returns the value of the database column docking_device.ssrc_check
+ *
+ * @return the value of docking_device.ssrc_check
+ *
+ * @mbg.generated
+ */
+ public Boolean getSsrcCheck() {
+ return ssrcCheck;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method sets the value of the database column docking_device.ssrc_check
+ *
+ * @param ssrcCheck the value for docking_device.ssrc_check
+ *
+ * @mbg.generated
+ */
+ public void setSsrcCheck(Boolean ssrcCheck) {
+ this.ssrcCheck = ssrcCheck;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method returns the value of the database column docking_device.geo_coord_sys
+ *
+ * @return the value of docking_device.geo_coord_sys
+ *
+ * @mbg.generated
+ */
+ public String getGeoCoordSys() {
+ return geoCoordSys;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method sets the value of the database column docking_device.geo_coord_sys
+ *
+ * @param geoCoordSys the value for docking_device.geo_coord_sys
+ *
+ * @mbg.generated
+ */
+ public void setGeoCoordSys(String geoCoordSys) {
+ this.geoCoordSys = geoCoordSys == null ? null : geoCoordSys.trim();
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method returns the value of the database column docking_device.media_server_id
+ *
+ * @return the value of docking_device.media_server_id
+ *
+ * @mbg.generated
+ */
+ public String getMediaServerId() {
+ return mediaServerId;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method sets the value of the database column docking_device.media_server_id
+ *
+ * @param mediaServerId the value for docking_device.media_server_id
+ *
+ * @mbg.generated
+ */
+ public void setMediaServerId(String mediaServerId) {
+ this.mediaServerId = mediaServerId == null ? null : mediaServerId.trim();
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method returns the value of the database column docking_device.custom_name
+ *
+ * @return the value of docking_device.custom_name
+ *
+ * @mbg.generated
+ */
+ public String getCustomName() {
+ return customName;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method sets the value of the database column docking_device.custom_name
+ *
+ * @param customName the value for docking_device.custom_name
+ *
+ * @mbg.generated
+ */
+ public void setCustomName(String customName) {
+ this.customName = customName == null ? null : customName.trim();
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method returns the value of the database column docking_device.sdp_ip
+ *
+ * @return the value of docking_device.sdp_ip
+ *
+ * @mbg.generated
+ */
+ public String getSdpIp() {
+ return sdpIp;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method sets the value of the database column docking_device.sdp_ip
+ *
+ * @param sdpIp the value for docking_device.sdp_ip
+ *
+ * @mbg.generated
+ */
+ public void setSdpIp(String sdpIp) {
+ this.sdpIp = sdpIp == null ? null : sdpIp.trim();
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method returns the value of the database column docking_device.local_ip
+ *
+ * @return the value of docking_device.local_ip
+ *
+ * @mbg.generated
+ */
+ public String getLocalIp() {
+ return localIp;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method sets the value of the database column docking_device.local_ip
+ *
+ * @param localIp the value for docking_device.local_ip
+ *
+ * @mbg.generated
+ */
+ public void setLocalIp(String localIp) {
+ this.localIp = localIp == null ? null : localIp.trim();
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method returns the value of the database column docking_device.password
+ *
+ * @return the value of docking_device.password
+ *
+ * @mbg.generated
+ */
+ public String getPassword() {
+ return password;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method sets the value of the database column docking_device.password
+ *
+ * @param password the value for docking_device.password
+ *
+ * @mbg.generated
+ */
+ public void setPassword(String password) {
+ this.password = password == null ? null : password.trim();
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method returns the value of the database column docking_device.as_message_channel
+ *
+ * @return the value of docking_device.as_message_channel
+ *
+ * @mbg.generated
+ */
+ public Boolean getAsMessageChannel() {
+ return asMessageChannel;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method sets the value of the database column docking_device.as_message_channel
+ *
+ * @param asMessageChannel the value for docking_device.as_message_channel
+ *
+ * @mbg.generated
+ */
+ public void setAsMessageChannel(Boolean asMessageChannel) {
+ this.asMessageChannel = asMessageChannel;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method returns the value of the database column docking_device.keepalive_interval_time
+ *
+ * @return the value of docking_device.keepalive_interval_time
+ *
+ * @mbg.generated
+ */
+ public Integer getKeepaliveIntervalTime() {
+ return keepaliveIntervalTime;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method sets the value of the database column docking_device.keepalive_interval_time
+ *
+ * @param keepaliveIntervalTime the value for docking_device.keepalive_interval_time
+ *
+ * @mbg.generated
+ */
+ public void setKeepaliveIntervalTime(Integer keepaliveIntervalTime) {
+ this.keepaliveIntervalTime = keepaliveIntervalTime;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method returns the value of the database column docking_device.switch_primary_sub_stream
+ *
+ * @return the value of docking_device.switch_primary_sub_stream
+ *
+ * @mbg.generated
+ */
+ public Boolean getSwitchPrimarySubStream() {
+ return switchPrimarySubStream;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method sets the value of the database column docking_device.switch_primary_sub_stream
+ *
+ * @param switchPrimarySubStream the value for docking_device.switch_primary_sub_stream
+ *
+ * @mbg.generated
+ */
+ public void setSwitchPrimarySubStream(Boolean switchPrimarySubStream) {
+ this.switchPrimarySubStream = switchPrimarySubStream;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method returns the value of the database column docking_device.broadcast_push_after_ack
+ *
+ * @return the value of docking_device.broadcast_push_after_ack
+ *
+ * @mbg.generated
+ */
+ public Boolean getBroadcastPushAfterAck() {
+ return broadcastPushAfterAck;
+ }
+
+ /**
+ * This method was generated by MyBatis Generator.
+ * This method sets the value of the database column docking_device.broadcast_push_after_ack
+ *
+ * @param broadcastPushAfterAck the value for docking_device.broadcast_push_after_ack
+ *
+ * @mbg.generated
+ */
+ public void setBroadcastPushAfterAck(Boolean broadcastPushAfterAck) {
+ this.broadcastPushAfterAck = broadcastPushAfterAck;
+ }
+}
\ No newline at end of file
diff --git a/orm/src/main/java/cn/skcks/docking/gb28181/orm/mybatis/dynamic/mapper/DockingDeviceDynamicSqlSupport.java b/orm/src/main/java/cn/skcks/docking/gb28181/orm/mybatis/dynamic/mapper/DockingDeviceDynamicSqlSupport.java
new file mode 100644
index 0000000..e22ae99
--- /dev/null
+++ b/orm/src/main/java/cn/skcks/docking/gb28181/orm/mybatis/dynamic/mapper/DockingDeviceDynamicSqlSupport.java
@@ -0,0 +1,183 @@
+package cn.skcks.docking.gb28181.orm.mybatis.dynamic.mapper;
+
+import jakarta.annotation.Generated;
+import java.sql.JDBCType;
+import org.mybatis.dynamic.sql.AliasableSqlTable;
+import org.mybatis.dynamic.sql.SqlColumn;
+
+public final class DockingDeviceDynamicSqlSupport {
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source Table: docking_device")
+ public static final DockingDevice dockingDevice = new DockingDevice();
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.id")
+ public static final SqlColumn id = dockingDevice.id;
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.device_id")
+ public static final SqlColumn deviceId = dockingDevice.deviceId;
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.name")
+ public static final SqlColumn name = dockingDevice.name;
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.manufacturer")
+ public static final SqlColumn manufacturer = dockingDevice.manufacturer;
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.model")
+ public static final SqlColumn model = dockingDevice.model;
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.firmware")
+ public static final SqlColumn firmware = dockingDevice.firmware;
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.transport")
+ public static final SqlColumn transport = dockingDevice.transport;
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.stream_mode")
+ public static final SqlColumn streamMode = dockingDevice.streamMode;
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.on_line")
+ public static final SqlColumn onLine = dockingDevice.onLine;
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.register_time")
+ public static final SqlColumn registerTime = dockingDevice.registerTime;
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.keepalive_time")
+ public static final SqlColumn keepaliveTime = dockingDevice.keepaliveTime;
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.ip")
+ public static final SqlColumn ip = dockingDevice.ip;
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.create_time")
+ public static final SqlColumn createTime = dockingDevice.createTime;
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.update_time")
+ public static final SqlColumn updateTime = dockingDevice.updateTime;
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.port")
+ public static final SqlColumn port = dockingDevice.port;
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.expires")
+ public static final SqlColumn expires = dockingDevice.expires;
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.subscribe_cycle_for_catalog")
+ public static final SqlColumn subscribeCycleForCatalog = dockingDevice.subscribeCycleForCatalog;
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.subscribe_cycle_for_mobile_position")
+ public static final SqlColumn subscribeCycleForMobilePosition = dockingDevice.subscribeCycleForMobilePosition;
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.mobile_position_submission_interval")
+ public static final SqlColumn mobilePositionSubmissionInterval = dockingDevice.mobilePositionSubmissionInterval;
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.subscribe_cycle_for_alarm")
+ public static final SqlColumn subscribeCycleForAlarm = dockingDevice.subscribeCycleForAlarm;
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.host_address")
+ public static final SqlColumn hostAddress = dockingDevice.hostAddress;
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.charset")
+ public static final SqlColumn charset = dockingDevice.charset;
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.ssrc_check")
+ public static final SqlColumn ssrcCheck = dockingDevice.ssrcCheck;
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.geo_coord_sys")
+ public static final SqlColumn geoCoordSys = dockingDevice.geoCoordSys;
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.media_server_id")
+ public static final SqlColumn mediaServerId = dockingDevice.mediaServerId;
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.custom_name")
+ public static final SqlColumn customName = dockingDevice.customName;
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.sdp_ip")
+ public static final SqlColumn sdpIp = dockingDevice.sdpIp;
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.local_ip")
+ public static final SqlColumn localIp = dockingDevice.localIp;
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.password")
+ public static final SqlColumn password = dockingDevice.password;
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.as_message_channel")
+ public static final SqlColumn asMessageChannel = dockingDevice.asMessageChannel;
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.keepalive_interval_time")
+ public static final SqlColumn keepaliveIntervalTime = dockingDevice.keepaliveIntervalTime;
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.switch_primary_sub_stream")
+ public static final SqlColumn switchPrimarySubStream = dockingDevice.switchPrimarySubStream;
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.broadcast_push_after_ack")
+ public static final SqlColumn broadcastPushAfterAck = dockingDevice.broadcastPushAfterAck;
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source Table: docking_device")
+ public static final class DockingDevice extends AliasableSqlTable {
+ public final SqlColumn id = column("id", JDBCType.BIGINT);
+
+ public final SqlColumn deviceId = column("device_id", JDBCType.VARCHAR);
+
+ public final SqlColumn name = column("name", JDBCType.VARCHAR);
+
+ public final SqlColumn manufacturer = column("manufacturer", JDBCType.VARCHAR);
+
+ public final SqlColumn model = column("model", JDBCType.VARCHAR);
+
+ public final SqlColumn firmware = column("firmware", JDBCType.VARCHAR);
+
+ public final SqlColumn transport = column("transport", JDBCType.VARCHAR);
+
+ public final SqlColumn streamMode = column("stream_mode", JDBCType.VARCHAR);
+
+ public final SqlColumn onLine = column("on_line", JDBCType.BIT);
+
+ public final SqlColumn registerTime = column("register_time", JDBCType.VARCHAR);
+
+ public final SqlColumn keepaliveTime = column("keepalive_time", JDBCType.VARCHAR);
+
+ public final SqlColumn ip = column("ip", JDBCType.VARCHAR);
+
+ public final SqlColumn createTime = column("create_time", JDBCType.VARCHAR);
+
+ public final SqlColumn updateTime = column("update_time", JDBCType.VARCHAR);
+
+ public final SqlColumn port = column("port", JDBCType.INTEGER);
+
+ public final SqlColumn expires = column("expires", JDBCType.INTEGER);
+
+ public final SqlColumn subscribeCycleForCatalog = column("subscribe_cycle_for_catalog", JDBCType.INTEGER);
+
+ public final SqlColumn subscribeCycleForMobilePosition = column("subscribe_cycle_for_mobile_position", JDBCType.INTEGER);
+
+ public final SqlColumn mobilePositionSubmissionInterval = column("mobile_position_submission_interval", JDBCType.INTEGER);
+
+ public final SqlColumn subscribeCycleForAlarm = column("subscribe_cycle_for_alarm", JDBCType.INTEGER);
+
+ public final SqlColumn hostAddress = column("host_address", JDBCType.VARCHAR);
+
+ public final SqlColumn charset = column("charset", JDBCType.VARCHAR);
+
+ public final SqlColumn ssrcCheck = column("ssrc_check", JDBCType.BIT);
+
+ public final SqlColumn geoCoordSys = column("geo_coord_sys", JDBCType.VARCHAR);
+
+ public final SqlColumn mediaServerId = column("media_server_id", JDBCType.VARCHAR);
+
+ public final SqlColumn customName = column("custom_name", JDBCType.VARCHAR);
+
+ public final SqlColumn sdpIp = column("sdp_ip", JDBCType.VARCHAR);
+
+ public final SqlColumn localIp = column("local_ip", JDBCType.VARCHAR);
+
+ public final SqlColumn password = column("password", JDBCType.VARCHAR);
+
+ public final SqlColumn asMessageChannel = column("as_message_channel", JDBCType.BIT);
+
+ public final SqlColumn keepaliveIntervalTime = column("keepalive_interval_time", JDBCType.INTEGER);
+
+ public final SqlColumn switchPrimarySubStream = column("switch_primary_sub_stream", JDBCType.BIT);
+
+ public final SqlColumn broadcastPushAfterAck = column("broadcast_push_after_ack", JDBCType.BIT);
+
+ public DockingDevice() {
+ super("docking_device", DockingDevice::new);
+ }
+ }
+}
\ No newline at end of file
diff --git a/orm/src/main/java/cn/skcks/docking/gb28181/orm/mybatis/dynamic/mapper/DockingDeviceMapper.java b/orm/src/main/java/cn/skcks/docking/gb28181/orm/mybatis/dynamic/mapper/DockingDeviceMapper.java
new file mode 100644
index 0000000..8adba52
--- /dev/null
+++ b/orm/src/main/java/cn/skcks/docking/gb28181/orm/mybatis/dynamic/mapper/DockingDeviceMapper.java
@@ -0,0 +1,393 @@
+package cn.skcks.docking.gb28181.orm.mybatis.dynamic.mapper;
+
+import static cn.skcks.docking.gb28181.orm.mybatis.dynamic.mapper.DockingDeviceDynamicSqlSupport.*;
+import static org.mybatis.dynamic.sql.SqlBuilder.isEqualTo;
+
+import cn.skcks.docking.gb28181.orm.mybatis.dynamic.model.DockingDevice;
+import jakarta.annotation.Generated;
+import java.util.Collection;
+import java.util.List;
+import java.util.Optional;
+import org.apache.ibatis.annotations.Mapper;
+import org.apache.ibatis.annotations.Result;
+import org.apache.ibatis.annotations.ResultMap;
+import org.apache.ibatis.annotations.Results;
+import org.apache.ibatis.annotations.SelectProvider;
+import org.apache.ibatis.type.JdbcType;
+import org.mybatis.dynamic.sql.BasicColumn;
+import org.mybatis.dynamic.sql.delete.DeleteDSLCompleter;
+import org.mybatis.dynamic.sql.select.CountDSLCompleter;
+import org.mybatis.dynamic.sql.select.SelectDSLCompleter;
+import org.mybatis.dynamic.sql.select.render.SelectStatementProvider;
+import org.mybatis.dynamic.sql.update.UpdateDSL;
+import org.mybatis.dynamic.sql.update.UpdateDSLCompleter;
+import org.mybatis.dynamic.sql.update.UpdateModel;
+import org.mybatis.dynamic.sql.util.SqlProviderAdapter;
+import org.mybatis.dynamic.sql.util.mybatis3.CommonCountMapper;
+import org.mybatis.dynamic.sql.util.mybatis3.CommonDeleteMapper;
+import org.mybatis.dynamic.sql.util.mybatis3.CommonInsertMapper;
+import org.mybatis.dynamic.sql.util.mybatis3.CommonUpdateMapper;
+import org.mybatis.dynamic.sql.util.mybatis3.MyBatis3Utils;
+
+@Mapper
+public interface DockingDeviceMapper extends CommonCountMapper, CommonDeleteMapper, CommonInsertMapper, CommonUpdateMapper {
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source Table: docking_device")
+ BasicColumn[] selectList = BasicColumn.columnList(id, deviceId, name, manufacturer, model, firmware, transport, streamMode, onLine, registerTime, keepaliveTime, ip, createTime, updateTime, port, expires, subscribeCycleForCatalog, subscribeCycleForMobilePosition, mobilePositionSubmissionInterval, subscribeCycleForAlarm, hostAddress, charset, ssrcCheck, geoCoordSys, mediaServerId, customName, sdpIp, localIp, password, asMessageChannel, keepaliveIntervalTime, switchPrimarySubStream, broadcastPushAfterAck);
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source Table: docking_device")
+ @SelectProvider(type=SqlProviderAdapter.class, method="select")
+ @Results(id="DockingDeviceResult", value = {
+ @Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true),
+ @Result(column="device_id", property="deviceId", jdbcType=JdbcType.VARCHAR),
+ @Result(column="name", property="name", jdbcType=JdbcType.VARCHAR),
+ @Result(column="manufacturer", property="manufacturer", jdbcType=JdbcType.VARCHAR),
+ @Result(column="model", property="model", jdbcType=JdbcType.VARCHAR),
+ @Result(column="firmware", property="firmware", jdbcType=JdbcType.VARCHAR),
+ @Result(column="transport", property="transport", jdbcType=JdbcType.VARCHAR),
+ @Result(column="stream_mode", property="streamMode", jdbcType=JdbcType.VARCHAR),
+ @Result(column="on_line", property="onLine", jdbcType=JdbcType.BIT),
+ @Result(column="register_time", property="registerTime", jdbcType=JdbcType.VARCHAR),
+ @Result(column="keepalive_time", property="keepaliveTime", jdbcType=JdbcType.VARCHAR),
+ @Result(column="ip", property="ip", jdbcType=JdbcType.VARCHAR),
+ @Result(column="create_time", property="createTime", jdbcType=JdbcType.VARCHAR),
+ @Result(column="update_time", property="updateTime", jdbcType=JdbcType.VARCHAR),
+ @Result(column="port", property="port", jdbcType=JdbcType.INTEGER),
+ @Result(column="expires", property="expires", jdbcType=JdbcType.INTEGER),
+ @Result(column="subscribe_cycle_for_catalog", property="subscribeCycleForCatalog", jdbcType=JdbcType.INTEGER),
+ @Result(column="subscribe_cycle_for_mobile_position", property="subscribeCycleForMobilePosition", jdbcType=JdbcType.INTEGER),
+ @Result(column="mobile_position_submission_interval", property="mobilePositionSubmissionInterval", jdbcType=JdbcType.INTEGER),
+ @Result(column="subscribe_cycle_for_alarm", property="subscribeCycleForAlarm", jdbcType=JdbcType.INTEGER),
+ @Result(column="host_address", property="hostAddress", jdbcType=JdbcType.VARCHAR),
+ @Result(column="charset", property="charset", jdbcType=JdbcType.VARCHAR),
+ @Result(column="ssrc_check", property="ssrcCheck", jdbcType=JdbcType.BIT),
+ @Result(column="geo_coord_sys", property="geoCoordSys", jdbcType=JdbcType.VARCHAR),
+ @Result(column="media_server_id", property="mediaServerId", jdbcType=JdbcType.VARCHAR),
+ @Result(column="custom_name", property="customName", jdbcType=JdbcType.VARCHAR),
+ @Result(column="sdp_ip", property="sdpIp", jdbcType=JdbcType.VARCHAR),
+ @Result(column="local_ip", property="localIp", jdbcType=JdbcType.VARCHAR),
+ @Result(column="password", property="password", jdbcType=JdbcType.VARCHAR),
+ @Result(column="as_message_channel", property="asMessageChannel", jdbcType=JdbcType.BIT),
+ @Result(column="keepalive_interval_time", property="keepaliveIntervalTime", jdbcType=JdbcType.INTEGER),
+ @Result(column="switch_primary_sub_stream", property="switchPrimarySubStream", jdbcType=JdbcType.BIT),
+ @Result(column="broadcast_push_after_ack", property="broadcastPushAfterAck", jdbcType=JdbcType.BIT)
+ })
+ List selectMany(SelectStatementProvider selectStatement);
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source Table: docking_device")
+ @SelectProvider(type=SqlProviderAdapter.class, method="select")
+ @ResultMap("DockingDeviceResult")
+ Optional selectOne(SelectStatementProvider selectStatement);
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source Table: docking_device")
+ default long count(CountDSLCompleter completer) {
+ return MyBatis3Utils.countFrom(this::count, dockingDevice, completer);
+ }
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source Table: docking_device")
+ default int delete(DeleteDSLCompleter completer) {
+ return MyBatis3Utils.deleteFrom(this::delete, dockingDevice, completer);
+ }
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source Table: docking_device")
+ default int deleteByPrimaryKey(Long id_) {
+ return delete(c ->
+ c.where(id, isEqualTo(id_))
+ );
+ }
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source Table: docking_device")
+ default int insert(DockingDevice row) {
+ return MyBatis3Utils.insert(this::insert, row, dockingDevice, c ->
+ c.map(id).toProperty("id")
+ .map(deviceId).toProperty("deviceId")
+ .map(name).toProperty("name")
+ .map(manufacturer).toProperty("manufacturer")
+ .map(model).toProperty("model")
+ .map(firmware).toProperty("firmware")
+ .map(transport).toProperty("transport")
+ .map(streamMode).toProperty("streamMode")
+ .map(onLine).toProperty("onLine")
+ .map(registerTime).toProperty("registerTime")
+ .map(keepaliveTime).toProperty("keepaliveTime")
+ .map(ip).toProperty("ip")
+ .map(createTime).toProperty("createTime")
+ .map(updateTime).toProperty("updateTime")
+ .map(port).toProperty("port")
+ .map(expires).toProperty("expires")
+ .map(subscribeCycleForCatalog).toProperty("subscribeCycleForCatalog")
+ .map(subscribeCycleForMobilePosition).toProperty("subscribeCycleForMobilePosition")
+ .map(mobilePositionSubmissionInterval).toProperty("mobilePositionSubmissionInterval")
+ .map(subscribeCycleForAlarm).toProperty("subscribeCycleForAlarm")
+ .map(hostAddress).toProperty("hostAddress")
+ .map(charset).toProperty("charset")
+ .map(ssrcCheck).toProperty("ssrcCheck")
+ .map(geoCoordSys).toProperty("geoCoordSys")
+ .map(mediaServerId).toProperty("mediaServerId")
+ .map(customName).toProperty("customName")
+ .map(sdpIp).toProperty("sdpIp")
+ .map(localIp).toProperty("localIp")
+ .map(password).toProperty("password")
+ .map(asMessageChannel).toProperty("asMessageChannel")
+ .map(keepaliveIntervalTime).toProperty("keepaliveIntervalTime")
+ .map(switchPrimarySubStream).toProperty("switchPrimarySubStream")
+ .map(broadcastPushAfterAck).toProperty("broadcastPushAfterAck")
+ );
+ }
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source Table: docking_device")
+ default int insertMultiple(Collection records) {
+ return MyBatis3Utils.insertMultiple(this::insertMultiple, records, dockingDevice, c ->
+ c.map(id).toProperty("id")
+ .map(deviceId).toProperty("deviceId")
+ .map(name).toProperty("name")
+ .map(manufacturer).toProperty("manufacturer")
+ .map(model).toProperty("model")
+ .map(firmware).toProperty("firmware")
+ .map(transport).toProperty("transport")
+ .map(streamMode).toProperty("streamMode")
+ .map(onLine).toProperty("onLine")
+ .map(registerTime).toProperty("registerTime")
+ .map(keepaliveTime).toProperty("keepaliveTime")
+ .map(ip).toProperty("ip")
+ .map(createTime).toProperty("createTime")
+ .map(updateTime).toProperty("updateTime")
+ .map(port).toProperty("port")
+ .map(expires).toProperty("expires")
+ .map(subscribeCycleForCatalog).toProperty("subscribeCycleForCatalog")
+ .map(subscribeCycleForMobilePosition).toProperty("subscribeCycleForMobilePosition")
+ .map(mobilePositionSubmissionInterval).toProperty("mobilePositionSubmissionInterval")
+ .map(subscribeCycleForAlarm).toProperty("subscribeCycleForAlarm")
+ .map(hostAddress).toProperty("hostAddress")
+ .map(charset).toProperty("charset")
+ .map(ssrcCheck).toProperty("ssrcCheck")
+ .map(geoCoordSys).toProperty("geoCoordSys")
+ .map(mediaServerId).toProperty("mediaServerId")
+ .map(customName).toProperty("customName")
+ .map(sdpIp).toProperty("sdpIp")
+ .map(localIp).toProperty("localIp")
+ .map(password).toProperty("password")
+ .map(asMessageChannel).toProperty("asMessageChannel")
+ .map(keepaliveIntervalTime).toProperty("keepaliveIntervalTime")
+ .map(switchPrimarySubStream).toProperty("switchPrimarySubStream")
+ .map(broadcastPushAfterAck).toProperty("broadcastPushAfterAck")
+ );
+ }
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source Table: docking_device")
+ default int insertSelective(DockingDevice row) {
+ return MyBatis3Utils.insert(this::insert, row, dockingDevice, c ->
+ c.map(id).toPropertyWhenPresent("id", row::getId)
+ .map(deviceId).toPropertyWhenPresent("deviceId", row::getDeviceId)
+ .map(name).toPropertyWhenPresent("name", row::getName)
+ .map(manufacturer).toPropertyWhenPresent("manufacturer", row::getManufacturer)
+ .map(model).toPropertyWhenPresent("model", row::getModel)
+ .map(firmware).toPropertyWhenPresent("firmware", row::getFirmware)
+ .map(transport).toPropertyWhenPresent("transport", row::getTransport)
+ .map(streamMode).toPropertyWhenPresent("streamMode", row::getStreamMode)
+ .map(onLine).toPropertyWhenPresent("onLine", row::getOnLine)
+ .map(registerTime).toPropertyWhenPresent("registerTime", row::getRegisterTime)
+ .map(keepaliveTime).toPropertyWhenPresent("keepaliveTime", row::getKeepaliveTime)
+ .map(ip).toPropertyWhenPresent("ip", row::getIp)
+ .map(createTime).toPropertyWhenPresent("createTime", row::getCreateTime)
+ .map(updateTime).toPropertyWhenPresent("updateTime", row::getUpdateTime)
+ .map(port).toPropertyWhenPresent("port", row::getPort)
+ .map(expires).toPropertyWhenPresent("expires", row::getExpires)
+ .map(subscribeCycleForCatalog).toPropertyWhenPresent("subscribeCycleForCatalog", row::getSubscribeCycleForCatalog)
+ .map(subscribeCycleForMobilePosition).toPropertyWhenPresent("subscribeCycleForMobilePosition", row::getSubscribeCycleForMobilePosition)
+ .map(mobilePositionSubmissionInterval).toPropertyWhenPresent("mobilePositionSubmissionInterval", row::getMobilePositionSubmissionInterval)
+ .map(subscribeCycleForAlarm).toPropertyWhenPresent("subscribeCycleForAlarm", row::getSubscribeCycleForAlarm)
+ .map(hostAddress).toPropertyWhenPresent("hostAddress", row::getHostAddress)
+ .map(charset).toPropertyWhenPresent("charset", row::getCharset)
+ .map(ssrcCheck).toPropertyWhenPresent("ssrcCheck", row::getSsrcCheck)
+ .map(geoCoordSys).toPropertyWhenPresent("geoCoordSys", row::getGeoCoordSys)
+ .map(mediaServerId).toPropertyWhenPresent("mediaServerId", row::getMediaServerId)
+ .map(customName).toPropertyWhenPresent("customName", row::getCustomName)
+ .map(sdpIp).toPropertyWhenPresent("sdpIp", row::getSdpIp)
+ .map(localIp).toPropertyWhenPresent("localIp", row::getLocalIp)
+ .map(password).toPropertyWhenPresent("password", row::getPassword)
+ .map(asMessageChannel).toPropertyWhenPresent("asMessageChannel", row::getAsMessageChannel)
+ .map(keepaliveIntervalTime).toPropertyWhenPresent("keepaliveIntervalTime", row::getKeepaliveIntervalTime)
+ .map(switchPrimarySubStream).toPropertyWhenPresent("switchPrimarySubStream", row::getSwitchPrimarySubStream)
+ .map(broadcastPushAfterAck).toPropertyWhenPresent("broadcastPushAfterAck", row::getBroadcastPushAfterAck)
+ );
+ }
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source Table: docking_device")
+ default Optional selectOne(SelectDSLCompleter completer) {
+ return MyBatis3Utils.selectOne(this::selectOne, selectList, dockingDevice, completer);
+ }
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source Table: docking_device")
+ default List select(SelectDSLCompleter completer) {
+ return MyBatis3Utils.selectList(this::selectMany, selectList, dockingDevice, completer);
+ }
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source Table: docking_device")
+ default List selectDistinct(SelectDSLCompleter completer) {
+ return MyBatis3Utils.selectDistinct(this::selectMany, selectList, dockingDevice, completer);
+ }
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source Table: docking_device")
+ default Optional selectByPrimaryKey(Long id_) {
+ return selectOne(c ->
+ c.where(id, isEqualTo(id_))
+ );
+ }
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source Table: docking_device")
+ default int update(UpdateDSLCompleter completer) {
+ return MyBatis3Utils.update(this::update, dockingDevice, completer);
+ }
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source Table: docking_device")
+ static UpdateDSL updateAllColumns(DockingDevice row, UpdateDSL dsl) {
+ return dsl.set(id).equalTo(row::getId)
+ .set(deviceId).equalTo(row::getDeviceId)
+ .set(name).equalTo(row::getName)
+ .set(manufacturer).equalTo(row::getManufacturer)
+ .set(model).equalTo(row::getModel)
+ .set(firmware).equalTo(row::getFirmware)
+ .set(transport).equalTo(row::getTransport)
+ .set(streamMode).equalTo(row::getStreamMode)
+ .set(onLine).equalTo(row::getOnLine)
+ .set(registerTime).equalTo(row::getRegisterTime)
+ .set(keepaliveTime).equalTo(row::getKeepaliveTime)
+ .set(ip).equalTo(row::getIp)
+ .set(createTime).equalTo(row::getCreateTime)
+ .set(updateTime).equalTo(row::getUpdateTime)
+ .set(port).equalTo(row::getPort)
+ .set(expires).equalTo(row::getExpires)
+ .set(subscribeCycleForCatalog).equalTo(row::getSubscribeCycleForCatalog)
+ .set(subscribeCycleForMobilePosition).equalTo(row::getSubscribeCycleForMobilePosition)
+ .set(mobilePositionSubmissionInterval).equalTo(row::getMobilePositionSubmissionInterval)
+ .set(subscribeCycleForAlarm).equalTo(row::getSubscribeCycleForAlarm)
+ .set(hostAddress).equalTo(row::getHostAddress)
+ .set(charset).equalTo(row::getCharset)
+ .set(ssrcCheck).equalTo(row::getSsrcCheck)
+ .set(geoCoordSys).equalTo(row::getGeoCoordSys)
+ .set(mediaServerId).equalTo(row::getMediaServerId)
+ .set(customName).equalTo(row::getCustomName)
+ .set(sdpIp).equalTo(row::getSdpIp)
+ .set(localIp).equalTo(row::getLocalIp)
+ .set(password).equalTo(row::getPassword)
+ .set(asMessageChannel).equalTo(row::getAsMessageChannel)
+ .set(keepaliveIntervalTime).equalTo(row::getKeepaliveIntervalTime)
+ .set(switchPrimarySubStream).equalTo(row::getSwitchPrimarySubStream)
+ .set(broadcastPushAfterAck).equalTo(row::getBroadcastPushAfterAck);
+ }
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source Table: docking_device")
+ static UpdateDSL updateSelectiveColumns(DockingDevice row, UpdateDSL dsl) {
+ return dsl.set(id).equalToWhenPresent(row::getId)
+ .set(deviceId).equalToWhenPresent(row::getDeviceId)
+ .set(name).equalToWhenPresent(row::getName)
+ .set(manufacturer).equalToWhenPresent(row::getManufacturer)
+ .set(model).equalToWhenPresent(row::getModel)
+ .set(firmware).equalToWhenPresent(row::getFirmware)
+ .set(transport).equalToWhenPresent(row::getTransport)
+ .set(streamMode).equalToWhenPresent(row::getStreamMode)
+ .set(onLine).equalToWhenPresent(row::getOnLine)
+ .set(registerTime).equalToWhenPresent(row::getRegisterTime)
+ .set(keepaliveTime).equalToWhenPresent(row::getKeepaliveTime)
+ .set(ip).equalToWhenPresent(row::getIp)
+ .set(createTime).equalToWhenPresent(row::getCreateTime)
+ .set(updateTime).equalToWhenPresent(row::getUpdateTime)
+ .set(port).equalToWhenPresent(row::getPort)
+ .set(expires).equalToWhenPresent(row::getExpires)
+ .set(subscribeCycleForCatalog).equalToWhenPresent(row::getSubscribeCycleForCatalog)
+ .set(subscribeCycleForMobilePosition).equalToWhenPresent(row::getSubscribeCycleForMobilePosition)
+ .set(mobilePositionSubmissionInterval).equalToWhenPresent(row::getMobilePositionSubmissionInterval)
+ .set(subscribeCycleForAlarm).equalToWhenPresent(row::getSubscribeCycleForAlarm)
+ .set(hostAddress).equalToWhenPresent(row::getHostAddress)
+ .set(charset).equalToWhenPresent(row::getCharset)
+ .set(ssrcCheck).equalToWhenPresent(row::getSsrcCheck)
+ .set(geoCoordSys).equalToWhenPresent(row::getGeoCoordSys)
+ .set(mediaServerId).equalToWhenPresent(row::getMediaServerId)
+ .set(customName).equalToWhenPresent(row::getCustomName)
+ .set(sdpIp).equalToWhenPresent(row::getSdpIp)
+ .set(localIp).equalToWhenPresent(row::getLocalIp)
+ .set(password).equalToWhenPresent(row::getPassword)
+ .set(asMessageChannel).equalToWhenPresent(row::getAsMessageChannel)
+ .set(keepaliveIntervalTime).equalToWhenPresent(row::getKeepaliveIntervalTime)
+ .set(switchPrimarySubStream).equalToWhenPresent(row::getSwitchPrimarySubStream)
+ .set(broadcastPushAfterAck).equalToWhenPresent(row::getBroadcastPushAfterAck);
+ }
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source Table: docking_device")
+ default int updateByPrimaryKey(DockingDevice row) {
+ return update(c ->
+ c.set(deviceId).equalTo(row::getDeviceId)
+ .set(name).equalTo(row::getName)
+ .set(manufacturer).equalTo(row::getManufacturer)
+ .set(model).equalTo(row::getModel)
+ .set(firmware).equalTo(row::getFirmware)
+ .set(transport).equalTo(row::getTransport)
+ .set(streamMode).equalTo(row::getStreamMode)
+ .set(onLine).equalTo(row::getOnLine)
+ .set(registerTime).equalTo(row::getRegisterTime)
+ .set(keepaliveTime).equalTo(row::getKeepaliveTime)
+ .set(ip).equalTo(row::getIp)
+ .set(createTime).equalTo(row::getCreateTime)
+ .set(updateTime).equalTo(row::getUpdateTime)
+ .set(port).equalTo(row::getPort)
+ .set(expires).equalTo(row::getExpires)
+ .set(subscribeCycleForCatalog).equalTo(row::getSubscribeCycleForCatalog)
+ .set(subscribeCycleForMobilePosition).equalTo(row::getSubscribeCycleForMobilePosition)
+ .set(mobilePositionSubmissionInterval).equalTo(row::getMobilePositionSubmissionInterval)
+ .set(subscribeCycleForAlarm).equalTo(row::getSubscribeCycleForAlarm)
+ .set(hostAddress).equalTo(row::getHostAddress)
+ .set(charset).equalTo(row::getCharset)
+ .set(ssrcCheck).equalTo(row::getSsrcCheck)
+ .set(geoCoordSys).equalTo(row::getGeoCoordSys)
+ .set(mediaServerId).equalTo(row::getMediaServerId)
+ .set(customName).equalTo(row::getCustomName)
+ .set(sdpIp).equalTo(row::getSdpIp)
+ .set(localIp).equalTo(row::getLocalIp)
+ .set(password).equalTo(row::getPassword)
+ .set(asMessageChannel).equalTo(row::getAsMessageChannel)
+ .set(keepaliveIntervalTime).equalTo(row::getKeepaliveIntervalTime)
+ .set(switchPrimarySubStream).equalTo(row::getSwitchPrimarySubStream)
+ .set(broadcastPushAfterAck).equalTo(row::getBroadcastPushAfterAck)
+ .where(id, isEqualTo(row::getId))
+ );
+ }
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source Table: docking_device")
+ default int updateByPrimaryKeySelective(DockingDevice row) {
+ return update(c ->
+ c.set(deviceId).equalToWhenPresent(row::getDeviceId)
+ .set(name).equalToWhenPresent(row::getName)
+ .set(manufacturer).equalToWhenPresent(row::getManufacturer)
+ .set(model).equalToWhenPresent(row::getModel)
+ .set(firmware).equalToWhenPresent(row::getFirmware)
+ .set(transport).equalToWhenPresent(row::getTransport)
+ .set(streamMode).equalToWhenPresent(row::getStreamMode)
+ .set(onLine).equalToWhenPresent(row::getOnLine)
+ .set(registerTime).equalToWhenPresent(row::getRegisterTime)
+ .set(keepaliveTime).equalToWhenPresent(row::getKeepaliveTime)
+ .set(ip).equalToWhenPresent(row::getIp)
+ .set(createTime).equalToWhenPresent(row::getCreateTime)
+ .set(updateTime).equalToWhenPresent(row::getUpdateTime)
+ .set(port).equalToWhenPresent(row::getPort)
+ .set(expires).equalToWhenPresent(row::getExpires)
+ .set(subscribeCycleForCatalog).equalToWhenPresent(row::getSubscribeCycleForCatalog)
+ .set(subscribeCycleForMobilePosition).equalToWhenPresent(row::getSubscribeCycleForMobilePosition)
+ .set(mobilePositionSubmissionInterval).equalToWhenPresent(row::getMobilePositionSubmissionInterval)
+ .set(subscribeCycleForAlarm).equalToWhenPresent(row::getSubscribeCycleForAlarm)
+ .set(hostAddress).equalToWhenPresent(row::getHostAddress)
+ .set(charset).equalToWhenPresent(row::getCharset)
+ .set(ssrcCheck).equalToWhenPresent(row::getSsrcCheck)
+ .set(geoCoordSys).equalToWhenPresent(row::getGeoCoordSys)
+ .set(mediaServerId).equalToWhenPresent(row::getMediaServerId)
+ .set(customName).equalToWhenPresent(row::getCustomName)
+ .set(sdpIp).equalToWhenPresent(row::getSdpIp)
+ .set(localIp).equalToWhenPresent(row::getLocalIp)
+ .set(password).equalToWhenPresent(row::getPassword)
+ .set(asMessageChannel).equalToWhenPresent(row::getAsMessageChannel)
+ .set(keepaliveIntervalTime).equalToWhenPresent(row::getKeepaliveIntervalTime)
+ .set(switchPrimarySubStream).equalToWhenPresent(row::getSwitchPrimarySubStream)
+ .set(broadcastPushAfterAck).equalToWhenPresent(row::getBroadcastPushAfterAck)
+ .where(id, isEqualTo(row::getId))
+ );
+ }
+}
\ No newline at end of file
diff --git a/orm/src/main/java/cn/skcks/docking/gb28181/orm/mybatis/dynamic/model/DockingDevice.java b/orm/src/main/java/cn/skcks/docking/gb28181/orm/mybatis/dynamic/model/DockingDevice.java
new file mode 100644
index 0000000..75079e4
--- /dev/null
+++ b/orm/src/main/java/cn/skcks/docking/gb28181/orm/mybatis/dynamic/model/DockingDevice.java
@@ -0,0 +1,439 @@
+package cn.skcks.docking.gb28181.orm.mybatis.dynamic.model;
+
+import jakarta.annotation.Generated;
+
+/**
+ *
+ * This class was generated by MyBatis Generator.
+ * This class corresponds to the database table docking_device
+ */
+public class DockingDevice {
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.id")
+ private Long id;
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.device_id")
+ private String deviceId;
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.name")
+ private String name;
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.manufacturer")
+ private String manufacturer;
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.model")
+ private String model;
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.firmware")
+ private String firmware;
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.transport")
+ private String transport;
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.stream_mode")
+ private String streamMode;
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.on_line")
+ private Boolean onLine;
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.register_time")
+ private String registerTime;
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.keepalive_time")
+ private String keepaliveTime;
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.ip")
+ private String ip;
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.create_time")
+ private String createTime;
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.update_time")
+ private String updateTime;
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.port")
+ private Integer port;
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.expires")
+ private Integer expires;
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.subscribe_cycle_for_catalog")
+ private Integer subscribeCycleForCatalog;
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.subscribe_cycle_for_mobile_position")
+ private Integer subscribeCycleForMobilePosition;
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.mobile_position_submission_interval")
+ private Integer mobilePositionSubmissionInterval;
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.subscribe_cycle_for_alarm")
+ private Integer subscribeCycleForAlarm;
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.host_address")
+ private String hostAddress;
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.charset")
+ private String charset;
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.ssrc_check")
+ private Boolean ssrcCheck;
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.geo_coord_sys")
+ private String geoCoordSys;
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.media_server_id")
+ private String mediaServerId;
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.custom_name")
+ private String customName;
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.sdp_ip")
+ private String sdpIp;
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.local_ip")
+ private String localIp;
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.password")
+ private String password;
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.as_message_channel")
+ private Boolean asMessageChannel;
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.keepalive_interval_time")
+ private Integer keepaliveIntervalTime;
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.switch_primary_sub_stream")
+ private Boolean switchPrimarySubStream;
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.broadcast_push_after_ack")
+ private Boolean broadcastPushAfterAck;
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.id")
+ public Long getId() {
+ return id;
+ }
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.id")
+ public void setId(Long id) {
+ this.id = id;
+ }
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.device_id")
+ public String getDeviceId() {
+ return deviceId;
+ }
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.device_id")
+ public void setDeviceId(String deviceId) {
+ this.deviceId = deviceId == null ? null : deviceId.trim();
+ }
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.name")
+ public String getName() {
+ return name;
+ }
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.name")
+ public void setName(String name) {
+ this.name = name == null ? null : name.trim();
+ }
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.manufacturer")
+ public String getManufacturer() {
+ return manufacturer;
+ }
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.manufacturer")
+ public void setManufacturer(String manufacturer) {
+ this.manufacturer = manufacturer == null ? null : manufacturer.trim();
+ }
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.model")
+ public String getModel() {
+ return model;
+ }
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.model")
+ public void setModel(String model) {
+ this.model = model == null ? null : model.trim();
+ }
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.firmware")
+ public String getFirmware() {
+ return firmware;
+ }
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.firmware")
+ public void setFirmware(String firmware) {
+ this.firmware = firmware == null ? null : firmware.trim();
+ }
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.transport")
+ public String getTransport() {
+ return transport;
+ }
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.transport")
+ public void setTransport(String transport) {
+ this.transport = transport == null ? null : transport.trim();
+ }
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.stream_mode")
+ public String getStreamMode() {
+ return streamMode;
+ }
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.stream_mode")
+ public void setStreamMode(String streamMode) {
+ this.streamMode = streamMode == null ? null : streamMode.trim();
+ }
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.on_line")
+ public Boolean getOnLine() {
+ return onLine;
+ }
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.on_line")
+ public void setOnLine(Boolean onLine) {
+ this.onLine = onLine;
+ }
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.register_time")
+ public String getRegisterTime() {
+ return registerTime;
+ }
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.register_time")
+ public void setRegisterTime(String registerTime) {
+ this.registerTime = registerTime == null ? null : registerTime.trim();
+ }
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.keepalive_time")
+ public String getKeepaliveTime() {
+ return keepaliveTime;
+ }
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.keepalive_time")
+ public void setKeepaliveTime(String keepaliveTime) {
+ this.keepaliveTime = keepaliveTime == null ? null : keepaliveTime.trim();
+ }
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.ip")
+ public String getIp() {
+ return ip;
+ }
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.ip")
+ public void setIp(String ip) {
+ this.ip = ip == null ? null : ip.trim();
+ }
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.create_time")
+ public String getCreateTime() {
+ return createTime;
+ }
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.create_time")
+ public void setCreateTime(String createTime) {
+ this.createTime = createTime == null ? null : createTime.trim();
+ }
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.update_time")
+ public String getUpdateTime() {
+ return updateTime;
+ }
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.update_time")
+ public void setUpdateTime(String updateTime) {
+ this.updateTime = updateTime == null ? null : updateTime.trim();
+ }
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.port")
+ public Integer getPort() {
+ return port;
+ }
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.port")
+ public void setPort(Integer port) {
+ this.port = port;
+ }
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.expires")
+ public Integer getExpires() {
+ return expires;
+ }
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.expires")
+ public void setExpires(Integer expires) {
+ this.expires = expires;
+ }
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.subscribe_cycle_for_catalog")
+ public Integer getSubscribeCycleForCatalog() {
+ return subscribeCycleForCatalog;
+ }
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.subscribe_cycle_for_catalog")
+ public void setSubscribeCycleForCatalog(Integer subscribeCycleForCatalog) {
+ this.subscribeCycleForCatalog = subscribeCycleForCatalog;
+ }
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.subscribe_cycle_for_mobile_position")
+ public Integer getSubscribeCycleForMobilePosition() {
+ return subscribeCycleForMobilePosition;
+ }
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.subscribe_cycle_for_mobile_position")
+ public void setSubscribeCycleForMobilePosition(Integer subscribeCycleForMobilePosition) {
+ this.subscribeCycleForMobilePosition = subscribeCycleForMobilePosition;
+ }
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.mobile_position_submission_interval")
+ public Integer getMobilePositionSubmissionInterval() {
+ return mobilePositionSubmissionInterval;
+ }
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.mobile_position_submission_interval")
+ public void setMobilePositionSubmissionInterval(Integer mobilePositionSubmissionInterval) {
+ this.mobilePositionSubmissionInterval = mobilePositionSubmissionInterval;
+ }
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.subscribe_cycle_for_alarm")
+ public Integer getSubscribeCycleForAlarm() {
+ return subscribeCycleForAlarm;
+ }
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.subscribe_cycle_for_alarm")
+ public void setSubscribeCycleForAlarm(Integer subscribeCycleForAlarm) {
+ this.subscribeCycleForAlarm = subscribeCycleForAlarm;
+ }
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.host_address")
+ public String getHostAddress() {
+ return hostAddress;
+ }
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.host_address")
+ public void setHostAddress(String hostAddress) {
+ this.hostAddress = hostAddress == null ? null : hostAddress.trim();
+ }
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.charset")
+ public String getCharset() {
+ return charset;
+ }
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.charset")
+ public void setCharset(String charset) {
+ this.charset = charset == null ? null : charset.trim();
+ }
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.ssrc_check")
+ public Boolean getSsrcCheck() {
+ return ssrcCheck;
+ }
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.ssrc_check")
+ public void setSsrcCheck(Boolean ssrcCheck) {
+ this.ssrcCheck = ssrcCheck;
+ }
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.geo_coord_sys")
+ public String getGeoCoordSys() {
+ return geoCoordSys;
+ }
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.geo_coord_sys")
+ public void setGeoCoordSys(String geoCoordSys) {
+ this.geoCoordSys = geoCoordSys == null ? null : geoCoordSys.trim();
+ }
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.media_server_id")
+ public String getMediaServerId() {
+ return mediaServerId;
+ }
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.media_server_id")
+ public void setMediaServerId(String mediaServerId) {
+ this.mediaServerId = mediaServerId == null ? null : mediaServerId.trim();
+ }
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.custom_name")
+ public String getCustomName() {
+ return customName;
+ }
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.custom_name")
+ public void setCustomName(String customName) {
+ this.customName = customName == null ? null : customName.trim();
+ }
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.sdp_ip")
+ public String getSdpIp() {
+ return sdpIp;
+ }
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.sdp_ip")
+ public void setSdpIp(String sdpIp) {
+ this.sdpIp = sdpIp == null ? null : sdpIp.trim();
+ }
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.local_ip")
+ public String getLocalIp() {
+ return localIp;
+ }
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.local_ip")
+ public void setLocalIp(String localIp) {
+ this.localIp = localIp == null ? null : localIp.trim();
+ }
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.password")
+ public String getPassword() {
+ return password;
+ }
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.password")
+ public void setPassword(String password) {
+ this.password = password == null ? null : password.trim();
+ }
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.as_message_channel")
+ public Boolean getAsMessageChannel() {
+ return asMessageChannel;
+ }
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.as_message_channel")
+ public void setAsMessageChannel(Boolean asMessageChannel) {
+ this.asMessageChannel = asMessageChannel;
+ }
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.keepalive_interval_time")
+ public Integer getKeepaliveIntervalTime() {
+ return keepaliveIntervalTime;
+ }
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.keepalive_interval_time")
+ public void setKeepaliveIntervalTime(Integer keepaliveIntervalTime) {
+ this.keepaliveIntervalTime = keepaliveIntervalTime;
+ }
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.switch_primary_sub_stream")
+ public Boolean getSwitchPrimarySubStream() {
+ return switchPrimarySubStream;
+ }
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.switch_primary_sub_stream")
+ public void setSwitchPrimarySubStream(Boolean switchPrimarySubStream) {
+ this.switchPrimarySubStream = switchPrimarySubStream;
+ }
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.broadcast_push_after_ack")
+ public Boolean getBroadcastPushAfterAck() {
+ return broadcastPushAfterAck;
+ }
+
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: docking_device.broadcast_push_after_ack")
+ public void setBroadcastPushAfterAck(Boolean broadcastPushAfterAck) {
+ this.broadcastPushAfterAck = broadcastPushAfterAck;
+ }
+}
\ No newline at end of file
diff --git a/orm/src/main/java/cn/skcks/docking/gb28181/orm/mybatis/operation/OperateTableMapper.java b/orm/src/main/java/cn/skcks/docking/gb28181/orm/mybatis/operation/OperateTableMapper.java
new file mode 100644
index 0000000..8bf6c8a
--- /dev/null
+++ b/orm/src/main/java/cn/skcks/docking/gb28181/orm/mybatis/operation/OperateTableMapper.java
@@ -0,0 +1,9 @@
+package cn.skcks.docking.gb28181.orm.mybatis.operation;
+
+import org.apache.ibatis.annotations.Mapper;
+
+@Mapper
+public interface OperateTableMapper {
+ // int createNewTable(@Param("tableName")String tableName);
+ void createDeviceTable();
+}
diff --git a/orm/src/main/java/cn/skcks/docking/gb28181/orm/mybatis/operation/OperateTableMapper.xml b/orm/src/main/java/cn/skcks/docking/gb28181/orm/mybatis/operation/OperateTableMapper.xml
new file mode 100644
index 0000000..4de5c76
--- /dev/null
+++ b/orm/src/main/java/cn/skcks/docking/gb28181/orm/mybatis/operation/OperateTableMapper.xml
@@ -0,0 +1,46 @@
+
+
+
+
+
+ CREATE TABLE IF NOT EXISTS `docking_device` (
+ `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
+ `device_id` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
+ `name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+ `manufacturer` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+ `model` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+ `firmware` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+ `transport` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+ `stream_mode` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+ `on_line` tinyint(1) DEFAULT '0',
+ `register_time` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+ `keepalive_time` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+ `ip` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+ `create_time` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+ `update_time` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+ `port` int(11) DEFAULT NULL,
+ `expires` int(11) DEFAULT NULL,
+ `subscribe_cycle_for_catalog` int(11) DEFAULT '0',
+ `subscribe_cycle_for_mobile_position` int(11) DEFAULT '0',
+ `mobile_position_submission_interval` int(11) DEFAULT '5',
+ `subscribe_cycle_for_alarm` int(11) DEFAULT '0',
+ `host_address` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+ `charset` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+ `ssrc_check` tinyint(1) DEFAULT '0',
+ `geo_coord_sys` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+ `media_server_id` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+ `custom_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+ `sdp_ip` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+ `local_ip` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+ `password` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
+ `as_message_channel` tinyint(1) DEFAULT '0',
+ `keepalive_interval_time` int(11) DEFAULT NULL,
+ `switch_primary_sub_stream` tinyint(1) DEFAULT '0',
+ `broadcast_push_after_ack` tinyint(1) DEFAULT '0',
+ PRIMARY KEY (`id`),
+ UNIQUE KEY `id` (`id`),
+ UNIQUE KEY `uk_device_device` (`device_id`)
+ ) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
+
+
diff --git a/orm/src/main/resources/config/generatorConfig.xml b/orm/src/main/resources/config/generatorConfig.xml
new file mode 100644
index 0000000..19f3f64
--- /dev/null
+++ b/orm/src/main/resources/config/generatorConfig.xml
@@ -0,0 +1,402 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/orm/src/test/java/cn/skcks/docking/gb28181/orm/mybatis/GenerateSchemaTest.java b/orm/src/test/java/cn/skcks/docking/gb28181/orm/mybatis/GenerateSchemaTest.java
new file mode 100644
index 0000000..7128b5f
--- /dev/null
+++ b/orm/src/test/java/cn/skcks/docking/gb28181/orm/mybatis/GenerateSchemaTest.java
@@ -0,0 +1,25 @@
+package cn.skcks.docking.gb28181.orm.mybatis;
+
+import cn.skcks.docking.gb28181.orm.mybatis.operation.OperateTableMapper;
+import org.junit.jupiter.api.Test;
+import org.mybatis.spring.annotation.MapperScan;
+import org.mybatis.spring.annotation.MapperScans;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+import org.springframework.boot.test.context.SpringBootTest;
+import org.springframework.test.context.ActiveProfiles;
+
+// 生成 schema 元数据 表
+@ActiveProfiles("pre-dev")
+@SpringBootTest(classes = {GenerateSchemaTest.class})
+@MapperScans(@MapperScan("cn.skcks.docking.gb28181.orm.mybatis"))
+@SpringBootApplication
+public class GenerateSchemaTest {
+ @Autowired
+ private OperateTableMapper operateTableMapper;
+
+ @Test
+ void contextLoads(){
+ operateTableMapper.createDeviceTable();
+ }
+}
diff --git a/orm/src/test/resources/application.yml b/orm/src/test/resources/application.yml
new file mode 100644
index 0000000..f657d63
--- /dev/null
+++ b/orm/src/test/resources/application.yml
@@ -0,0 +1,23 @@
+spring:
+ profiles:
+ active: pre-dev
+
+---
+spring:
+ config:
+ activate:
+ on-profile: pre-dev
+
+ datasource:
+ type: com.zaxxer.hikari.HikariDataSource
+ driver-class-name: com.mysql.cj.jdbc.Driver
+ username: root
+ password: 12341234
+ url: jdbc:mysql://10.10.10.200:3306/gb28181_docking_platform?createDatabaseIfNotExist=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
+# sql:
+# init:
+# mode: ALWAYS
+# schema-locations:
+# - classpath:schema/*.sql
+# username: root
+# password: 12341234
diff --git a/pom.xml b/pom.xml
index 43ed37f..252f065 100644
--- a/pom.xml
+++ b/pom.xml
@@ -37,10 +37,10 @@
8.0.31
- 3.0.1
- 1.4.1
- 1.4.1
- 1.4.6
+ 3.0.2
+ 1.5.0
+ 1.4.2
+ 1.4.7
5.8.11
@@ -73,6 +73,20 @@
provided
+
+
+ org.mybatis.spring.boot
+ mybatis-spring-boot-starter
+ ${mybatis.version}
+
+
+
+
+ org.mybatis.dynamic-sql
+ mybatis-dynamic-sql
+ ${mybatis-dynamic.version}
+
+
com.github.pagehelper
diff --git a/starter/pom.xml b/starter/pom.xml
index 6d578b4..944f055 100644
--- a/starter/pom.xml
+++ b/starter/pom.xml
@@ -75,6 +75,12 @@
spring-boot-starter-test
test
+
+
+ org.junit.jupiter
+ junit-jupiter-api
+ test
+
diff --git a/starter/src/main/java/cn/skcks/docking/gb28181/Gb28181DockingPlatformApplication.java b/starter/src/main/java/cn/skcks/docking/gb28181/Gb28181DockingPlatformApplication.java
index bd1ee94..09e7d15 100644
--- a/starter/src/main/java/cn/skcks/docking/gb28181/Gb28181DockingPlatformApplication.java
+++ b/starter/src/main/java/cn/skcks/docking/gb28181/Gb28181DockingPlatformApplication.java
@@ -2,9 +2,8 @@ package cn.skcks.docking.gb28181;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
-import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
-@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
+@SpringBootApplication
public class Gb28181DockingPlatformApplication {
public static void main(String[] args) {
diff --git a/starter/src/test/java/cn/skcks/docking/gb28181/Gb28181DockingPlatformApplicationTest.java b/starter/src/test/java/cn/skcks/docking/gb28181/Gb28181DockingPlatformApplicationTest.java
index 655191d..a3cc818 100644
--- a/starter/src/test/java/cn/skcks/docking/gb28181/Gb28181DockingPlatformApplicationTest.java
+++ b/starter/src/test/java/cn/skcks/docking/gb28181/Gb28181DockingPlatformApplicationTest.java
@@ -4,7 +4,7 @@ import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
-@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
+@SpringBootApplication
public class Gb28181DockingPlatformApplicationTest {
public static void main(String[] args) {
SpringApplication.run(Gb28181DockingPlatformApplication.class, args);
diff --git a/starter/src/test/resources/application.yml b/starter/src/test/resources/application.yml
index c156b54..7cb0f35 100644
--- a/starter/src/test/resources/application.yml
+++ b/starter/src/test/resources/application.yml
@@ -4,6 +4,14 @@ server:
project:
version: @project.version@
+spring:
+ datasource:
+ type: com.zaxxer.hikari.HikariDataSource
+ driver-class-name: com.mysql.cj.jdbc.Driver
+ username: root
+ password: 12341234
+ url: jdbc:mysql://10.10.10.200:3306/gb28181_docking_platform?createDatabaseIfNotExist=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
+
gb28181:
# 作为28181服务器的配置
sip: