自动化立体仓库 - WMS系统
zwl
3 天以前 ad4fb70a79a07d494de4b3183ff6cf00d94aab08
src/main/java/com/zy/asrs/mapper/LocMastMapper.java
@@ -2,6 +2,7 @@
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.zy.asrs.entity.LocMast;
import com.zy.asrs.entity.param.ErrorDeviceParam;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
@@ -12,6 +13,11 @@
@Mapper
@Repository
public interface LocMastMapper extends BaseMapper<LocMast> {
    List<LocMast> asrLocMastNotInDetl1();
    List<LocMast> asrLocMastNotInDetl2();
    List<LocMast> asrLocMastNotInDetl3();
    List<ErrorDeviceParam> adjacentLocMast();
    List<LocMast> selectLocByLev(Integer lev);
    LocMast queryFreeLocMast(@Param("row") Integer row, @Param("locType1") Short locType1,@Param("whsType") Long whsType);
@@ -20,6 +26,9 @@
    @Select("select count(*) as count from asr_loc_mast where 1=1 and loc_sts = 'O' and loc_type1 = #{locType1} and crn_no = #{crnNo}")
    Integer selectEmptyLocCount(@Param("locType1") Short locType1, @Param("crnNo") Integer crnNo,@Param("whsType") Long whsType);
    @Select("select min(row1) from asr_loc_mast where area_id = #{areaId}")
    Integer selectMinRowByArea(@Param("areaId") Integer areaId);
    List<LocMast> queryShallowLocFMast(@Param("crnNo") Integer crnNo,@Param("whsType") Long whsType);
@@ -53,4 +62,11 @@
//    LocMast selectLocByLocStsPakInO2(@Param("locNos") List<String> locNos,@Param("whsType") Long whsType);
    LocMast selectLocByLocStsPakInO2(@Param("crnNo") Integer crnNo,@Param("bay") Integer bay,@Param("lev") Integer lev,@Param("gro") Integer gro,@Param("whsType") Long whsType);
    /**
     * 查找第一个冻结的库位
     * @param locNoList 库位号集合
     * @return 库位号
     */
    String findFirstFrozenLocNo(@Param("locNoList") List<String> locNoList);
}