修改港口查询 添加五字码检索

usertest
cjy 3 months ago
parent 2e47b255b7
commit c03b6e8ea1

@ -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,

Loading…
Cancel
Save