是否下发查询;

This commit is contained in:
王奎兴
2026-06-04 18:19:42 +08:00
parent bbf292a428
commit a96cffb30b
2 changed files with 6 additions and 6 deletions
@@ -455,10 +455,10 @@
and date_format(a.expect_time,'%Y-%m-%d') <= #{expectTimeEnd} and date_format(a.expect_time,'%Y-%m-%d') <= #{expectTimeEnd}
</if> </if>
<if test="xfStatus != null and xfStatus != '' and xfStatus == '已下发'"> <if test="xfStatus != null and xfStatus != '' and xfStatus == '已下发'">
and b.in_order_number is not null and a.issue_time is not null
</if> </if>
<if test="xfStatus != null and xfStatus != '' and xfStatus == '未下发'"> <if test="xfStatus != null and xfStatus != '' and xfStatus == '未下发'">
and b.in_order_number is null and a.issue_time is null
</if> </if>
<!-- 入库明细:物料名称、物料编码(同一明细行同时满足;与计划数量汇总口径一致)。关联 material_base_info 避免明细冗余名称与主档不一致时筛不到 --> <!-- 入库明细:物料名称、物料编码(同一明细行同时满足;与计划数量汇总口径一致)。关联 material_base_info 避免明细冗余名称与主档不一致时筛不到 -->
<if test="(materialName != null and materialName != '') or (materialCode != null and materialCode != '')"> <if test="(materialName != null and materialName != '') or (materialCode != null and materialCode != '')">
@@ -491,7 +491,7 @@
<select id="queryList" parameterType="com.mhd.oms.domain.reservationStockInOrder.repository.todo.ReservationStockInOrderDO" resultMap="StockInOrderResult"> <select id="queryList" parameterType="com.mhd.oms.domain.reservationStockInOrder.repository.todo.ReservationStockInOrderDO" resultMap="StockInOrderResult">
select select
<include refid="selectStockInOrderPo"/> <include refid="selectStockInOrderPo"/>
from reservation_stock_in_order a left join NGWL_TEST_WMS.stock_in_order b on a.in_order_number = b.in_order_number from reservation_stock_in_order a
<where> <where>
<include refid="selectStockInOrderPo1"/> <include refid="selectStockInOrderPo1"/>
</where> </where>
@@ -355,10 +355,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
and (a.BUSINESS_TYPE like concat('%', #{orderTypeName}, '%') or a.ORDER_TYPE_CODE like concat('%', #{orderTypeName}, '%')) and (a.BUSINESS_TYPE like concat('%', #{orderTypeName}, '%') or a.ORDER_TYPE_CODE like concat('%', #{orderTypeName}, '%'))
</if> </if>
<if test="xfStatus != null and xfStatus != '' and xfStatus == '已下发'"> <if test="xfStatus != null and xfStatus != '' and xfStatus == '已下发'">
and b.out_order_number is not null and a.issue_time is not null
</if> </if>
<if test="xfStatus != null and xfStatus != '' and xfStatus == '未下发'"> <if test="xfStatus != null and xfStatus != '' and xfStatus == '未下发'">
and b.out_order_number is null and a.issue_time is null
</if> </if>
<!-- 出库明细:物料名称、物料编码(同一明细行同时满足;与出库明细口径一致)。关联 material_base_info 避免明细冗余名称与主档不一致时筛不到 --> <!-- 出库明细:物料名称、物料编码(同一明细行同时满足;与出库明细口径一致)。关联 material_base_info 避免明细冗余名称与主档不一致时筛不到 -->
<!-- <if test="(materialName != null and materialName != '') or (materialCode != null and materialCode != '')">--> <!-- <if test="(materialName != null and materialName != '') or (materialCode != null and materialCode != '')">-->
@@ -391,7 +391,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="queryList" parameterType="com.mhd.oms.domain.reservationStockOutOrder.repository.todo.ReservationStockOutOrderDO" resultMap="StockOutOrderResult"> <select id="queryList" parameterType="com.mhd.oms.domain.reservationStockOutOrder.repository.todo.ReservationStockOutOrderDO" resultMap="StockOutOrderResult">
select select
<include refid="selectStockOutOrderPo"/> <include refid="selectStockOutOrderPo"/>
from reservation_stock_out_order a left join NGWL_TEST_WMS.stock_out_order b on a.out_order_number = b.out_order_number from reservation_stock_out_order a
<where> <where>
<include refid="selectStockOutOrderPo1"/> <include refid="selectStockOutOrderPo1"/>
</where> </where>