216 lines
7.4 KiB
C#
216 lines
7.4 KiB
C#
using MyCode.Project.Domain.Message.Request.Clerk;
|
|
using MyCode.Project.Domain.Message.Request.Million;
|
|
using MyCode.Project.Domain.Message.Request.Target;
|
|
using MyCode.Project.Domain.Message.Response.CardCover;
|
|
using MyCode.Project.Domain.Message.Response.MillionPolicy;
|
|
using MyCode.Project.Domain.Message.Response.Shop;
|
|
using MyCode.Project.Domain.Message.Response.Target;
|
|
using MyCode.Project.Domain.Message.Response.User;
|
|
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>
|
|
///百万店--业绩或拓客审核 相关
|
|
/// </summary>
|
|
public class MillionShopAduitController : BaseWechatController
|
|
{
|
|
private IMillionShopAduitService _millionShopAduitService;
|
|
|
|
/// <summary>
|
|
/// 初始化一个<see cref="MillionShopAduitController"/>类型的实例
|
|
/// </summary>
|
|
public MillionShopAduitController(IMillionShopAduitService millionShopAduitService)
|
|
{
|
|
_millionShopAduitService = millionShopAduitService;
|
|
}
|
|
|
|
#region GetKPIAuditList 店长获取业绩审核数据
|
|
/// <summary>
|
|
/// 店长获取业绩审核数据
|
|
/// </summary>
|
|
/// <param name="time">日期</param>
|
|
/// <param name="shopId">加盟商需传店铺主键ID</param>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
public KPIAduitResp GetKPIAuditList(DateTime time,Guid? shopId)
|
|
{
|
|
return _millionShopAduitService.GetKPIAuditList( time, shopId, this.CurrentLogin);
|
|
}
|
|
#endregion
|
|
|
|
#region SetKPIAudit 店长审核业绩数据
|
|
/// <summary>
|
|
/// 店长审核业绩数据
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
public void SetKPIAudit(List<KPIAduitReq> request)
|
|
{
|
|
_millionShopAduitService.SetKPIAudit(request, this.CurrentLogin);
|
|
}
|
|
#endregion
|
|
|
|
#region GetExAuditList 店长获取纳新审核数据
|
|
/// <summary>
|
|
/// 店长获取纳新审核数据
|
|
/// </summary>
|
|
/// <param name="time">日期</param>
|
|
/// <param name="shopId">加盟商需传店铺主键ID</param>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
public ExAduitResp GetExAuditList(DateTime time,Guid? shopId)
|
|
{
|
|
return _millionShopAduitService.GetExAuditList(time, shopId, this.CurrentLogin);
|
|
}
|
|
#endregion
|
|
|
|
#region SetExAudit 店长审核纳新数据
|
|
/// <summary>
|
|
/// 店长审核纳新数据
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
public void SetExAudit(List<ExAduitReq> request)
|
|
{
|
|
_millionShopAduitService.SetExAudit(request, this.CurrentLogin);
|
|
}
|
|
#endregion
|
|
|
|
#region GetInviteAuditList 店长获取邀约审核数据
|
|
/// <summary>
|
|
/// 店长获取邀约审核数据
|
|
/// </summary>
|
|
/// <param name="time">日期</param>
|
|
/// <param name="shopId">加盟商需传店铺主键ID</param>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
public InviteAduitResp GetInviteAuditList(DateTime time,Guid? shopId)
|
|
{
|
|
return _millionShopAduitService.GetInviteAuditList(time, shopId, this.CurrentLogin);
|
|
}
|
|
#endregion
|
|
|
|
#region SetInviteAudit 店长审核邀约数据
|
|
/// <summary>
|
|
/// 店长审核邀约数据
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
public void SetInviteAudit(List<InviteAduitReq> request)
|
|
{
|
|
_millionShopAduitService.SetInviteAudit(request, this.CurrentLogin);
|
|
}
|
|
#endregion
|
|
|
|
#region GetNurseAuditList 店长获取护理审核数据
|
|
/// <summary>
|
|
/// 店长获取护理审核数据
|
|
/// </summary>
|
|
/// <param name="time">日期</param>
|
|
/// <param name="shopId">加盟商需传店铺主键ID</param>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
public NurseAduitResp GetNurseAuditList(DateTime time,Guid? shopId)
|
|
{
|
|
return _millionShopAduitService.GetNurseAuditList(time, shopId, this.CurrentLogin);
|
|
}
|
|
#endregion
|
|
|
|
#region SetNurseAudit 店长审核护理数据
|
|
/// <summary>
|
|
/// 店长审核护理数据
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
public void SetNurseAudit(List<NurseAduitReq> request)
|
|
{
|
|
_millionShopAduitService.SetNurseAudit(request, this.CurrentLogin);
|
|
}
|
|
#endregion
|
|
|
|
#region GetExperienceAuditList 店长获取体验审核数据
|
|
/// <summary>
|
|
/// 店长获取体验审核数据
|
|
/// </summary>
|
|
/// <param name="time">日期</param>
|
|
/// <param name="shopId">加盟商需传店铺主键ID</param>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
public ExperienceAduitResp GetExperienceAuditList(DateTime time,Guid? shopId)
|
|
{
|
|
return _millionShopAduitService.GetExperienceAuditList(time, shopId, this.CurrentLogin);
|
|
}
|
|
#endregion
|
|
|
|
#region SetExperienceAudit 店长审核体验数据
|
|
/// <summary>
|
|
/// 店长审核体验数据
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
public void SetExperienceAudit(List<ExperienceAduitReq> request)
|
|
{
|
|
_millionShopAduitService.SetExperienceAudit(request, this.CurrentLogin);
|
|
}
|
|
#endregion
|
|
|
|
#region GetFissionAuditList 店长获取裂变审核数据
|
|
/// <summary>
|
|
/// 店长获取裂变审核数据
|
|
/// </summary>
|
|
/// <param name="time">日期</param>
|
|
/// <param name="shopId">加盟商需传店铺主键ID</param>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
public ExperienceAduitResp GetFissionAuditList(DateTime time, Guid? shopId)
|
|
{
|
|
return _millionShopAduitService.GetFissionAuditList(time, shopId, this.CurrentLogin);
|
|
}
|
|
#endregion
|
|
|
|
#region SetFissionAudit 店长审核裂变数据
|
|
/// <summary>
|
|
/// 店长审核裂变数据
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
public void SetFissionAudit(List<ExperienceAduitReq> request)
|
|
{
|
|
_millionShopAduitService.SetFissionAudit(request, this.CurrentLogin);
|
|
}
|
|
#endregion
|
|
|
|
#region GetSheetAuditList 店长获取核销审核数据
|
|
/// <summary>
|
|
/// 店长获取核销审核数据
|
|
/// </summary>
|
|
/// <param name="time">日期</param>
|
|
/// <param name="shopId">加盟商需传店铺主键ID</param>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
public ExperienceAduitResp GetSheetAuditList(DateTime time, Guid? shopId)
|
|
{
|
|
return _millionShopAduitService.GetSheetAuditList(time, shopId, this.CurrentLogin);
|
|
}
|
|
#endregion
|
|
|
|
#region SetSheetAudit 店长审核销变数据
|
|
/// <summary>
|
|
/// 店长审核核销数据
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
public void SetSheetAudit(List<ExperienceAduitReq> request)
|
|
{
|
|
_millionShopAduitService.SetSheetAudit(request, this.CurrentLogin);
|
|
}
|
|
#endregion
|
|
|
|
}
|
|
}
|