From 80a4c2dee40aa6ed9ee750ebc431c0b4a3d8758f Mon Sep 17 00:00:00 2001
From: Administrator <zhubaomin>
Date: 星期二, 16 一月 2024 16:08:12 +0800
Subject: [PATCH] 2024-01-16 朱宝民 重构流浪控制器表和控制器表
---
pipIrr-platform/pipIrr-global/src/main/resources/mapper/PrControllerTrampMapper.xml | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/PrControllerTrampMapper.xml b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/PrControllerTrampMapper.xml
index 029d01a..f3830e0 100644
--- a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/PrControllerTrampMapper.xml
+++ b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/PrControllerTrampMapper.xml
@@ -7,7 +7,7 @@
<id column="id" jdbcType="BIGINT" property="id" />
<result column="rtuAddr" jdbcType="VARCHAR" property="rtuAddr" />
<result column="protocol" jdbcType="VARCHAR" property="protocol" />
- <result column="findDt" jdbcType="VARCHAR" property="findDt" />
+ <result column="findDt" jdbcType="TIMESTAMP" property="findDt" />
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
@@ -20,6 +20,7 @@
from pr_controller_tramp
where id = #{id,jdbcType=BIGINT}
</select>
+
<select id="selectPrControllerTrampByRtuAddr" parameterType="java.lang.String" resultMap="BaseResultMap">
<!--@mbg.generated-->
select
@@ -27,6 +28,7 @@
from pr_controller_tramp
where rtuAddr = #{rtuAddr,jdbcType=VARCHAR}
</select>
+
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
<!--@mbg.generated-->
delete from pr_controller_tramp
@@ -37,7 +39,7 @@
insert into pr_controller_tramp (id, rtuAddr, protocol,
findDt)
values (#{id,jdbcType=BIGINT}, #{rtuAddr,jdbcType=VARCHAR}, #{protocol,jdbcType=VARCHAR},
- #{findDt,jdbcType=VARCHAR})
+ #{findDt,jdbcType=TIMESTAMP})
</insert>
<insert id="insertSelective" parameterType="com.dy.pipIrrGlobal.pojoPr.PrControllerTramp">
<!--@mbg.generated-->
@@ -67,7 +69,7 @@
#{protocol,jdbcType=VARCHAR},
</if>
<if test="findDt != null">
- #{findDt,jdbcType=VARCHAR},
+ #{findDt,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
@@ -82,7 +84,7 @@
protocol = #{protocol,jdbcType=VARCHAR},
</if>
<if test="findDt != null">
- findDt = #{findDt,jdbcType=VARCHAR},
+ findDt = #{findDt,jdbcType=TIMESTAMP},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
@@ -92,7 +94,7 @@
update pr_controller_tramp
set rtuAddr = #{rtuAddr,jdbcType=VARCHAR},
protocol = #{protocol,jdbcType=VARCHAR},
- findDt = #{findDt,jdbcType=VARCHAR}
+ findDt = #{findDt,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>
\ No newline at end of file
--
Gitblit v1.8.0