liujie
3 天以前 09892cb8b391914c7c78a61c79503456d9958137
ruoyi-system/src/main/resources/mapper/system/TErpGoodsMapper.xml
@@ -210,7 +210,11 @@
        LEFT JOIN t_erp_clinic_warehousing t2 on t1.warehousing_id = t2.id
        LEFT JOIN t_erp_goods t3 on t1.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
        left join (
            select warehousing_batch_id, sum(outbound_count) as outbound_count
            from t_erp_supplier_outbound_goods
            group by warehousing_batch_id
        ) t5 on t5.warehousing_batch_id =t1.id
        where t2.disabled = 0  and t2.clinic_id =#{supplierClinicId}
        <if test="query.type != null and query.type ==1">
            and #{time} > t1.expiry_date