This commit is contained in:
suyl
2021-08-04 17:33:26 +08:00
parent e5467de15e
commit 3e47450078
4 changed files with 23 additions and 1 deletions

View File

@@ -345,6 +345,7 @@ type StoreSkuPriceAndWeight struct {
Comment string
SpecQuality float32
SpecUnit string
Upc string
}
type StoreSkuAndName struct {
@@ -688,7 +689,7 @@ func GetStoreSkuPriceAndWeight(db *DaoDB, vendorStoreID string, vendorID int, ve
}
sql := fmt.Sprintf(`
SELECT %s vendor_sku_id, t1.id sku_id, t2.price, t1.weight,
t5.prefix, t5.name, t1.comment, t5.unit, t1.spec_quality, t1.spec_unit
t5.prefix, t5.name, t1.comment, t5.unit, t1.spec_quality, t1.spec_unit, t5.upc
FROM sku t1
JOIN store_sku_bind t2 ON t2.sku_id = t1.id AND t2.deleted_at = ?
JOIN store_map t3 ON t3.store_id = t2.store_id AND t3.vendor_id = ? AND t3.vendor_store_id = ? AND t3.deleted_at = ?