海运出口修改

usertest
cjy 3 months ago
parent 8e065174c9
commit 1299889e6d

@ -35,7 +35,7 @@ public interface ISeaExportService
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
Task<DataResult<SeaExportRes>> GetSeaExportInfo(string id);
DataResult<SeaExportRes> GetSeaExportInfo(string id);
/// <summary>

@ -790,10 +790,10 @@ public partial class SeaExportService : ISeaExportService
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
public async Task<DataResult<SeaExportRes>> GetSeaExportInfo(string id)
public DataResult<SeaExportRes> GetSeaExportInfo(string id)
{
var tenantDb = saasService.GetBizDbScopeById(user.TenantId);
var data = await tenantDb.Queryable<SeaExport>()
var data = tenantDb.Queryable<SeaExport>()
.ClearFilter(typeof(IOrgId))
.Where(a => a.Id == long.Parse(id))
.Select<SeaExportRes>()
@ -807,8 +807,8 @@ public partial class SeaExportService : ISeaExportService
it.CtnInfo = await tenantDb.Queryable<OpCtn>().ClearFilter(typeof(IOrgId)).Where(x => x.BSNO == it.Id.ToString()).Select<OpCtnRes>().ToListAsync();
it.CtnPriceInfo = await tenantDb.Queryable<BusinessCtnPrice>().Where(x => x.BusinessId == it.Id).Select<BusinessCtnPriceRes>().ToListAsync();
})
.FirstAsync();
return await Task.FromResult(DataResult<SeaExportRes>.Success(data, MultiLanguageConst.DataQuerySuccess));
.First();
return DataResult<SeaExportRes>.Success(data, MultiLanguageConst.DataQuerySuccess);
}
/// <summary>
/// 批量更新

@ -95,9 +95,9 @@ public class SeaExportController : ApiController
/// <returns></returns>
[HttpGet]
[Route("GetSeaExportInfo")]
public async Task<DataResult<SeaExportRes>> GetSeaExportInfo([FromQuery] string id)
public DataResult<SeaExportRes> GetSeaExportInfo([FromQuery] string id)
{
var res = await _invokeService.GetSeaExportInfo(id);
var res = _invokeService.GetSeaExportInfo(id);
return res;
}

Loading…
Cancel
Save