This commit is contained in:
苏尹岚
2020-11-12 18:12:24 +08:00
parent 796477af03
commit cc8705e929

View File

@@ -1907,7 +1907,7 @@ func UploadJdsImage(ctx *jxcontext.Context) (err error) {
// 100117, // 100117,
// 100115, // 100115,
} }
list, _ := dao.QueryActs(db, 0, 0, 9999, 0, "", model.VendorIDJD, nil, []int{model.ActSkuDirectDown}, nil, storeID, nil, 0, time.Now().AddDate(0, -3, 0), time.Now(), utils.ZeroTimeValue, utils.ZeroTimeValue) list, _ := dao.QueryActs(db, 0, 0, 9999, -1, "", model.VendorIDJD, nil, []int{model.ActSkuDirectDown}, nil, storeID, nil, 0, time.Now().AddDate(0, -3, 0), time.Now(), utils.ZeroTimeValue, utils.ZeroTimeValue)
for _, v := range list.Data { for _, v := range list.Data {
var actStoreSkuList []*act.ActStoreSkuParam var actStoreSkuList []*act.ActStoreSkuParam
_, actStoreSku2, _ := dao.GetActStoreSkuVendorList(db, v.ID, []int{model.VendorIDJD}, []int{storeID}, nil, "", 0, 9999) _, actStoreSku2, _ := dao.GetActStoreSkuVendorList(db, v.ID, []int{model.VendorIDJD}, []int{storeID}, nil, "", 0, 9999)
@@ -1922,7 +1922,7 @@ func UploadJdsImage(ctx *jxcontext.Context) (err error) {
actStoreSkuList = append(actStoreSkuList, actStoreSku) actStoreSkuList = append(actStoreSkuList, actStoreSku)
} }
} }
fmt.Println("actStoreSkuList", utils.Format4Output(actStoreSkuList, false)) fmt.Println("actStoreSkuList", utils.Format4Output(v, false))
// act.CreateAct(ctx, &model.Act{ // act.CreateAct(ctx, &model.Act{
// Name: "复制犀浦下街活动" + utils.Int2Str(k), // Name: "复制犀浦下街活动" + utils.Int2Str(k),
// Type: model.ActSkuDirectDown, // Type: model.ActSkuDirectDown,