1
This commit is contained in:
@@ -37,15 +37,24 @@ func CopyOnStoreSkuToOther(ctx *jxcontext.Context, fromStoreId, toStoreId string
|
||||
db = dao.GetDB()
|
||||
copySkuErr = make([]string, 0, 0)
|
||||
err error
|
||||
fromVendorID = 0
|
||||
toVendorID = 0
|
||||
)
|
||||
if vendorId > 10 {
|
||||
fromVendorID = utils.Str2Int(string(utils.Int2Str(vendorId)[0]))
|
||||
toVendorID = utils.Str2Int(string(utils.Int2Str(vendorId)[1:]))
|
||||
} else {
|
||||
fromVendorID = vendorId
|
||||
toVendorID = vendorId
|
||||
}
|
||||
|
||||
// 门店api加载
|
||||
toStore, err := dao.GetStoreDetailByVendorStoreID(db, toStoreId, vendorId, "")
|
||||
toStore, err := dao.GetStoreDetailByVendorStoreID(db, toStoreId, toVendorID, "")
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
fromStore, err := dao.GetStoreDetailByVendorStoreID(db, fromStoreId, vendorId, "")
|
||||
fromStore, err := dao.GetStoreDetailByVendorStoreID(db, fromStoreId, fromVendorID, "")
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user