|
|
@ -374,7 +374,7 @@ func (impl *CustomizedQueryServiceImplement) ProductFamilyInventoryQuery(user *g |
|
|
|
} |
|
|
|
var inventoryQuantity float64 = 0 |
|
|
|
if packOrder.IsInventory() { |
|
|
|
inventoryQuantity = float64(len(seats)) |
|
|
|
inventoryQuantity = 1 |
|
|
|
} |
|
|
|
packTemplateIdLst, ok := productFamilyKeyMapping[packOrder.ProductFamilyKey] |
|
|
|
// 没找到派生
|
|
|
@ -425,7 +425,7 @@ func (impl *CustomizedQueryServiceImplement) ProductFamilyInventoryQuery(user *g |
|
|
|
} |
|
|
|
var inventoryQuantity float64 = 0 |
|
|
|
if packOrder.IsInventory() { |
|
|
|
inventoryQuantity = float64(len(seats)) |
|
|
|
inventoryQuantity = 1 |
|
|
|
} |
|
|
|
packTemplateIdLst, ok := productFamilyKeyMapping[packOrder.ProductFamilyKey] |
|
|
|
// 没找到派生
|
|
|
@ -494,7 +494,7 @@ func WriteExcelFile(result []ProductFamilyInventoryQuery_ProductFamilyStatistics |
|
|
|
} |
|
|
|
|
|
|
|
for _, productFamily := range result { |
|
|
|
if err = WriteExcelRow(streamWriter, &rowIndex, productFamily.ProductFamilyId, productFamily.ProductFamilyId); err != nil { |
|
|
|
if err = WriteExcelRow(streamWriter, &rowIndex, productFamily.ProductFamilyId, productFamily.InventoryQuantity); err != nil { |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|