From e4690fca932b352927af3d186ed2a4767f017e79 Mon Sep 17 00:00:00 2001
From: wxw <Administrator@DESKTOP-5BIMHQ3>
Date: 星期日, 17 八月 2025 15:02:37 +0800
Subject: [PATCH] 修改问题
---
Admin.NET/WCS.Application/Service/WcsPlc/WcsPlcService.cs | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/Admin.NET/WCS.Application/Service/WcsPlc/WcsPlcService.cs b/Admin.NET/WCS.Application/Service/WcsPlc/WcsPlcService.cs
index e19e4e6..8c9f2a6 100644
--- a/Admin.NET/WCS.Application/Service/WcsPlc/WcsPlcService.cs
+++ b/Admin.NET/WCS.Application/Service/WcsPlc/WcsPlcService.cs
@@ -27,7 +27,6 @@
[DisplayName("鍒嗛〉鏌ヨPLC")]
public async Task<SqlSugarPagedList<WcsPlcOutput>> Page(PageWcsPlcInput input)
{
-
input.SearchKey = input.SearchKey?.Trim();
var query = _wcsPlcRep.AsQueryable()
.WhereIF(!string.IsNullOrEmpty(input.SearchKey), u =>
@@ -38,7 +37,7 @@
.WhereIF(input.Type.HasValue, u => u.Type == input.Type)
.WhereIF(input.Enable.HasValue, u => u.Enable == input.Enable)
.Select<WcsPlcOutput>();
- return await query.OrderBuilder(input).ToPagedListAsync(input.Page, input.PageSize);
+ return await query.OrderBuilder(input,input.Type.ToString()).ToPagedListAsync(input.Page, input.PageSize);
}
/// <summary>
--
Gitblit v1.8.0