Explorar el Código

一卡通流水 排序;超级管理员查看一卡通流水

临城职教中职
ndbs hace 2 años
padre
commit
1a30ef6ca5
Se han modificado 2 ficheros con 13 adiciones y 4 borrados
  1. +1
    -0
      Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/MealCardRunTabApi.cs
  2. +12
    -4
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/MealCardRunTab/MealCardRunTabService.cs

+ 1
- 0
Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/MealCardRunTabApi.cs Ver fichero

@@ -48,6 +48,7 @@ namespace Learun.Application.WebApi
{ {
ReqPageParam parameter = this.GetReqData<ReqPageParam>(); ReqPageParam parameter = this.GetReqData<ReqPageParam>();
var data = mealCardRunTabIBLL.GetPageList(parameter.pagination, parameter.queryJson); var data = mealCardRunTabIBLL.GetPageList(parameter.pagination, parameter.queryJson);
data = data.OrderByDescending(x => x.centralTm);
var jsonData = new var jsonData = new
{ {
rows = data, rows = data,


+ 12
- 4
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/MealCardRunTab/MealCardRunTabService.cs Ver fichero

@@ -164,11 +164,19 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
} }
if (!queryParam["accountName"].IsEmpty()) if (!queryParam["accountName"].IsEmpty())
{ {
var IsPhone = queryParam["IsPhone"].ToString();
if (IsPhone == "0")
var IsPhone = "";
if (!queryParam["IsPhone"].IsEmpty())
{ {
dp.Add("accountName", queryParam["accountName"].ToString(), DbType.String);
strSql.Append(" AND t.accountName = @accountName ");
IsPhone = queryParam["IsPhone"].ToString();
if (IsPhone == "0")
{
var accountName = queryParam["accountName"].ToString();
if (accountName != "超级管理员")
{
dp.Add("accountName", queryParam["accountName"].ToString(), DbType.String);
strSql.Append(" AND t.accountName = @accountName ");
}
}
} }
else else
{ {


Cargando…
Cancelar
Guardar