自动化立体仓库 - WMS系统
tzsk
2024-04-11 0d30daf9ee89603b97c6181c2949abbb89bd64c4
src/main/java/com/zy/asrs/mapper/AgvBasDevpMapper.java
@@ -9,6 +9,7 @@
import org.springframework.stereotype.Repository;
import java.util.List;
import java.util.Map;
@Mapper
@Repository
@@ -20,6 +21,23 @@
    @Select("select dev_no from agv_bas_devp where loc_sts = 'O'")
    List<String> getAvailableEmptyInSite();
    @Select("select station_code from agv_bas_devp where floor = #{floor} and cache_shelves = 'Y' group by station_code")
    @Select("select station_code from agv_bas_devp where floor = #{floor} and cache_shelves = 'N' and in_enable = 'Y' group by station_code")
    List<String> selectCacheShelvesStationCodeByFloor(@Param("floor") int floor);
    @Select("SELECT\n" +
            "\tbas.dev_no,\n" +
            "\tCOUNT ( mast.loc_no ) AS num \n" +
            "FROM\n" +
            "\tagv_bas_devp bas\n" +
            "\tLEFT JOIN agv_wrk_mast mast ON bas.dev_no = mast.loc_no \n" +
            "WHERE\n" +
            "\tbas.station_code = #{stationCode} AND bas.loc_sts != 'X' \n" +
            "GROUP BY\n" +
            "\tbas.dev_no \n" +
            "ORDER BY\n" +
            "\tnum")
    List<Map<String,Object>> selectDevNoAndNumBystationCode(@Param("stationCode") String stationCode);
    @Select("select station_code from agv_bas_devp group by station_code")
    List<String> selectAllStationCode();
}