elseif(DB.QueryFirstOrDefault<int>($"select count(id) from dc_component_form where code = @code {(dto.Id>0?"and id <> @id":string.Empty)}",new{id=dto.Id,code=dto.Code})>0)
elseif(DB.QueryFirstOrDefault<int>($"select count(id) from dc_component_table where code = @code {(dto.Id>0?"and id <> @id":string.Empty)}",new{id=dto.Id,code=dto.Code})>0)