From 4548c5045b3a5522ad14df7c939f0303c1e17587 Mon Sep 17 00:00:00 2001
From: xin <1099200748@qq.com>
Date: Sat, 11 Oct 2025 19:07:29 +0800
Subject: [PATCH] ้
้่ดน
---
oying-system/src/main/resources/mapper/system/MerchantMapper.xml | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/oying-system/src/main/resources/mapper/system/MerchantMapper.xml b/oying-system/src/main/resources/mapper/system/MerchantMapper.xml
index d0e02ff..1ed3c94 100644
--- a/oying-system/src/main/resources/mapper/system/MerchantMapper.xml
+++ b/oying-system/src/main/resources/mapper/system/MerchantMapper.xml
@@ -49,4 +49,11 @@
</where>
order by merchant_sort desc
</select>
+ <select id="findByUserId" resultMap="BaseResultMap">
+ select m.*
+ from sys_merchant as m
+ left join sys_user_merchant as u on u.merchant_id = m.merchant_id
+ where user_id = #{userId}
+ order by m.merchant_id
+ </select>
</mapper>
--
Gitblit v1.9.3