瀏覽代碼

暂时还原一部分代码

MaiXinRong 1 年之前
父節點
當前提交
40d20fd1eb
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      app/service/stage_pay.js

+ 2 - 1
app/service/stage_pay.js

@@ -497,7 +497,8 @@ module.exports = app => {
         }
 
         async cacheOrder(stage, transaction) {
-            const sql = `UPDATE ${this.tableName} sp LEFT JOIN ${this.ctx.service.pay.tableName} p ON sp.pid = p.id SET sp.porder = p.\`order\` Where sp.sid = ? AND p.valid`;
+            //const sql = `UPDATE ${this.tableName} sp LEFT JOIN ${this.ctx.service.pay.tableName} p ON sp.pid = p.id SET sp.porder = p.\`order\` Where sp.sid = ? AND p.valid`;
+            const sql = `UPDATE ${this.tableName} sp LEFT JOIN ${this.ctx.service.pay.tableName} p ON sp.pid = p.id SET sp.porder = p.\`order\` Where sp.sid = ?`;
             await transaction.query(sql, [stage.id]);
         }
     }