| 
					
				 | 
			
			
				@@ -652,7 +652,7 @@ module.exports = app => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				          * @returns {Promise<*>} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				          */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         async addStdNode(tenderId, selectId, stdData) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            const newData = this.filterStdData(stdData); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            const newData = this._filterStdData(stdData); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             const result = await this.addNode(tenderId, selectId, newData); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             return result; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -797,12 +797,14 @@ module.exports = app => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             if (deleteData.length > 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 updateData = await this.getNextsData(tenderId, selectData.ledger_pid, selectData.order - 1); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 updateData = updateData ? updateData : []; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                const updateData1 = await this.getDataByNodeId(tenderId, selectData.ledger_pid); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                if (this.ctx.helper.checkZero(selectData.total_price)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    const updateData2 = await this.getFullLevelDataByFullPath(tenderId, updateData1.full_path); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    updateData = updateData.concat(updateData2); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                } else if (updateData1.is_leaf !== parentData.is_leaf) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    updateData.push(updateData1); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                if (selectData.ledger_pid !== rootId) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    const updateData1 = await this.getDataByNodeId(tenderId, selectData.ledger_pid); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    if (this.ctx.helper.checkZero(selectData.total_price)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        const updateData2 = await this.getFullLevelDataByFullPath(tenderId, updateData1.full_path); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        updateData = updateData.concat(updateData2); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    } else if (updateData1.is_leaf !== parentData.is_leaf) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        updateData.push(updateData1); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             return { delete: deleteData, update: updateData }; 
			 |