This commit is contained in:
邹宗楠
2023-07-25 09:31:37 +08:00
parent 16f3f9d22e
commit 5618869ee2
2 changed files with 91 additions and 86 deletions

View File

@@ -2030,27 +2030,27 @@ func RrefreshMtwmVendorAct(ctx *jxcontext.Context) (err error) {
if len(actList) > 0 { if len(actList) > 0 {
for _, act := range actList { for _, act := range actList {
if act.Status > 0 { if act.Status > 0 {
//if checkActStoreSkuExist(db, storeMap.StoreID, utils.Str2Int(act.AppFoodCode), model.VendorIDMTWM, utils.Timestamp2Time(act.StartTime), utils.Timestamp2Time(act.EndTime)) { if checkActStoreSkuExist(db, storeMap.StoreID, utils.Str2Int(act.AppFoodCode), model.VendorIDMTWM, utils.Timestamp2Time(act.StartTime), utils.Timestamp2Time(act.EndTime)) {
actVendor := &model.ActMtwmVendor{ actVendor := &model.ActMtwmVendor{
StoreID: storeMap.StoreID, StoreID: storeMap.StoreID,
SkuID: utils.Str2Int(act.AppFoodCode), SkuID: utils.Str2Int(act.AppFoodCode),
VendorStoreID: storeMap.VendorStoreID, VendorStoreID: storeMap.VendorStoreID,
ActType: v, ActType: v,
BeginAt: utils.Timestamp2Time(act.StartTime), BeginAt: utils.Timestamp2Time(act.StartTime),
EndAt: utils.Timestamp2Time(act.EndTime), EndAt: utils.Timestamp2Time(act.EndTime),
SkuName: act.Name, SkuName: act.Name,
OriginPrice: act.OriginalPrice, OriginPrice: act.OriginalPrice,
ActPrice: act.ActPrice, ActPrice: act.ActPrice,
DiscountCoefficient: act.DiscountCoefficient, DiscountCoefficient: act.DiscountCoefficient,
Status: act.Status, Status: act.Status,
ItemID: utils.Int64ToStr(act.ItemID), ItemID: utils.Int64ToStr(act.ItemID),
OrderLimit: act.OrderLimit, OrderLimit: act.OrderLimit,
Period: act.Period, Period: act.Period,
WeeksTime: act.WeeksTime, WeeksTime: act.WeeksTime,
SettingType: act.SettingType, SettingType: act.SettingType,
}
dao.CreateEntity(db, actVendor)
} }
dao.CreateEntity(db, actVendor)
//}
} }
} }
} }

View File

@@ -283,71 +283,71 @@ func Init() {
if beego.BConfig.RunMode != "jxgy" { if beego.BConfig.RunMode != "jxgy" {
ScheduleTimerFunc("RefreshSyncSkuList_tao", func() { ScheduleTimerFunc("RefreshSyncSkuList_tao", func() {
var beijin = []int{ var beijin = []int{
102683, //102683,
102542, //102542,
102514, //102514,
102382, //102382,
102182, //102182,
102178, //102178,
102173, //102173,
102098, //102098,
102094, //102094,
102080, //102080,
102072, //102072,
102069, //102069,
101870, //101870,
101869, //101869,
101868, //101868,
101867, //101867,
101866, //101866,
101865, //101865,
100956, //100956,
100930, //100930,
100871, //100871,
100786, //100786,
100746, //100746,
100744, //100744,
100726, //100726,
100705, //100705,
100400, //100400,
100111, //100111,
100108, //100108,
100106, //100106,
100104, //100104,
100103, //100103,
100102, //100102,
100100, //100100,
100097, //100097,
100096, //100096,
100095, //100095,
100093, //100093,
100092, //100092,
100089, //100089,
100087, //100087,
100086, //100086,
100085, //100085,
100082, //100082,
100079, //100079,
100078, //100078,
669158, //669158,
668691, //668691,
668673, //668673,
668282, //668282,
667447, //667447,
667354, //667354,
667321, //667321,
667319, //667319,
667316, //667316,
667269, //667269,
667268, //667268,
667267, //667267,
667260, //667260,
667132, //667132,
667094, //667094,
667030, //667030,
666965, //666965,
666714, //666714,
666708, //666708,
666705, 666705,
103437, 103437,
103349, 103349,
@@ -418,11 +418,16 @@ func Init() {
"05:30:00", "05:30:00",
"07:30:00", "07:30:00",
"09:55:00", "09:55:00",
"12:30:00", "10:55:00",
"11:55:00",
"12:55:00",
"13:30:00", "13:30:00",
"14:30:00",
"15:30:00", "15:30:00",
"16:30:00",
"17:30:00", "17:30:00",
"18:55:00", "18:55:00",
"19:55:00",
"20:30:00", "20:30:00",
"21:30:00", "21:30:00",
"22:30:00", "22:30:00",