Przeglądaj źródła

app2.0-一卡通接口

临城职教中职
ndbs 2 lat temu
rodzic
commit
1c0a67ed46
1 zmienionych plików z 11 dodań i 2 usunięć
  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 Wyświetl plik

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


Ładowanie…
Anuluj
Zapisz