作者 tangxvhui

修复一些bug

@@ -729,9 +729,8 @@ func (d *TaskDao) CountTaskIgnore(param ListTaskCondition) (int, error) { @@ -729,9 +729,8 @@ func (d *TaskDao) CountTaskIgnore(param ListTaskCondition) (int, error) {
729 condition = append(condition, param.LevelName) 729 condition = append(condition, param.LevelName)
730 whereSql += ` and task.level_name = ? ` 730 whereSql += ` and task.level_name = ? `
731 } 731 }
732 - condition = append(condition, param.Limit, param.Offset)  
733 - sqlStr = sqlStr + whereSql + ` limit ? offset ? `  
734 732
  733 + sqlStr = sqlStr + whereSql
735 result := 0 734 result := 0
736 tx := d.transactionContext.PgTx 735 tx := d.transactionContext.PgTx
737 _, err := tx.Query(pg.Scan(&result), sqlStr, condition...) 736 _, err := tx.Query(pg.Scan(&result), sqlStr, condition...)
@@ -30,7 +30,7 @@ func init() { @@ -30,7 +30,7 @@ func init() {
30 web.NSCtrlPost("/task_record/list", (*controllers.TaskController).ListTaskRecord), 30 web.NSCtrlPost("/task_record/list", (*controllers.TaskController).ListTaskRecord),
31 web.NSCtrlPost("/info", (*controllers.TaskController).GetTaskInfo), 31 web.NSCtrlPost("/info", (*controllers.TaskController).GetTaskInfo),
32 web.NSCtrlPost("/ignore/list", (*controllers.TaskController).ListTaskIgnore), 32 web.NSCtrlPost("/ignore/list", (*controllers.TaskController).ListTaskIgnore),
33 - web.NSCtrlPost("/ignore/cancle", (*controllers.TaskController).CancelIgnore), 33 + web.NSCtrlPost("/ignore/cancel", (*controllers.TaskController).CancelIgnore),
34 ) 34 )
35 web.AddNamespace(taskFontNS) 35 web.AddNamespace(taskFontNS)
36 t := web.NewNamespace("/test/task", 36 t := web.NewNamespace("/test/task",