作者 tangxvhui

修复一些bug

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