| | |
| | | LEFT JOIN t_erp_supplier_warehousing_batch t2 on t1.warehousing_batch_id = t2.id |
| | | left join t_erp_supplier_warehousing t3 on t2.warehousing_id = t3.id |
| | | left join t_erp_goods t4 on t3.goods_id = t4.id |
| | | where t1.disabled = 0 and t1.maintenance_type =1 and t1.clinic_supplier_id =#{user.userId} |
| | | where t1.disabled = 0 |
| | | <if test="user.roleType !=null and user.roleType==4"> |
| | | and t1.clinic_supplier_id = #{user.supplierClinicId} and t1.maintenance_type=1 |
| | | </if> |
| | | <if test="user.roleType !=null and user.roleType==5"> |
| | | and t1.clinic_supplier_id = #{user.supplierClinicId} and t1.maintenance_type=2 |
| | | </if> |
| | | <if test="query.warehouseNo != null and query.warehouseNo != ''"> |
| | | and t3.warehouse_no =#{query.warehouseNo} |
| | | </if> |