記錄Nodejs異步碰到的問題 需要先將訂單id查出,再根據訂單id查詢訂單詳情 public async queryOrder() { const sql = `select id, total from tbl_orderlines`; const res = await this.app.mysql.query(sql); const { ctx } = this;