自动化立体仓库 - WMS系统
#
luxiaotao1123
2020-06-11 00a4d56bca370fcee63ac5c70e22dde381802f71
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package com.zy.asrs.mapper;
 
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.zy.asrs.entity.LocMast;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
 
@Mapper
@Repository
public interface LocMastMapper extends BaseMapper<LocMast> {
 
    @Select("select top 1 * from asr_loc_mast where row1=#{row} and loc_sts='O' and loc_type=#{locType} order by loc_type desc ,lev1 asc,bay1 asc")
    LocMast queryFreeLocMast(@Param("row") Integer row, @Param("locType") Integer locType);
 
}