| | |
| | | @Repository |
| | | public interface LocMastMapper extends BaseMapper<LocMast> { |
| | | |
| | | @Select("select distinct row1 from asr_loc_mast where crn_no = #{crnNo}") |
| | | // @Select("select distinct row1 from asr_loc_mast where crn_no = #{crnNo}") |
| | | @Select("select row1 from ( select distinct row1 from asr_loc_mast where crn_no = #{crnNo} ) a " + |
| | | "order by case row1 when 31 then 1 when 32 then 0 when 33 then 0 when 34 then 1 end desc,newid()") |
| | | List<Integer> queryDistinctRow(@Param("crnNo")Integer crnNo); |
| | | |
| | | LocMast queryFreeLocMast(@Param("row") Integer row, @Param("locType1") Short locType1); |