Merge branch 'feat-hjj-AutoManuallyConfirmWorkTask'
This commit is contained in:
commit
d4cacd0996
@ -537,13 +537,13 @@ func ConfirmWork(req *bundle.ConfirmWorkReq) error {
|
||||
}
|
||||
|
||||
func GetWaitConfirmWorkList() (data []model.CastWork, err error) {
|
||||
twentyFourHoursAgo := time.Now().Add(-48 * time.Hour).Format("2006-01-02 15:04:05")
|
||||
twentyFourHoursAgo := time.Now().Add(-24 * time.Hour).Format("2006-01-02 15:04:05")
|
||||
err = app.ModuleClients.BundleDB.Model(&model.CastWork{}).
|
||||
Where("deleted_at = 0").
|
||||
Where("status = ?", 4).
|
||||
Where("submit_time >= ?", twentyFourHoursAgo).
|
||||
Order("submit_time asc").
|
||||
Limit(60).
|
||||
Limit(10).
|
||||
Find(&data).Error
|
||||
if err != nil {
|
||||
return
|
||||
|
||||
Loading…
Reference in New Issue
Block a user