*
lsh
2025-04-02 455c3fc88f870fdb1f8ef48b4f9ff3c0cefac6ad
src/main/resources/mapper/LocMastMapper.xml
@@ -45,31 +45,31 @@
    <select id="queryFreeLocMast" resultMap="BaseResultMap">
        select top 1 *
        from "SOURCE"."asr_loc_mast"
        where "row1"=#{row}
        and "loc_sts"='O'
        where "ROW1"=#{row}
        and "LOC_STS"='O'
        <if test="locType1 != null">
            and "loc_type1" = #{locType1}
            and "LOC_TYPE1" = #{locType1}
        </if>
        order by NEWID(),"lev1" asc,"bay1" asc
        order by NEWID(),"LEV1" asc,"BAY1" asc
    </select>
    <select id="queryDemoSourceLoc" resultMap="BaseResultMap">
        select top 1 * from "SOURCE"."asr_loc_mast" where "crn_no" = #{crnNo}
        and "loc_sts"='D'
        select top 1 * from "SOURCE"."asr_loc_mast" where "CRN_NO" = #{crnNo}
        and "LOC_STS"='D'
        ORDER BY NEWID()
    </select>
    <select id="queryDemoLoc" resultMap="BaseResultMap">
        select top 1 * from "SOURCE"."asr_loc_mast" where "crn_no" = #{crnNo} and "loc_sts" = 'O'
        select top 1 * from "SOURCE"."asr_loc_mast" where "CRN_NO" = #{crnNo} and "LOC_STS" = 'O'
        ORDER BY NEWID()
    </select>
    <select id="selectByLocNo" resultMap="BaseResultMap">
        select * from "SOURCE"."asr_loc_mast"
        where "loc_no" = #{locNo}
        where "LOC_NO" = #{locNo}
    </select>
    <select id="selectLocByLev" resultMap="BaseResultMap">
        SELECT * FROM "SOURCE"."asr_loc_mast" WHERE "lev1" = #{lev}
        SELECT * FROM "SOURCE"."asr_loc_mast" WHERE "LEV1" = #{lev}
    </select>
</mapper>