|  |  |  | 
|---|
|  |  |  | @Repository | 
|---|
|  |  |  | public interface LocMastMapper extends BaseMapper<LocMast> { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | LocMast queryFreeLocMast(@Param("row") Integer row); | 
|---|
|  |  |  | @Select("select distinct row1 from asr_loc_mast where crn_no = #{crnNo} and row1 > 30") | 
|---|
|  |  |  | List<Integer> queryDistinctRow(@Param("crnNo")Integer crnNo); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | LocMast queryFreeLocMast(@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); | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | LocMast queryDemoLoc(@Param("crnNo") Integer crnNo); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @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); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Select("select loc_no from asr_loc_mast where crn_no = #{crnNo} and loc_sts='O' order by lev1, bay1, row1") | 
|---|
|  |  |  | List<String> getDemoNextLoc(Integer crnNo); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | LocMast queryByLoc(String locNo); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | LocMast queryByQrCode(String qrCodeValue); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | List<LocMast> selectLocByLev(Integer lev); | 
|---|
|  |  |  | } | 
|---|