自动化立体仓库 - WMS系统
#
mrzhssss
2022-11-29 09073d8b84d438d57d237d93d6dac4df5f838c57
src/main/resources/mapper/LocDetlMapper.xml
@@ -48,11 +48,11 @@
    <sql id="batchSeq">
        <choose>
            <when test="batch != null and batch != ''">
            <when test="batch != null">
                and batch = #{batch}
            </when>
            <otherwise>
                and (batch IS NULL OR batch = '')
                and (batch IS NULL)
            </otherwise>
        </choose>
    </sql>
@@ -99,6 +99,9 @@
        </if>
        <if test="startTime!=null and endTime!=null">
            and a.modi_time between #{startTime} and #{endTime}
        </if>
        <if test="crnNo!=null and crnNo!='' ">
            and b.crn_no=#{crnNo}
        </if>
    </sql>
@@ -207,11 +210,11 @@
<!--                and (a.batch IS NULL OR a.batch = '')-->
<!--            </otherwise>-->
<!--        </choose>-->
        <if test="batch != null and batch != ''">
        <if test="batch != null">
            and a.batch = #{batch}
        </if>
        <if test="orderNo != null and orderNo != ''">
            and a.orderNo = #{orderNo}
            and a.order_no = #{orderNo}
        </if>
        <if test="locNos != null and locNos.size > 0">
@@ -310,5 +313,11 @@
            batch LIKE '%[a-z]%'
    </select>
    <select id="selectLocDetlSumQty" resultType="double">
        select SUM(anfme) anfme
        from asr_loc_detl
        where loc_no=#{locNo}
    </select>
</mapper>