From 12b95a4ef0392330f275f0a9fa9da42bb39bb5bd Mon Sep 17 00:00:00 2001
From: cloudroam <cloudroam>
Date: 星期二, 07 一月 2025 16:10:51 +0800
Subject: [PATCH] add:配置2
---
src/main/resources/mapper/supplier/SupplierMapper.xml | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/main/resources/mapper/supplier/SupplierMapper.xml b/src/main/resources/mapper/supplier/SupplierMapper.xml
index 1f21e2f..54c5a01 100644
--- a/src/main/resources/mapper/supplier/SupplierMapper.xml
+++ b/src/main/resources/mapper/supplier/SupplierMapper.xml
@@ -40,6 +40,9 @@
<if test="dto.isEnabled!=null">
AND t.is_enabled = #{dto.isEnabled}
</if>
+ <if test="dto.id!=null">
+ AND t.id = #{dto.id}
+ </if>
order by t.create_time desc
</select>
<select id="findSupplierDetail" resultType="com.mzl.flower.dto.response.supplier.SupplierDTO"
@@ -65,5 +68,6 @@
LEFT JOIN t_station s ON t.station_id = s.id
LEFT JOIN t_supplier_type st ON t.type_id = st.id
WHERE t.user_Id=#{userId}
+ and t.deleted = '0'
</select>
</mapper>
\ No newline at end of file
--
Gitblit v1.9.3