Explorar el Código

暂时还原一部分代码

MaiXinRong hace 1 año
padre
commit
40d20fd1eb
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  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]);
         }
     }