浏览代码

修复变更计价统计bug

ellisran 9 月之前
父节点
当前提交
b0403f75c1
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      app/service/change_audit_list.js

+ 2 - 2
app/service/change_audit_list.js

@@ -308,7 +308,7 @@ module.exports = app => {
          * @param {int} order 期数
          * @return {void}
          */
-        async save(data, order) {
+        async save(data) {
             if (!this.ctx.tender || !this.ctx.change) {
                 throw '数据错误';
             }
@@ -481,7 +481,7 @@ module.exports = app => {
             // const sqlParam = [this.tableName, this.change.cid];
             // const tp = await transaction.queryOne(sql, sqlParam);
             // 防止小数位不精确,采用取值计算
-            const sql = 'SELECT unit_price, spamount FROM ?? WHERE cid = ?';
+            const sql = 'SELECT unit_price, spamount, is_valuation FROM ?? WHERE cid = ?';
             const sqlParam = [this.tableName, this.ctx.change.cid];
             const changeList = await transaction.query(sql, sqlParam);
             let total_price = 0;