浏览代码

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

临城职教中职
ndbs 2 年前
父节点
当前提交
1a30ef6ca5
共有 2 个文件被更改,包括 13 次插入4 次删除
  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 查看文件

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


+ 12
- 4
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/MealCardRunTab/MealCardRunTabService.cs 查看文件

@@ -164,11 +164,19 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
}
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
{


正在加载...
取消
保存