自动化立体仓库 - WMS系统
pang.jiabao
2024-12-24 096e1d6caa4afadd7341430c953fd4299a92869b
src/main/resources/mapper/LocDetlMapper.xml
@@ -27,7 +27,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" />
@@ -44,6 +44,10 @@
        <result column="appe_user" property="appeUser" />
        <result column="appe_time" property="appeTime" />
        <result column="memo" property="memo" />
        <result column="frozen" property="frozen" />
        <result column="standby1" property="standby1" />
        <result column="standby2" property="standby2" />
        <result column="standby3" property="standby3" />
    </resultMap>
    <sql id="batchSeq">
@@ -373,6 +377,12 @@
        FROM asr_loc_detl a
        INNER JOIN man_mat b ON a.matnr=#{matnrOld} AND b.matnr=#{matnr};
    </update>
    <update id="updateDetlFrozenByLocNo">
        update asr_loc_detl set frozen = 1 where loc_no = #{locNo} and frozen = 0
    </update>
    <update id="frozenInventory">
        update asr_loc_detl set frozen = #{frozen} where loc_no = #{locNo} and matnr = #{matnr} and batch = #{batch}
    </update>
    <select id="selectSameDetlTodayBatch" resultType="java.lang.String">
        SELECT ld.loc_no FROM asr_loc_detl ld
@@ -439,6 +449,28 @@
        and lm.row1 in (31,32)
        order by row1
    </select>
    <select id="searchByLike" resultMap="BaseResultMap">
        select *
        from asr_loc_detl
        where
        1 = 1
        <if test="orderNo != null and orderNo != ''">
            and order_no like '%' + #{orderNo} + '%'
        </if>
        <if test="locNo != null and locNo != ''">
            and loc_no like '%' + #{locNo} + '%'
        </if>
        <if test="specs != null and specs != ''">
            and specs like '%' + #{specs} + '%'
        </if>
        <if test="matnr != null and matnr != ''">
            and matnr like '%' + #{matnr} + '%'
        </if>
        <if test="maktx != null and maktx != ''">
            and maktx like '%' + #{maktx} + '%';
        </if>
    </select>
    <select id="getStockStatis2" resultType="com.zy.asrs.entity.LocDetl">
        select * from
        (