瀏覽代碼

批量插入问题

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

+ 2 - 2
app/service/ledger.js

@@ -593,10 +593,10 @@ module.exports = app => {
                     id: this.uuid.v4(),
                     tender_id: tenderId,
                     ledger_id: maxId + i + 1,
-                    ledger_pid: selectData.ledger_id,
+                    ledger_pid: selectData.ledger_pid,
                     is_leaf: true,
                     order: order + i + 1,
-                    level: selectData.level + 1,
+                    level: selectData.level,
                     b_code: data[i].b_code,
                     name: data[i].name,
                     unit: data[i].unit,