253 lines
8.6 KiB
C#
253 lines
8.6 KiB
C#
using MyCode.Project.Domain.Message.Act.Common;
|
|
using MyCode.Project.Domain.Message.Common;
|
|
using MyCode.Project.Domain.Message.Request.Goods;
|
|
using MyCode.Project.Domain.Message.Request.Million;
|
|
using MyCode.Project.Domain.Message.Response.Goods;
|
|
using MyCode.Project.Domain.Message.Response.HuFuWangChang;
|
|
using MyCode.Project.Domain.Message.Response.ManagersDay;
|
|
using MyCode.Project.Domain.Message.Response.MillionPolicy;
|
|
using MyCode.Project.Domain.Message.Response.OpeningCeremony;
|
|
using MyCode.Project.Domain.Model;
|
|
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 HuFuWangChangController : BaseWechatController
|
|
{
|
|
private IManagersDayService _managersDayService;
|
|
private IHuFuWangChangService _huFuWangChangService;
|
|
|
|
/// <summary>
|
|
/// 初始化一个<see cref="GoodsController"/>类型的实例
|
|
/// </summary>
|
|
public HuFuWangChangController(IManagersDayService managersDayService
|
|
, IHuFuWangChangService huFuWangChangService)
|
|
{
|
|
_managersDayService = managersDayService;
|
|
_huFuWangChangService = huFuWangChangService;
|
|
}
|
|
|
|
|
|
#region SetHuFuSingleExperienceTargetQty (保存护肤单次体验目标)
|
|
/// <summary>
|
|
/// 保存护肤单次体验目标
|
|
/// </summary>
|
|
/// <param name="act"></param>
|
|
[HttpPost]
|
|
public void SetHuFuSingleExperienceTargetQty(MonthKPIReq act)
|
|
{
|
|
_huFuWangChangService.SetHuFuSingleExperienceTargetQty(act, this.CurrentLogin);
|
|
}
|
|
#endregion
|
|
|
|
#region SetNymphCardTargetQty (保存99女神卡目标)
|
|
/// <summary>
|
|
/// 保存99女神卡目标
|
|
/// </summary>
|
|
/// <param name="act"></param>
|
|
[HttpPost]
|
|
public void SetNymphCardTargetQty(MonthKPIReq act)
|
|
{
|
|
_huFuWangChangService.SetNymphCardTargetQty(act, this.CurrentLogin);
|
|
}
|
|
#endregion
|
|
|
|
#region SetOldMemberHandselTargetQty (保存老顾客赠送体验次数目标)
|
|
/// <summary>
|
|
/// 保存老顾客赠送体验次数目标
|
|
/// </summary>
|
|
/// <param name="act"></param>
|
|
[HttpPost]
|
|
public void SetOldMemberHandselTargetQty(MonthKPIReq act)
|
|
{
|
|
_huFuWangChangService.SetOldMemberHandselTargetQty(act, this.CurrentLogin);
|
|
}
|
|
#endregion
|
|
|
|
#region SetCardCoverKPITargetQty (保存套餐销售目标)
|
|
/// <summary>
|
|
/// 保存套餐销售目标
|
|
/// </summary>
|
|
/// <param name="act"></param>
|
|
[HttpPost]
|
|
public void SetCardCoverKPITargetQty(MonthKPIReq act)
|
|
{
|
|
_huFuWangChangService.SetCardCoverKPITargetQty(act, this.CurrentLogin);
|
|
}
|
|
#endregion
|
|
|
|
#region GetHuFuSingleExperienceTargetQty(获取店铺的所有店员的护肤单次体验目标)
|
|
/// <summary>
|
|
/// 获取店铺的所有店员的护肤单次体验目标
|
|
/// </summary>
|
|
[HttpGet]
|
|
public HFWCResp GetHuFuSingleExperienceTargetQty(Guid shopId)
|
|
{
|
|
DateTime days = DateTime.Now.Date;
|
|
return _huFuWangChangService.GetHuFuSingleExperienceTargetQty(shopId, days);
|
|
}
|
|
#endregion
|
|
|
|
#region GetNymphCardTargetQty(获取店铺的所有店员的99女神卡目标)
|
|
/// <summary>
|
|
/// 获取店铺的所有店员的99女神卡目标
|
|
/// </summary>
|
|
[HttpGet]
|
|
public HFWCResp GetNymphCardTargetQty(Guid shopId)
|
|
{
|
|
DateTime days = DateTime.Now.Date;
|
|
return _huFuWangChangService.GetNymphCardTargetQty(shopId, days);
|
|
}
|
|
#endregion
|
|
|
|
#region GetOldMemberHandselKPITargetQty(获取店铺的所有店员的老顾客赠送体验次数目标)
|
|
/// <summary>
|
|
/// 获取店铺的所有店员的老顾客赠送体验次数目标
|
|
/// </summary>
|
|
[HttpGet]
|
|
public HFWCResp GetOldMemberHandselKPITargetQty(Guid shopId)
|
|
{
|
|
DateTime days = DateTime.Now.Date;
|
|
return _huFuWangChangService.GetOldMemberHandselKPITargetQty(shopId, days);
|
|
}
|
|
#endregion
|
|
|
|
#region GetCardCoverKPITargetQty(获取店铺的所有店员的套餐销售目标)
|
|
/// <summary>
|
|
/// 获取店铺的所有店员的套餐销售目标
|
|
/// </summary>
|
|
[HttpGet]
|
|
public HFWCResp GetCardCoverKPITargetQty(Guid shopId)
|
|
{
|
|
DateTime days = DateTime.Now.Date;
|
|
return _huFuWangChangService.GetCardCoverKPITargetQty(shopId, days);
|
|
}
|
|
#endregion
|
|
|
|
#region NotifyTheClerkForHuFuWangChang(通知店员护肤旺场的任务)
|
|
/// <summary>
|
|
/// 通知店员护肤旺场的任务
|
|
/// </summary>
|
|
/// <param name="shopId"></param>
|
|
[HttpGet]
|
|
public void NotifyTheClerkForHuFuWangChang(Guid shopId)
|
|
{
|
|
_huFuWangChangService.NotifyTheClerkForHuFuWangChang(shopId, this.CurrentLogin);
|
|
}
|
|
#endregion
|
|
|
|
#region GetHuFuWangChangText(获取护肤旺场通知情况)
|
|
/// <summary>
|
|
/// 获取护肤旺场通知情况
|
|
/// </summary>
|
|
[HttpGet]
|
|
public HuFuWangChangResp GetHuFuWangChangText(Guid shopId)
|
|
{
|
|
DateTime days = DateTime.Now.Date;
|
|
return _huFuWangChangService.GetHuFuWangChangText(shopId);
|
|
}
|
|
#endregion
|
|
|
|
#region GetClerkHuFuWangChang(店员阅读消息的返回)
|
|
/// <summary>
|
|
/// 店员阅读消息的返回
|
|
/// </summary>
|
|
[HttpGet]
|
|
public ZHWCWorkResp GetClerkHuFuWangChang(Guid id)
|
|
{
|
|
return _huFuWangChangService.GetClerkHuFuWangChang(id);
|
|
}
|
|
#endregion
|
|
|
|
#region SetClerkHuFuWangChang(店员明确消息)
|
|
/// <summary>
|
|
/// 店员明确消息
|
|
/// </summary>
|
|
/// <param name="act"></param>
|
|
[HttpPost]
|
|
public void SetClerkHuFuWangChang(IdAct act)
|
|
{
|
|
_huFuWangChangService.SetClerkHuFuWangChang(act.Id);
|
|
}
|
|
#endregion
|
|
|
|
#region GetExecutionProgress(获取落实工作安排进度)
|
|
/// <summary>
|
|
/// 获取落实工作安排进度
|
|
/// </summary>
|
|
[HttpGet]
|
|
public ExecutionProgressAct GetExecutionProgress(Guid shopId)
|
|
{
|
|
return _huFuWangChangService.GetExecutionProgress(shopId);
|
|
}
|
|
#endregion
|
|
|
|
#region SaveExecutionProgress(保存落实工作安排进度)
|
|
/// <summary>
|
|
/// 保存落实工作安排进度
|
|
/// </summary>
|
|
/// <param name="act"></param>
|
|
[HttpPost]
|
|
public void SaveExecutionProgress(ExecutionProgressAct act)
|
|
{
|
|
_huFuWangChangService.SaveExecutionProgress(act, this.CurrentLogin);
|
|
}
|
|
#endregion
|
|
|
|
#region SetCustomerExecutionProgress(加盟商确认工作落实通知)
|
|
/// <summary>
|
|
/// 加盟商确认工作落实通知
|
|
/// </summary>
|
|
/// <param name="idAct"></param>
|
|
[HttpPost]
|
|
public void SetCustomerExecutionProgress(IdAct idAct)
|
|
{
|
|
_huFuWangChangService.SetCustomerExecutionProgress(idAct.Id);
|
|
}
|
|
#endregion
|
|
|
|
#region GetMsgExecutionProgressResp(加盟商获取落实工作安排进度消息页面内容)
|
|
/// <summary>
|
|
/// 加盟商获取落实工作安排进度消息页面内容
|
|
/// </summary>
|
|
/// <param name="id"></param>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
public GetMsgExecutionProgressResp GetMsgExecutionProgressResp(Guid id)
|
|
{
|
|
return _huFuWangChangService.GetMsgExecutionProgressResp(id);
|
|
}
|
|
#endregion
|
|
|
|
#region SaveClerkHuFuWangChang(保存店员的护肤旺场实际业绩)
|
|
/// <summary>
|
|
/// 保存店员的护肤旺场实际业绩
|
|
/// </summary>
|
|
/// <param name="act"></param>
|
|
[HttpPost]
|
|
public void SaveClerkHuFuWangChang(ZHWCWorkResp act)
|
|
{
|
|
_huFuWangChangService.SaveClerkHuFuWangChang(act.detailList);
|
|
}
|
|
#endregion
|
|
|
|
#region GetCustomerHuFuWangChang(加盟商阅读护肤旺场消息的返回)
|
|
/// <summary>
|
|
/// 加盟商阅读护肤旺场消息的返回
|
|
/// </summary>
|
|
[HttpGet]
|
|
public ZHWCClerkResp GetCustomerHuFuWangChang(Guid id)
|
|
{
|
|
return _huFuWangChangService.GetCustomerHuFuWangChang(id);
|
|
}
|
|
#endregion
|
|
}
|
|
}
|