|
|
@ -1081,7 +1081,7 @@ public class CommonService : ICommonService
|
|
|
|
var tenantDb = saasService.GetBizDbScopeById(user.TenantId);
|
|
|
|
var tenantDb = saasService.GetBizDbScopeById(user.TenantId);
|
|
|
|
var list = await tenantDb.Queryable<CodePort>()
|
|
|
|
var list = await tenantDb.Queryable<CodePort>()
|
|
|
|
.Where(x => x.Status == StatusEnum.Enable)
|
|
|
|
.Where(x => x.Status == StatusEnum.Enable)
|
|
|
|
.WhereIF(!string.IsNullOrEmpty(queryKey), x => x.PortName.Contains(queryKey) || x.CnName.Contains(queryKey))
|
|
|
|
.WhereIF(!string.IsNullOrEmpty(queryKey), x => x.PortName.Contains(queryKey) || x.CnName.Contains(queryKey) || x.EdiCode.Contains(queryKey))
|
|
|
|
.Select(x => new CodePortSelectRes()
|
|
|
|
.Select(x => new CodePortSelectRes()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
PinYinCode = !String.IsNullOrEmpty(x.EdiCode) ? x.EdiCode + "/" + x.PortName : x.PortName,
|
|
|
|
PinYinCode = !String.IsNullOrEmpty(x.EdiCode) ? x.EdiCode + "/" + x.PortName : x.PortName,
|
|
|
|