From d15cae9e8d2cabf8d0f3ed41f2f88b04131f8c76 Mon Sep 17 00:00:00 2001
From: liurunyu <lry9898@163.com>
Date: 星期四, 31 七月 2025 14:18:58 +0800
Subject: [PATCH] 增加查询单个设备(RTU或FBox)是否在线的功能接口
---
pipIrr-platform/pipIrr-global/src/main/resources/mapper/SeManagementCardMapper.xml | 30 ++++++++++++++++++++++++++----
1 files changed, 26 insertions(+), 4 deletions(-)
diff --git a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/SeManagementCardMapper.xml b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/SeManagementCardMapper.xml
index 0e28a72..e3e5445 100644
--- a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/SeManagementCardMapper.xml
+++ b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/SeManagementCardMapper.xml
@@ -17,11 +17,13 @@
<result column="domain" jdbcType="VARCHAR" property="domain" />
<result column="open_clost_time" jdbcType="INTEGER" property="openClostTime" />
<result column="remarks" jdbcType="VARCHAR" property="remarks" />
+ <result column="cancel_time" jdbcType="TIMESTAMP" property="cancelTime" />
+ <result column="state" jdbcType="TINYINT" property="state" />
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
id, protocol, card_addr, security_code, card_type, create_time, order_no, district_code,
- project_no, ip, `domain`, open_clost_time, remarks
+ project_no, ip, `domain`, open_clost_time, remarks, cancel_time, state
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
<!--@mbg.generated-->
@@ -41,12 +43,12 @@
security_code, card_type, create_time,
order_no, district_code, project_no,
ip, `domain`, open_clost_time,
- remarks)
+ remarks, cancel_time, state)
values (#{id,jdbcType=BIGINT}, #{protocol,jdbcType=VARCHAR}, #{cardAddr,jdbcType=VARCHAR},
#{securityCode,jdbcType=VARCHAR}, #{cardType,jdbcType=TINYINT}, #{createTime,jdbcType=TIMESTAMP},
#{orderNo,jdbcType=VARCHAR}, #{districtCode,jdbcType=VARCHAR}, #{projectNo,jdbcType=INTEGER},
#{ip,jdbcType=VARCHAR}, #{domain,jdbcType=VARCHAR}, #{openClostTime,jdbcType=INTEGER},
- #{remarks,jdbcType=VARCHAR})
+ #{remarks,jdbcType=VARCHAR}, #{cancelTime,jdbcType=TIMESTAMP}, #{state,jdbcType=TINYINT})
</insert>
<insert id="insertSelective" parameterType="com.dy.pipIrrGlobal.pojoSe.SeManagementCard">
<!--@mbg.generated-->
@@ -91,6 +93,12 @@
<if test="remarks != null">
remarks,
</if>
+ <if test="cancelTime != null">
+ cancel_time,
+ </if>
+ <if test="state != null">
+ state,
+ </if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
@@ -131,6 +139,12 @@
</if>
<if test="remarks != null">
#{remarks,jdbcType=VARCHAR},
+ </if>
+ <if test="cancelTime != null">
+ #{cancelTime,jdbcType=TIMESTAMP},
+ </if>
+ <if test="state != null">
+ #{state,jdbcType=TINYINT},
</if>
</trim>
</insert>
@@ -174,6 +188,12 @@
<if test="remarks != null">
remarks = #{remarks,jdbcType=VARCHAR},
</if>
+ <if test="cancelTime != null">
+ cancel_time = #{cancelTime,jdbcType=TIMESTAMP},
+ </if>
+ <if test="state != null">
+ state = #{state,jdbcType=TINYINT},
+ </if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
@@ -191,7 +211,9 @@
ip = #{ip,jdbcType=VARCHAR},
`domain` = #{domain,jdbcType=VARCHAR},
open_clost_time = #{openClostTime,jdbcType=INTEGER},
- remarks = #{remarks,jdbcType=VARCHAR}
+ remarks = #{remarks,jdbcType=VARCHAR},
+ cancel_time = #{cancelTime,jdbcType=TIMESTAMP},
+ state = #{state,jdbcType=TINYINT}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>
\ No newline at end of file
--
Gitblit v1.8.0