| | |
| | | using System.Text; |
| | | using Gs.Entity.BaseInfo; |
| | | using Gs.Sys.Models; |
| | | using Gs.Toolbox; |
| | | using Gs.Toolbox.ApiCore.Abstract.Mvc; |
| | | using Gs.Toolbox.ApiCore.Common.Mvc; |
| | | using Gs.Toolbox.ApiCore.Group; |
| | | using Microsoft.AspNetCore.Mvc; |
| | | using System.Text; |
| | | |
| | | namespace Gs.Sys.Services; |
| | | |
| | |
| | | var _sbBy = |
| | | new StringBuilder(query.sortName + " " + query.sortOrder); |
| | | var totalCount = 0; |
| | | var itemsList = Db.Queryable<SysLogOperation>() |
| | | var itemsList = Db.Queryable<SysLogOperation>("a") |
| | | .Select((a) => new SysLogOperation |
| | | { |
| | | isRed = ((a.IsErp == true && a.IsSuccess == false) ? 1 : 0), |
| | | isErpDetail = (a.IsErp == true ? (a.IsSuccess == true ? "1:发送成功" : "0:发送失败") : "2:不需要发送"), |
| | | }, true) |
| | | .Where(_sbWhere.ToString()) |
| | | .OrderBy(_sbBy.ToString()) |
| | | .ToPageList(query.currentPage, query.everyPageSize,ref totalCount); |
| | | .ToPageList(query.currentPage, query.everyPageSize, ref totalCount); |
| | | pageList = new PageList<SysLogOperation>(itemsList, totalCount, |
| | | query.everyPageSize); |
| | | return ReturnDto<PageList<SysLogOperation>>.QuickReturn(pageList, |