Bladeren bron

包装列表BUG

caozj 2 jaren geleden
bovenliggende
commit
c27279af7a
1 gewijzigde bestanden met toevoegingen van 3 en 3 verwijderingen
  1. 3 3
      hx-sale/src/main/resources/mapper/pack/PackDetailMapper.xml

+ 3 - 3
hx-sale/src/main/resources/mapper/pack/PackDetailMapper.xml

@@ -20,12 +20,12 @@
                                bom_volume,  ",", box_long, ",", box_wide, ",", box_high, ",", rough_weight, ",", net_weight,",",pack_quantity
                          ) SEPARATOR '_') FROM pack_detail WHERE 	FIND_IN_SET(id,GROUP_CONCAT( t1.id )) ) AS dataJsonList,
                      sum(t1.pack_quantity)                                 packQuantity,
-                     sum(t1.net_weight)                                    netWeight,
-                     sum(t1.rough_weight)                                  roughWeight,
+                     sum( t1.net_weight*t1.pack_quantity )                 netWeight,
+                     sum( t1.rough_weight*t1.pack_quantity )               roughWeight,
                      t1.box_long,
                      t1.box_wide,
                      t1.box_high,
-                     sum(t1.bom_volume)                                    bomVolume,
+                     sum( t1.bom_volume*t1.pack_quantity )                 bomVolume,
                      t1.shipment_status,
                      t1.shipment_time,
                      t1.contract_ids