diff --git a/src/main/resources/mapper/automatedWarehouse/WcsIntegrationMapper.xml b/src/main/resources/mapper/automatedWarehouse/WcsIntegrationMapper.xml index f76e6df..98c80c5 100644 --- a/src/main/resources/mapper/automatedWarehouse/WcsIntegrationMapper.xml +++ b/src/main/resources/mapper/automatedWarehouse/WcsIntegrationMapper.xml @@ -1165,6 +1165,7 @@ p.empty_flag AS emptyFlag FROM pallet p INNER JOIN agv_station s ON p.location_code = s.station_code + left join pallet_detail c on p.pallet_id=c.pallet_id and p.site=c.site WHERE p.site = #{site} AND p.pallet_type = #{palletType} AND p.calling_flag = 'N' @@ -1172,6 +1173,7 @@ AND s.area_type = 'Z101' AND s.status_db = 1 AND s.active = 'Y' + and c.id IS NULL ORDER BY p.created_time ASC