/// <summary> /// 根据编号获取数据 /// </summary> public async Task <DataTypeOutputDto> GetDetailById(string id) { try { var query = await _IDataTypeRepository.GetAsync(id); var result = query.MapTo <DataTypeOutputDto>(); return(result); } catch (Exception ex) { throw new Exception(ex.Message); } }