From f15d99d9d4fdaff8b13776e861ce958ec9f26749 Mon Sep 17 00:00:00 2001
From: liujie <1793218484@qq.com>
Date: 星期一, 29 九月 2025 15:03:50 +0800
Subject: [PATCH] 诊所erp

---
 ruoyi-system/src/main/resources/mapper/system/TErpGoodsMapper.xml |   39 +++++++++++++++++++++++++++++++++++++++
 1 files changed, 39 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 2b044b2..1dcb6f4 100644
--- a/ruoyi-system/src/main/resources/mapper/system/TErpGoodsMapper.xml
+++ b/ruoyi-system/src/main/resources/mapper/system/TErpGoodsMapper.xml
@@ -286,5 +286,44 @@
     <select id="getGoodsById" resultType="com.ruoyi.system.model.TErpGoods">
         select <include refid="Base_Column_List"/> from t_erp_goods where id = #{goodsId}
     </select>
+    <select id="pageAdminList" resultType="com.ruoyi.system.vo.TErpGoodsVO">
+        select
+        t1.id
+        , t1.supplier_clinic_id, t1.goods_source, t1.goods_name, t1.goods_id_code, t1.quasi_number,t1.manufacturer, t1.formulation_spec, t1.packing_spec, t1.type_id, t1.goods_yards,
+        t1.maintenance_interval,t1.maintenance_interval_unit, t1.low_purchase_quantity, t1.low_unit_id, t1.is_prescription_drug, t1.goods_spec, t1.warning_inventory,
+        t1.sales_amount, t1.packing_unit_id, t1.instructions_use, t1.side_effect, t1.clinic_purchase_price, t1.platform_commission_price, t1.create_time, t1.update_time, t1.create_by,
+        t1.`state`, t1.update_by, t1.disabled,
+        t1.simplified_code,
+        t1.dosage_form,
+        t1.usage_classification,
+        t1.product_brand,
+        t1.place_of_origin,
+        t1.ingredient,
+        t1.trait,
+        t1.indication,
+        t1.taboo,
+        t1.precautions,
+        t1.interaction,
+        t1.storage,
+        t2.supplier_name
+        from t_erp_goods t1 left join t_crm_supplier t2 on t1.supplier_clinic_id = t2.id and t1.goods_source =1
+        where t1.disabled = 0 and t1.goods_source =1
+        <if test="query.supplierName != null and query.supplierName != ''">
+            and t2.supplier_name like concat('%',#{query.supplierName},'%')
+        </if>
+        <if test="query.goodsName != null and query.goodsName != ''">
+            and t1.goods_name like concat('%',#{query.goodsName},'%')
+        </if>
+        <if test="query.typeId != null and query.typeId != ''">
+            and t1.type_id = #{query.typeId}
+        </if>
+        <if test="query.quasiNumber != null and query.quasiNumber != ''">
+            and t1.quasi_number like concat('%',#{query.quasiNumber},'%')
+        </if>
+        <if test="query.state != null ">
+            and t1.state = #{query.state}
+        </if>
+        order by t1.create_time desc
+    </select>
 
 </mapper>

--
Gitblit v1.7.1