123
ZY
2025-05-14 ce641926a957d238b202aa0d9dac3b8f15aff153
src/main/resources/mapper/LocMastMapper.xml
@@ -42,6 +42,17 @@
        from asr_loc_mast
        where row1=#{row}
        and loc_sts='O'
        <choose>
            <when test="bay != null and (bay == 7 or bay == 5 or bay == 2)">
                and bay1 in (7,5,2)
            </when>
            <when test="bay != null and (bay == 6 or bay == 4 or bay == 3 or bay == 1)">
                and bay1 in (6,4,3,1)
            </when>
            <otherwise>
            </otherwise>
        </choose>
        <if test="locType1 != null">
            and loc_type1 = #{locType1}
        </if>
@@ -51,6 +62,10 @@
        order by NEWID(),lev1 asc,bay1 asc
    </select>
    <select id="queryDemoSourceLoc" resultMap="BaseResultMap">
        select top 1 * from asr_loc_mast where crn_no = #{crnNo}
        and loc_sts='D'