From 40bf6c9d658c70294bc55fc7daaf4bfcfd075355 Mon Sep 17 00:00:00 2001
From: liujie <1793218484@qq.com>
Date: 星期五, 12 九月 2025 15:57:23 +0800
Subject: [PATCH] 供应商erp

---
 ruoyi-system/src/main/resources/mapper/system/TErpGoodsMapper.xml |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/ruoyi-system/src/main/resources/mapper/system/TErpGoodsMapper.xml b/ruoyi-system/src/main/resources/mapper/system/TErpGoodsMapper.xml
index 44047a4..4b1c59c 100644
--- a/ruoyi-system/src/main/resources/mapper/system/TErpGoodsMapper.xml
+++ b/ruoyi-system/src/main/resources/mapper/system/TErpGoodsMapper.xml
@@ -131,6 +131,9 @@
         LEFT JOIN t_crm_supplier t4 on t3.supplier_clinic_id = t4.id
         LEFT JOIN t_erp_supplier_outbound_goods t5 on t5.warehousing_batch_id =t1.id
         where t2.disabled = 0 and t2.warehouse_id = #{query.warehouseId}
+        <if test="query.type != null and query.type ==1">
+            and #{time} > t1.expiry_date
+        </if>
         <if test="query.goodsName != null and query.goodsName != ''">
             and t3.goods_name like concat('%',#{query.goodsName},'%')
         </if>

--
Gitblit v1.7.1