自动化立体仓库 - WMS系统
zjj
2025-01-06 f56e004dac74ebcf6638e0b8dc162062f19dbe34
src/main/resources/mapper/ManLocDetlMapper.xml
@@ -33,6 +33,17 @@
    </resultMap>
    <sql id="batchSeq">
        <choose>
            <when test="batch != null and batch != ''">
                and batch = #{batch}
            </when>
            <otherwise>
                and (batch IS NULL OR batch = '')
            </otherwise>
        </choose>
    </sql>
    <sql id="locDetlCondition">
        <if test="host_id != null and host_id != ''">
            and mld.host_id = #{host_id}
@@ -295,6 +306,17 @@
        WHERE 1=1
        <include refid="locDetlCondition2"></include>
    </select>
    <select id="selectItem" resultMap="BaseResultMap">
        select top 1 *
        from man_loc_detl
        where 1=1
        and loc_no = #{locNo}
        and matnr = #{matnr}
        <include refid="batchSeq"></include>
    </select>
    <select id="sum" resultType="java.lang.Double">
        SELECT SUM(anfme) FROM man_loc_detl
    </select>
    <update id="updateLocNo0">