aa
This commit is contained in:
@@ -209,7 +209,7 @@ func FullSyncStoreSkuNew(ctx *jxcontext.Context, parentTask tasksch.ITask, vendo
|
|||||||
case 0:
|
case 0:
|
||||||
if singleStoreHandler != nil {
|
if singleStoreHandler != nil {
|
||||||
// _, err = ClearRemoteStoreStuffAndSetNew(ctx, task, vendorID, storeID, vendorStoreID, false, isContinueWhenError)
|
// _, err = ClearRemoteStoreStuffAndSetNew(ctx, task, vendorID, storeID, vendorStoreID, false, isContinueWhenError)
|
||||||
_, err = amendAndPruneStoreStuff(ctx, parentTask, vendorID, storeID, vendorStoreID, false, isContinueWhenError, AmendPruneAll, true)
|
_, err = amendAndPruneStoreStuff(ctx, parentTask, vendorID, storeID, vendorStoreID, false, isContinueWhenError, AmendPruneAll, false)
|
||||||
} else {
|
} else {
|
||||||
_, err = dao.SetStoreSkuSyncStatus(dao.GetDB(), vendorID, []int{storeID}, nil, model.SyncFlagStoreSkuOnlyMask)
|
_, err = dao.SetStoreSkuSyncStatus(dao.GetDB(), vendorID, []int{storeID}, nil, model.SyncFlagStoreSkuOnlyMask)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,8 +8,6 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"git.rosy.net.cn/jx-callback/business/authz"
|
|
||||||
|
|
||||||
"git.rosy.net.cn/jx-callback/business/auth2/authprovider/weixin"
|
"git.rosy.net.cn/jx-callback/business/auth2/authprovider/weixin"
|
||||||
"git.rosy.net.cn/jx-callback/business/partner/delivery"
|
"git.rosy.net.cn/jx-callback/business/partner/delivery"
|
||||||
"github.com/360EntSecGroup-Skylar/excelize"
|
"github.com/360EntSecGroup-Skylar/excelize"
|
||||||
@@ -1867,129 +1865,6 @@ func UploadJdsImage(ctx *jxcontext.Context) (err error) {
|
|||||||
// }, storeMaps)
|
// }, storeMaps)
|
||||||
// tasksch.HandleTask(task, nil, true).Run()
|
// tasksch.HandleTask(task, nil, true).Run()
|
||||||
// _, err = task.GetResult(0)
|
// _, err = task.GetResult(0)
|
||||||
var (
|
|
||||||
storeIDs = []int{
|
|
||||||
102997,
|
|
||||||
103085,
|
|
||||||
102481,
|
|
||||||
103190,
|
|
||||||
101755,
|
|
||||||
100326,
|
|
||||||
102807,
|
|
||||||
101986,
|
|
||||||
102752,
|
|
||||||
100270,
|
|
||||||
100267,
|
|
||||||
102778,
|
|
||||||
101111,
|
|
||||||
103454,
|
|
||||||
102160,
|
|
||||||
102824,
|
|
||||||
103425,
|
|
||||||
100278,
|
|
||||||
666742,
|
|
||||||
103093,
|
|
||||||
102606,
|
|
||||||
100369,
|
|
||||||
102519,
|
|
||||||
101842,
|
|
||||||
101722,
|
|
||||||
100361,
|
|
||||||
102637,
|
|
||||||
666669,
|
|
||||||
102991,
|
|
||||||
666815,
|
|
||||||
103060,
|
|
||||||
102968,
|
|
||||||
100517,
|
|
||||||
102788,
|
|
||||||
100234,
|
|
||||||
100236,
|
|
||||||
100463,
|
|
||||||
666852,
|
|
||||||
102990,
|
|
||||||
100351,
|
|
||||||
666743,
|
|
||||||
100476,
|
|
||||||
666898,
|
|
||||||
102379,
|
|
||||||
103069,
|
|
||||||
100969,
|
|
||||||
666760,
|
|
||||||
666950,
|
|
||||||
100477,
|
|
||||||
100334,
|
|
||||||
100274,
|
|
||||||
100650,
|
|
||||||
102022,
|
|
||||||
101000,
|
|
||||||
100328,
|
|
||||||
102953,
|
|
||||||
102433,
|
|
||||||
103116,
|
|
||||||
102962,
|
|
||||||
103200,
|
|
||||||
102782,
|
|
||||||
100336,
|
|
||||||
103089,
|
|
||||||
100922,
|
|
||||||
103013,
|
|
||||||
102781,
|
|
||||||
102709,
|
|
||||||
667108,
|
|
||||||
101088,
|
|
||||||
100887,
|
|
||||||
100335,
|
|
||||||
103119,
|
|
||||||
101775,
|
|
||||||
101945,
|
|
||||||
101997,
|
|
||||||
103161,
|
|
||||||
102300,
|
|
||||||
100273,
|
|
||||||
102253,
|
|
||||||
103090,
|
|
||||||
100767,
|
|
||||||
667167,
|
|
||||||
667184,
|
|
||||||
100766,
|
|
||||||
666736,
|
|
||||||
667201,
|
|
||||||
102046,
|
|
||||||
667194,
|
|
||||||
102136,
|
|
||||||
102075,
|
|
||||||
100350,
|
|
||||||
102790,
|
|
||||||
103084,
|
|
||||||
667291,
|
|
||||||
102303,
|
|
||||||
667296,
|
|
||||||
667212,
|
|
||||||
103082,
|
|
||||||
102014,
|
|
||||||
667266,
|
|
||||||
102882,
|
|
||||||
102417,
|
|
||||||
102320,
|
|
||||||
100373,
|
|
||||||
100366,
|
|
||||||
667449,
|
|
||||||
101107,
|
|
||||||
100524,
|
|
||||||
102444,
|
|
||||||
667149,
|
|
||||||
}
|
|
||||||
)
|
|
||||||
var roleList []*authz.RoleInfo
|
|
||||||
for _, v := range storeIDs {
|
|
||||||
role := &authz.RoleInfo{
|
|
||||||
Name: "StoreBoss",
|
|
||||||
StoreID: v,
|
|
||||||
}
|
|
||||||
roleList = append(roleList, role)
|
|
||||||
}
|
|
||||||
cms.AddRoles4User(ctx, "9DBC46AD71D211EBB5F7525400E86DC0", roleList)
|
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user