|
@@ -115,13 +115,14 @@ module.exports = app => {
|
|
|
// 更新父项isLeaf
|
|
|
if (!lastChild) {
|
|
|
await this.transaction.update(this.tableName, {
|
|
|
+ id: select.id,
|
|
|
is_leaf: false,
|
|
|
unit_price: null,
|
|
|
quantity: null,
|
|
|
total_price: null,
|
|
|
deal_qty: null,
|
|
|
deal_tp: null,
|
|
|
- }, {tender_id: rid, id: select.id});
|
|
|
+ });
|
|
|
}
|
|
|
// 数据库创建新增节点数据
|
|
|
await this.transaction.insert(this.tableName, bills);
|