1
This commit is contained in:
@@ -1262,12 +1262,20 @@ func updateOrCreateSkuVendorCategoryMap(db *dao.DaoDB, ctx *jxcontext.Context, n
|
||||
if payload["mtwmCategoryID"] != nil {
|
||||
mtwmCategoryID = payload["mtwmCategoryID"].(string)
|
||||
}
|
||||
if payload["categoryID2"] != nil {
|
||||
if payload["categoryID2"] != nil && !utils.IsNil(payload["categoryID2"]) {
|
||||
jxCategoryIDNumber, err := payload["categoryID2"].(json.Number).Int64()
|
||||
if err != nil {
|
||||
return false
|
||||
}
|
||||
jxCategoryID = int(jxCategoryIDNumber)
|
||||
} else if payload["categoryID"] != nil && !utils.IsNil(payload["categoryID"]) {
|
||||
jxCategoryIDNumber, err := payload["categoryID"].(json.Number).Int64()
|
||||
if err != nil {
|
||||
return false
|
||||
}
|
||||
jxCategoryID = int(jxCategoryIDNumber)
|
||||
} else {
|
||||
jxCategoryID = 0
|
||||
}
|
||||
|
||||
if jdCategoryId != "" {
|
||||
|
||||
@@ -1762,6 +1762,7 @@ func UpdateStoreVendorMap(ctx *jxcontext.Context, db *dao.DaoDB, storeID, vendor
|
||||
panic(r)
|
||||
}
|
||||
}()
|
||||
|
||||
if isStoreMapNeedSync(vendorID, valid) { // 对于store vendor map,只有Status改变才需要同步到厂商
|
||||
num, err = dao.UpdateEntityLogicallyAndUpdateSyncStatus(db, storeMap, valid, userName, map[string]interface{}{
|
||||
model.FieldStoreID: storeID,
|
||||
|
||||
Reference in New Issue
Block a user