From 6681b64ff05626c6f10ad69e49a87c3969b72bb8 Mon Sep 17 00:00:00 2001
From: xin <1099200748@qq.com>
Date: Mon, 22 Sep 2025 12:57:34 +0800
Subject: [PATCH] 订单增加库存、减少库存
---
oying-system/src/main/resources/mapper/system/MerchantMapper.xml | 8 ++++++++
1 files changed, 8 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..71a7dc8 100644
--- a/oying-system/src/main/resources/mapper/system/MerchantMapper.xml
+++ b/oying-system/src/main/resources/mapper/system/MerchantMapper.xml
@@ -49,4 +49,12 @@
</where>
order by merchant_sort desc
</select>
+ <select id="findByUserId" resultMap="BaseResultMap">
+ select
+ <include refid="Base_Column_List"/>
+ 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