自动化立体仓库 - WMS系统
zwl
4 天以前 632bde0f32999a2b319b706e23d90bc1b5dd8cc2
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"/>
@@ -28,7 +34,7 @@
        <result column="item_num" property="itemNum"/>
        <result column="safe_qty" property="safeQty"/>
        <result column="weight" property="weight"/>
        <result column="length" property="length"/>
        <result column="man_length" property="manLength"/>
        <result column="volume" property="volume"/>
        <result column="three_code" property="threeCode"/>
        <result column="supp" property="supp"/>
@@ -45,11 +51,45 @@
        <result column="appe_user" property="appeUser"/>
        <result column="appe_time" property="appeTime"/>
        <result column="memo" property="memo"/>
        <result column="pic" property="pic"/>
        <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>
    <insert id="save">
        insert into asr_wrk_detl_log (
            wrk_no, io_time, anfme, zpallet, matnr, maktx, batch, order_no,
            container_no, teu, plate_no, train_no, freq_type, cube_number,
            specs, model, color, brand, unit, price, sku, units, barcode,
            origin, manu, manu_date, item_num, safe_qty, weight, man_length,
            volume, three_code, supp, supp_code, be_batch, dead_time, dead_warn,
            source, inspect, danger, modi_user, modi_time, appe_user, appe_time,
            memo, standby1, standby2, standby3, box_type1, box_type2, box_type3, pic
        )
        select
            wrk_no, io_time, anfme, zpallet, matnr, maktx, batch, order_no,
            container_no, teu, plate_no, train_no, freq_type, cube_number,
            specs, model, color, brand, unit, price, sku, units, barcode,
            origin, manu, manu_date, item_num, safe_qty, weight, man_length,
            volume, three_code, supp, supp_code, be_batch, dead_time, dead_warn,
            source, inspect, danger, modi_user, modi_time, appe_user, appe_time,
            memo, standby1, standby2, standby3, box_type1, box_type2, box_type3, pic
        from asr_wrk_detl
        where wrk_no = #{workNo}
    </insert>
    <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 +97,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 +136,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