自动化立体仓库 - WMS系统
zwl
2026-04-16 5a07bb3f4e4846ac5425b5ec73d4017e2b7c57dd
src/main/resources/mapper/WrkDetlLogMapper.xml
@@ -12,6 +12,12 @@
        <result column="maktx" property="maktx"/>
        <result column="batch" property="batch"/>
        <result column="order_no" property="orderNo"/>
        <result column="container_no" property="containerNo"/>
        <result column="teu" property="teu"/>
        <result column="plate_no" property="plateNo"/>
        <result column="train_no" property="trainNo"/>
        <result column="freq_type" property="freqType"/>
        <result column="cube_number" property="cubeNumber"/>
        <result column="specs" property="specs"/>
        <result column="model" property="model"/>
@@ -45,11 +51,22 @@
        <result column="appe_user" property="appeUser"/>
        <result column="appe_time" property="appeTime"/>
        <result column="memo" property="memo"/>
        <result column="standby1" property="standby1" />
        <result column="standby2" property="standby2" />
        <result column="standby3" property="standby3" />
        <result column="box_type1" property="boxType1" />
        <result column="box_type2" property="boxType2" />
        <result column="box_type3" property="boxType3" />
        <result column="owner" property="owner"/>
        <result column="uuid" property="uuid"/>
    </resultMap>
    <sql id="batchSeq">
        <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 ">
@@ -57,11 +74,25 @@
            </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="sku != null and sku != ''">
            and a.sku like concat('%',#{sku},'%')
        </if>
        <if test="memo != null and memo != ''">
            and a.memo like concat('%',#{memo},'%')
        </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 +113,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