From ca8f5a8f133e7f5b00b9d35ff6d15720804569af Mon Sep 17 00:00:00 2001
From: zyx <zyx123456>
Date: 星期三, 31 一月 2024 10:15:32 +0800
Subject: [PATCH] Merge branch 'ryzhwcs' of http://47.97.1.152:5880/r/zy-wcs into ryzhwcs

---
 src/main/resources/mapper/ConfigMapper.xml |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/src/main/resources/mapper/ConfigMapper.xml b/src/main/resources/mapper/ConfigMapper.xml
index 8673fe5..8dd9f7d 100644
--- a/src/main/resources/mapper/ConfigMapper.xml
+++ b/src/main/resources/mapper/ConfigMapper.xml
@@ -13,4 +13,17 @@
 
     </resultMap>
 
+    <select id="selectByCode" resultMap="BaseResultMap">
+        select top 1 * from sys_config
+        where code = #{code}
+    </select>
+
+    <select id="selectByCodes" resultMap="BaseResultMap">
+        select * from sys_config
+        where code in
+        <foreach item="item" collection="codes" index="index"  separator="," open="(" close=")">
+            #{item}
+        </foreach>
+    </select>
+
 </mapper>

--
Gitblit v1.9.1