海运出口修改

usertest
cjy 3 months ago
parent 8e065174c9
commit 1299889e6d

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

@ -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>
/// 批量更新 /// 批量更新

@ -95,9 +95,9 @@ public class SeaExportController : ApiController
/// <returns></returns> /// <returns></returns>
[HttpGet] [HttpGet]
[Route("GetSeaExportInfo")] [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; return res;
} }

Loading…
Cancel
Save