|
@@ -832,6 +832,26 @@
|
|
)
|
|
)
|
|
</select>
|
|
</select>
|
|
<select id="receiveSendReport" resultType="java.util.Map">
|
|
<select id="receiveSendReport" resultType="java.util.Map">
|
|
|
|
+ SELECT
|
|
|
|
+ TT."inboundWarehouse",
|
|
|
|
+ TT."materialModel",
|
|
|
|
+ TT."materialSpe",
|
|
|
|
+ TT."materialName",
|
|
|
|
+ TT."companyName",
|
|
|
|
+ TT."saleArea",
|
|
|
|
+ TT."meter",
|
|
|
|
+ TT."singleWeight",
|
|
|
|
+ SUM(TT."inboundMaterialNumber") "inboundMaterialNumber",
|
|
|
|
+ SUM(TT."inboundMaterialWeight") "inboundMaterialWeight",
|
|
|
|
+ SUM(TT."outboundMaterialNumber") "outboundMaterialNumber",
|
|
|
|
+ SUM(TT."outboundMaterialWeight") "outboundMaterialWeight",
|
|
|
|
+ SUM(TT."currentInboundMaterialNumber") "currentInboundMaterialNumber",
|
|
|
|
+ SUM(TT."currentInboundTheoryWeight") "currentInboundTheoryWeight",
|
|
|
|
+ SUM(TT."currentOutboundMaterialNumber") "currentOutboundMaterialNumber",
|
|
|
|
+ SUM(TT."currentOutboundTheoryWeight") "currentOutboundTheoryWeight",
|
|
|
|
+ SUM(TT."materialNumber") "materialNumber",
|
|
|
|
+ SUM(TT."materialWeight") "materialWeight"
|
|
|
|
+ FROM (
|
|
SELECT
|
|
SELECT
|
|
NVL(T1."inboundMaterialNumber",0) "inboundMaterialNumber",
|
|
NVL(T1."inboundMaterialNumber",0) "inboundMaterialNumber",
|
|
NVL(T1."inboundMaterialWeight",0) "inboundMaterialWeight",
|
|
NVL(T1."inboundMaterialWeight",0) "inboundMaterialWeight",
|
|
@@ -839,6 +859,8 @@
|
|
NVL(T2."outboundMaterialWeight",0) "outboundMaterialWeight",
|
|
NVL(T2."outboundMaterialWeight",0) "outboundMaterialWeight",
|
|
ORI.INVENTORY_ID,
|
|
ORI.INVENTORY_ID,
|
|
ORI.SALE_AREA "saleArea",
|
|
ORI.SALE_AREA "saleArea",
|
|
|
|
+ ORI.METER "meter",
|
|
|
|
+ ORI.SINGLE_WEIGHT "singleWeight",
|
|
RC.CONSIGNEE_COMPANY_NAME "companyName",
|
|
RC.CONSIGNEE_COMPANY_NAME "companyName",
|
|
RM.MATERIAL_NAME "materialName",
|
|
RM.MATERIAL_NAME "materialName",
|
|
RM.MATERIAL_SPECIFICATION "materialSpe",
|
|
RM.MATERIAL_SPECIFICATION "materialSpe",
|
|
@@ -943,6 +965,15 @@
|
|
</foreach>
|
|
</foreach>
|
|
</if>
|
|
</if>
|
|
</where>
|
|
</where>
|
|
|
|
+ ) TT
|
|
|
|
+ GROUP BY TT."inboundWarehouse",
|
|
|
|
+ TT."materialModel",
|
|
|
|
+ TT."materialSpe",
|
|
|
|
+ TT."materialName",
|
|
|
|
+ TT."companyName",
|
|
|
|
+ TT."saleArea",
|
|
|
|
+ TT."meter",
|
|
|
|
+ TT."singleWeight"
|
|
</select>
|
|
</select>
|
|
<select id="getSaleAreaRemark" resultType="java.lang.String">
|
|
<select id="getSaleAreaRemark" resultType="java.lang.String">
|
|
SELECT RSR.SALE_REMARK FROM RMS_SALER_REMAR RSR
|
|
SELECT RSR.SALE_REMARK FROM RMS_SALER_REMAR RSR
|