|
@@ -701,15 +701,15 @@
|
|
|
|
|
|
<select id="inventoryQueries" resultType="com.ruoyi.warehouseBusiness.response.InventoryQueryResponse">
|
|
<select id="inventoryQueries" resultType="com.ruoyi.warehouseBusiness.response.InventoryQueryResponse">
|
|
SELECT
|
|
SELECT
|
|
- TW.f_originalbillno as warehouseSerialNumber,
|
|
|
|
- TW.f_originalbilldate as originalWarehousingDate,
|
|
|
|
- TW.f_mblno as bl_no,
|
|
|
|
|
|
+ TW.f_originalbillno AS warehouseSerialNumber,
|
|
|
|
+ TW.f_originalbilldate AS originalWarehousingDate,
|
|
|
|
+ TW.f_mblno AS bl_no,
|
|
TG.f_name AS cargoName,
|
|
TG.f_name AS cargoName,
|
|
TW.f_marks AS cargoModel,
|
|
TW.f_marks AS cargoModel,
|
|
TG.f_specs AS cargoSpec,
|
|
TG.f_specs AS cargoSpec,
|
|
- TW.f_qtyblc AS cargoQuantity,
|
|
|
|
- TW.f_netweightblc AS netWeight,
|
|
|
|
- TW.f_grossweightblc AS grossWeight,
|
|
|
|
|
|
+ SUM(TW.f_qtyblc) AS cargoQuantity,
|
|
|
|
+ IFNULL( ROUND( SUM( TW.f_netweightblc ) / 1000, 2 ), 0 ) AS netWeight,
|
|
|
|
+ IFNULL( ROUND( SUM( TW.f_grossweightblc ) / 1000, 2 ), 0 ) AS grossWeight,
|
|
TWH.f_addr AS warehouseAddress,
|
|
TWH.f_addr AS warehouseAddress,
|
|
TC.f_name AS sourceOwnerName,
|
|
TC.f_name AS sourceOwnerName,
|
|
TC.uscc AS sourceOwnerSocialIdentifier,
|
|
TC.uscc AS sourceOwnerSocialIdentifier,
|
|
@@ -718,7 +718,7 @@
|
|
TW.f_originalbilldate AS rentBeginDate,
|
|
TW.f_originalbilldate AS rentBeginDate,
|
|
'' AS storageRate,
|
|
'' AS storageRate,
|
|
TW.f_marks AS mark,
|
|
TW.f_marks AS mark,
|
|
- TW.f_qtyblc AS number,
|
|
|
|
|
|
+ SUM(TW.f_qtyblc) AS number,
|
|
'' AS manufacturer,
|
|
'' AS manufacturer,
|
|
'' AS trademark,
|
|
'' AS trademark,
|
|
'' AS grade,
|
|
'' AS grade,
|
|
@@ -745,6 +745,8 @@
|
|
</foreach>
|
|
</foreach>
|
|
</if>
|
|
</if>
|
|
</where>
|
|
</where>
|
|
|
|
+ GROUP BY
|
|
|
|
+ TW.f_originalbillno
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<update id="receiptRegister">
|
|
<update id="receiptRegister">
|