From c4c033953205339f16cbdf08a83fd55f6c1fd99f Mon Sep 17 00:00:00 2001 From: ndbs Date: Wed, 4 Jan 2023 14:04:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E8=B5=84=E6=9D=A1=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E6=9D=A1=E4=BB=B6=E6=97=A0=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../WageSchedule/WageScheduleService.cs | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/WageSchedule/WageScheduleService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/WageSchedule/WageScheduleService.cs index fc76d6aed..3b93a4a88 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/WageSchedule/WageScheduleService.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/WageSchedule/WageScheduleService.cs @@ -88,8 +88,18 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration } if (!queryParam["PeopleType"].IsEmpty()) { - dp.Add("PeopleType", "%" + queryParam["PeopleType"].ToString() + "%", DbType.String); - strSql.Append(" AND t.PeopleType like @PeopleType "); + dp.Add("PeopleType", queryParam["PeopleType"].ToString(), DbType.String); + strSql.Append(" AND t.PeopleType = @PeopleType "); + } + if (!queryParam["PayGrade"].IsEmpty()) + { + dp.Add("PayGrade", queryParam["PayGrade"].ToString(), DbType.String); + strSql.Append(" AND t.PayGrade = @PayGrade "); + } + if (!queryParam["PostType"].IsEmpty()) + { + dp.Add("PostType", queryParam["PostType"].ToString(), DbType.String); + strSql.Append(" AND t.PostType = @PostType "); } if (!queryParam["WageCardNo"].IsEmpty()) {