自动化立体仓库 - WMS系统
#
lty
5 天以前 d964498a12a672139ad25ec774faa054059fa736
src/main/resources/mapper/LocDetlMapper.xml
@@ -46,6 +46,14 @@
        <result column="memo" property="memo" />
    </resultMap>
    <resultMap id="CheckResultMap" type="com.zy.asrs.entity.CheckDetl">
        <result column="anfme" property="anfme" />
        <result column="matnr" property="matnr" />
        <result column="maktx" property="maktx" />
        <result column="specs" property="specs" />
        <result column="batch" property="batch" />
    </resultMap>
    <sql id="batchSeq">
        <choose>
            <when test="batch != null and batch != ''">
@@ -165,6 +173,29 @@
        </where>
    </select>
    <select id="getStockCheck" resultMap="CheckResultMap">
        select * from (
        select
        ROW_NUMBER() over (order by a.create_time desc) as row,
        a.anfme,
        a.matnr,
        a.maktx,
        a.specs,
        a.batch
        from asr_check_detl a
        <include refid="stockOutCondition" />
        ) t
        where t.row between ((#{pageNumber}-1)*#{pageSize}+1) and (#{pageNumber}*#{pageSize})
    </select>
    <select id="getStockCheckCount" parameterType="java.util.Map" resultType="java.lang.Integer">
        select count(1)
        from asr_check_detl a
        <include refid="stockOutCondition" />
    </select>
    <select id="getStockStatisCount" parameterType="java.util.Map" resultType="java.lang.Integer">