fix:根據niagara更新device_item is_show_history SQL statment 補遺
This commit is contained in:
		
							parent
							
								
									3f718bb228
								
							
						
					
					
						commit
						c96f184847
					
				@ -655,7 +655,8 @@ namespace Repository.BackendRepository.Implement
 | 
			
		||||
                        StringBuilder sb = new StringBuilder();
 | 
			
		||||
                        //先全部關閉
 | 
			
		||||
                        sb.Append("update device_item set is_show_history=0;");
 | 
			
		||||
                        sb.Append("update device_item set is_show_history= 1" +
 | 
			
		||||
                        sb.Append("update device_item set is_show_history = 1 " +
 | 
			
		||||
                            "WHERE(device_system_tag, device_name_tag, points) IN " +
 | 
			
		||||
                            "(select  distinct  device_system_tag, device_name_tag, device_point_name From import_niagara_item);");
 | 
			
		||||
                        await conn.ExecuteAsync(sb.ToString());
 | 
			
		||||
                    }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user