package archive import ( "context" xsql "database/sql" "fmt" "strings" "time" "go-common/app/admin/main/videoup/model/archive" "go-common/library/database/sql" "go-common/library/log" "go-common/library/xstr" ) const ( _upTaskByIDSQL = "UPDATE task_dispatch SET %s WHERE id=?" _upGtimeByIDSQL = "UPDATE task_dispatch SET gtime=? WHERE id=?" _releaseByIDSQL = "UPDATE task_dispatch SET subject=0,state=0,uid=0,gtime='0000-00-00 00:00:00' WHERE id=?" _releaseMtimeSQL = "UPDATE task_dispatch SET subject=0,state=0,uid=0,gtime='0000-00-00 00:00:00' WHERE id IN (%s) AND mtime<=?" _timeOutTaskSQL = "SELECT id,cid,subject,mtime FROM task_dispatch WHERE (state=1 AND mtime0 AND ctime