Browse Source

起扣金额计算调整

MaiXinRong 4 years ago
parent
commit
7d7929f8ff
1 changed files with 5 additions and 7 deletions
  1. 5 7
      app/service/stage_pay.js

+ 5 - 7
app/service/stage_pay.js

@@ -235,13 +235,11 @@ module.exports = app => {
                         ? sp.start_stage_order
                         : (this.ctx.helper.checkZero(sp.tp) ? null : stage.order),
                 });
-                if (stage.order === 1 || sp.csorder >= stage.order) {
-                    srUpdate.push({
-                        id: sp.pid,
-                        sprice: sp.sprice,
-                        rprice: sp.rprice,
-                    });
-                }
+                srUpdate.push({
+                    id: sp.pid,
+                    sprice: sp.sprice,
+                    rprice: sp.rprice,
+                });
             }
             await transaction.updateRows(this.tableName, update);
             if (srUpdate.length > 0) {