| 
					
				 | 
			
			
				@@ -69,8 +69,6 @@ func (a *RuleChain) Update(ruleChain *models.RuleChain) error { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 // UpdateChainRoot 设置规则链 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 func (a *RuleChain) UpdateChainRoot(vendorId, id string, isRoot int) (data models.RuleChain, err error) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	err = a.db.Model(&data).Where("vendor_id = ? and record_id = ?", vendorId, id). 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		Update(map[string]interface{}{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			"root": isRoot, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		}).Error 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		Update("root", isRoot).Error 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 |