job
This commit is contained in:
@@ -506,7 +506,7 @@ func RefreshJobStatus(ctx *jxcontext.Context) (err error) {
|
||||
return
|
||||
}
|
||||
for _, job := range jobs {
|
||||
if time.Now().Sub(job.FinishedAt) >= 0 {
|
||||
if time.Now().Sub(*job.FinishedAt) >= 0 {
|
||||
job.Status = model.JobStatusOverdue
|
||||
dao.UpdateEntity(db, job, "Status")
|
||||
}
|
||||
|
||||
@@ -49,7 +49,7 @@ type Job struct {
|
||||
Lat int `json:"lat"` //乘了10的6次方
|
||||
JobLimitAt int `json:"jobLimitAt"` //任务限时完成小时数
|
||||
AuditLimitAt int `json:"auditLimitAt"` //任务审核限时小时数
|
||||
FinishedAt time.Time `json:"finishedAt"` //接单截止日期
|
||||
FinishedAt *time.Time `orm:"null" json:"finishedAt"` //接单截止日期
|
||||
LimitCountType int `json:"limitCountType"` //任务限次类型,1为每人一次,2为每人每天一次,3为每人每周一次,4为不限制
|
||||
VendorID int `orm:"column(vendor_id)" json:"vendorID"` //推广平台
|
||||
StoreURL string `orm:"column(store_url)" json:"storeURL"` //门店链接
|
||||
|
||||
Reference in New Issue
Block a user