|
@@ -617,6 +617,7 @@
|
|
|
<!-- 友情提示!!!-->
|
|
|
<!-- 请将自己写的代码放在此标签之下,方便以后粘贴复制。-->
|
|
|
<select id="selectWmsInboundResult" resultType="java.util.LinkedHashMap">
|
|
|
+ select * from (
|
|
|
SELECT
|
|
|
wir.INBOUND_ID "inboundId",
|
|
|
RM.MATERIAL_NAME || RM.MATERIAL_SPECIFICATION || '(' ||
|
|
@@ -627,9 +628,9 @@
|
|
|
RW.WAREHOUSE_NAME "warehouseName",
|
|
|
RS.STACKING_NO "stackingNo",
|
|
|
RPG.GRID_GRADATION_NUMBER "gridGradationNumber",
|
|
|
--- 关联炉号
|
|
|
+ -- 关联炉号
|
|
|
rms.MATERIAL_FURNACE_NUMBER "furnaceNumber",
|
|
|
--- 关联物资实际重量
|
|
|
+ -- 关联物资实际重量
|
|
|
rms.MATERIAL_THEORETICAL_WEIGHT "theoreticalWeight"
|
|
|
FROM wmsp_inbound_result wir
|
|
|
LEFT JOIN WMSP_GRID_MATERIAL wgm
|
|
@@ -660,6 +661,7 @@
|
|
|
and to_date(#{endDate}, 'yyyy-mm-dd hh24:mi:ss') >= wir.inbound_time
|
|
|
</if>
|
|
|
ORDER BY wir.inbound_time DESC
|
|
|
+ )
|
|
|
<where>
|
|
|
<if test="INBOUND_NUMBER != null">
|
|
|
and "INBOUND_NUMBER" in
|
|
@@ -767,6 +769,7 @@
|
|
|
<include refid="orderBy"></include>
|
|
|
</select>
|
|
|
<select id="selectWmsInboundResults" resultType="java.util.LinkedHashMap">
|
|
|
+ select * from(
|
|
|
SELECT
|
|
|
wir.INBOUND_ID "inboundId",
|
|
|
RM.MATERIAL_NAME || RM.MATERIAL_SPECIFICATION || '(' ||
|
|
@@ -777,9 +780,9 @@
|
|
|
RW.WAREHOUSE_NAME "warehouseName",
|
|
|
RS.STACKING_NO "stackingNo",
|
|
|
RPG.GRID_GRADATION_NUMBER "gridGradationNumber",
|
|
|
- -- 关联炉号
|
|
|
+ -- 关联炉号
|
|
|
rms.MATERIAL_FURNACE_NUMBER "furnaceNumber",
|
|
|
- -- 关联物资实际重量
|
|
|
+ -- 关联物资实际重量
|
|
|
rms.MATERIAL_THEORETICAL_WEIGHT "theoreticalWeight"
|
|
|
FROM wmsp_inbound_result wir
|
|
|
LEFT JOIN WMSP_GRID_MATERIAL wgm
|
|
@@ -809,6 +812,7 @@
|
|
|
and to_date(#{endDate}, 'yyyy-mm-dd hh24:mi:ss') >= wir.inbound_time
|
|
|
</if>
|
|
|
ORDER BY wir.inbound_time DESC
|
|
|
+ )
|
|
|
<where>
|
|
|
<if test="INBOUND_NUMBER != null">
|
|
|
and "INBOUND_NUMBER" in
|
|
@@ -916,6 +920,7 @@
|
|
|
<include refid="orderBy"></include>
|
|
|
</select>
|
|
|
<select id="selectWmsReservedResult" resultType="java.util.LinkedHashMap">
|
|
|
+ select * from (
|
|
|
select
|
|
|
wir.INBOUND_ID "inboundId",
|
|
|
RM.MATERIAL_NAME || RM.MATERIAL_SPECIFICATION || '(' ||
|
|
@@ -926,9 +931,9 @@
|
|
|
RW.WAREHOUSE_NAME "warehouseName",
|
|
|
RS.STACKING_NO "stackingNo",
|
|
|
RPG.GRID_GRADATION_NUMBER "gridGradationNumber",
|
|
|
- -- 关联炉号
|
|
|
+ -- 关联炉号
|
|
|
rms.MATERIAL_FURNACE_NUMBER "furnaceNumber",
|
|
|
- -- 关联物资实际重量
|
|
|
+ -- 关联物资实际重量
|
|
|
rms.MATERIAL_THEORETICAL_WEIGHT "theoreticalWeight"
|
|
|
from wmsp_inbound_result wir
|
|
|
|
|
@@ -949,6 +954,7 @@
|
|
|
and wir.result_deleted = 0
|
|
|
and wir.INBOUND_ISCOMPLETE = 2
|
|
|
order by wir.inbound_time desc
|
|
|
+ )
|
|
|
<where>
|
|
|
<if test="INBOUND_NUMBER != null">
|
|
|
and "INBOUND_NUMBER" in
|
|
@@ -1067,6 +1073,7 @@
|
|
|
<!-- select MAX(INBOUND_ID) from wmsp_inbound_result-->
|
|
|
<!-- </select>-->
|
|
|
<select id="selectWmsReboundResult" resultType="java.util.LinkedHashMap">
|
|
|
+ select * from (
|
|
|
select wimr.result_no "result_no",
|
|
|
rw.warehouse_name "warehouse_name",
|
|
|
rs.stacking_no "stacking_no",
|
|
@@ -1110,6 +1117,7 @@
|
|
|
where rp1.personnel_id = 6
|
|
|
and wmsp.result_status_ = 1
|
|
|
and wir.inbound_type = 2
|
|
|
+ )
|
|
|
<where>
|
|
|
<if test="result_no != null">
|
|
|
and "result_no" in
|
|
@@ -1193,6 +1201,7 @@
|
|
|
<include refid="orderBy"></include>
|
|
|
</select>
|
|
|
<select id="selectWmsIvboundResult" resultType="java.util.Map">
|
|
|
+ select * from(
|
|
|
select wimr.result_id "resultId",
|
|
|
wimr.result_no "result_no",
|
|
|
rw1.warehouse_name "before_warehouse",
|
|
@@ -1214,6 +1223,7 @@
|
|
|
join wmsp_ivbound_make_material wimm
|
|
|
on wimm.result_id = wimr.result_id
|
|
|
order by wimr.insert_time desc
|
|
|
+ )
|
|
|
<where>
|
|
|
<if test="result_no != null">
|
|
|
and "result_no" in
|
|
@@ -1249,6 +1259,7 @@
|
|
|
<include refid="orderBy"></include>
|
|
|
</select>
|
|
|
<select id="selectWmsIvboundMaterialResult" resultType="java.util.LinkedHashMap">
|
|
|
+ select * from(
|
|
|
select
|
|
|
wimr.result_no "result_no",
|
|
|
rw1.warehouse_name "before_warehouse",
|
|
@@ -1364,6 +1375,7 @@
|
|
|
where wimm.result_id = #{resultId}
|
|
|
order by
|
|
|
wir.inbound_time desc
|
|
|
+ )
|
|
|
<where>
|
|
|
<if test="result_no != null">
|
|
|
and "result_no" in
|