 
   #改变issue的状态
   changeStatus: (req, res, next)->
-    issue_id = req.params.id
+    issue_id = req.params.issue_id
     status = req.body.status
 
     data = {


    super cond, options, cb

module.exports = Issue

    #选项
    options =
      fields: (query)->
        query.select query.knex.raw('*, (SELECT realname FROM member WHERE member.id = issue.creator) AS realname')
      #在查询之前，对query再处理
      beforeQuery: (query)->
        query.limit data.limit || 10
        query.offset data.offset || 0
