| | |
| | | and o.warning_inventory > (o.allNum-o.outNum) |
| | | order by o.create_time desc |
| | | </select> |
| | | <select id="pageListWarehouse" resultType="com.ruoyi.system.vo.TErpProcurementVo"> |
| | | select t1.id, |
| | | t1.procurement_code, |
| | | t2.clinic_name, |
| | | t2.clinic_address, |
| | | t1.logistics_no, |
| | | t1.send_time, |
| | | t1.clinic_id, |
| | | t1.status |
| | | from t_erp_procurement t1 |
| | | left JOIN t_crm_clinic t2 on t1.clinic_id = t2.id |
| | | where t1.disabled = 0 and t1.status in(3,4,5) and t1.supplier_id =#{supplierClinicId} |
| | | <if test="query.procurementCode != null and query.procurementCode != ''"> |
| | | and t1.procurement_code = #{query.procurementCode} |
| | | </if> |
| | | <if test="query.clinicName != null and query.clinicName != ''"> |
| | | and t2.clinic_name like concat('%',#{query.clinicName},'%') |
| | | </if> |
| | | <if test="query.logisticsNo != null and query.logisticsNo != ''"> |
| | | and t1.logistics_no = #{query.logisticsNo} |
| | | </if> |
| | | <if test="sTime != null and eTime != ''"> |
| | | and t1.create_time between #{sTime} and #{eTime} |
| | | </if> |
| | | <if test="query.status != null"> |
| | | and t1.status = #{query.status} |
| | | </if> |
| | | |
| | | |
| | | </select> |
| | | |
| | | </mapper> |