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