aa
This commit is contained in:
@@ -47,7 +47,7 @@ var (
|
|||||||
"20:30:00",
|
"20:30:00",
|
||||||
}
|
}
|
||||||
dailyWorkTimeList2 = []string{
|
dailyWorkTimeList2 = []string{
|
||||||
"02:00:00",
|
"2:00:00",
|
||||||
}
|
}
|
||||||
priceReferTimeList = []string{
|
priceReferTimeList = []string{
|
||||||
"03:00:00",
|
"03:00:00",
|
||||||
@@ -164,7 +164,7 @@ func Init() {
|
|||||||
if globals.IsProductEnv() {
|
if globals.IsProductEnv() {
|
||||||
ScheduleTimerFunc("doDailyWork", doDailyWork, dailyWorkTimeList)
|
ScheduleTimerFunc("doDailyWork", doDailyWork, dailyWorkTimeList)
|
||||||
|
|
||||||
ScheduleTimerFunc("doDailyWork2", doDailyWork2, dailyWorkTimeList2)
|
//ScheduleTimerFunc("doDailyWork2", doDailyWork2, dailyWorkTimeList2)
|
||||||
|
|
||||||
//京东的订单信息解密密钥获取
|
//京东的订单信息解密密钥获取
|
||||||
ScheduleTimerFuncByInterval(func() {
|
ScheduleTimerFuncByInterval(func() {
|
||||||
@@ -281,8 +281,6 @@ func Init() {
|
|||||||
ScheduleTimerFunc("SyncMatterC4ToGy", func() {
|
ScheduleTimerFunc("SyncMatterC4ToGy", func() {
|
||||||
cms.SyncMatterC4ToGy(jxcontext.AdminCtx, true, true)
|
cms.SyncMatterC4ToGy(jxcontext.AdminCtx, true, true)
|
||||||
}, dailyWorkTimeList)
|
}, dailyWorkTimeList)
|
||||||
|
|
||||||
ScheduleTimerFunc("doDailyWork2", doDailyWork2, dailyWorkTimeList2)
|
|
||||||
}
|
}
|
||||||
if beego.BConfig.RunMode == "beta" {
|
if beego.BConfig.RunMode == "beta" {
|
||||||
//ScheduleTimerFunc("CancelPayTimeOutOrder", func() {
|
//ScheduleTimerFunc("CancelPayTimeOutOrder", func() {
|
||||||
@@ -426,12 +424,6 @@ func doDailyWork2() {
|
|||||||
// cms.CurVendorSync.SyncJdsStoresSkus(jxcontext.AdminCtx, nil, true, true)
|
// cms.CurVendorSync.SyncJdsStoresSkus(jxcontext.AdminCtx, nil, true, true)
|
||||||
//刷新京东商城的门店库存
|
//刷新京东商城的门店库存
|
||||||
// cms.SyncJdsStoreStock(jxcontext.AdminCtx, true, true)
|
// cms.SyncJdsStoreStock(jxcontext.AdminCtx, true, true)
|
||||||
//刷新京东商城订单结算价
|
|
||||||
orderman.RefreshJdShopOrdersEarningPrice(jxcontext.AdminCtx, utils.Time2Str(time.Now().AddDate(0, 0, -2)), utils.Time2Str(time.Now()))
|
|
||||||
//刷新门店分组管理
|
|
||||||
cms.RefreshStoreBind(jxcontext.AdminCtx)
|
|
||||||
//刷新京东会员
|
|
||||||
report.RefreshJDMembers(jxcontext.AdminCtx)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func doDailyWork() {
|
func doDailyWork() {
|
||||||
@@ -473,6 +465,12 @@ func doDailyWork() {
|
|||||||
cms.SetMTPSStatus(jxcontext.AdminCtx, 0, 0)
|
cms.SetMTPSStatus(jxcontext.AdminCtx, 0, 0)
|
||||||
//售后单如果超过12小时没有审核,就自动通过
|
//售后单如果超过12小时没有审核,就自动通过
|
||||||
RefreshAfsOrderStatusAccess(jxcontext.AdminCtx)
|
RefreshAfsOrderStatusAccess(jxcontext.AdminCtx)
|
||||||
|
//刷新京东商城订单结算价
|
||||||
|
orderman.RefreshJdShopOrdersEarningPrice(jxcontext.AdminCtx, utils.Time2Str(time.Now().AddDate(0, 0, -2)), utils.Time2Str(time.Now()))
|
||||||
|
//刷新门店分组管理
|
||||||
|
cms.RefreshStoreBind(jxcontext.AdminCtx)
|
||||||
|
//刷新京东会员
|
||||||
|
report.RefreshJDMembers(jxcontext.AdminCtx)
|
||||||
}
|
}
|
||||||
|
|
||||||
func refreshPointOrderNewEarningPrice() {
|
func refreshPointOrderNewEarningPrice() {
|
||||||
|
|||||||
@@ -339,6 +339,9 @@ func (c *StoreSkuController) UpdateStoresSkusSale() {
|
|||||||
// @Param skuNameIDs query string false "Skuname ID列表"
|
// @Param skuNameIDs query string false "Skuname ID列表"
|
||||||
// @Param fromTime query string false "开始时间"
|
// @Param fromTime query string false "开始时间"
|
||||||
// @Param toTime query string false "结束时间"
|
// @Param toTime query string false "结束时间"
|
||||||
|
// @Param saleCountBegin query string false "销量begin"
|
||||||
|
// @Param saleCountEnd query string false "销量end"
|
||||||
|
// @Param sortType query int false ""
|
||||||
// @Param offset query int false "门店列表起始序号(以0开始,缺省为0)"
|
// @Param offset query int false "门店列表起始序号(以0开始,缺省为0)"
|
||||||
// @Param pageSize query int false "门店列表页大小(缺省为50,-1表示全部)"
|
// @Param pageSize query int false "门店列表页大小(缺省为50,-1表示全部)"
|
||||||
// @Success 200 {object} controllers.CallResult
|
// @Success 200 {object} controllers.CallResult
|
||||||
|
|||||||
Reference in New Issue
Block a user