Quellcode durchsuchen

搜索预扣款按照机具号搜搜

lcl vor 1 Jahr
Ursprung
Commit
41d44cf2e2

+ 2 - 2
Areas/Admin/Controllers/MainServer/ToChargeBackRecordController.cs

@@ -72,9 +72,9 @@ namespace MySystem.Areas.Admin.Controllers
             {
                 condition += " and UserId in (select UserId from UserForMakerCode where MakerCode='" + UserIdMakerCode + "')";
             }
-            if (!string.IsNullOrEmpty(PosSn))
+            if (!string.IsNullOrEmpty(value: PosSn))
             {
-                condition += " and Remark=" + PosSn;
+                condition += " and (Remark like '%" + PosSn + "%' or Field1='" + PosSn + "')";
             }
             //待扣类型
             if (!string.IsNullOrEmpty(ChargeTypeSelect))