From 08a691792cd4165d9943cc17c150eeedd799ab25 Mon Sep 17 00:00:00 2001
From: 艾金辉 <1144154118@qq.com>
Date: 星期六, 22 七月 2023 10:26:04 +0800
Subject: [PATCH] 封装返回数据
---
ard-work/src/main/resources/mapper/sy/ArdSyCarMapper.xml | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/ard-work/src/main/resources/mapper/sy/ArdSyCarMapper.xml b/ard-work/src/main/resources/mapper/sy/ArdSyCarMapper.xml
index b70dea5..35d3c4b 100644
--- a/ard-work/src/main/resources/mapper/sy/ArdSyCarMapper.xml
+++ b/ard-work/src/main/resources/mapper/sy/ArdSyCarMapper.xml
@@ -95,4 +95,14 @@
#{id}
</foreach>
</delete>
+ <select id="selectArdSyCarByIds" parameterType="String" resultMap="ArdSyCarResult">
+ select * from ard_sy_car where id in
+ <foreach item="id" collection="array" open="(" separator="," close=")">
+ #{id}
+ </foreach>
+ </select>
+
+ <select id="carListById" parameterType="String" resultMap="ArdSyCarResult">
+ select * from ard_sy_car where id = #{id}
+ </select>
</mapper>
\ No newline at end of file
--
Gitblit v1.9.3