62 lines
2.2 KiB
C#
62 lines
2.2 KiB
C#
|
|
using System;
|
|||
|
|
using System.Collections.Generic;
|
|||
|
|
using System.Linq;
|
|||
|
|
using System.Text;
|
|||
|
|
using System.Threading.Tasks;
|
|||
|
|
using MyCode.Project.Domain.Message.Request.LxmZHMDReport;
|
|||
|
|
using MyCode.Project.Domain.Message.Response.LxmZHMDReport;
|
|||
|
|
using MyCode.Project.Infrastructure;
|
|||
|
|
using MyCode.Project.Infrastructure.Common;
|
|||
|
|
using MyCode.Project.Infrastructure.Enumeration;
|
|||
|
|
using MyCode.Project.Services.IServices;
|
|||
|
|
|
|||
|
|
namespace MyCode.Project.Services.BLL.ReportExport
|
|||
|
|
{
|
|||
|
|
public class OldMemberAccountBookLogExport : BaseExport
|
|||
|
|
{
|
|||
|
|
#region 初始化
|
|||
|
|
private readonly ILxmReport2023Service _reportService;
|
|||
|
|
public OldMemberAccountBookLogExport(ILxmReport2023Service reportService)
|
|||
|
|
{
|
|||
|
|
_reportService = reportService;
|
|||
|
|
}
|
|||
|
|
#endregion
|
|||
|
|
|
|||
|
|
#region Execute(执行)
|
|||
|
|
public override string Execute()
|
|||
|
|
{
|
|||
|
|
//类型为0是报表专用,验证客户端是否在线
|
|||
|
|
//WebSocketBLL.CheckOnline(ReportId, 0);
|
|||
|
|
var bookid = Guid.Parse(Condition.ToString());
|
|||
|
|
|
|||
|
|
var proList = _reportService.GetOldMemberAccountBookLog(bookid);
|
|||
|
|
//var resultData = new ReportCalRateResp()
|
|||
|
|
//{
|
|||
|
|
// Total = proList.TotalCount,
|
|||
|
|
// Rate = 0.01m
|
|||
|
|
//};
|
|||
|
|
|
|||
|
|
//var result = new Result()
|
|||
|
|
//{
|
|||
|
|
// Data = resultData,
|
|||
|
|
// Code = ResultCode.Success
|
|||
|
|
//};
|
|||
|
|
|
|||
|
|
//开始运算,先发送个进度0%,表明开始
|
|||
|
|
//WebSocketBLL.SendSocketMsg(ReportId, JsonHelper.ToJson(result, false, true));
|
|||
|
|
|
|||
|
|
//数组形式同一行不能出现不同实体,否则会出错和无效:同行从左往右以第一个 IEnumerableUse 当列表来源 (不支持同列多集合)
|
|||
|
|
var dataResult = new
|
|||
|
|
{
|
|||
|
|
pro = proList
|
|||
|
|
};
|
|||
|
|
base.AddExcelProcess("初始化会员余额变动明细", dataResult);
|
|||
|
|
//resultData.Rate = 0.02m;
|
|||
|
|
//result.Data = resultData;
|
|||
|
|
//WebSocketBLL.SendSocketMsg(ReportId, JsonHelper.ToJson(result, false, true));
|
|||
|
|
return base.Execute();
|
|||
|
|
}
|
|||
|
|
#endregion
|
|||
|
|
}
|
|||
|
|
}
|