ruoyi-system/src/main/resources/mapper/system/TErpGoodsMapper.xml
@@ -185,7 +185,7 @@ LEFT JOIN t_erp_goods t3 on t2.goods_id = t3.id LEFT JOIN t_crm_supplier t4 on t3.supplier_clinic_id = t4.id LEFT JOIN t_erp_clinic_outbound_goods t5 on t5.warehousing_batch_id =t1.id where t2.disabled = 0 and t2.warehouse_id = #{query.warehouseId} where t2.disabled = 0 and t2.clinic_id =#{supplierClinicId} <if test="query.type != null and query.type ==1"> and #{time} > t1.expiry_date </if>