|  |  |  | 
|---|
|  |  |  | @Repository | 
|---|
|  |  |  | public interface LocMastMapper extends BaseMapper<LocMast> { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | LocMast queryFreeLocMast(@Param("row") Integer row); | 
|---|
|  |  |  | LocMast queryFreeLocMast(@Param("row") Integer row, @Param("locType1") Short locType1,@Param("whsType") Long whsType); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Select("select loc_no from asr_loc_mast where 1=1 and loc_type = 'O' and crn_no = #{crnNo}") | 
|---|
|  |  |  | List<String> queryGroupEmptyStock(Integer crnNo); | 
|---|
|  |  |  | @Select("select loc_no from asr_loc_mast where 1=1 and loc_sts = 'O' and crn_no = #{crnNo}") | 
|---|
|  |  |  | List<String> queryGroupEmptyStock(Integer crnNo,@Param("whsType") Long whsType); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @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); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | List<LocMast> queryShallowLocFMast(@Param("crnNo") Integer crnNo,@Param("whsType") Long whsType); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | List<LocMast> selectLocShuttleMoveUnilateralY(@Param("bay")Integer bay,@Param("lev")Integer lev,@Param("whsType") Long whsType); | 
|---|
|  |  |  | List<LocMast> selectLocShuttleMoveUnilateralN(@Param("bay")Integer bay,@Param("lev")Integer lev,@Param("whsType") Long whsType); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /* | 
|---|
|  |  |  | * 获取目标库位所在巷道最浅非空库位  深>浅 | 
|---|
|  |  |  | * */ | 
|---|
|  |  |  | //    LocMast selectLocByLocStsPakInF1(@Param("locNos") List<String> locNos,@Param("whsType") Long whsType); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | LocMast selectLocByLocStsPakInF1(@Param("crnNo") Integer crnNo,@Param("bay") Integer bay,@Param("lev") Integer lev,@Param("gro") Integer gro,@Param("whsType") Long whsType); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | LocMast selectLocByLocStsPakInShuttleF1(@Param("crnNo") Integer crnNo,@Param("bay") Integer bay,@Param("lev") Integer lev,@Param("gro") Integer gro,@Param("whsType") Long whsType); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /* | 
|---|
|  |  |  | * 获取目标库位所在巷道最浅非空库位  深<浅 | 
|---|
|  |  |  | * */ | 
|---|
|  |  |  | //    LocMast selectLocByLocStsPakInF2(@Param("locNos") List<String> locNos,@Param("whsType") Long whsType); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | LocMast selectLocByLocStsPakInF2(@Param("crnNo") Integer crnNo,@Param("bay") Integer bay,@Param("lev") Integer lev,@Param("gro") Integer gro,@Param("whsType") Long whsType); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | LocMast selectLocByLocStsPakInShuttleF2(@Param("crnNo") Integer crnNo,@Param("bay") Integer bay,@Param("lev") Integer lev,@Param("gro") Integer gro,@Param("whsType") Long whsType); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /* | 
|---|
|  |  |  | * 获取目标库位所在巷道最深空库位  深>浅 | 
|---|
|  |  |  | * */ | 
|---|
|  |  |  | //    LocMast selectLocByLocStsPakInO1(@Param("locNos") List<String> locNos,@Param("whsType") Long whsType); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | LocMast selectLocByLocStsPakInO1(@Param("crnNo") Integer crnNo,@Param("bay") Integer bay,@Param("lev") Integer lev,@Param("gro") Integer gro,@Param("whsType") Long whsType); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /* | 
|---|
|  |  |  | * 获取目标库位所在巷道最深空库位  深<浅 | 
|---|
|  |  |  | * */ | 
|---|
|  |  |  | //    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); | 
|---|
|  |  |  | } | 
|---|