@ -555,7 +555,6 @@
JOIN base_storage s ON a.storage_id = s.id
WHERE
l.is_del = '0' AND a.is_del = '0'
AND l.location_code != #{checkLocationName}
and l.id not in (select distinct location_id from sys_stock_detail)
<if test="locationName != null and locationName != ''">
and l.location_name like concat('%', #{locationName},'%')