addstoreVendorMap和update支持京西门店
This commit is contained in:
@@ -107,9 +107,9 @@ func getStoreDetail(db *DaoDB, storeID, vendorID int, vendorStoreID string) (sto
|
||||
utils.DefaultTimeValue,
|
||||
utils.DefaultTimeValue,
|
||||
}
|
||||
if vendorID != model.VendorIDJX {
|
||||
sql += " AND t2.id IS NOT NULL"
|
||||
}
|
||||
// if vendorID != model.VendorIDJX {
|
||||
// sql += " AND t2.id IS NOT NULL"
|
||||
// }
|
||||
if storeID > 0 {
|
||||
sql += " AND t1.id = ?"
|
||||
sqlParams = append(sqlParams, storeID)
|
||||
@@ -121,16 +121,16 @@ func getStoreDetail(db *DaoDB, storeID, vendorID int, vendorStoreID string) (sto
|
||||
if err = GetRow(db, &storeDetail, sql, sqlParams...); err == nil {
|
||||
storeDetail.PricePercentagePackObj = PricePercentagePack2Obj(storeDetail.PricePercentagePackStr)
|
||||
storeDetail.FreightDeductionPackObj = FreightDeductionPack2Obj(storeDetail.FreightDeductionPackStr)
|
||||
if storeDetail.VendorStoreID == "" {
|
||||
storeDetail.VendorStatus = storeDetail.Status
|
||||
storeDetail.PricePercentage = model.DefVendorPricePercentage
|
||||
storeDetail.AutoPickup = 1
|
||||
storeDetail.DeliveryType = model.StoreDeliveryTypeByStore
|
||||
storeDetail.DeliveryCompetition = 1
|
||||
if vendorID == model.VendorIDJX {
|
||||
storeDetail.IsSync = 1
|
||||
}
|
||||
}
|
||||
// if storeDetail.VendorStoreID == "" {
|
||||
// storeDetail.VendorStatus = storeDetail.Status
|
||||
// storeDetail.PricePercentage = model.DefVendorPricePercentage
|
||||
// storeDetail.AutoPickup = 1
|
||||
// storeDetail.DeliveryType = model.StoreDeliveryTypeByStore
|
||||
// storeDetail.DeliveryCompetition = 1
|
||||
// if vendorID == model.VendorIDJX {
|
||||
// storeDetail.IsSync = 1
|
||||
// }
|
||||
// }
|
||||
return storeDetail, nil
|
||||
}
|
||||
return nil, err
|
||||
|
||||
Reference in New Issue
Block a user