From 4a9e9434085c421bbde6251a3ae5c84524456059 Mon Sep 17 00:00:00 2001
From: zhaowenyu <35589726@qq.com>
Date: Mon, 13 Oct 2025 09:07:34 +0800
Subject: [PATCH] 修改字段名称,使json字段名与实体类属性名对应, 使@JsonProperty注解后发现偶尔也会有问题, 所以将字段将也改成json对应名称
---
ard-work/src/main/resources/mapper/ArdDroneInfoMapper.xml | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/ard-work/src/main/resources/mapper/ArdDroneInfoMapper.xml b/ard-work/src/main/resources/mapper/ArdDroneInfoMapper.xml
index 70c130f..c7f2d99 100644
--- a/ard-work/src/main/resources/mapper/ArdDroneInfoMapper.xml
+++ b/ard-work/src/main/resources/mapper/ArdDroneInfoMapper.xml
@@ -68,7 +68,10 @@
<include refid="selectArdDroneVo"/>
where id = #{id}
</select>
-
+ <select id="selectArdDroneByBoxSn" parameterType="String" resultMap="ArdDroneResult">
+ <include refid="selectArdDroneVo"/>
+ where box_sn = #{boxSn}
+ </select>
<insert id="insertArdDrone" parameterType="ArdDroneInfo">
insert into ard_drone_info
<trim prefix="(" suffix=")" suffixOverrides=",">
--
Gitblit v1.9.3