Junjie
2023-08-02 79faeb50583ce89fb741c76986e41a3666f91c11
src/main/resources/mapper/LocMastMapper.xml
@@ -35,6 +35,7 @@
        <result column="barcode" property="barcode" />
        <result column="Pdc_type" property="PdcType" />
        <result column="ctn_no" property="ctnNo" />
        <result column="qr_code_value" property="qrCodeValue" />
    </resultMap>
@@ -61,4 +62,15 @@
        ORDER BY NEWID()
    </select>
    <select id="queryByLoc" resultMap="BaseResultMap">
        select top 1 * from asr_loc_mast where loc_no = #{locNo}
    </select>
    <select id="queryByQrCode" resultMap="BaseResultMap">
        select top 1 * from asr_loc_mast where qr_code_value = #{qrCodeValue}
    </select>
    <select id="selectLocByLev" resultMap="BaseResultMap">
        SELECT * FROM asr_loc_mast WHERE lev1 = #{lev}
    </select>
</mapper>