|
@@ -617,6 +617,7 @@
|
|
<!-- 友情提示!!!-->
|
|
<!-- 友情提示!!!-->
|
|
<!-- 请将自己写的代码放在此标签之下,方便以后粘贴复制。-->
|
|
<!-- 请将自己写的代码放在此标签之下,方便以后粘贴复制。-->
|
|
<select id="selectWmsInboundResult" resultType="java.util.LinkedHashMap">
|
|
<select id="selectWmsInboundResult" resultType="java.util.LinkedHashMap">
|
|
|
|
+ select * from (
|
|
SELECT
|
|
SELECT
|
|
wir.INBOUND_ID "inboundId",
|
|
wir.INBOUND_ID "inboundId",
|
|
RM.MATERIAL_NAME || RM.MATERIAL_SPECIFICATION || '(' ||
|
|
RM.MATERIAL_NAME || RM.MATERIAL_SPECIFICATION || '(' ||
|
|
@@ -627,9 +628,9 @@
|
|
RW.WAREHOUSE_NAME "warehouseName",
|
|
RW.WAREHOUSE_NAME "warehouseName",
|
|
RS.STACKING_NO "stackingNo",
|
|
RS.STACKING_NO "stackingNo",
|
|
RPG.GRID_GRADATION_NUMBER "gridGradationNumber",
|
|
RPG.GRID_GRADATION_NUMBER "gridGradationNumber",
|
|
--- 关联炉号
|
|
|
|
|
|
+ -- 关联炉号
|
|
rms.MATERIAL_FURNACE_NUMBER "furnaceNumber",
|
|
rms.MATERIAL_FURNACE_NUMBER "furnaceNumber",
|
|
--- 关联物资实际重量
|
|
|
|
|
|
+ -- 关联物资实际重量
|
|
rms.MATERIAL_THEORETICAL_WEIGHT "theoreticalWeight"
|
|
rms.MATERIAL_THEORETICAL_WEIGHT "theoreticalWeight"
|
|
FROM wmsp_inbound_result wir
|
|
FROM wmsp_inbound_result wir
|
|
LEFT JOIN WMSP_GRID_MATERIAL wgm
|
|
LEFT JOIN WMSP_GRID_MATERIAL wgm
|
|
@@ -661,6 +662,7 @@
|
|
and to_date(#{endDate}, 'yyyy-mm-dd hh24:mi:ss') >= wir.inbound_time
|
|
and to_date(#{endDate}, 'yyyy-mm-dd hh24:mi:ss') >= wir.inbound_time
|
|
</if>
|
|
</if>
|
|
ORDER BY wir.inbound_time DESC
|
|
ORDER BY wir.inbound_time DESC
|
|
|
|
+ )
|
|
<where>
|
|
<where>
|
|
<if test="INBOUND_NUMBER != null">
|
|
<if test="INBOUND_NUMBER != null">
|
|
and "INBOUND_NUMBER" in
|
|
and "INBOUND_NUMBER" in
|
|
@@ -768,6 +770,7 @@
|
|
<include refid="orderBy"></include>
|
|
<include refid="orderBy"></include>
|
|
</select>
|
|
</select>
|
|
<select id="selectWmsInboundResults" resultType="java.util.LinkedHashMap">
|
|
<select id="selectWmsInboundResults" resultType="java.util.LinkedHashMap">
|
|
|
|
+ select * from(
|
|
SELECT
|
|
SELECT
|
|
wir.INBOUND_ID "inboundId",
|
|
wir.INBOUND_ID "inboundId",
|
|
RM.MATERIAL_NAME || RM.MATERIAL_SPECIFICATION || '(' ||
|
|
RM.MATERIAL_NAME || RM.MATERIAL_SPECIFICATION || '(' ||
|
|
@@ -778,9 +781,9 @@
|
|
RW.WAREHOUSE_NAME "warehouseName",
|
|
RW.WAREHOUSE_NAME "warehouseName",
|
|
RS.STACKING_NO "stackingNo",
|
|
RS.STACKING_NO "stackingNo",
|
|
RPG.GRID_GRADATION_NUMBER "gridGradationNumber",
|
|
RPG.GRID_GRADATION_NUMBER "gridGradationNumber",
|
|
- -- 关联炉号
|
|
|
|
|
|
+ -- 关联炉号
|
|
rms.MATERIAL_FURNACE_NUMBER "furnaceNumber",
|
|
rms.MATERIAL_FURNACE_NUMBER "furnaceNumber",
|
|
- -- 关联物资实际重量
|
|
|
|
|
|
+ -- 关联物资实际重量
|
|
rms.MATERIAL_THEORETICAL_WEIGHT "theoreticalWeight"
|
|
rms.MATERIAL_THEORETICAL_WEIGHT "theoreticalWeight"
|
|
FROM wmsp_inbound_result wir
|
|
FROM wmsp_inbound_result wir
|
|
LEFT JOIN WMSP_GRID_MATERIAL wgm
|
|
LEFT JOIN WMSP_GRID_MATERIAL wgm
|
|
@@ -811,6 +814,7 @@
|
|
and to_date(#{endDate}, 'yyyy-mm-dd hh24:mi:ss') >= wir.inbound_time
|
|
and to_date(#{endDate}, 'yyyy-mm-dd hh24:mi:ss') >= wir.inbound_time
|
|
</if>
|
|
</if>
|
|
ORDER BY wir.inbound_time DESC
|
|
ORDER BY wir.inbound_time DESC
|
|
|
|
+ )
|
|
<where>
|
|
<where>
|
|
<if test="INBOUND_NUMBER != null">
|
|
<if test="INBOUND_NUMBER != null">
|
|
and "INBOUND_NUMBER" in
|
|
and "INBOUND_NUMBER" in
|
|
@@ -918,6 +922,7 @@
|
|
<include refid="orderBy"></include>
|
|
<include refid="orderBy"></include>
|
|
</select>
|
|
</select>
|
|
<select id="selectWmsReservedResult" resultType="java.util.LinkedHashMap">
|
|
<select id="selectWmsReservedResult" resultType="java.util.LinkedHashMap">
|
|
|
|
+ select * from (
|
|
select
|
|
select
|
|
wir.INBOUND_ID "inboundId",
|
|
wir.INBOUND_ID "inboundId",
|
|
RM.MATERIAL_NAME || RM.MATERIAL_SPECIFICATION || '(' ||
|
|
RM.MATERIAL_NAME || RM.MATERIAL_SPECIFICATION || '(' ||
|
|
@@ -928,9 +933,9 @@
|
|
RW.WAREHOUSE_NAME "warehouseName",
|
|
RW.WAREHOUSE_NAME "warehouseName",
|
|
RS.STACKING_NO "stackingNo",
|
|
RS.STACKING_NO "stackingNo",
|
|
RPG.GRID_GRADATION_NUMBER "gridGradationNumber",
|
|
RPG.GRID_GRADATION_NUMBER "gridGradationNumber",
|
|
- -- 关联炉号
|
|
|
|
|
|
+ -- 关联炉号
|
|
rms.MATERIAL_FURNACE_NUMBER "furnaceNumber",
|
|
rms.MATERIAL_FURNACE_NUMBER "furnaceNumber",
|
|
- -- 关联物资实际重量
|
|
|
|
|
|
+ -- 关联物资实际重量
|
|
rms.MATERIAL_THEORETICAL_WEIGHT "theoreticalWeight"
|
|
rms.MATERIAL_THEORETICAL_WEIGHT "theoreticalWeight"
|
|
|
|
|
|
from wmsp_inbound_result wir
|
|
from wmsp_inbound_result wir
|
|
@@ -957,6 +962,7 @@
|
|
and wir.INBOUND_ISCOMPLETE = 1
|
|
and wir.INBOUND_ISCOMPLETE = 1
|
|
and wgm.UPDATE_TIME is null
|
|
and wgm.UPDATE_TIME is null
|
|
order by wir.inbound_time desc
|
|
order by wir.inbound_time desc
|
|
|
|
+ )
|
|
<where>
|
|
<where>
|
|
<if test="INBOUND_NUMBER != null">
|
|
<if test="INBOUND_NUMBER != null">
|
|
and "INBOUND_NUMBER" in
|
|
and "INBOUND_NUMBER" in
|
|
@@ -1075,6 +1081,7 @@
|
|
<!-- select MAX(INBOUND_ID) from wmsp_inbound_result-->
|
|
<!-- select MAX(INBOUND_ID) from wmsp_inbound_result-->
|
|
<!-- </select>-->
|
|
<!-- </select>-->
|
|
<select id="selectWmsReboundResult" resultType="java.util.LinkedHashMap">
|
|
<select id="selectWmsReboundResult" resultType="java.util.LinkedHashMap">
|
|
|
|
+ select * from (
|
|
select wimr.result_no "result_no",
|
|
select wimr.result_no "result_no",
|
|
rw.warehouse_name "warehouse_name",
|
|
rw.warehouse_name "warehouse_name",
|
|
rs.stacking_no "stacking_no",
|
|
rs.stacking_no "stacking_no",
|
|
@@ -1118,6 +1125,7 @@
|
|
where rp1.personnel_id = 6
|
|
where rp1.personnel_id = 6
|
|
and wmsp.result_status_ = 1
|
|
and wmsp.result_status_ = 1
|
|
and wir.inbound_type = 2
|
|
and wir.inbound_type = 2
|
|
|
|
+ )
|
|
<where>
|
|
<where>
|
|
<if test="result_no != null">
|
|
<if test="result_no != null">
|
|
and "result_no" in
|
|
and "result_no" in
|
|
@@ -1201,6 +1209,7 @@
|
|
<include refid="orderBy"></include>
|
|
<include refid="orderBy"></include>
|
|
</select>
|
|
</select>
|
|
<select id="selectWmsIvboundResult" resultType="java.util.Map">
|
|
<select id="selectWmsIvboundResult" resultType="java.util.Map">
|
|
|
|
+ select * from(
|
|
select wimr.result_id "resultId",
|
|
select wimr.result_id "resultId",
|
|
wimr.result_no "result_no",
|
|
wimr.result_no "result_no",
|
|
rw1.warehouse_name "before_warehouse",
|
|
rw1.warehouse_name "before_warehouse",
|
|
@@ -1222,6 +1231,7 @@
|
|
join wmsp_ivbound_make_material wimm
|
|
join wmsp_ivbound_make_material wimm
|
|
on wimm.result_id = wimr.result_id
|
|
on wimm.result_id = wimr.result_id
|
|
order by wimr.insert_time desc
|
|
order by wimr.insert_time desc
|
|
|
|
+ )
|
|
<where>
|
|
<where>
|
|
<if test="result_no != null">
|
|
<if test="result_no != null">
|
|
and "result_no" in
|
|
and "result_no" in
|
|
@@ -1257,6 +1267,7 @@
|
|
<include refid="orderBy"></include>
|
|
<include refid="orderBy"></include>
|
|
</select>
|
|
</select>
|
|
<select id="selectWmsIvboundMaterialResult" resultType="java.util.LinkedHashMap">
|
|
<select id="selectWmsIvboundMaterialResult" resultType="java.util.LinkedHashMap">
|
|
|
|
+ select * from(
|
|
select
|
|
select
|
|
wimr.result_no "result_no",
|
|
wimr.result_no "result_no",
|
|
rw1.warehouse_name "before_warehouse",
|
|
rw1.warehouse_name "before_warehouse",
|
|
@@ -1372,6 +1383,7 @@
|
|
where wimm.result_id = #{resultId}
|
|
where wimm.result_id = #{resultId}
|
|
order by
|
|
order by
|
|
wir.inbound_time desc
|
|
wir.inbound_time desc
|
|
|
|
+ )
|
|
<where>
|
|
<where>
|
|
<if test="result_no != null">
|
|
<if test="result_no != null">
|
|
and "result_no" in
|
|
and "result_no" in
|