#
luxiaotao1123
2020-12-28 bb7ce41d7525f369a93c8b6f76a05fb90d1031b2
src/main/resources/mapper/LocMastMapper.xml
@@ -41,4 +41,15 @@
    <select id="queryFreeLocMast" resultMap="BaseResultMap">
        select top 1 * from asr_loc_mast where row1=#{row} and loc_sts='O' order by loc_sts desc ,lev1 asc,bay1 asc
    </select>
    <select id="queryDemoSourceLoc" resultMap="BaseResultMap">
        select top 1 * from asr_loc_mast where crn_no = #{crnNo} and (loc_sts='F' or loc_sts='D')
        order by loc_sts desc ,lev1 asc, bay1 asc, row1 asc
    </select>
    <select id="queryDemoLoc" resultMap="BaseResultMap">
        select top 1 * from asr_loc_mast where crn_no = #{crnNo} and loc_sts='O'
        order by loc_sts desc ,lev1 desc, bay1 desc, row1 desc
    </select>
</mapper>