入库业务单添加查询条件;
This commit is contained in:
+7
-1
@@ -450,6 +450,12 @@
|
||||
<if test="expectTimeEnd != null and expectTimeEnd != ''">
|
||||
and date_format(a.expect_time,'%Y-%m-%d') <= #{expectTimeEnd}
|
||||
</if>
|
||||
<if test="xfStatus != null and xfStatus != '' and xfStatus == '已下发'">
|
||||
and b.in_order_number is not null
|
||||
</if>
|
||||
<if test="xfStatus != null and xfStatus != '' and xfStatus == '未下发'">
|
||||
and b.in_order_number is null
|
||||
</if>
|
||||
<!-- 入库明细:物料名称、物料编码(同一明细行同时满足;与计划数量汇总口径一致)。关联 material_base_info 避免明细冗余名称与主档不一致时筛不到 -->
|
||||
<if test="(materialName != null and materialName != '') or (materialCode != null and materialCode != '')">
|
||||
and exists (
|
||||
@@ -481,7 +487,7 @@
|
||||
<select id="queryList" parameterType="com.mhd.oms.domain.reservationStockInOrder.repository.todo.ReservationStockInOrderDO" resultMap="StockInOrderResult">
|
||||
select
|
||||
<include refid="selectStockInOrderPo"/>
|
||||
from reservation_stock_in_order a
|
||||
from reservation_stock_in_order a left join NGWL_TEST_WMS.stock_in_order b on a.in_order_number = b.in_order_number
|
||||
<where>
|
||||
<include refid="selectStockInOrderPo1"/>
|
||||
</where>
|
||||
|
||||
Reference in New Issue
Block a user