368 lines
13 KiB
C#
368 lines
13 KiB
C#
using MyCode.Project.Domain.Message.Request.Report40;
|
|
using MyCode.Project.Domain.Message.Response.Report40;
|
|
using MyCode.Project.Domain.Message.Response.ReturnVisitLog;
|
|
using MyCode.Project.Infrastructure.Common;
|
|
using MyCode.Project.Services;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Web.Http;
|
|
|
|
namespace MyCode.Project.WebApi.Areas.Wechat.Controllers
|
|
{
|
|
/// <summary>
|
|
/// 2022年7月版本的门店端业绩看板报表--服务+会员页面
|
|
/// </summary>
|
|
public class ShopReport2207FuWuController : BaseWechatController
|
|
{
|
|
|
|
private IReport2207Service _report2207Service;
|
|
//private IReport40Service _report40Service;
|
|
/// <summary>
|
|
/// 初始化一个<see cref="GoodsController"/>类型的实例
|
|
/// </summary>
|
|
public ShopReport2207FuWuController(IReport2207Service report2207Service
|
|
)
|
|
{
|
|
_report2207Service = report2207Service;
|
|
//_report40Service = report40Service;
|
|
}
|
|
|
|
#region ShopFuWuTongJi(获取服务中间的统计面板数据)
|
|
/// <summary>
|
|
/// 获取服务中间的统计面板数据
|
|
/// </summary>
|
|
/// <param name="req"></param>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
public ShopFuWuTongJi2207 ShopFuWuTongJi(ShopYeJi2207Query req)
|
|
{
|
|
if (this.CurrentLogin.RoleType == Infrastructure.Enumeration.LoginRoleType.Clerk)
|
|
{
|
|
req.ClerkId = this.CurrentLogin.ClerkId;
|
|
}
|
|
return _report2207Service.ShopFuWuTongJi202207(req);
|
|
}
|
|
#endregion
|
|
|
|
#region ShopFuWuList(获取单店的服务明细)
|
|
/// <summary>
|
|
/// 获取单店的服务明细
|
|
/// </summary>
|
|
/// <param name="req"></param>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
public List<ShopFuWuList2207> ShopFuWuList(ShopYeJi2207Query req)
|
|
{
|
|
if (this.CurrentLogin.RoleType == Infrastructure.Enumeration.LoginRoleType.Clerk)
|
|
{
|
|
req.ClerkId = this.CurrentLogin.ClerkId;
|
|
}
|
|
return _report2207Service.ShopFuWuList2207(req);
|
|
}
|
|
#endregion
|
|
|
|
#region GetFuWuSheetDetail(获取会员服务明细展开的内容明细)
|
|
/// <summary>
|
|
/// 获取会员服务明细展开的内容明细
|
|
/// </summary>
|
|
/// <param name="id"></param>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
public List<TaoCanDetailResp> GetFuWuSheetDetail(Guid id)
|
|
{
|
|
return _report2207Service.GetFuWuSheetDetail2207(id);
|
|
}
|
|
#endregion
|
|
|
|
#region ShopDaKaList(获取单店的打卡统计列表)
|
|
/// <summary>
|
|
/// 获取单店的打卡统计列表
|
|
/// </summary>
|
|
/// <param name="req"></param>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
public List<ShopDaKaList2207> ShopDaKaList(ShopYeJi2207Query req)
|
|
{
|
|
if (this.CurrentLogin.RoleType == Infrastructure.Enumeration.LoginRoleType.Clerk)
|
|
{
|
|
req.ClerkId = this.CurrentLogin.ClerkId;
|
|
}
|
|
return _report2207Service.ShopDaKaList2207(req);
|
|
}
|
|
#endregion
|
|
|
|
#region ShopDaKaDetailList(获取打卡的护理明细列表)
|
|
/// <summary>
|
|
/// 获取打卡的护理明细列表
|
|
/// </summary>
|
|
/// <param name="req"></param>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
public List<ShopDaKaDetail2207> ShopDaKaDetailList(ShopDaKaDetail2207Query req)
|
|
{
|
|
|
|
return _report2207Service.ShopDaKaDetailList(req);
|
|
}
|
|
#endregion
|
|
|
|
#region shopHuiYuanTongJi(获取单店会员中间的统计面板数据)
|
|
/// <summary>
|
|
/// 获取单店会员中间的统计面板数据
|
|
/// </summary>
|
|
/// <param name="req"></param>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
public ShopHuiYuanTongJi2207 ShopHuiYuanTongJi(ShopYeJi2207Query req)
|
|
{
|
|
if (this.CurrentLogin.RoleType == Infrastructure.Enumeration.LoginRoleType.Clerk)
|
|
{
|
|
req.ClerkId = this.CurrentLogin.ClerkId;
|
|
}
|
|
return _report2207Service.ShopHuiYuanTongJi2207(req);
|
|
}
|
|
#endregion
|
|
|
|
#region ShopXiaoFeiPaiHang(获取单店消费排行榜的分页列表)
|
|
/// <summary>
|
|
/// 获取单店消费排行榜的分页列表
|
|
/// </summary>
|
|
/// <param name="req"></param>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
public PageResult<ShopXiaoFeiPaiHang2207> ShopXiaoFeiPaiHang(PagedSearch<ShopXiaoFeiPaiHangBang2207Query> req)
|
|
{
|
|
if (this.CurrentLogin.RoleType == Infrastructure.Enumeration.LoginRoleType.Clerk)
|
|
{
|
|
req.Condition.ClerkId = this.CurrentLogin.ClerkId;
|
|
}
|
|
return _report2207Service.ShopXiaoFeiPaiHang2207(req);
|
|
}
|
|
#endregion
|
|
|
|
#region ShopDaoDianList(获取单店每日到店概况的分页列表)
|
|
/// <summary>
|
|
/// 获取单店每日到店概况的分页列表
|
|
/// </summary>
|
|
/// <param name="req"></param>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
public PageResult<ShopDaoDianGaiKuang2207> ShopDaoDianList(PagedSearch<ShopYeJi2207Query> req)
|
|
{
|
|
if (this.CurrentLogin.RoleType == Infrastructure.Enumeration.LoginRoleType.Clerk)
|
|
{
|
|
req.Condition.ClerkId = this.CurrentLogin.ClerkId;
|
|
}
|
|
return _report2207Service.ShopDaoDianList2207(req);
|
|
}
|
|
#endregion
|
|
|
|
#region GetShopZiChanGaiKuang(获取单店的资产概况)
|
|
/// <summary>
|
|
/// 获取单店的资产概况
|
|
/// </summary>
|
|
/// <param name="req"></param>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
public ShopZiChanGaiKuang2207 GetShopZiChanGaiKuang(ShopZiChanGaiKuang2207Query req)
|
|
{
|
|
if (this.CurrentLogin.RoleType == Infrastructure.Enumeration.LoginRoleType.Clerk)
|
|
{
|
|
req.ClerkId = this.CurrentLogin.ClerkId;
|
|
}
|
|
return _report2207Service.GetShopZiChanGaiKuang2207(req);
|
|
}
|
|
#endregion
|
|
|
|
#region GetShopMemberTaoCan(获取单店的某类型会员的剩余套餐明细)
|
|
/// <summary>
|
|
/// 获取单店的某类型会员的剩余套餐明细
|
|
/// </summary>
|
|
/// <param name="req"></param>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
public ShopFuWuShengYu202207 GetShopMemberTaoCan(PagedSearch<ShopHuiYuanTypeTaoCan2207Query> req)
|
|
{
|
|
if (this.CurrentLogin.RoleType == Infrastructure.Enumeration.LoginRoleType.Clerk)
|
|
{
|
|
req.Condition.ClerkId = this.CurrentLogin.ClerkId;
|
|
}
|
|
var result = _report2207Service.GetShopMemberTaoCan2207(req);
|
|
return result;
|
|
}
|
|
#endregion
|
|
|
|
#region GetShopMemberTanCanDetail(获取单店的某类型会员展开的剩余服务明细)
|
|
/// <summary>
|
|
/// 获取单店的某类型会员展开的剩余服务明细
|
|
/// </summary>
|
|
/// <param name="id">MemberConsultantId</param>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
public List<TaoCanDetailResp> GetShopMemberTanCanDetail(Guid id)
|
|
{
|
|
return _report2207Service.GetShopMemberTanCanDetail2207(id);
|
|
}
|
|
#endregion
|
|
|
|
#region GetShopMemberJiFen(获取单店的会员余额/积分明细)
|
|
/// <summary>
|
|
/// 获取单店的余额/积分明细
|
|
/// </summary>
|
|
/// <param name="req"></param>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
public ShopMemberJiFen202207 GetShopMemberJiFen(PagedSearch<ShopHuiYuanTypeJiFen2207Query> req)
|
|
{
|
|
if (this.CurrentLogin.RoleType == Infrastructure.Enumeration.LoginRoleType.Clerk)
|
|
{
|
|
req.Condition.ClerkId = this.CurrentLogin.ClerkId;
|
|
}
|
|
var result = _report2207Service.GetShopMemberJiFen2207(req);
|
|
return result;
|
|
}
|
|
#endregion
|
|
|
|
#region GetGetShopMemberDengJi(获取单店的会员的等级明细)
|
|
/// <summary>
|
|
/// 获取单店的会员的等级明细
|
|
/// </summary>
|
|
/// <param name="req"></param>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
public PageResult<ShopMemberDengJiList202207> GetShopMemberDengJi(PagedSearch<ShopHuiYuanDengJi2207Query> req)
|
|
{
|
|
if (this.CurrentLogin.RoleType == Infrastructure.Enumeration.LoginRoleType.Clerk)
|
|
{
|
|
req.Condition.ClerkId = this.CurrentLogin.ClerkId;
|
|
}
|
|
return _report2207Service.GetShopMemberDengJi2207(req);
|
|
}
|
|
#endregion
|
|
|
|
#region GetLeiMuList(类目会员明细的下拉类目数组)
|
|
/// <summary>
|
|
/// 类目会员明细的下拉类目数组
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
public List<ItemDetail> GetLeiMuList()
|
|
{
|
|
List<ItemDetail> itemDetails = new List<ItemDetail>();
|
|
ItemDetail itemDetail = new ItemDetail();
|
|
itemDetail.Title = "全部";
|
|
itemDetail.ValueText = -1;
|
|
itemDetails.Add(itemDetail);
|
|
|
|
itemDetail = new ItemDetail();
|
|
itemDetail.Title = "护肤类会员";
|
|
itemDetail.ValueText = 1;
|
|
itemDetails.Add(itemDetail);
|
|
|
|
|
|
itemDetail = new ItemDetail();
|
|
itemDetail.Title = "发饰类会员";
|
|
itemDetail.ValueText = 2;
|
|
itemDetails.Add(itemDetail);
|
|
|
|
itemDetail = new ItemDetail();
|
|
itemDetail.Title = "彩妆类会员";
|
|
itemDetail.ValueText = 3;
|
|
itemDetails.Add(itemDetail);
|
|
|
|
itemDetail = new ItemDetail();
|
|
itemDetail.Title = "其他类会员";
|
|
itemDetail.ValueText = 4;
|
|
itemDetails.Add(itemDetail);
|
|
|
|
itemDetail = new ItemDetail();
|
|
itemDetail.Title = "体验套会员";
|
|
itemDetail.ValueText = 5;
|
|
itemDetails.Add(itemDetail);
|
|
|
|
return itemDetails;
|
|
}
|
|
#endregion
|
|
|
|
#region GetShopMemberLeiMu(获取单店的会员类目会员明细)
|
|
/// <summary>
|
|
/// 获取单店的会员类目会员明细
|
|
/// </summary>
|
|
/// <param name="req"></param>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
public PageResult<ShopMemberLeiMu202207> GetShopMemberLeiMu(PagedSearch<ShopHuiYuanLeiMu2207Query> req)
|
|
{
|
|
if (this.CurrentLogin.RoleType == Infrastructure.Enumeration.LoginRoleType.Clerk)
|
|
{
|
|
req.Condition.ClerkId = this.CurrentLogin.ClerkId;
|
|
}
|
|
return _report2207Service.GetShopMemberLeiMu2207(req);
|
|
}
|
|
#endregion
|
|
|
|
#region GetShopMemberLeiMuDetailList(会员类目会员明细展开的内容)
|
|
/// <summary>
|
|
/// 会员类目会员明细展开的内容
|
|
/// </summary>
|
|
/// <param name="id"></param>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
public List<ItemDetail> GetShopMemberLeiMuDetailList(Guid id)
|
|
{
|
|
return _report2207Service.GetShopMemberLeiMuDetailList(id);
|
|
}
|
|
#endregion
|
|
|
|
#region ShopMemberTiYanTaoList2207(获取单店体验套概况的分页列表)
|
|
/// <summary>
|
|
/// 获取单店体验套概况的分页列表
|
|
/// </summary>
|
|
/// <param name="req"></param>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
public PageResult<ShopMemberTiYanTao202207> ShopMemberTiYanTaoList(PagedSearch<ShopZiChanGaiKuang2207Query> req)
|
|
{
|
|
if (this.CurrentLogin.RoleType == Infrastructure.Enumeration.LoginRoleType.Clerk)
|
|
{
|
|
req.Condition.ClerkId = this.CurrentLogin.ClerkId;
|
|
}
|
|
return _report2207Service.ShopMemberTiYanTaoList2207(req);
|
|
}
|
|
#endregion
|
|
|
|
#region GetShopZiChanMingXi2207(获取单店的会员的资产明细)
|
|
/// <summary>
|
|
/// 获取单店的会员的资产明细
|
|
/// </summary>
|
|
/// <param name="req"></param>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
public PageResult<ShopZiChanMingXiList202207> GetShopZiChanMingXi(PagedSearch<ShopZiChanMingXi2207Query> req)
|
|
{
|
|
|
|
if (this.CurrentLogin.RoleType == Infrastructure.Enumeration.LoginRoleType.Clerk)
|
|
{
|
|
req.Condition.ClerkId = this.CurrentLogin.ClerkId;
|
|
}
|
|
return _report2207Service.GetShopZiChanMingXi2207(req,this.CurrentLogin);
|
|
}
|
|
#endregion
|
|
|
|
#region ShopMemberTiYanTaoMingXi(获取单店某个会员的体验套购买明细列表)
|
|
/// <summary>
|
|
/// 获取单店某个会员的体验套购买明细列表
|
|
/// </summary>
|
|
/// <param name="memberConsultantId"></param>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
public List<MemberTiYanTaoMingXiList> ShopMemberTiYanTaoMingXi(Guid memberConsultantId)
|
|
{
|
|
return _report2207Service.ShopMemberTiYanTaoMingXi2207(memberConsultantId);
|
|
}
|
|
#endregion
|
|
|
|
|
|
|
|
}
|
|
}
|