Browse Source

app2.0-一卡通接口

临城职教中职
ndbs 2 years ago
parent
commit
1c0a67ed46
1 changed files with 11 additions and 2 deletions
  1. +11
    -2
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/MealCardRunTab/MealCardRunTabService.cs

+ 11
- 2
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/MealCardRunTab/MealCardRunTabService.cs View File

@@ -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())
{


Loading…
Cancel
Save