索引没建上?
This commit is contained in:
@@ -1585,12 +1585,13 @@ func UploadJdsImage(ctx *jxcontext.Context) (err error) {
|
||||
// fmt.Println("addList2", addList)
|
||||
// fmt.Println("updateList2", utils.Format4Output(updateList, false))
|
||||
// fmt.Println("deleteList2", deleteList)
|
||||
db := dao.GetDB()
|
||||
storeIDs := []int{667402, 666913, 666864, 666858, 666854, 666853, 666850, 666844}
|
||||
var actStoreSkuParam []*act.ActStoreSkuParam
|
||||
for _, storeID := range storeIDs {
|
||||
acts, _ := dao.QueryActs(dao.GetDB(), 0, 0, 50, -1, "", -1, []int{1}, []int{0, 3, 4}, nil, storeID, nil, 0, utils.ZeroTimeValue, utils.ZeroTimeValue, utils.ZeroTimeValue, utils.ZeroTimeValue)
|
||||
acts, _ := dao.QueryActs(db, 0, 0, 50, -1, "", -1, []int{1}, []int{0, 3, 4}, nil, storeID, nil, 0, utils.ZeroTimeValue, utils.ZeroTimeValue, utils.Str2Time("2020-05-30 00:00:00"), utils.Str2Time("2020-07-30 00:00:00"))
|
||||
for _, v := range acts.Data {
|
||||
_, actStoreSkus, _ := dao.GetActStoreSkuVendorList(dao.GetDB(), v.ID, nil, nil, nil, "", 0, 99999)
|
||||
_, actStoreSkus, _ := dao.GetActStoreSkuVendorList(db, v.ID, nil, nil, nil, "", 0, 99999)
|
||||
for _, actStoreSku := range actStoreSkus {
|
||||
if actStoreSku.StoreID == storeID {
|
||||
aa := &act.ActStoreSkuParam{}
|
||||
@@ -1600,7 +1601,7 @@ func UploadJdsImage(ctx *jxcontext.Context) (err error) {
|
||||
}
|
||||
}
|
||||
fmt.Println("actStoreSkuParam", utils.Format4Output(actStoreSkuParam, false))
|
||||
// act.DeleteActStoreSkuBind(ctx, dao.GetDB(), v.ID, actStoreSkuParam)
|
||||
// act.DeleteActStoreSkuBind(ctx, db, v.ID, actStoreSkuParam)
|
||||
return err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user