From 1c0a67ed46ae08a83e56631242091af256aefeb2 Mon Sep 17 00:00:00 2001 From: ndbs Date: Mon, 15 Aug 2022 12:11:32 +0800 Subject: [PATCH] =?UTF-8?q?app2.0-=E4=B8=80=E5=8D=A1=E9=80=9A=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../MealCardRunTab/MealCardRunTabService.cs | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/MealCardRunTab/MealCardRunTabService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/MealCardRunTab/MealCardRunTabService.cs index 80808978d..407db1d50 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/MealCardRunTab/MealCardRunTabService.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/MealCardRunTab/MealCardRunTabService.cs @@ -164,8 +164,17 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration } if (!queryParam["accountName"].IsEmpty()) { - dp.Add("accountName", "%" + queryParam["accountName"].ToString() + "%", DbType.String); - strSql.Append(" AND t.accountName Like @accountName "); + var IsPhone = queryParam["accountName"].ToString(); + if (IsPhone == "0") + { + dp.Add("accountName", queryParam["accountName"].ToString(), DbType.String); + strSql.Append(" AND t.accountName = @accountName "); + } + else + { + dp.Add("accountName", "%" + queryParam["accountName"].ToString() + "%", DbType.String); + strSql.Append(" AND t.accountName Like @accountName "); + } } if (!queryParam["depName"].IsEmpty()) {