自动化立体仓库 - WMS系统
tzsk
2024-02-07 97c6a268766387d9c6834c23c9da3fdf63f3dc3f
src/main/java/com/zy/asrs/mapper/LocMastMapper.java
@@ -13,17 +13,23 @@
@Repository
public interface LocMastMapper extends BaseMapper<LocMast> {
    List<LocMast> queryFreeLocMast(@Param("rows") List<Integer> rows, @Param("rowsLen") Integer rowsLen, @Param("locType1") Short locType1);
    LocMast queryFreeLocMast0(@Param("row") Integer row, @Param("locType1") Short locType1);
    @Select("select loc_no from asr_loc_mast where 1=1 and loc_sts = 'O' and crn_no = #{crnNo}")
    List<String> queryGroupEmptyStock(Integer crnNo);
    @Select("select count(*) as count from asr_loc_mast where 1=1 and loc_sts = 'O' and crn_no = #{crnNo}")
    Integer selectEmptyLocCount(@Param("crnNo") Integer crnNo);
    @Select("select count(*) as count from asr_loc_mast where 1=1 and loc_sts = 'O' and loc_type3 = #{locType3} and lev1 = #{lev}")
    Integer selectEmptyLocCount(@Param("locType3") Short locType3, @Param("lev") Integer lev);
    List<LocMast> queryFreeLocMast2(Short locType1, Integer rowBeg, Integer rowEnd, Integer bayBeg, Integer bayEnd, Integer levBeg, Integer levEnd);
    /**
     * 搜索指定区域可用库位
     */
    List<LocMast> selectAreaEmpty(Short locType1, Integer locType3);
    /**
     * 搜索指定区域可用库位
     */
    List<LocMast> selectAreaEmptyByLev(Short locType1, Integer locType3, Integer lev);
    LocMast selectAvailableNearLocDesc(@Param("groupLoc") List<String> groupOuterLoc);
@@ -37,4 +43,10 @@
    List<LocMast> selectEmptyByLocNos(@Param("locNos") List<String> locNos);
    LocMast selectByLoc(String locNo);
    Integer updateLocType2ByRBL(Integer locType2, Integer startRow, Integer endRow, Integer startBay, Integer endBay, Integer startLev, Integer endLev);
    List<LocMast> selectLocDetlNotExist();
}