港口 往来单位 修改返回值

usertest
cjy 4 months ago
parent 0b1d629077
commit c1e6b3dffc

@ -26,4 +26,8 @@ public class CodePortSelectRes
/// </summary>
public string EdiCode { get; set; }
/// <summary>
/// 助记码
/// </summary>
public string PinYinCode { get; set; }
}

@ -38,6 +38,11 @@ public class ClientSelectRes
/// </summary>
public List<ClientParamRes> ClientParams { get; set; }
/// <summary>
/// 助记码
/// </summary>
public string PinYinCode { get; set; }
}
/// <summary>

@ -1079,6 +1079,7 @@ public class ClientCommonService : IClientCommonService
ShortName = a.ShortName,
EnShortName = a.EnShortName,
BLContent = a.BLContent,
PinYinCode = a.ShortName + "(" + a.CodeName + ")"
}
).Take(20).WithCache(SqlSugarCacheConst.InfoClient).ToListAsync();
return await Task.FromResult(DataResult<List<ClientSelectRes>>.Success("获取数据成功!", data, MultiLanguageConst.DataQuerySuccess));

@ -1080,7 +1080,10 @@ public class CommonService : ICommonService
var list = await tenantDb.Queryable<CodePort>()
.Where(x => x.Status == StatusEnum.Enable)
.WhereIF(!string.IsNullOrEmpty(queryKey), x => x.PortName.Contains(queryKey) || x.CnName.Contains(queryKey))
.Select<CodePortSelectRes>()
.Select(x => new CodePortSelectRes()
{
PinYinCode = x.CnName + "(" + x.PortName + ")",
},true)
.Take(20)
.WithCache(SqlSugarCacheConst.Port)
.ToListAsync();

Loading…
Cancel
Save