#
Junjie
6 天以前 32004d6bb7db528c151cca5bd78c4e557171a9ee
src/main/resources/mapper/LocMastMapper.xml
@@ -21,6 +21,8 @@
        <result column="error_time" property="errorTime" />
        <result column="error_memo" property="errorMemo" />
        <result column="qr_code_value" property="qrCodeValue" />
        <result column="status" property="status" />
        <result column="barcode" property="barcode" />
    </resultMap>
@@ -28,31 +30,11 @@
        select * from asr_loc_mast where loc_no = #{locNo} limit 0,1
    </select>
    <select id="queryByQrCode" resultMap="BaseResultMap">
        select * from asr_loc_mast where qr_code_value = #{qrCodeValue} limit 0,1
    </select>
    <select id="selectLocByLev" resultMap="BaseResultMap">
        SELECT * FROM asr_loc_mast WHERE lev1 = #{lev}
    </select>
    <select id="selectEmptyLocNos" resultMap="BaseResultMap">
        select * from asr_loc_mast
        where loc_no in
        <foreach item="loc" collection="locNos" index="index"  separator="," open="(" close=")">
            #{loc}
        </foreach>
        and loc_sts = 'O'
        order by row1
    </select>
    <select id="selectNotEmptyLocNos" resultMap="BaseResultMap">
        select * from asr_loc_mast
        where loc_no in
        <foreach item="loc" collection="locNos" index="index"  separator="," open="(" close=")">
            #{loc}
        </foreach>
        and loc_sts not in ('O')
        order by row1
    <select id="getLevList" resultType="java.lang.Integer">
        select distinct lev1 from asr_loc_mast order by lev1 asc
    </select>
</mapper>