京西折扣
This commit is contained in:
@@ -1505,3 +1505,23 @@ func loadExcelForCreateAct(rowNum, mixType int, row []string, sheetParam *SheetP
|
||||
}
|
||||
actStoreSkuList = append(actStoreSkuList, actStoreSku)
|
||||
}
|
||||
|
||||
func ChangeJxPriceByDiscountAct(ctx *jxcontext.Context) {
|
||||
var (
|
||||
db = dao.GetDB()
|
||||
pageSize = 9999
|
||||
)
|
||||
page, err := dao.QueryActs(db, 0, 0, pageSize, -1, "", model.VendorIDJX, []int{model.YES}, []int{model.ActSkuDiscount}, nil, 0, nil, 0, utils.ZeroTimeValue, utils.ZeroTimeValue, time.Now().AddDate(0, -3, 0), time.Now())
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
if len(page.Data) == 0 {
|
||||
return
|
||||
}
|
||||
//第一档时间内
|
||||
if (time.Now().Hour() >= 10 && time.Now().Hour() < 20) || (time.Now().Hour() == 20 && time.Now().Minute() < 1) {
|
||||
|
||||
} else { //第二档时间内
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user