刷新物料订单的标志,每周刷新一次,每周只能申请一次
This commit is contained in:
@@ -3083,3 +3083,17 @@ func DisabledStoreWithoutVendor(ctx *jxcontext.Context, isContinueWhenError, isA
|
||||
}
|
||||
return hint, err
|
||||
}
|
||||
|
||||
func CleanStoreIsBoughtMatter(ctx *jxcontext.Context) (err error) {
|
||||
//每周一凌晨1点清空
|
||||
if int(time.Now().Weekday()) != 1 {
|
||||
return err
|
||||
}
|
||||
db := dao.GetDB()
|
||||
sql := `
|
||||
UPDATE store SET is_bought_matter = ?
|
||||
`
|
||||
sqlParam := []interface{}{model.NO}
|
||||
_, err = dao.ExecuteSQL(db, sql, sqlParam)
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user