自动化立体仓库 - WMS系统
#
LSH
2023-05-11 96296b1d8fc9351b97cb1840a6bf04b481b20ae9
src/main/resources/mapper/WrkDetlLogMapper.xml
@@ -51,17 +51,28 @@
        <if test="wrkNo != null and wrkNo != ''">
            and a.wrk_no = #{wrkNo}
        </if>
        <if test="anfme != null and anfme != ''">
            and a.anfme = #{anfme}
        </if>
        <if test="modiTimeStart != null ">
            <if test="modiTimeEnd != null ">
                and a.modi_time between #{modiTimeStart} and #{modiTimeEnd}
            </if>
        </if>
        <if test="orderNo != null and orderNo != ''">
            and ( a.order_no like concat('%',#{orderNo},'%')
            or a.batch like concat('%',#{orderNo},'%')
            or a.matnr like concat('%',#{orderNo},'%')
            or a.zpallet like concat('%',#{orderNo},'%')
            )
            and a.order_no like concat('%',#{orderNo},'%')
        </if>
        <if test="batch != null and batch != ''">
            and a.batch like concat('%',#{batch},'%')
        </if>
        <if test="matnr != null and matnr != ''">
            and a.matnr like concat('%',#{matnr},'%')
        </if>
        <if test="zpallet != null and zpallet != ''">
            and a.zpallet like concat('%',#{zpallet},'%')
        </if>
        <if test="specs != null and specs != ''">
            and a.specs like concat('%',#{specs},'%')
        </if>
    </sql>
@@ -82,7 +93,7 @@
    </select>
    <select id="selectWrkDetlLogsTotal" resultType="Long">
        select count(*) from asr_wrk_detl_log as a ,asr_wrk_mast_log as b
        select count(1) from asr_wrk_detl_log as a ,asr_wrk_mast_log as b
        where 1=1
        and a.io_time=b.io_time
        and a.wrk_no=b.wrk_no