|
|
|
@ -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();
|
|
|
|
|