1
This commit is contained in:
@@ -1751,6 +1751,25 @@ func GetStoreSkuBindByNameID(db *DaoDB, storeID, nameID, status int) (storeSkuBi
|
||||
return storeSkuBind, err
|
||||
}
|
||||
|
||||
func GetStoreSkuByVendorSkuId(storeId int, vendorID int, vendorSkuId string) (storeSkuBind *model.StoreSkuBind, err error) {
|
||||
sql := `
|
||||
SELECT * FROM store_sku_bind s WHERE s.store_id = ?
|
||||
`
|
||||
param := []interface{}{
|
||||
storeId,
|
||||
}
|
||||
switch vendorID {
|
||||
case model.VendorIDEBAI:
|
||||
sql += ` AND s.ebai_id = ?`
|
||||
param = append(param, vendorSkuId)
|
||||
}
|
||||
sql += ` AND s.deleted_at = ? `
|
||||
param = append(param, utils.DefaultTimeValue)
|
||||
|
||||
err = GetRow(GetDB(), &storeSkuBind, sql, param...)
|
||||
return storeSkuBind, err
|
||||
}
|
||||
|
||||
func GetPriceReferPrice(db *DaoDB, cityCode int, skuID int, snapDate time.Time) (result *PriceReferSnapshotExt, err error) {
|
||||
var (
|
||||
pRefer *PriceReferSnapshotExt
|
||||
|
||||
Reference in New Issue
Block a user