|
|
|
@ -270,6 +270,23 @@ |
|
|
|
ORDER BY station_code |
|
|
|
</select> |
|
|
|
|
|
|
|
<!-- 获取可用的AGV站点列表(按状态和类型过滤) - AI制作 --> |
|
|
|
<select id="getAvailableAgvStations" resultType="AgvStation"> |
|
|
|
SELECT id, station_code as stationCode, station_name as stationName, |
|
|
|
area_type as areaType, station_area as stationArea, |
|
|
|
warehouse_code as warehouseCode, location_code as locationCode, |
|
|
|
status_db as statusDb, status, station_id as stationId, |
|
|
|
station_type as stationType, active, remark, |
|
|
|
location_x as locationX, location_y as locationY, location_z as locationZ |
|
|
|
FROM agv_station |
|
|
|
WHERE active = 'Y' |
|
|
|
AND station_type = '正式站点' |
|
|
|
<if test="statusDb != null"> |
|
|
|
AND status_db = #{statusDb} |
|
|
|
</if> |
|
|
|
ORDER BY station_code |
|
|
|
</select> |
|
|
|
|
|
|
|
<!-- 根据目标区域查找第一个空闲站点 - AI制作 --> |
|
|
|
<select id="findFirstFreeStationByArea" resultType="java.lang.String"> |
|
|
|
SELECT TOP 1 station_code |
|
|
|
|