zhangxiaofeng 4 months ago
commit df776dea5b

@ -18,7 +18,7 @@ public interface IClientCommonService
/// 根据五字码获取港口信息-客户端 /// 根据五字码获取港口信息-客户端
/// </summary> /// </summary>
/// <returns></returns> /// <returns></returns>
public Task<DataResult<CodePortInfoRes>> GetClientPortSelectList(string queryKey = ""); public Task<DataResult<CodePortInfoRes>> GetClientPortInfoByCode(string queryKey = "");
/// <summary> /// <summary>
/// 获取航线操作员列表 /// 获取航线操作员列表
/// </summary> /// </summary>
@ -28,7 +28,7 @@ public interface IClientCommonService
/// 获取委托单位下拉列表 /// 获取委托单位下拉列表
/// </summary> /// </summary>
/// <returns></returns> /// <returns></returns>
public Task<DataResult<List<ControllerClientRes>>> GetControllerClientList(string queryKey = ""); public Task<DataResult<List<ControllerClientRes>>> GetControllerClientListByKey(string queryKey = "");
/// <summary> /// <summary>
/// 获取船公司下拉列表 /// 获取船公司下拉列表
/// </summary> /// </summary>

@ -52,7 +52,7 @@ public class ClientCommonService : IClientCommonService
/// 根据五字码获取港口信息-客户端 /// 根据五字码获取港口信息-客户端
/// </summary> /// </summary>
/// <returns></returns> /// <returns></returns>
public async Task<DataResult<CodePortInfoRes>> GetClientPortSelectList(string queryKey = "") public async Task<DataResult<CodePortInfoRes>> GetClientPortInfoByCode(string queryKey = "")
{ {
var tenantDb = saasService.GetBizDbScopeById(user.TenantId); var tenantDb = saasService.GetBizDbScopeById(user.TenantId);
var data = await tenantDb.Queryable<CodePort>() var data = await tenantDb.Queryable<CodePort>()
@ -80,7 +80,7 @@ public class ClientCommonService : IClientCommonService
/// 获取委托单位下拉列表 /// 获取委托单位下拉列表
/// </summary> /// </summary>
/// <returns></returns> /// <returns></returns>
public async Task<DataResult<List<ControllerClientRes>>> GetControllerClientList(string queryKey = "") public async Task<DataResult<List<ControllerClientRes>>> GetControllerClientListByKey(string queryKey = "")
{ {
var tenantDb = saasService.GetBizDbScopeById(user.TenantId); var tenantDb = saasService.GetBizDbScopeById(user.TenantId);
var data = await tenantDb.Queryable<InfoClient>() var data = await tenantDb.Queryable<InfoClient>()

@ -34,10 +34,10 @@ public class ClientCommonController : ApiController
/// <param name="queryKey">港口五字码</param> /// <param name="queryKey">港口五字码</param>
/// <returns></returns> /// <returns></returns>
[HttpGet] [HttpGet]
[Route("GetClientPortSelectList")] [Route("GetClientPortInfoByCode")]
public async Task<DataResult<CodePortInfoRes>> GetClientPortSelectList([FromQuery] string queryKey) public async Task<DataResult<CodePortInfoRes>> GetClientPortInfoByCode([FromQuery] string queryKey)
{ {
var res = await _invokeService.GetClientPortSelectList(queryKey); var res = await _invokeService.GetClientPortInfoByCode(queryKey);
return res; return res;
} }
/// <summary> /// <summary>
@ -58,10 +58,10 @@ public class ClientCommonController : ApiController
/// <param name="queryKey">委托单位代码或中文名称</param> /// <param name="queryKey">委托单位代码或中文名称</param>
/// <returns></returns> /// <returns></returns>
[HttpGet] [HttpGet]
[Route("GetControllerClientList")] [Route("GetControllerClientListByKey")]
public async Task<DataResult<List<ControllerClientRes>>> GetControllerClientList([FromQuery] string queryKey) public async Task<DataResult<List<ControllerClientRes>>> GetControllerClientListByKey([FromQuery] string queryKey)
{ {
var res = await _invokeService.GetControllerClientList(queryKey); var res = await _invokeService.GetControllerClientListByKey(queryKey);
return res; return res;
} }
/// <summary> /// <summary>

Loading…
Cancel
Save