|
|
@ -10,6 +10,7 @@
|
|
|
|
<result column="heartbeat_time" jdbcType="BIGINT" property="heartbeatTime" />
|
|
|
|
<result column="heartbeat_time" jdbcType="BIGINT" property="heartbeatTime" />
|
|
|
|
<result column="heartbeat_ip" jdbcType="VARCHAR" property="heartbeatIp" />
|
|
|
|
<result column="heartbeat_ip" jdbcType="VARCHAR" property="heartbeatIp" />
|
|
|
|
<result column="heartbeat_port" jdbcType="INTEGER" property="heartbeatPort" />
|
|
|
|
<result column="heartbeat_port" jdbcType="INTEGER" property="heartbeatPort" />
|
|
|
|
|
|
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
|
|
</resultMap>
|
|
|
|
</resultMap>
|
|
|
|
<sql id="Example_Where_Clause">
|
|
|
|
<sql id="Example_Where_Clause">
|
|
|
|
<!--
|
|
|
|
<!--
|
|
|
@ -82,7 +83,7 @@
|
|
|
|
WARNING - @mbg.generated
|
|
|
|
WARNING - @mbg.generated
|
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
|
-->
|
|
|
|
-->
|
|
|
|
term_id, heartbeat_time, heartbeat_ip, heartbeat_port
|
|
|
|
term_id, heartbeat_time, heartbeat_ip, heartbeat_port, create_time
|
|
|
|
</sql>
|
|
|
|
</sql>
|
|
|
|
<select id="selectByExample" parameterType="com.shxy.xymanager_common.entity.TerminalHeartbeatHistoryExample" resultMap="BaseResultMap">
|
|
|
|
<select id="selectByExample" parameterType="com.shxy.xymanager_common.entity.TerminalHeartbeatHistoryExample" resultMap="BaseResultMap">
|
|
|
|
<!--
|
|
|
|
<!--
|
|
|
@ -118,9 +119,9 @@
|
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
|
-->
|
|
|
|
-->
|
|
|
|
insert into terminal_heartbeat_history (term_id, heartbeat_time, heartbeat_ip,
|
|
|
|
insert into terminal_heartbeat_history (term_id, heartbeat_time, heartbeat_ip,
|
|
|
|
heartbeat_port)
|
|
|
|
heartbeat_port, create_time)
|
|
|
|
values (#{termId,jdbcType=INTEGER}, #{heartbeatTime,jdbcType=BIGINT}, #{heartbeatIp,jdbcType=VARCHAR},
|
|
|
|
values (#{termId,jdbcType=INTEGER}, #{heartbeatTime,jdbcType=BIGINT}, #{heartbeatIp,jdbcType=VARCHAR},
|
|
|
|
#{heartbeatPort,jdbcType=INTEGER})
|
|
|
|
#{heartbeatPort,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP})
|
|
|
|
</insert>
|
|
|
|
</insert>
|
|
|
|
<insert id="insertSelective" parameterType="com.shxy.xymanager_common.entity.TerminalHeartbeatHistory">
|
|
|
|
<insert id="insertSelective" parameterType="com.shxy.xymanager_common.entity.TerminalHeartbeatHistory">
|
|
|
|
<!--
|
|
|
|
<!--
|
|
|
@ -141,6 +142,9 @@
|
|
|
|
<if test="heartbeatPort != null">
|
|
|
|
<if test="heartbeatPort != null">
|
|
|
|
heartbeat_port,
|
|
|
|
heartbeat_port,
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="createTime != null">
|
|
|
|
|
|
|
|
create_time,
|
|
|
|
|
|
|
|
</if>
|
|
|
|
</trim>
|
|
|
|
</trim>
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
<if test="termId != null">
|
|
|
|
<if test="termId != null">
|
|
|
@ -155,6 +159,9 @@
|
|
|
|
<if test="heartbeatPort != null">
|
|
|
|
<if test="heartbeatPort != null">
|
|
|
|
#{heartbeatPort,jdbcType=INTEGER},
|
|
|
|
#{heartbeatPort,jdbcType=INTEGER},
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="createTime != null">
|
|
|
|
|
|
|
|
#{createTime,jdbcType=TIMESTAMP},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
</trim>
|
|
|
|
</trim>
|
|
|
|
</insert>
|
|
|
|
</insert>
|
|
|
|
<select id="countByExample" parameterType="com.shxy.xymanager_common.entity.TerminalHeartbeatHistoryExample" resultType="java.lang.Long">
|
|
|
|
<select id="countByExample" parameterType="com.shxy.xymanager_common.entity.TerminalHeartbeatHistoryExample" resultType="java.lang.Long">
|
|
|
@ -186,6 +193,9 @@
|
|
|
|
<if test="row.heartbeatPort != null">
|
|
|
|
<if test="row.heartbeatPort != null">
|
|
|
|
heartbeat_port = #{row.heartbeatPort,jdbcType=INTEGER},
|
|
|
|
heartbeat_port = #{row.heartbeatPort,jdbcType=INTEGER},
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="row.createTime != null">
|
|
|
|
|
|
|
|
create_time = #{row.createTime,jdbcType=TIMESTAMP},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
</set>
|
|
|
|
</set>
|
|
|
|
<if test="example != null">
|
|
|
|
<if test="example != null">
|
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
@ -200,7 +210,8 @@
|
|
|
|
set term_id = #{row.termId,jdbcType=INTEGER},
|
|
|
|
set term_id = #{row.termId,jdbcType=INTEGER},
|
|
|
|
heartbeat_time = #{row.heartbeatTime,jdbcType=BIGINT},
|
|
|
|
heartbeat_time = #{row.heartbeatTime,jdbcType=BIGINT},
|
|
|
|
heartbeat_ip = #{row.heartbeatIp,jdbcType=VARCHAR},
|
|
|
|
heartbeat_ip = #{row.heartbeatIp,jdbcType=VARCHAR},
|
|
|
|
heartbeat_port = #{row.heartbeatPort,jdbcType=INTEGER}
|
|
|
|
heartbeat_port = #{row.heartbeatPort,jdbcType=INTEGER},
|
|
|
|
|
|
|
|
create_time = #{row.createTime,jdbcType=TIMESTAMP}
|
|
|
|
<if test="example != null">
|
|
|
|
<if test="example != null">
|
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|