luxiaotao1123
2023-12-30 f28b3a9131d2313a889f4a3156dcfabcefce7a84
zy-asrs-common/src/main/resources/mapper/wms/LocDetlMapper.xml
@@ -59,7 +59,7 @@
        select
        a.*
        from wms_loc_detl a
        left join wms_loc_mast b on a.loc_no = b.loc_no
        left join common_loc_mast b on a.loc_no = b.loc_no
        where 1=1
        <if test="no!=null and no == 1">
            and b.row1 >= 31
@@ -93,7 +93,7 @@
                    b.bay1 as bay,
                    sum(anfme) as count
                from wms_loc_detl a
                    left join wms_loc_mast b on a.loc_no = b.loc_no
                    left join common_loc_mast b on a.loc_no = b.loc_no
                where 1=1
                  and b.loc_sts = 'F'
                  and a.matnr = #{matnr}
@@ -107,7 +107,7 @@
                    b.bay1 as bay,
                    sum(anfme) as count
                from wms_loc_detl a
                    left join wms_loc_mast b on a.loc_no = b.loc_no
                    left join common_loc_mast b on a.loc_no = b.loc_no
                where 1=1
                  and b.loc_sts = 'F'
                  and a.matnr = #{matnr}
@@ -121,7 +121,7 @@
                    b.bay1 as bay,
                    sum(anfme) as count
                from wms_loc_detl a
                    left join wms_loc_mast b on a.loc_no = b.loc_no
                    left join common_loc_mast b on a.loc_no = b.loc_no
                where 1=1
                  and b.loc_sts = 'F'
                  and a.matnr = #{matnr}
@@ -162,4 +162,15 @@
        <include refid="batchSeq"></include>
    </update>
    <select id="getStockOutPage" resultType="com.zy.asrs.common.wms.entity.LocDetl">
        select
        a.*
        from wms_loc_detl a
        left join common_loc_mast b on a.loc_no = b.loc_no and a.host_id = b.host_id
        where 1=1
        and b.loc_sts = 'F'
        and b.host_id = #{map.hostId}
        <include refid="stockOutCondition"></include>
    </select>
</mapper>