diff --git a/Reportapi/MyCode.Project.Domain/Message/Act/BaoDian/ClerkProductSalesPlanAct.cs b/Reportapi/MyCode.Project.Domain/Message/Act/BaoDian/ClerkProductSalesPlanAct.cs
deleted file mode 100644
index 731d508..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Act/BaoDian/ClerkProductSalesPlanAct.cs
+++ /dev/null
@@ -1,225 +0,0 @@
-using SqlSugar;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Act.BaoDian
-{
- public class ClerkProductSalesPlanAct
- {
- ///
- /// Desc:店员ID
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "clerk_id")]
- public string ClerkId { get; set; }
-
- ///
- /// Desc:店铺id
- /// Default:
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "shop_id")]
- public string ShopId { get; set; }
-
- ///
- /// Desc::所属类型, 99=其他
- /// Default:0
- /// Nullable:False
- ///
- [SugarColumn(ColumnName = "package_type")]
- public int PackageType { get; set; }
-
- ///
- /// 本页面的计划数组
- ///
- public List Items { get; set; }
-
- }
-
-
- public class BDProductSalesPlan
- {
- ///
- /// 主键id
- ///
-
- public long Id { get; set; }
-
- ///
- /// 版本时间
- ///
- [SugarColumn(ColumnName = "version_time")]
- public DateTime VersionTime { get; set; }
-
- ///
- /// Desc:套餐名称
- ///
- [SugarColumn(ColumnName = "name")]
- public string Name { get; set; }
-
- ///
- /// 计划销量
- ///
- [SugarColumn(ColumnName = "plan_qty")]
- public int PlanQty { get; set; }
-
- ///
- /// 计划单价
- ///
- [SugarColumn(ColumnName = "plan_price")]
- public decimal PlanPrice { get; set; }
-
- ///
- /// Desc:lxm_product_sales_schedule表的主键ID
- ///
- [SugarColumn(ColumnName = "product_id")]
- public long? ProductId { get; set; }
- }
-
-
- public class ClerkNewMemberSalesPlanAct
- {
- ///
- /// Desc:店员ID
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "clerk_id")]
- public string ClerkId { get; set; }
-
- ///
- /// Desc:店铺id
- /// Default:
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "shop_id")]
- public string ShopId { get; set; }
-
- ///
- /// Desc:会员资料来源 0= 其他; 1= 抖音; 2= 美团; 3=自然流量; 4=老顾客列表 5=1元公益、派单
- ///
- [SugarColumn(ColumnName = "add_from_type")]
- public int AddFromType { get; set; }
-
- ///
- /// 本页面的计划数组
- ///
- public List Items { get; set; }
-
- }
-
- public class BdNewMemberSalesPlan
- {
- ///
- /// 主键id
- ///
-
- public long Id { get; set; }
-
- ///
- /// 版本时间
- ///
- [SugarColumn(ColumnName = "version_time")]
- public DateTime VersionTime { get; set; }
-
- ///
- /// Desc:套餐名称
- ///
- [SugarColumn(ColumnName = "name")]
- public string Name { get; set; }
-
- ///
- /// 计划销量
- ///
- [SugarColumn(ColumnName = "plan_qty")]
- public int PlanQty { get; set; }
-
- ///
- /// 值 1=新客人数;2=首单数;其他数值lxm_new_member_sales_schedule表的主键ID
- ///
- [SugarColumn(ColumnName = "product_id")]
- public long? ProductId { get; set; }
- }
-
-
- public class InvitationMemberAct
- {
- ///
- /// 主键ID
- ///
- public long Id { get; set; }
-
- ///
- /// 会员主键
- ///
- public string MemberId { get; set; }
-
- ///
- /// 店铺主键
- ///
- public string ShopId { get; set; }
-
- ///
- /// 计划时间
- ///
- public string PlanTime { get; set; }
-
- ///
- /// 邀约时间--开始
- ///
- public string InvitationTimeBeing { get; set; }
-
- ///
- /// 邀约时间--截止
- ///
- public string InvitationTimeEnd { get; set; }
-
- ///
- /// 邀约负责人 ID,没有店员选择的界面,可以不传
- ///
- public string ClerkId { get; set; }
-
- ///
- /// 邀约负责人 ,没有店员选择的界面,可以不传
- ///
- public string ClerkName { get; set; }
-
- ///
- /// 选中的邀约套餐
- ///
- public List Items { get; set; }
- }
-
- public class InvitationProduct
- {
- ///
- /// 主键id
- ///
-
- public long Id { get; set; }
-
-
- ///
- /// Desc:套餐名称
- ///
- [SugarColumn(ColumnName = "name")]
- public string Name { get; set; }
-
- ///
- /// 计划单价
- ///
- [SugarColumn(ColumnName = "plan_price")]
- public decimal PlanPrice { get; set; }
-
- ///
- /// Desc:lxm_product_sales_schedule表的主键ID
- ///
- [SugarColumn(ColumnName = "product_id")]
- public long? ProductId { get; set; }
- }
-
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Act/BaoDian/NewMemberSalesScheduleAct.cs b/Reportapi/MyCode.Project.Domain/Message/Act/BaoDian/NewMemberSalesScheduleAct.cs
deleted file mode 100644
index 53add3a..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Act/BaoDian/NewMemberSalesScheduleAct.cs
+++ /dev/null
@@ -1,33 +0,0 @@
-using MyCode.Project.Domain.Message.Response.BaoDian;
-using MyCode.Project.Domain.Model;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Act.BaoDian
-{
- public class NewMemberSalesScheduleAct
- {
- ///
- /// 主键id
- ///
- public long Id { get; set; }
-
- ///
- /// 套餐名称
- ///
- public string PackageName { get; set; }
-
- ///
- /// 商品明细列表
- ///
- public List SkuList { get; set; }
-
- ///
- /// 服务明细列表
- ///
- public List ServiceList { get; set; }
- }
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Act/BaoDian/ProductSalesScheduleAct.cs b/Reportapi/MyCode.Project.Domain/Message/Act/BaoDian/ProductSalesScheduleAct.cs
deleted file mode 100644
index c6527c7..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Act/BaoDian/ProductSalesScheduleAct.cs
+++ /dev/null
@@ -1,48 +0,0 @@
-using MyCode.Project.Domain.Message.Act.Goods;
-using MyCode.Project.Domain.Message.Response.BaoDian;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Act.BaoDian
-{
- public class ProductSalesScheduleAct
- {
- ///
- /// 主键id
- ///
- public long Id { get; set; }
-
- ///
- /// 套餐名称
- ///
- public string PackageName { get; set; }
-
- ///
- /// 所属类型 11=拓客体验 12=基础套餐 13=叠加套餐 14=家具护理
- ///
- public int PackageType { get; set; }
-
- ///
- /// 功效 1= 清洁 2=补水保湿 3=美白淡斑 4=提拉紧绷 5=淡纹抗皱 6=双抗抗老
- ///
- public int EffectType { get; set; }
-
- ///
- /// 总价
- ///
- public decimal TotalPrice { get; set; }
-
- ///
- /// 商品明细列表
- ///
- public List SkuList { get; set; }
-
- ///
- /// 服务明细列表
- ///
- public List ServiceList { get; set; }
- }
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Act/BaoDian/SetInvitationProductsAct.cs b/Reportapi/MyCode.Project.Domain/Message/Act/BaoDian/SetInvitationProductsAct.cs
deleted file mode 100644
index e9eee49..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Act/BaoDian/SetInvitationProductsAct.cs
+++ /dev/null
@@ -1,49 +0,0 @@
-using MyCode.Project.Infrastructure.Exceptions;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Act.BaoDian
-{
- public class SetInvitationProductsAct
- {
- ///
- /// 传入Guid格式的一组主键ID
- ///
- public List ListId
- {
- get;
- set;
- }
-
- ///
- /// 操作人,可以不传
- ///
- public string Editor
- {
- get;
- set;
- }
-
- ///
- /// 是否邀约商品 1=是 0=否
- ///
- public byte IsInvitationProducts
- {
- get;
- set;
- }
-
- ///
- /// 检查状态
- ///
- public void CheckInvitationProducts()
- {
- if (IsInvitationProducts < 0 || IsInvitationProducts > 1) { throw new BaseException("状态值错误"); }
-
- if (ListId == null || ListId.Count == 0) { throw new BaseException("没有选择项"); }
- }
- }
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Act/Goods/SkuQty.cs b/Reportapi/MyCode.Project.Domain/Message/Act/Goods/SkuQty.cs
deleted file mode 100644
index 6bc8b76..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Act/Goods/SkuQty.cs
+++ /dev/null
@@ -1,47 +0,0 @@
-using MyCode.Project.Domain.Model;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Act.Goods
-{
- public class SkuQty
- {
- ///
- /// 数量
- ///
- public int? Qty { get; set; }
-
- ///
- /// sku的id
- ///
- public string BarcodeId { get; set; }
-
- ///
- /// 商品单价
- ///
- public decimal BasePrice { get; set; }
-
- ///
- /// 色号
- ///
- public string ColorName { get; set; }
-
- ///
- /// 商品名
- ///
- public string Name { get; set; }
-
- ///
- /// 商品编码
- ///
- public string CustomBC { get; set; }
-
- ///
- /// 商品款号
- ///
- public string CustomNo { get; set; }
- }
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Act/Report2301/Add2301ReportDataAct.cs b/Reportapi/MyCode.Project.Domain/Message/Act/Report2301/Add2301ReportDataAct.cs
deleted file mode 100644
index 2ea4e59..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Act/Report2301/Add2301ReportDataAct.cs
+++ /dev/null
@@ -1,60 +0,0 @@
-using MyCode.Project.Domain.Model;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Act.Report2301
-{
- public class Add2301ReportDataAct
- {
- public RpShopZhenduansibiaoSearch RpShopZhenduansibiaoSearch { get; set; }
-
- public RpShopZhenduansibiaoKucunData RpShopZhenduansibiaoKucunData { get; set; }
-
- public RpShopZhenduansibiaoYejiData rpShopZhenduansibiaoYejiData { get; set; }
-
- ///
- /// 日报所属日期,方便查询用,精确到天
- ///
- public DateTime SearchDays { get; set; }
-
- }
-
- public class Add2301ReportUseDaysAct
- {
- ///
- /// 店铺ID
- ///
- public string ShopId { get; set; }
-
- ///
- /// Desc:使用天数:任意在手机端或pos端使用收银、核销、会员功能记1
- ///
-
- public int? ShiYongTianShu { get; set; }
-
- ///
- /// Desc:时间,方便查询用
- ///
-
- public DateTime? Days { get; set; }
- }
-
- public class AddYangBanDian2406ReportDataAct
- {
- public RpShopYangbandianSearchDay RpShopYangbandianSearchDay { get; set; }
-
- public RpShopYangbandianLaokeDate RpShopYangbandianLaokeDate{ get; set; }
-
- public RpShopYangbandianXinkeDate RpShopYangbandianXinkeDate { get; set; }
-
- ///
- /// 日报所属日期,方便查询用,精确到天
- ///
- public DateTime SearchDays { get; set; }
-
- }
-
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Act/Report2301/BfyApiKeyAct.cs b/Reportapi/MyCode.Project.Domain/Message/Act/Report2301/BfyApiKeyAct.cs
deleted file mode 100644
index 016fe95..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Act/Report2301/BfyApiKeyAct.cs
+++ /dev/null
@@ -1,24 +0,0 @@
-using MyCode.Project.Domain.Message.Response.User;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Act.Report2301
-{
- public class BfyApiKeyAct
- {
- ///
- /// 数据字符串
- ///
- public string Json { get; set; }
-
- ///
- /// 查询key
- ///
- public string LxmZHMDReportKey { get; set; }
-
- public LoginInfo loginInfo { get; set; }
- }
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Act/Report2301/GetCustmoerServiceInvAct.cs b/Reportapi/MyCode.Project.Domain/Message/Act/Report2301/GetCustmoerServiceInvAct.cs
deleted file mode 100644
index 9835c35..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Act/Report2301/GetCustmoerServiceInvAct.cs
+++ /dev/null
@@ -1,40 +0,0 @@
-using MyCode.Project.Domain.Model;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Act.Report2301
-{
- public class GetCustmoerServiceInvAct
- {
- ///
- /// 加盟商ID
- ///
- public string CustomerId { get; set; }
-
- ///
- /// 查询具体某一天的日期
- ///
- public DateTime Days { get; set; }
- }
-
-
- public class SaveCustmoerServiceInvDaysAct
- {
- ///
- /// 加盟商ID
- ///
- public string CustomerId { get; set; }
-
- ///
- /// 查询具体某一天的日期
- ///
- public DateTime Days { get; set; }
- ///
- /// 服务次数列表
- ///
- public List DataList { get; set; }
- }
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Request/AMing/ManagerReport2308Query.cs b/Reportapi/MyCode.Project.Domain/Message/Request/AMing/ManagerReport2308Query.cs
deleted file mode 100644
index e9cd95d..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Request/AMing/ManagerReport2308Query.cs
+++ /dev/null
@@ -1,115 +0,0 @@
-using MyCode.Project.Domain.Message.Request.Label;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Request.AMing
-{
- public class ManagerReport2308Query
- {
- ///
- /// 是否全选店铺 0=否; 1=是
- ///
- public int IfAllShop { get; set; }
-
- ///
- /// 查询店铺数组
- ///
- public List ShopIds { get; set; }
-
- ///
- /// 查询时间类型 1=今天 2=自然月
- ///
- public int SearchType { get; set; }
-
- ///
- /// 自然月选择的年-月 2022-08
- ///
- public string YearMonth { get; set; }
-
- ///
- /// 组织ID 非区域人员跳转页面传 -1
- ///
- public Guid? OrganizationId { get; set; }
-
- ///
- /// 查询类型 0=区域总览 1=主要店铺 2=指定店铺
- ///
- public int QuYu { get; set; }
-
- ///
- /// 用户ID,如果不传就是登录ID
- ///
- public Guid? UserId { get; set; }
-
- }
-
- public class QuYu2308Query : ManagerReport2308Query
- {
- ///
- /// 查询类型 0=区域总览 1=主要店铺 2=指定店铺
- ///
- public int QuYu { get; set; }
-
- ///
- /// 使用天数
- ///
- public int? Days { get; set; }
-
- ///
- /// 收款金额 起
- ///
- public decimal? MoneyBegin { get; set; }
-
- ///
- /// 收款金额 止
- ///
- public decimal? MoneyEnd { get; set; }
-
- ///
- /// 标签数组 ,NULL 是没有选择该条件
- ///
- public ShopLabelSearch LabelQuery { get; set; }
-
- }
-
- public class AdminQuYuKanBanQuery2308
- {
- ///
- /// 门店范围 0=区域总览 1=主要店铺
- ///
- public int? MenDianFanWei { get; set; }
-
- ///
- /// 自然月选择的年-月 2022-08
- ///
- public string YearMonth { get; set; }
-
-
- ///
- /// 组织ID
- ///
- public Guid? OrganizationId { get; set; }
-
- ///
- /// 用户ID
- ///
- public Guid? UserId { get; set; }
- }
-
- public class GetUserOrganizationTrees
- {
- ///
- /// 组织ID,初始本人传"-1"
- ///
- public string OrganizationId { get; set; }
-
- ///
- /// 用户ID,如果不传就是登录ID
- ///
- public Guid? UserId { get; set; }
-
- }
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Request/BaoDian/ClerkProductSalesPlanReq.cs b/Reportapi/MyCode.Project.Domain/Message/Request/BaoDian/ClerkProductSalesPlanReq.cs
deleted file mode 100644
index 0af0c5b..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Request/BaoDian/ClerkProductSalesPlanReq.cs
+++ /dev/null
@@ -1,201 +0,0 @@
-using MyCode.Project.Domain.Message.Act.BaoDian;
-using SqlSugar;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Request.BaoDian
-{
-
- public class ClerkProductSalesPlanReq
- {
- ///
- /// 店员ID ,没有选择店员的界面不传
- ///
-
- public string ClerkId { get; set; }
-
- ///
- /// Desc:店铺id
- ///
-
- public string ShopId { get; set; }
-
- ///
- /// Desc::所属类型, 99=其他
- ///
-
- public int PackageType { get; set; }
-
- ///
- /// 计划年月 2023-10, 没有日期选择的页面不传
- ///
- public DateTime? VersionTime { get; set; }
-
- }
-
- public class ClerkNewMemberSalesPlanReq
- {
- ///
- /// 店员ID ,没有选择店员的界面不传
- ///
-
- public string ClerkId { get; set; }
-
- ///
- /// Desc:店铺id
- ///
-
- public string ShopId { get; set; }
-
- ///
- /// 会员资料来源 0= 其他; 1= 抖音; 2= 美团; 3=自然流量; 4=老顾客列表 5=1元公益、派单
- ///
-
- public int AddFromType { get; set; }
-
- ///
- /// 计划年月 2023-10, 没有日期选择的页面不传
- ///
- public DateTime? VersionTime { get; set; }
-
- }
-
-
- public class GetInvitationMemberInfoRequest
- {
- ///
- /// 主键ID
- ///
- public long Id { get; set; }
- ///
- /// 会员ID
- ///
- public string MemberId { get; set; }
-
- ///
- /// 店铺主键
- ///
- public string ShopId { get; set; }
- }
-
- public class OldMemberInvitationPlansRequest
- {
- ///
- /// 店员ID , 没有店员选项的也没传""
- ///
- public string ClerkId { get; set; }
-
- ///
- /// 店铺主键
- ///
- public string ShopId { get; set; }
- }
-
-
- public class CompletionOfShopSalesPlanRequest
- {
- ///
- /// 查询日期 传 2023-10
- ///
- public DateTime PlanTime { get; set; }
-
- ///
- /// 店铺主键 , 店员店长时,传"",加盟商的全部 传 -1
- ///
- public string ShopId { get; set; }
-
-
- ///
- /// 计划类型 1=产品销售计划表 2=新客销售计划表 3=老客复购销售计划
- ///
- public int PlanType { get; set; }
-
- }
-
- public class CompletionOfShopSalesPlanRequest2
- {
- ///
- /// 查询日期 传 2023-10
- ///
- public DateTime PlanTime { get; set; }
-
- ///
- /// 店铺主键 , 店员店长时,传"",加盟商的全部 传 -1
- ///
- public string ShopId { get; set; }
-
-
- ///
- /// 标签的类型值
- ///
- public int PackageType { get; set; }
- }
-
- public class BDClerkProductSalesStatisticsRequest
- {
- ///
- /// 计划中的产品ID
- ///
- public long ProductId { get; set; }
-
- ///
- /// 店铺
- ///
- public string ShopId { get; set; }
-
- ///
- /// Desc::所属类型
- /// Default:0
- /// Nullable:False
- ///
- public int PackageType { get; set; }
-
- ///
- /// 版本时间
- ///
- public DateTime VersionTime { get; set; }
-
- }
-
- public class CompletionOfOldShopMemberSalesPlanRequest
- {
- ///
- /// 查询日期 传 2023-10
- ///
- public DateTime PlanTime { get; set; }
-
- ///
- /// 店铺主键 , 店员店长时,传"",加盟商的全部 传 -1
- ///
- public string ShopId { get; set; }
- }
-
- public class ClerkOfOldMemberPlanRequest: CompletionOfOldShopMemberSalesPlanRequest
- {
- ///
- /// 完成进度条的ClerkId,加盟商的话传NULL
- ///
- public string Clerk { get; set; }
- }
-
-
- public class BdOldMemberSalesPlanProductsRequest
- {
- ///
- /// 类型
- ///
- public int PackageType { get; set; }
- ///
- /// 搜索关键字
- ///
-
- public string KeyWords { get; set; }
- }
-
-
-
-
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Request/BaoDian/MemberInvitationReq.cs b/Reportapi/MyCode.Project.Domain/Message/Request/BaoDian/MemberInvitationReq.cs
deleted file mode 100644
index 8b32dd9..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Request/BaoDian/MemberInvitationReq.cs
+++ /dev/null
@@ -1,26 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Request.BaoDian
-{
- public class MemberInvitationReq
- {
- ///
- /// 店铺id
- ///
- public Guid? ShopId { get; set; }
-
- ///
- /// 所属时间
- ///
- public DateTime? VersionTime { get; set; }
-
- ///
- ///日期
- ///
- public TimeRange TimeRange { get; set; }
- }
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Request/BaoDian/NewMemberReportReq.cs b/Reportapi/MyCode.Project.Domain/Message/Request/BaoDian/NewMemberReportReq.cs
deleted file mode 100644
index 5ff9e45..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Request/BaoDian/NewMemberReportReq.cs
+++ /dev/null
@@ -1,61 +0,0 @@
-using MyCode.Project.Domain.Message.Request.Label;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Request.BaoDian
-{
- public class NewMemberReportReq
- {
- ///
- /// 店铺id
- ///
- public Guid? ShopId { get; set; }
-
- ///
- ///日期
- ///
- public TimeRange TimeRange { get; set; }
-
- ///
- /// 加盟商id
- ///
- public Guid? CustomerId { get; set; }
-
- ///
- /// 店铺编码
- ///
- public string Code { get; set; }
- ///
- /// 区域id
- ///
- public Guid? ZoneId { get; set; }
-
- ///
- /// 省id
- ///
- public Guid? ProvinceId { get; set; }
-
- ///
- /// 市id
- ///
- public Guid? CityId { get; set; }
-
- ///
- /// 区域督导
- ///
- public string RegionManager { get; set; }
-
- ///
- /// 前端忽略
- ///
- public string ShopIdStr { get; set; }
-
- ///
- /// 店铺标签
- ///
- public ShopLabelSearch LabelQuery { get; set; }
- }
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Request/BaoDian/NewMemberSalesScheduleReq.cs b/Reportapi/MyCode.Project.Domain/Message/Request/BaoDian/NewMemberSalesScheduleReq.cs
deleted file mode 100644
index 0a1393c..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Request/BaoDian/NewMemberSalesScheduleReq.cs
+++ /dev/null
@@ -1,41 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Request.BaoDian
-{
- public class NewMemberSalesScheduleReq
- {
- ///
- /// 套餐名称
- ///
- public string PackageName { get; set; }
-
- ///
- /// 状态 1=启用 0=禁用 -1=全部
- ///
- public int Status { get; set; }
-
- ///
- /// 商品款号
- ///
- public string CustomNo { get; set; }
-
- ///
- /// 商品编码
- ///
- public string CustomBC { get; set; }
-
- ///
- /// 商品名称
- ///
- public string Name { get; set; }
-
- ///
- /// 前端忽略
- ///
- public string IdStr { get; set; }
- }
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Request/BaoDian/OldMemberReportReq.cs b/Reportapi/MyCode.Project.Domain/Message/Request/BaoDian/OldMemberReportReq.cs
deleted file mode 100644
index f2c288a..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Request/BaoDian/OldMemberReportReq.cs
+++ /dev/null
@@ -1,62 +0,0 @@
-using MyCode.Project.Domain.Message.Request.Label;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Request.BaoDian
-{
- public class OldMemberReportReq
- {
- ///
- /// 店铺id
- ///
- public Guid? ShopId { get; set; }
-
- ///
- ///日期
- ///
- public TimeRange TimeRange { get; set; }
-
- ///
- /// 加盟商id
- ///
- public Guid? CustomerId { get; set; }
-
- ///
- /// 店铺编码
- ///
- public string Code { get; set; }
- ///
- /// 区域id
- ///
- public Guid? ZoneId { get; set; }
-
- ///
- /// 省id
- ///
- public Guid? ProvinceId { get; set; }
-
- ///
- /// 市id
- ///
- public Guid? CityId { get; set; }
-
- ///
- /// 区域督导
- ///
- public string RegionManager { get; set; }
-
- ///
- /// 前端忽略
- ///
- public string ShopIdStr { get; set; }
-
- ///
- /// 店铺标签
- ///
- public ShopLabelSearch LabelQuery { get; set; }
-
- }
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Request/BaoDian/OldMemberSalesPlanReq.cs b/Reportapi/MyCode.Project.Domain/Message/Request/BaoDian/OldMemberSalesPlanReq.cs
deleted file mode 100644
index 0151d78..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Request/BaoDian/OldMemberSalesPlanReq.cs
+++ /dev/null
@@ -1,14 +0,0 @@
-using MyCode.Project.Domain.Message.Act.Goods;
-using SqlSugar;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Runtime.Remoting.Lifetime;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Request.BaoDian
-{
-
-
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Request/BaoDian/PersonalNewMemberReportReq.cs b/Reportapi/MyCode.Project.Domain/Message/Request/BaoDian/PersonalNewMemberReportReq.cs
deleted file mode 100644
index a68250a..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Request/BaoDian/PersonalNewMemberReportReq.cs
+++ /dev/null
@@ -1,57 +0,0 @@
-using MyCode.Project.Domain.Message.Request.Label;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Request.BaoDian
-{
- public class PersonalNewMemberReportReq
- {
- ///
- /// 店铺id
- ///
- public Guid? ShopId { get; set; }
-
- ///
- /// 时间
- ///
- public TimeRange TimeRange { get; set; }
-
- ///
- /// 店铺编码
- ///
- public string Code { get; set; }
-
- ///
- /// 渠道类型 0= 其他; 1= 抖音; 2= 美团; 3=自然流量; 4=老顾客列表 5=1元公益、派单 -1=全部
- ///
- public int AddFromType { get; set; }
-
- ///
- /// 拓客类型(套餐名称)
- ///
- public string PackageName { get; set; }
-
- ///
- /// 店员名称/手机号
- ///
- public string ClerkName { get; set; }
-
- ///
- /// 关联ID(前端忽略)
- ///
- public string IdStr { get; set; }
-
- ///
- /// 店铺ID(前端忽略)
- ///
- public string ShopIdStr { get; set; }
-
- ///
- /// 店铺标签
- ///
- public ShopLabelSearch LabelQuery { get; set; }
- }
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Request/BaoDian/PersonalOldMemberReportReq.cs b/Reportapi/MyCode.Project.Domain/Message/Request/BaoDian/PersonalOldMemberReportReq.cs
deleted file mode 100644
index 4e8cc79..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Request/BaoDian/PersonalOldMemberReportReq.cs
+++ /dev/null
@@ -1,52 +0,0 @@
-using MyCode.Project.Domain.Message.Request.Label;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Request.BaoDian
-{
- public class PersonalOldMemberReportReq
- {
- ///
- /// 店铺id
- ///
- public Guid? ShopId { get; set; }
-
- ///
- /// 时间
- ///
- public TimeRange TimeRange { get; set; }
-
- ///
- /// 店铺编码
- ///
- public string Code { get; set; }
-
- ///
- /// 店员名称/手机号
- ///
- public string ClerkName { get; set; }
-
- ///
- /// 客户名称/手机号
- ///
- public string MemberName { get; set; }
-
- ///
- /// 关联ID(前端忽略)
- ///
- public string IdStr { get; set; }
-
- ///
- /// 店铺ID(前端忽略)
- ///
- public string ShopIdStr { get; set; }
-
- ///
- /// 店铺标签
- ///
- public ShopLabelSearch LabelQuery { get; set; }
- }
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Request/BaoDian/PersonalProductReportReq.cs b/Reportapi/MyCode.Project.Domain/Message/Request/BaoDian/PersonalProductReportReq.cs
deleted file mode 100644
index 4ffbad7..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Request/BaoDian/PersonalProductReportReq.cs
+++ /dev/null
@@ -1,127 +0,0 @@
-using MyCode.Project.Domain.Message.Request.Label;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Request.BaoDian
-{
- public class PersonalProductReportReq
- {
- ///
- /// 店铺id
- ///
- public Guid? ShopId { get; set; }
-
- ///
- /// 时间
- ///
- public TimeRange TimeRange { get; set; }
-
- ///
- /// 店铺编码
- ///
- public string Code { get; set; }
-
- ///
- /// 所属类型 11=拓客体验 12=基础套餐 13=叠加套餐 14=家居护理 -1=全部
- ///
- public int PackageType { get; set; }
-
- ///
- /// 功效 1= 清洁 2=补水保湿 3=美白淡斑 4=提拉紧绷 5=淡纹抗皱 6=双抗抗老 -1=全部
- ///
- public int EffectType { get; set; }
-
- ///
- /// 商品名称(套餐名称)
- ///
- public string PackageName { get; set; }
-
- ///
- /// 店员名称/手机号
- ///
- public string ClerkName { get; set; }
-
- ///
- /// 关联ID(前端忽略)
- ///
- public string IdStr { get; set; }
-
- ///
- /// 店铺ID(前端忽略)
- ///
- public string ShopIdStr { get; set; }
-
- ///
- /// 店铺标签
- ///
- public ShopLabelSearch LabelQuery { get; set; }
- }
-
-
- public class ShopProductSalesPlanReportReq
- {
- ///
- /// 店铺id
- ///
- public Guid? ShopId { get; set; }
-
- ///
- /// 时间
- ///
- public TimeRange TimeRange { get; set; }
-
- ///
- /// 店铺编码
- ///
- public string Code { get; set; }
-
- ///
- /// 区域id
- ///
- public string ZoneId { get; set; }
-
- ///
- /// 省id
- ///
- public string ProvinceId { get; set; }
-
- ///
- /// 市id
- ///
- public string CityId { get; set; }
-
- ///
- /// 区域经理
- ///
- public string RegionManager { get; set; }
-
- ///
- /// 加盟商id
- ///
- public string CustomerId { get; set; }
-
- ///
- /// 店铺标签
- ///
- public ShopLabelSearch LabelQuery { get; set; }
-
- }
-
-
- public class BdSingleShopPerMonthProductSalesPlanDetailReq
- {
- ///
- /// 店铺id
- ///
- public string ShopId { get; set; }
-
- ///
- /// 列表返回的时间
- ///
- public string VersionTime { get; set; }
-
- }
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Request/BaoDian/ProductSalesScheduleReq.cs b/Reportapi/MyCode.Project.Domain/Message/Request/BaoDian/ProductSalesScheduleReq.cs
deleted file mode 100644
index 1827b5c..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Request/BaoDian/ProductSalesScheduleReq.cs
+++ /dev/null
@@ -1,110 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Request.BaoDian
-{
- public class ProductSalesScheduleReq
- {
- ///
- /// 套餐名称
- ///
- public string PackageName { get; set; }
-
- ///
- /// 状态 1=启用 0=禁用 -1=全部
- ///
- public int Status { get; set; }
-
- ///
- /// 所属类型 11=拓客体验 12=基础套餐 13=叠加套餐 14=家居护理 -1=全部
- ///
- public int PackageType { get; set; }
-
- ///
- /// 商品款号
- ///
- public string CustomNo { get; set; }
-
- ///
- /// 商品编码
- ///
- public string CustomBC { get; set; }
-
- ///
- /// 商品名称
- ///
- public string Name { get; set; }
-
- ///
- /// 功效 1= 清洁 2=补水保湿 3=美白淡斑 4=提拉紧绷 5=淡纹抗皱 6=双抗抗老 -1=全部
- ///
- public int EffectType { get; set; }
-
- ///
- /// 前端忽略
- ///
- public string IdStr { get; set; }
- }
-
- public class ManagerReportBaoDianQuery
- {
- ///
- /// 是否全选店铺 0=否; 1=是
- ///
- public int IfAllShop { get; set; }
-
- ///
- /// 查询店铺数组
- ///
- public List ShopIds { get; set; }
-
- ///
- /// 查询时间类型 1=今天 2=自然月
- ///
- public int SearchType { get; set; }
-
- ///
- /// 自然月选择的年-月 2022-08
- ///
- public string YearMonth { get; set; }
-
- ///
- /// 组织ID 非区域人员跳转页面传 -1
- ///
- public Guid? OrganizationId { get; set; }
-
- /////
- ///// 查询类型 0=区域总览 1=主要店铺 2=指定店铺
- /////
- //public int QuYu { get; set; }
-
- }
-
- public class ManagerShopListBaoDianQuery
- {
-
- ///
- /// 查询时间类型 1=今天 2=自然月
- ///
- public int SearchType { get; set; }
-
- ///
- /// 自然月选择的年-月 2022-08
- ///
- public string YearMonth { get; set; }
-
- ///
- /// 组织ID 非区域人员跳转页面传 -1
- ///
- public Guid? OrganizationId { get; set; }
-
- ///
- /// 达成率类型 1=60%以下 2=60-69.99% 3=70-79.99% 4=80-89.99% 5=90-99.99% 6= 100%以上
- ///
- public int RateType { get; set; }
-
- }
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Request/Bfy/ShopListByLoginIdReq.cs b/Reportapi/MyCode.Project.Domain/Message/Request/Bfy/ShopListByLoginIdReq.cs
deleted file mode 100644
index 65338ff..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Request/Bfy/ShopListByLoginIdReq.cs
+++ /dev/null
@@ -1,48 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Request.Bfy
-{
- public class ShopListByLoginIdReq
- {
- ///
- /// 用户id
- ///
- public Guid Json { get; set; }
-
- ///
- /// 查询key
- ///
- public string LxmZHMDReportKey { get; set; }
- }
-
-
- public class GetTheMonthDataReq
- {
- public DateTime Begin { get; set; }
-
- public DateTime End { get; set; }
- }
-
- public class XunDianOrganizationTreesQuest
- {
- ///
- /// 账户ID
- ///
- public Guid UserId { get; set; }
-
- ///
- /// 组织ID,不可传空
- ///
- public Guid OrganizationId { get; set; }
-
- ///
- /// 密钥
- ///
- public string LxmZHMDReportKey { get; set; }
- }
-
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Request/JackYun/OrderTradeFullInfoGetRequestBizData.cs b/Reportapi/MyCode.Project.Domain/Message/Request/JackYun/OrderTradeFullInfoGetRequestBizData.cs
new file mode 100644
index 0000000..ecfe23a
--- /dev/null
+++ b/Reportapi/MyCode.Project.Domain/Message/Request/JackYun/OrderTradeFullInfoGetRequestBizData.cs
@@ -0,0 +1,82 @@
+using MyCode.Project.Infrastructure.JackYun;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace MyCode.Project.Domain.Message.Request.JackYun
+{
+ public class OrderTradeFullInfoGetRequestBizData : BaseRequestBizData
+ {
+
+ /**
+ * 销售单号,多个用半角逗号分隔
+ */
+ public String tradeNo { get; set; }
+ /**
+ * 页码,0为第1页
+ */
+ public int pageIndex { get; set; }
+ /**
+ * 最后修改时间(起始)
+ */
+ public DateTime startModified { get; set; }
+ /**
+ * 每页记录数,默认50,最大1000
+ */
+ public int pageSize { get; set; }
+ /**
+ * 最后修改时间(截止)
+ */
+ public DateTime endModified { get; set; }
+ /**
+ * 需要返回的字段列表,多个字段用半角逗号分隔,可选值为返回示例中能看到的所有字段。
+ */
+ public String fields { get; set; }
+ /**
+ * 默认返回,首次调用时可以传1获取总记录数
+ */
+ public Byte hasTotal { get; set; }
+ /**
+ * 创建时间(起始)
+ */
+ public DateTime startCreated { get; set; }
+ /**
+ * 创建时间(截止)
+ */
+ public DateTime endCreated { get; set; }
+ /**
+ * 审核时间(起始)
+ */
+ public DateTime startAuditTime { get; set; }
+ /**
+ * 审核时间(截止)
+ */
+ public DateTime endAuditTime { get; set; }
+ /**
+ * 发货时间(起始)
+ */
+ public DateTime startConsignTime { get; set; }
+ /**
+ * 发货时间(截止)
+ */
+ public DateTime endConsignTime { get; set; }
+ /**
+ * 订单状态
+ */
+ public Byte tradeStatus { get; set; }
+ /**
+ * 订单类型
+ */
+ public Byte tradeType { get; set; }
+ /**
+ * 网店订单号
+ */
+ public String sourceTradeNos { get; set; }
+ /**
+ * 店铺id
+ */
+ public long[] shopIds { get; set; }
+ }
+}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Request/Label/ShopLabelSearch.cs b/Reportapi/MyCode.Project.Domain/Message/Request/Label/ShopLabelSearch.cs
deleted file mode 100644
index e4e302e..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Request/Label/ShopLabelSearch.cs
+++ /dev/null
@@ -1,21 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Request.Label
-{
- public class ShopLabelSearch
- {
- ///
- /// 查询类型 0=没选此条件 1= 或关系 2= 且关系
- ///
- public int SearchType { get; set; }
-
- ///
- /// 选中的标签ID数组
- ///
- public List LabelIds { get; set; }
- }
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Request/LxmZHMDReport/CollectionRankReportReq.cs b/Reportapi/MyCode.Project.Domain/Message/Request/LxmZHMDReport/CollectionRankReportReq.cs
deleted file mode 100644
index d6bf0f4..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Request/LxmZHMDReport/CollectionRankReportReq.cs
+++ /dev/null
@@ -1,57 +0,0 @@
-using MyCode.Project.Domain.Message.Request.Label;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Request.LxmZHMDReport
-{
- public class CollectionRankReportReq
- {
- ///
- /// 店铺id
- ///
- public Guid? ShopId { get; set; }
-
- ///
- /// 加盟商id
- ///
- public Guid? CustomerId { get; set; }
-
- ///
- /// 店铺编码
- ///
- public string Code { get; set; }
-
- ///
- /// 区域id
- ///
- public Guid? ZoneId { get; set; }
-
- ///
- /// 省id
- ///
- public Guid? ProvinceId { get; set; }
-
- ///
- /// 市id
- ///
- public Guid? CityId { get; set; }
-
- ///
- ///日期
- ///
- public DateTime? StartTime { get; set; }
-
- ///
- /// 前端忽略
- ///
- public string ShopIdStr { get; set; }
-
- ///
- /// 店铺标签
- ///
- public ShopLabelSearch LabelQuery { get; set; }
- }
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Request/LxmZHMDReport/CollectionTotalReportReq.cs b/Reportapi/MyCode.Project.Domain/Message/Request/LxmZHMDReport/CollectionTotalReportReq.cs
deleted file mode 100644
index dac2a50..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Request/LxmZHMDReport/CollectionTotalReportReq.cs
+++ /dev/null
@@ -1,57 +0,0 @@
-using MyCode.Project.Domain.Message.Request.Label;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Request.LxmZHMDReport
-{
- public class CollectionTotalReportReq
- {
- ///
- /// 店铺id
- ///
- public Guid? ShopId { get; set; }
-
- ///
- /// 加盟商id
- ///
- public Guid? CustomerId { get; set; }
-
- ///
- /// 店铺编码
- ///
- public string Code { get; set; }
-
- ///
- /// 区域id
- ///
- public Guid? ZoneId { get; set; }
-
- ///
- /// 省id
- ///
- public Guid? ProvinceId { get; set; }
-
- ///
- /// 市id
- ///
- public Guid? CityId { get; set; }
-
- ///
- ///日期
- ///
- public TimeRange TimeRange { get; set; }
-
- ///
- /// 前端忽略
- ///
- public string ShopIdStr { get; set; }
-
- ///
- /// 店铺标签
- ///
- public ShopLabelSearch LabelQuery { get; set; }
- }
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Request/LxmZHMDReport/MemberAssetInquiryReq.cs b/Reportapi/MyCode.Project.Domain/Message/Request/LxmZHMDReport/MemberAssetInquiryReq.cs
deleted file mode 100644
index 477b2ab..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Request/LxmZHMDReport/MemberAssetInquiryReq.cs
+++ /dev/null
@@ -1,94 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Request.LxmZHMDReport
-{
- public class MemberAssetInquiryReq
- {
- ///
- /// 店铺ID
- ///
- public Guid? ShopId { get; set; }
-
- ///
- /// 会员名称
- ///
- public string Name { get; set; }
-
- ///
- /// 会员号
- ///
- public string Code { get; set; }
- }
-
-
- public class MemberShopDetailReq
- {
- ///
- /// 店铺ID,NULL=全部
- ///
- public Guid? ShopId { get; set; }
-
-
- ///
- /// 会员ID
- ///
- public Guid MemberId { get; set; }
-
- ///
- /// 是否共享资产查询 0=否 1=是
- ///
- public int IfSharedQuery { get; set; }
- }
-
- public class MemberAccountBookLogReq
- {
- ///
- /// 店铺ID,NULL=全部
- ///
- public Guid? ShopId { get; set; }
-
- ///
- /// 消费类型 -1:全部 0:销售 1:退货 2=换货 20:预售 30:充值单
- ///
- public int SalesType { get; set; }
-
- ///
- /// 会员ID
- ///
- public Guid MemberId { get; set; }
-
- ///
- /// 查询时间
- ///
- public TimeRange SearchTime { get; set; }
-
- ///
- /// 是否共享资产查询 0=否 1=是
- ///
- public int IfSharedQuery { get; set; }
- }
-
- public class MemberServiceOrderRequst
- {
- ///
- /// 店铺ID,NULL=全部
- ///
- public Guid? ShopId { get; set; }
-
- ///
- /// 会员ID
- ///
- public Guid MemberID { get; set; }
-
-
- ///
- /// 时间范围搜索
- ///
- public TimeRange SearchTime { get; set; }
- }
-
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Request/LxmZHMDReport/MonthOperationReportReq.cs b/Reportapi/MyCode.Project.Domain/Message/Request/LxmZHMDReport/MonthOperationReportReq.cs
deleted file mode 100644
index 9fe6e56..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Request/LxmZHMDReport/MonthOperationReportReq.cs
+++ /dev/null
@@ -1,31 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Request.LxmZHMDReport
-{
- public class MonthOperationReportReq
- {
- ///
- /// 查询key
- ///
- public Guid? LxmZHMDReportKey { get; set; }
-
- ///
- /// 年
- ///
- public int Year { get; set; }
-
- ///
- /// 月
- ///
- public int Month { get; set; }
-
- ///
- /// 店铺id
- ///
- public Guid? ShopId { get; set; }
- }
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Request/LxmZHMDReport/RpShopZhenduansibiaoSearchReq.cs b/Reportapi/MyCode.Project.Domain/Message/Request/LxmZHMDReport/RpShopZhenduansibiaoSearchReq.cs
deleted file mode 100644
index 9246fe3..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Request/LxmZHMDReport/RpShopZhenduansibiaoSearchReq.cs
+++ /dev/null
@@ -1,26 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Request.LxmZHMDReport
-{
- public class RpShopZhenduansibiaoSearchReq
- {
- ///
- /// 查询key
- ///
- public Guid? LxmZHMDReportKey { get; set; }
-
- ///
- /// 年
- ///
- public int Year { get; set; }
-
- ///
- /// 月
- ///
- public int Month { get; set; }
- }
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Request/LxmZHMDReport/RpShopZhenduansibiaoYejiDataReq.cs b/Reportapi/MyCode.Project.Domain/Message/Request/LxmZHMDReport/RpShopZhenduansibiaoYejiDataReq.cs
deleted file mode 100644
index bd1b902..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Request/LxmZHMDReport/RpShopZhenduansibiaoYejiDataReq.cs
+++ /dev/null
@@ -1,26 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Request.LxmZHMDReport
-{
- public class RpShopZhenduansibiaoYejiDataReq
- {
- ///
- /// 查询key
- ///
- public Guid? LxmZHMDReportKey { get; set; }
-
- ///
- /// 店铺id列表
- ///
- public List ShopIdList { get; set; }
-
- ///
- /// 时间
- ///
- public TimeRange TimeRange { get; set; }
- }
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Request/LxmZHMDReport/SalesNOMemberAmountReq.cs b/Reportapi/MyCode.Project.Domain/Message/Request/LxmZHMDReport/SalesNOMemberAmountReq.cs
deleted file mode 100644
index aa62209..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Request/LxmZHMDReport/SalesNOMemberAmountReq.cs
+++ /dev/null
@@ -1,87 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Request.LxmZHMDReport
-{
- ///
- /// 均店报表查询
- ///
- public class SalesNOMemberAmountReq
- {
- ///
- /// 店铺id
- ///
- public Guid? ShopId
- {
- get;
- set;
- }
-
- ///
- /// 店铺编码
- ///
- public string ShopCode
- {
- get;
- set;
- }
-
- ///
- /// 加盟商id
- ///
- public Guid? CustomerId
- {
- get;
- set;
- }
-
- ///
- /// 区域id
- ///
- public Guid? ZoneId
- {
- get;
- set;
- }
-
- ///
- /// 区域经理
- ///
- public string ZoneManager
- {
- get;
- set;
- }
-
- ///
- /// 省ID
- ///
- public Guid? ProvinceId
- {
- get;
- set;
- }
-
- ///
- /// 市id
- ///
- public Guid? CityId
- {
- get;
- set;
- }
-
- ///
- /// 开始到结束的年月
- ///
- public TimeRange TimeRange
- {
- get;
- set;
- }
-
- }
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Request/LxmZHMDReport/ShopAvgReq.cs b/Reportapi/MyCode.Project.Domain/Message/Request/LxmZHMDReport/ShopAvgReq.cs
deleted file mode 100644
index fe7cc8b..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Request/LxmZHMDReport/ShopAvgReq.cs
+++ /dev/null
@@ -1,106 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Request.LxmZHMDReport
-{
- ///
- /// 均店报表查询
- ///
- public class ShopAvgReq
- {
- ///
- /// 店铺id
- ///
- public Guid? ShopId
- {
- get;
- set;
- }
-
- ///
- /// 店铺编码
- ///
- public string ShopCode
- {
- get;
- set;
- }
-
- ///
- /// 均单类型 1:小于 2:大于等于
- ///
- public int AvgType
- {
- get;
- set;
- }
-
- ///
- /// 均单业绩
- ///
- public decimal? AvgAmount
- {
- get;
- set;
- }
-
-
- ///
- /// 加盟商id
- ///
- public Guid? CustomerId
- {
- get;
- set;
- }
-
- ///
- /// 区域id
- ///
- public Guid? ZoneId
- {
- get;
- set;
- }
-
- ///
- /// 区域经理
- ///
- public string ZoneManager
- {
- get;
- set;
- }
-
- ///
- /// 省ID
- ///
- public Guid? ProvinceId
- {
- get;
- set;
- }
-
- ///
- /// 市id
- ///
- public Guid? CityId
- {
- get;
- set;
- }
-
- ///
- /// 开始到结束的年月
- ///
- public TimeRange TimeRange
- {
- get;
- set;
- }
-
- }
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Request/LxmZHMDReport/ShopDatePerformanceReportReq.cs b/Reportapi/MyCode.Project.Domain/Message/Request/LxmZHMDReport/ShopDatePerformanceReportReq.cs
deleted file mode 100644
index 3d94a0c..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Request/LxmZHMDReport/ShopDatePerformanceReportReq.cs
+++ /dev/null
@@ -1,62 +0,0 @@
-using MyCode.Project.Domain.Message.Request.Label;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Request.LxmZHMDReport
-{
- public class ShopDatePerformanceReportReq
- {
- ///
- /// 店铺id
- ///
- public Guid? ShopId { get; set; }
-
- ///
- /// 加盟商id
- ///
- public Guid? CustomerId { get; set; }
-
- ///
- /// 店铺编码
- ///
- public string Code { get; set; }
-
- ///
- /// 店铺类型 1=直营 2=联营 3=加盟 4=员工内购
- ///
- public int ShopKind { get; set; }
-
- ///
- /// 区域id
- ///
- public Guid? ZoneId { get; set; }
-
- ///
- /// 省id
- ///
- public Guid? ProvinceId { get; set; }
-
- ///
- /// 市id
- ///
- public Guid? CityId { get; set; }
-
- ///
- ///日期
- ///
- public TimeRange TimeRange { get; set; }
-
- ///
- /// 前端忽略
- ///
- public string ShopIdStr { get; set; }
-
- ///
- /// 店铺标签
- ///
- public ShopLabelSearch LabelQuery { get; set; }
- }
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Request/LxmZHMDReport/ShopDiagnosisReportReq.cs b/Reportapi/MyCode.Project.Domain/Message/Request/LxmZHMDReport/ShopDiagnosisReportReq.cs
deleted file mode 100644
index bd26719..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Request/LxmZHMDReport/ShopDiagnosisReportReq.cs
+++ /dev/null
@@ -1,62 +0,0 @@
-using MyCode.Project.Domain.Message.Request.Label;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Request.LxmZHMDReport
-{
- public class ShopDiagnosisReportReq
- {
- ///
- /// 店铺Id列表
- ///
- public List ShopIdList { get; set; }
-
- ///
- /// 加盟商i的
- ///
- public Guid? CustomerId { get; set; }
-
- ///
- /// 店铺编码
- ///
- public string Code { get; set; }
-
- ///
- /// 区域id
- ///
- public Guid?ZoneId { get; set; }
-
- ///
- /// 省id
- ///
- public Guid? ProvinceId { get; set; }
-
- ///
- /// 市id
- ///
- public Guid? CityId { get; set; }
-
- ///
- /// 时间
- ///
- public TimeRange TimeRange { get; set; }
-
- ///
- /// 区域经理
- ///
- public string RegionManager { get; set; }
-
- ///
- /// 前端忽略
- ///
- public string ShopIdStr { get; set; }
-
- ///
- /// 店铺标签
- ///
- public ShopLabelSearch LabelQuery { get; set; }
- }
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Request/LxmZHMDReport/ShopDiagnosisSummaryReportReq.cs b/Reportapi/MyCode.Project.Domain/Message/Request/LxmZHMDReport/ShopDiagnosisSummaryReportReq.cs
deleted file mode 100644
index 209a417..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Request/LxmZHMDReport/ShopDiagnosisSummaryReportReq.cs
+++ /dev/null
@@ -1,285 +0,0 @@
-using MyCode.Project.Domain.Message.Request.Label;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Request.LxmZHMDReport
-{
- public class ShopDiagnosisSummaryReportReq
- {
- ///
- /// 店铺id
- ///
- public Guid? ShopId { get; set; }
- ///
- /// 店铺Id列表
- ///
- public List ShopIdList { get; set; }
-
- ///
- /// 加盟商i的
- ///
- public Guid? CustomerId { get; set; }
-
- ///
- /// 店铺编码
- ///
- public string Code { get; set; }
-
- ///
- /// 区域id
- ///
- public Guid? ZoneId { get; set; }
-
- ///
- /// 省id
- ///
- public Guid? ProvinceId { get; set; }
-
- ///
- /// 市id
- ///
- public Guid? CityId { get; set; }
-
- ///
- /// 前端忽略
- ///
- public string ShopIdStr { get; set; }
-
- ///
- /// 区域经理
- ///
- public string RegionManager { get; set; }
-
- ///
- /// 时间 按月份查询,前端默认选中当前月,不选后端会拦截查询
- ///
- public TimeRange TimeRange { get; set; }
-
- ///
- /// 店铺标签
- ///
- public ShopLabelSearch LabelQuery { get; set; }
-
- ///
- /// 排序字段
- ///
- public string SortString { get; set; }
-
- ///
- /// 排序类型 默认 1=倒序, 0=顺序
- ///
- public int SortType { get; set; }
- }
-
- public class SalesOrderAttributeAnalysisReq
- {
- ///
- /// 店铺id
- ///
- public Guid? ShopId { get; set; }
-
- ///
- /// 单据号
- ///
- public string Sheet { get; set; }
-
-
- ///
- /// 顾客来源 -1=全部 0= 其他; 1= 抖音; 2= 美团; 3=自然流量; 4=老顾客裂变 5=1元公益、派单
- ///
- public List FromType { get; set; }
-
- ///
- /// 顾客类型 -1=全部 1=新客 2=老客 3=非会员
- ///
- public int? MemberType { get; set; }
-
- ///
- /// 购买行为 -1=全部 1=首单 2=复购 3=---
- ///
- public int? PurchasingBehavior { get; set; }
-
- ///
- /// 单据类型 -1=全部 1=销售订单 2=预售订单 3=充值单 4=退换货订单 6=预转销订单
- ///
- public List SheetType { get; set; }
-
- ///
- /// 单据来源 -1=全部 1=智慧门店 0=冰芙云
- ///
- public int? PlatformSource { get; set; }
-
- ///
- /// 顾客信息
- ///
- public string MemberInfo { get; set; }
-
-
- ///
- /// 消费日期 按多个月份查询
- ///
- public TimeRange TimeRange { get; set; }
-
- ///
- /// 加盟商ID
- ///
- public Guid? CustomerId { get; set; }
-
-
- ///
- /// 店铺标签
- ///
- public ShopLabelSearch LabelQuery { get; set; }
-
- }
-
-
- public class MemberValueReportReq
- {
- ///
- /// 店铺id
- ///
- public Guid? ShopId { get; set; }
-
- ///
- /// 店铺Id列表
- ///
- public List ShopIdList { get; set; }
-
- ///
- /// 加盟商i的
- ///
- public Guid? CustomerId { get; set; }
-
- ///
- /// 店铺编码
- ///
- public string Code { get; set; }
-
- ///
- /// 区域id
- ///
- public Guid? ZoneId { get; set; }
-
- ///
- /// 省id
- ///
- public Guid? ProvinceId { get; set; }
-
- ///
- /// 市id
- ///
- public Guid? CityId { get; set; }
-
- ///
- /// 前端忽略
- ///
- public string ShopIdStr { get; set; }
-
- ///
- /// 会员名称
- ///
- public string MemberName { get; set; }
-
-
- ///
- /// 会员手机号
- ///
- public string Mobile { get; set; }
-
- ///
- /// 会员等级ID
- ///
- public Guid? GrageId { get; set; }
-
- ///
- /// 消费时间
- ///
- public TimeRange ConsumptionTime { get; set; }
-
- ///
- /// 注册时间
- ///
- public TimeRange RegistrationTime { get; set; }
- }
-
- public class SingleShopOperateSummaryXinLaoKeReq
- {
- ///
- /// 店铺id
- ///
- public Guid? ShopId { get; set; }
- ///
- ///
- ///
- public DateTime? Days { get; set; }
- }
-
- public class TuoLiuSuoShengDataReportReq
- {
- ///
- /// 店铺id
- ///
- public Guid? ShopId { get; set; }
- ///
- /// 店铺Id列表
- ///
- public List ShopIdList { get; set; }
-
- ///
- /// 加盟商i的
- ///
- public Guid? CustomerId { get; set; }
-
- ///
- /// 店铺编码
- ///
- public string Code { get; set; }
-
- ///
- /// 区域id
- ///
- public Guid? ZoneId { get; set; }
-
- ///
- /// 前端忽略
- ///
- public string ShopIdStr { get; set; }
-
- ///
- /// 区域经理
- ///
- public string RegionManager { get; set; }
-
- ///
- /// 时间 按年月日查询,前端默认选中最近一个月,不选后端会拦截查询
- ///
- public TimeRange TimeRange { get; set; }
-
- ///
- /// 店铺标签
- ///
- public ShopLabelSearch LabelQuery { get; set; }
- }
-
- public class YangBanDianJianCeReq
- {
- ///
- /// 姓名
- ///
- public string UserName { get; set; }
-
- ///
- /// 时间 按年月日查询,前端默认选中最近一个月,不选后端会拦截查询
- ///
- public TimeRange TimeRange { get; set; }
-
- ///
- /// 人员类型 -1 全部;11 总部管理者 12 加盟商+店员
- ///
- public int? RoleType { get; set; }
- }
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Request/LxmZHMDReport/ShopMonthsPerformanceReportReq.cs b/Reportapi/MyCode.Project.Domain/Message/Request/LxmZHMDReport/ShopMonthsPerformanceReportReq.cs
deleted file mode 100644
index ec59cc2..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Request/LxmZHMDReport/ShopMonthsPerformanceReportReq.cs
+++ /dev/null
@@ -1,56 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Request.LxmZHMDReport
-{
- public class ShopMonthsPerformanceReportReq
- {
- ///
- /// 店铺id
- ///
- public Guid? ShopId { get; set; }
-
- ///
- /// 加盟商id
- ///
- public Guid? CustomerId { get; set; }
-
- ///
- /// 店铺编码
- ///
- public string Code { get; set; }
-
- ///
- /// 店铺类型 1=直营 2=联营 3=加盟 4=员工内购
- ///
- public int ShopKind { get; set; }
-
- ///
- /// 区域id
- ///
- public Guid? ZoneId { get; set; }
-
- ///
- /// 省id
- ///
- public Guid? ProvinceId { get; set; }
-
- ///
- /// 市id
- ///
- public Guid? CityId { get; set; }
-
- ///
- ///日期
- ///
- public TimeRange TimeRange { get; set; }
-
- ///
- /// 前端忽略
- ///
- public string ShopIdStr { get; set; }
- }
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Request/LxmZHMDReport/ShopOperationDataReportReq.cs b/Reportapi/MyCode.Project.Domain/Message/Request/LxmZHMDReport/ShopOperationDataReportReq.cs
deleted file mode 100644
index ce136d5..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Request/LxmZHMDReport/ShopOperationDataReportReq.cs
+++ /dev/null
@@ -1,67 +0,0 @@
-using MyCode.Project.Domain.Message.Request.Label;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Request.LxmZHMDReport
-{
- public class ShopOperationDataReportReq
- {
- ///
- /// 店铺id
- ///
- public Guid? ShopId { get; set; }
-
- ///
- /// 加盟商id
- ///
- public Guid? CustomerId { get; set; }
-
- ///
- /// 店铺编码
- ///
- public string Code { get; set; }
-
- ///
- /// 店铺类型 1=直营 2=联营 3=加盟 4=员工内购
- ///
- public int ShopKind { get; set; }
-
- ///
- /// 区域id
- ///
- public Guid? ZoneId { get; set; }
-
- ///
- /// 省id
- ///
- public Guid? ProvinceId { get; set; }
-
- ///
- /// 市id
- ///
- public Guid? CityId { get; set; }
-
- ///
- /// 区域经理
- ///
- public string RegionManager { get; set; }
-
- ///
- ///日期
- ///
- public TimeRange TimeRange { get; set; }
-
- ///
- /// 前端忽略
- ///
- public string ShopIdStr { get; set; }
-
- ///
- /// 店铺标签
- ///
- public ShopLabelSearch LabelQuery { get; set; }
- }
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Request/LxmZHMDReport/SingleShopOperateSummaryReq.cs b/Reportapi/MyCode.Project.Domain/Message/Request/LxmZHMDReport/SingleShopOperateSummaryReq.cs
deleted file mode 100644
index 471af3e..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Request/LxmZHMDReport/SingleShopOperateSummaryReq.cs
+++ /dev/null
@@ -1,51 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Request.LxmZHMDReport
-{
- public class SingleShopOperateSummaryReq
- {
- ///
- /// 店铺Id列表
- ///
- public List ShopIdList { get; set; }
-
- ///
- /// 加盟商i的
- ///
- public Guid? CustomerId { get; set; }
-
- ///
- /// 店铺编码
- ///
- public string Code { get; set; }
-
- ///
- /// 区域id
- ///
- public Guid? ZoneId { get; set; }
-
- ///
- /// 省id
- ///
- public Guid? ProvinceId { get; set; }
-
- ///
- /// 市id
- ///
- public Guid CityId { get; set; }
-
- ///
- /// 时间
- ///
- public TimeRange TimeRange { get; set; }
-
- ///
- /// 前端忽略
- ///
- public string ShopIdStr { get; set; }
- }
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Request/Report/ReportQuest2309.cs b/Reportapi/MyCode.Project.Domain/Message/Request/Report/ReportQuest2309.cs
deleted file mode 100644
index 717dfb5..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Request/Report/ReportQuest2309.cs
+++ /dev/null
@@ -1,116 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Request.Report
-{
- public class ReportQuest2309
- {
- }
-
- public class RpShopJingYingYueBaoQuest2309
- {
- ///
- /// 店铺id
- ///
- public Guid? ShopId { get; set; }
- ///
- /// 店铺Id列表
- ///
- public List ShopIdList { get; set; }
-
- ///
- /// 加盟商i的
- ///
- public Guid? CustomerId { get; set; }
-
- ///
- /// 店铺编码
- ///
- public string Code { get; set; }
-
- ///
- /// 区域id
- ///
- public Guid? ZoneId { get; set; }
-
- ///
- /// 省id
- ///
- public Guid? ProvinceId { get; set; }
-
- ///
- /// 市id
- ///
- public Guid? CityId { get; set; }
-
- ///
- /// 前端忽略
- ///
- public string ShopIdStr { get; set; }
-
- ///
- /// 时间 按多个月份查询
- ///
- public TimeRange TimeRange { get; set; }
-
- ///
- /// 区域经理
- ///
- public string RegionManager { get; set; }
- }
-
-
- public class RpDuDaoKanBanQuest2310
- {
- ///
- /// 查询类型 0=自然月 1=今天 2=昨天
- ///
- public int SearchType { get; set; }
-
- ///
- /// 自然月类型选择的年月 格式: "2023-10"
- ///
- public DateTime SearchTime { get; set; }
-
-
- ///
- /// 固定传值: 0DBE344A-ED9E-4EE6-A1EF-1BF63A771F42
- ///
- public string Key { get; set; }
- }
-
- public class DHShopOrderAmountQuest
- {
- ///
- /// 大于等于开始时间
- ///
- public DateTime beginTime { get; set; }
-
- ///
- /// 小于等于截止时间
- ///
- public DateTime endTime { get; set; }
- }
-
- public class RpYangBanDian2409
- {
- ///
- /// 选中的店铺标签
- ///
- public Guid? ShopLabelId { get; set; }
-
- ///
- /// 时间
- ///
- public TimeRange SearchTime { get; set; }
-
-
- ///
- /// 固定传值: 0DBE344A-ED9E-4EE6-A1EF-1BF63A771F42
- ///
- public string Key { get; set; }
- }
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Request/Report24/TuoKeReportReq2407.cs b/Reportapi/MyCode.Project.Domain/Message/Request/Report24/TuoKeReportReq2407.cs
deleted file mode 100644
index cf3eea7..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Request/Report24/TuoKeReportReq2407.cs
+++ /dev/null
@@ -1,327 +0,0 @@
-using MyCode.Project.Domain.Message.Request.Label;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Request.Report24
-{
- public class TuoKeReportReq2407
- {
-
- }
-
- public class TuoKeTiYanGuanKongReportReq2407
- {
- ///
- /// 店铺id
- ///
- public Guid? ShopId { get; set; }
-
- ///
- /// 日期
- ///
- public TimeRange TimeRange { get; set; }
-
- ///
- ///客户信息
- ///
- public string MemberInfo { get; set; }
-
- ///
- /// 顾客来源 -1=全部 0= 其他; 1= 抖音; 2= 美团; 3=自然流量; 4=老顾客裂变 5=1元公益、派单
- ///
- public List FromType { get; set; }
-
- ///
- /// 是否购买留客卡 -1=全部 1=是 0=否
- ///
- public int IfLiuKe { get; set; }
-
- ///
- /// 加盟商id
- ///
- public Guid? CustomerId { get; set; }
-
- ///
- /// 店铺编码
- ///
- public string Code { get; set; }
-
- ///
- /// 区域id
- ///
- public Guid? ZoneId { get; set; }
-
- ///
- /// 省id
- ///
- public Guid? ProvinceId { get; set; }
-
- ///
- /// 市id
- ///
- public Guid? CityId { get; set; }
-
- ///
- /// 店铺标签
- ///
- public ShopLabelSearch LabelQuery { get; set; }
-
- ///
- /// 前端忽略
- ///
- public string ShopIdStr { get; set; }
- }
-
- public class RiFuWuTuiJinReportReq2407
- {
- ///
- /// 店铺id
- ///
- public Guid? ShopId { get; set; }
-
- ///
- /// 日期
- ///
- public TimeRange TimeRange { get; set; }
-
- ///
- ///客户信息
- ///
- public string MemberInfo { get; set; }
-
- ///
- /// 加盟商id
- ///
- public Guid? CustomerId { get; set; }
-
- ///
- /// 店铺编码
- ///
- public string Code { get; set; }
-
- ///
- /// 区域id
- ///
- public Guid? ZoneId { get; set; }
-
- ///
- /// 省id
- ///
- public Guid? ProvinceId { get; set; }
-
- ///
- /// 市id
- ///
- public Guid? CityId { get; set; }
-
- ///
- /// 店铺标签
- ///
- public ShopLabelSearch LabelQuery { get; set; }
-
- ///
- /// 店员名称
- ///
- public string ClerkName { get; set; }
-
- ///
- /// 前端忽略
- ///
- public string ShopIdStr { get; set; }
- }
-
- public class LiuKeZhuanHuanReportReq2407
- {
- ///
- /// 店铺id
- ///
- public Guid? ShopId { get; set; }
-
- ///
- /// 日期
- ///
- public TimeRange TimeRange { get; set; }
-
- ///
- /// 加盟商id
- ///
- public Guid? CustomerId { get; set; }
-
- ///
- /// 店铺编码
- ///
- public string Code { get; set; }
-
- ///
- /// 区域id
- ///
- public Guid? ZoneId { get; set; }
-
- ///
- /// 省id
- ///
- public Guid? ProvinceId { get; set; }
-
- ///
- /// 市id
- ///
- public Guid? CityId { get; set; }
-
- ///
- /// 店铺标签
- ///
- public ShopLabelSearch LabelQuery { get; set; }
-
- ///
- /// 店员名称
- ///
- public string ClerkName { get; set; }
-
- ///
- /// 前端忽略
- ///
- public string ShopIdStr { get; set; }
- }
-
- public class LiuKeShenKeGuanKongReportReq2407
- {
- ///
- /// 店铺id
- ///
- public Guid? ShopId { get; set; }
-
- ///
- /// 顾客第一次体验时间
- ///
- public TimeRange FirstExperienceTimeRange { get; set; }
-
- ///
- ///客户信息
- ///
- public string MemberInfo { get; set; }
-
- ///
- /// 购买留客卡项目名称
- ///
- public string GouMaiLiuKeName { get; set; }
-
- ///
- /// 购买留客卡时间
- ///
- public TimeRange GouMaiLiuKeTimeRange { get; set; }
-
- ///
- /// 进店时间
- ///
- public TimeRange JinDianTimeRange { get; set; }
-
-
- ///
- /// 顾客来源 -1=全部 0= 其他; 1= 抖音; 2= 美团; 3=自然流量; 4=老顾客裂变 5=1元公益、派单
- ///
- public List FromType { get; set; }
-
- ///
- /// 加盟商id
- ///
- public Guid? CustomerId { get; set; }
-
- ///
- /// 店铺编码
- ///
- public string Code { get; set; }
-
- ///
- /// 区域id
- ///
- public Guid? ZoneId { get; set; }
-
- ///
- /// 省id
- ///
- public Guid? ProvinceId { get; set; }
-
- ///
- /// 市id
- ///
- public Guid? CityId { get; set; }
-
- ///
- /// 店铺标签
- ///
- public ShopLabelSearch LabelQuery { get; set; }
-
- ///
- /// 店员名称
- ///
- public string ClerkName { get; set; }
-
- ///
- /// 前端忽略
- ///
- public string ShopIdStr { get; set; }
- }
-
-
- public class YaoYueDaoDianReportReq2407
- {
- ///
- /// 店铺id
- ///
- public Guid? ShopId { get; set; }
-
- ///
- ///客户信息
- ///
- public string MemberInfo { get; set; }
-
- ///
- /// 购买留客卡项目名称
- ///
- public string GouMaiLiuKeName { get; set; }
-
- ///
- /// 邀约时间
- ///
- public TimeRange YaoYueTimeRange { get; set; }
-
-
- ///
- /// 加盟商id
- ///
- public Guid? CustomerId { get; set; }
-
- ///
- /// 店铺编码
- ///
- public string Code { get; set; }
-
- ///
- /// 区域id
- ///
- public Guid? ZoneId { get; set; }
-
- ///
- /// 省id
- ///
- public Guid? ProvinceId { get; set; }
-
- ///
- /// 市id
- ///
- public Guid? CityId { get; set; }
-
- ///
- /// 店铺标签
- ///
- public ShopLabelSearch LabelQuery { get; set; }
-
- ///
- /// 前端忽略
- ///
- public string ShopIdStr { get; set; }
- }
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Response/AMing/RptQuYuKanBan.cs b/Reportapi/MyCode.Project.Domain/Message/Response/AMing/RptQuYuKanBan.cs
deleted file mode 100644
index 9ac3e38..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Response/AMing/RptQuYuKanBan.cs
+++ /dev/null
@@ -1,356 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Response.AMing
-{
- public class RptQuYuKanBan
- {
- ///
- /// 自然月选择的年-月 2022-08
- ///
- public string YearMonth { get; set; }
-
- ///
- /// 门店范围
- ///
- public string MenDianFanWei { get; set; }
-
- ///
- /// 管理店铺数量
- ///
- public int GuanLiShuoCount { get; set; }
-
- ///
- /// 店铺数量
- ///
- public string ShopCount { get; set; }
-
- ///
- /// 数据类型
- ///
- public string DataType{ get; set; }
-
- ///
- /// 总收款
- ///
- public string ZongShouKuan { get; set; }
-
-
- ///
- /// 总业绩
- ///
- public string ZongYeJi { get; set; }
-
- ///
- /// 饰品
- ///
- public string ShiPin { get; set; }
-
- ///
- /// 彩妆
- ///
- public string CaiZhuang { get; set; }
-
- ///
- /// 护肤
- ///
- public string HuFu { get; set; }
-
- ///
- /// 服务业绩
- ///
- public string FuWu { get; set; }
-
- ///
- /// 其它业绩
- ///
- public string QiTa { get; set; }
-
- ///
- /// 月拓客体验数
- ///
- public string YueTuoKeTiYan { get; set; }
-
- ///
- /// 月新客首单数--总数
- ///
- public string YueXinKeShouDan { get; set; }
-
- ///
- /// 月新客首单数--只买了产品
- ///
- public string YueXinKeShouDan2 { get; set; }
- ///
- /// 月新客首单数---买了产品+赠送了服务
- ///
- public string YueXinKeShouDan3 { get; set; }
-
- ///
- /// :首单客单(均):月新客首单金额/月新客首单人数(产品不包含体验套、其他类、服务类)
- ///
- public string ShouDanKeDan { get; set; }
-
- ///
- /// 月升单复购数---总数
- ///
- public string YueShengDanRenShu { get; set; }
-
- ///
- /// 月升单复购数---只买了产品
- ///
- public string YueShengDanRenShu2 { get; set; }
-
- ///
- /// 月升单复购数---买了产品+赠送了服务
- ///
- public string YueShengDanRenShu3 { get; set; }
-
- ///
- /// 复购客单(均)
- ///
- public string FuGouKeDan { get; set; }
-
- ///
- /// 套餐总人数
- ///
- public string TaoCanZongRenShu { get; set; }
-
- ///
- /// 1套人数
- ///
- public string TaoCan1taoRenShu { get; set; }
-
-
- ///
- /// 2套人数
- ///
- public string TaoCan2taoRenShu { get; set; }
-
- ///
- /// 3套以上人数
- ///
- public string TaoCan3taoRenShu { get; set; }
-
-
- ///
- /// 套餐项目数
- ///
- public string TaoCanZongShu { get; set; }
- ///
- /// 新增套餐数
- ///
- public string TaoCanXinZengShu { get; set; }
-
- ///
- /// 1月2次
- ///
- public string TaoCanHuoYue1m2 { get; set; }
-
- ///
- /// 1月1次
- ///
- public string TaoCanHuoYue1m1 { get; set; }
-
- ///
- /// 2月1次
- ///
- public string TaoCanHuoYue2m1 { get; set; }
-
- ///
- /// 3月1次
- ///
- public string TaoCanHuoYue3m2 { get; set; }
-
- ///
- /// 日均护理人数
- ///
- public string HeXiaoRenShu { get; set; }
-
- ///
- /// 日均护理次数
- ///
- public string HeXiaoCiShu { get; set; }
-
-
- }
-
- public class UserOrganizationTree
- {
- ///
- /// 组织ID
- ///
- public Guid? OrganizationId { get; set; }
-
- ///
- /// 用户ID
- ///
- public Guid? UserId { get; set; }
-
- ///
- /// 用户名
- ///
- public string userName { get; set; }
-
- ///
- /// 组织名
- ///
- public string OrganizationName { get; set; }
-
- ///
- /// 是否最末级 1=是 0=否
- ///
- public int IfEnd { get; set; }
-
- ///
- /// 下级名单树 数组
- ///
- public List ChildTrees { get; set; }
- }
- public class QuYuZongLan2308
- {
- ///
- /// 本月管理店铺数量
- ///
- public int GuanLiShuoCount { get; set; }
-
- ///
- ///上月管理店铺数量
- ///
- public int GuanLiShuoCount2 { get; set; }
-
- ///
- /// 去年管理店铺数量
- ///
- public int GuanLiShuoCount3 { get; set; }
-
- ///
- /// 业绩指标
- ///
- public QuYuItem2308 YeJiZhiBiao { get; set; }
-
-
- ///
- /// 拓客升单
- ///
- public QuYuItem2308 TuoKeShengDan { get; set; }
-
- ///
- /// 套餐统计
- ///
- public QuYuItem2308 TaoCanTongJi { get; set; }
-
- ///
- /// 套餐项目
- ///
- public QuYuItem2308 TaoCanXiangMu { get; set; }
-
-
- ///
- /// 套餐活跃度
- ///
- public QuYuItem2308 TaoCanHuoYueDu { get; set; }
-
- ///
- /// 日均护理动耗次数
- ///
- public QuYuItem2308 RiJunHuLiDongHaoCiShu { get; set; }
-
-
- ///
- /// 本月店铺数量
- ///
- public int ShopCount { get; set; }
-
-
- ///
- /// 上月店铺数量
- ///
- public int ShopCount2 { get; set; }
-
-
- ///
- /// 去年店铺数量
- ///
- public int ShopCount3 { get; set; }
-
-
- }
-
- public class QuYuItem2308
- {
- ///
- /// 方块的标题,例如 业绩指标
- ///
- public string Title { get; set; }
-
- ///
- /// 内容数组
- ///
- public List Items { get; set; }
- }
-
- public class ItemDetailQuYu2308
- {
-
- ///
- /// 标题1,例如 总收款
- ///
- public string ItemText1 { get; set; } = "";
-
- ///
- /// 标题1的值 例如 600
- ///
- public object ValueText1 { get; set; }
-
- ///
- /// 标题1,例如 环比7月 为NULL就不显示
- ///
- public string ItemText2 { get; set; } = "";
-
- ///
- /// 本个月的对比值,前端忽略字段
- ///
- public object BenYue { get; set; }
-
-
- ///
- /// 上个月的对比值,前端忽略字段
- ///
- public object ShangYue { get; set; }
-
- ///
- /// 标题2的值 例如 +2% 为NULL就不显示
- ///
- public object ValueText2 { get; set; }
-
- ///
- /// 箭头 上或者下 0=下 1=上 为NULL就不显示
- ///
- public int? UpOrDown { get; set; }
-
-
- ///
- /// 标题2,例如 同比上年 为NULL就不显示
- ///
- public string ItemText3 { get; set; } = "";
-
- ///
- /// 去年的同比值,前端忽略字段
- ///
- public object QuNian { get; set; }
-
- ///
- /// 标题3的值 例如 +2% 为NULL就不显示
- ///
- public object ValueText3 { get; set; }
-
- ///
- /// 箭头 上或者下 0=下 1=上 为NULL就不显示
- ///
- public int? UpOrDown3 { get; set; }
- }
-
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Response/BaoDian/BdAdminProductSalesPlan.cs b/Reportapi/MyCode.Project.Domain/Message/Response/BaoDian/BdAdminProductSalesPlan.cs
deleted file mode 100644
index 1ff0086..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Response/BaoDian/BdAdminProductSalesPlan.cs
+++ /dev/null
@@ -1,433 +0,0 @@
-using SqlSugar;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Response.BaoDian
-{
- ///
- ///后台报表--产品销售计划进度
- ///
- public partial class BdAdminProductSalesPlan
- {
-
- ///
- /// 日期
- ///
- public string Days { get; set; }
-
- ///
- /// 使用天数
- ///
- [SugarColumn(ColumnName = "shi_yong_tian_shu")]
- public int ShiYongTianShu { get; set; }
-
- ///
- /// 店铺名称
- ///
- [SugarColumn(ColumnName = "shop_name")]
- public string ShopName { get; set; }
-
- ///
- /// 店铺编码
- ///
- [SugarColumn(ColumnName = "shop_code")]
- public string ShopCode { get; set; }
-
- ///
- /// Desc:店铺id
- /// Default:
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "shop_id")]
- public string ShopId { get; set; }
-
- ///
- /// Desc:加盟商id
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "customer_id")]
- public string CustomerId { get; set; }
-
- ///
- /// Desc:版本时间
- /// Default:
- /// Nullable:False
- ///
- [SugarColumn(ColumnName = "version_time")]
- public DateTime VersionTime { get; set; }
-
- ///
- /// Desc:店铺归属
- ///
- [SugarColumn(ColumnName = "customer_name")]
- public string CustomerName { get; set; }
-
- ///
- /// Desc:省
- ///
- [SugarColumn(ColumnName = "province_name")]
- public string ProvinceName { get; set; }
-
- ///
- /// Desc:市
- ///
- [SugarColumn(ColumnName = "city_name")]
- public string CityName { get; set; }
-
- ///
- /// Desc:区
- ///
- [SugarColumn(ColumnName = "zone_name")]
- public string ZoneName { get; set; }
-
-
- ///
- /// Desc:区域督导
- ///
- [SugarColumn(ColumnName = "region_manager")]
- public string RegionManager { get; set; }
-
- ///
- /// Desc:计划指标
- ///
- [SugarColumn(ColumnName = "plan_total_amount")]
- public int PlanTotalAmount { get; set; }
-
- ///
- /// Desc:实际达成
- ///
- [SugarColumn(ColumnName = "completed_price")]
- public decimal CompletedPrice { get; set; }
-
- ///
- /// Desc:达成率
- ///
- [SugarColumn(ColumnName = "completed_rate")]
- public decimal CompletedRate { get; set; }
-
-
- ///
- /// Desc:拓客体验--计划指标
- ///
- [SugarColumn(ColumnName = "plan_total_amountT")]
- public int PlanTotalAmountT { get; set; }
-
- ///
- /// Desc:拓客体验--实际达成
- ///
- [SugarColumn(ColumnName = "completed_priceT")]
- public decimal CompletedPriceT { get; set; }
-
- ///
- /// Desc:拓客体验--达成率
- ///
- [SugarColumn(ColumnName = "completed_rateT")]
- public decimal CompletedRateT { get; set; }
-
- ///
- /// Desc:基础套餐--计划指标
- ///
- [SugarColumn(ColumnName = "plan_total_amountJ")]
- public int PlanTotalAmountJ { get; set; }
-
- ///
- /// Desc:基础套餐--实际达成
- ///
- [SugarColumn(ColumnName = "completed_priceJ")]
- public decimal CompletedPriceJ { get; set; }
-
- ///
- /// Desc:基础套餐--达成率
- ///
- [SugarColumn(ColumnName = "completed_rateJ")]
- public decimal CompletedRateJ { get; set; }
-
-
- ///
- /// Desc:叠加套餐--计划指标
- ///
- [SugarColumn(ColumnName = "plan_total_amountD")]
- public int PlanTotalAmountD { get; set; }
-
- ///
- /// Desc:叠加套餐--实际达成
- ///
- [SugarColumn(ColumnName = "completed_priceD")]
- public decimal CompletedPriceD { get; set; }
-
- ///
- /// Desc:叠加套餐--达成率
- ///
- [SugarColumn(ColumnName = "completed_rateD")]
- public decimal CompletedRateD { get; set; }
-
- ///
- /// Desc:家居护理--计划指标
- ///
- [SugarColumn(ColumnName = "plan_total_amountJu")]
- public int PlanTotalAmountJu { get; set; }
-
- ///
- /// Desc:家居护理--实际达成
- ///
- [SugarColumn(ColumnName = "completed_priceJu")]
- public decimal CompletedPriceJu { get; set; }
-
- ///
- /// Desc:家居护理--达成率
- ///
- [SugarColumn(ColumnName = "completed_rateJu")]
- public decimal CompletedRateJu { get; set; }
-
-
- ///
- /// Desc:彩妆--计划指标
- ///
- [SugarColumn(ColumnName = "plan_total_amountC")]
- public int PlanTotalAmountC { get; set; }
-
- ///
- /// Desc:彩妆--实际达成
- ///
- [SugarColumn(ColumnName = "completed_priceC")]
- public decimal CompletedPriceC { get; set; }
-
- ///
- /// Desc:彩妆--达成率
- ///
- [SugarColumn(ColumnName = "completed_rateC")]
- public decimal CompletedRateC { get; set; }
-
- ///
- /// Desc:发饰--计划指标
- ///
- [SugarColumn(ColumnName = "plan_total_amountF")]
- public int PlanTotalAmountF { get; set; }
-
- ///
- /// Desc:发饰--实际达成
- ///
- [SugarColumn(ColumnName = "completed_priceF")]
- public decimal CompletedPriceF { get; set; }
-
- ///
- /// Desc:发饰--达成率
- ///
- [SugarColumn(ColumnName = "completed_rateF")]
- public decimal CompletedRateF { get; set; }
- }
-
- ///
- ///后台报表--产品销售计划进度的展开详情
- ///
- public partial class BdAdminProductSalesPlanDetail
- {
-
- ///
- /// Desc:店铺id
- /// Default:
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "shop_id")]
- public string ShopId { get; set; }
-
- ///
- /// Desc:店铺名称
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "shop_name")]
- public string ShopName { get; set; }
-
- ///
- /// Desc:产品类型 99=其他
- /// Default:
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "package_type")]
- public int? PackageType { get; set; }
-
- ///
- /// Desc:版本时间
- /// Default:
- /// Nullable:False
- ///
- [SugarColumn(ColumnName = "version_time")]
- public DateTime? VersionTime { get; set; }
-
- ///
- /// Desc:店铺归属
- ///
- [SugarColumn(ColumnName = "customer_name")]
- public string CustomerName { get; set; }
-
- ///
- /// 拓客体验--名称
- ///
- [SugarColumn(ColumnName = "nameT")]
- public string NameT { get; set; }
-
- ///
- /// 拓客体验--计划单价
- ///
- [SugarColumn(ColumnName = "plan_priceT")]
- public decimal? PlanPriceT { get; set; }
-
- ///
- /// Desc:拓客体验--计划指标
- ///
- [SugarColumn(ColumnName = "plan_total_amountT")]
- public int? PlanTotalAmountT { get; set; }
-
- ///
- /// Desc:拓客体验--实际达成
- ///
- [SugarColumn(ColumnName = "completed_priceT")]
- public decimal? CompletedPriceT { get; set; }
-
- ///
- /// Desc:拓客体验--实际达成
- ///
- [SugarColumn(ColumnName = "completed_rate")]
- public decimal CompletedRate { get; set; }
-
- ///
- /// Desc:拓客体验--达成率
- ///
- [SugarColumn(ColumnName = "completed_rateT")]
- public string CompletedRateT { get; set; }
-
- ///
- /// 基础套餐--名称
- ///
- [SugarColumn(ColumnName = "nameJ")]
- public string NameJ { get; set; }
-
- ///
- /// 基础套餐--计划单价
- ///
- [SugarColumn(ColumnName = "plan_priceJ")]
- public decimal? PlanPriceJ { get; set; }
-
- ///
- /// Desc:基础套餐--计划指标
- ///
- [SugarColumn(ColumnName = "plan_total_amountJ")]
- public int? PlanTotalAmountJ { get; set; }
-
- ///
- /// Desc:基础套餐--实际达成
- ///
- [SugarColumn(ColumnName = "completed_priceJ")]
- public decimal? CompletedPriceJ { get; set; }
-
- ///
- /// Desc:基础套餐--达成率
- ///
- [SugarColumn(ColumnName = "completed_rateJ")]
- public string CompletedRateJ { get; set; }
-
- ///
- /// 叠加套餐--名称
- ///
- [SugarColumn(ColumnName = "nameD")]
- public string NameD { get; set; }
-
- ///
- /// 基础套餐--计划单价
- ///
- [SugarColumn(ColumnName = "plan_priceJ")]
- public decimal? PlanPriceD { get; set; }
- ///
- /// Desc:叠加套餐--计划指标
- ///
- [SugarColumn(ColumnName = "plan_total_amountD")]
- public int? PlanTotalAmountD { get; set; }
-
- ///
- /// Desc:叠加套餐--实际达成
- ///
- [SugarColumn(ColumnName = "completed_priceD")]
- public decimal? CompletedPriceD { get; set; }
-
- ///
- /// Desc:叠加套餐--达成率
- ///
- [SugarColumn(ColumnName = "completed_rateD")]
- public string CompletedRateD { get; set; }
-
- ///
- /// 家居护理--名称
- ///
- [SugarColumn(ColumnName = "nameJu")]
- public string NameJu { get; set; }
-
- ///
- /// 家居护理--计划单价
- ///
- [SugarColumn(ColumnName = "plan_priceJu")]
- public decimal? PlanPriceJu { get; set; }
-
- ///
- /// Desc:家居护理--计划指标
- ///
- [SugarColumn(ColumnName = "plan_total_amountJu")]
- public int? PlanTotalAmountJu { get; set; }
-
- ///
- /// Desc:家居护理--实际达成
- ///
- [SugarColumn(ColumnName = "completed_priceJu")]
- public decimal? CompletedPriceJu { get; set; }
-
- ///
- /// Desc:家居护理--达成率
- ///
- [SugarColumn(ColumnName = "completed_rateJu")]
- public string CompletedRateJu { get; set; }
-
- ///
- /// 其他--名称
- ///
- [SugarColumn(ColumnName = "nameQT")]
- public string NameQT { get; set; }
-
- ///
- /// 其他--计划单价
- ///
- [SugarColumn(ColumnName = "plan_priceQT")]
- public decimal? PlanPriceQT { get; set; }
-
-
- ///
- /// Desc:其他--计划指标
- ///
- [SugarColumn(ColumnName = "plan_total_amountQT")]
- public int? PlanTotalAmountQT { get; set; }
-
- ///
- /// Desc:其他--实际达成
- ///
- [SugarColumn(ColumnName = "completed_priceQT")]
- public decimal? CompletedPriceQT { get; set; }
-
- ///
- /// Desc:其他--达成率
- ///
- [SugarColumn(ColumnName = "completed_rateQT")]
- public string CompletedRateQT { get; set; }
-
- ///
- /// Desc:其他--达成率
- ///
- [SugarColumn(ColumnName = "completed_rateQTS")]
- public decimal CompletedRateQTS { get; set; }
-
-
-
- }
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Response/BaoDian/ClerkProductSalesPlanResp.cs b/Reportapi/MyCode.Project.Domain/Message/Response/BaoDian/ClerkProductSalesPlanResp.cs
deleted file mode 100644
index cf40f54..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Response/BaoDian/ClerkProductSalesPlanResp.cs
+++ /dev/null
@@ -1,60 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Response.BaoDian
-{
- ///
- /// 店员销售计划
- ///
- public class ClerkProductSalesPlanResp
- {
- ///
- /// 计划id
- ///
- public long PlanId
- {
- get;
- set;
- }
-
- ///
- /// 套餐id
- ///
- public long PackageId
- {
- get;
- set;
- }
-
- ///
- /// 原来的套餐id
- ///
- public long SourcePackageId
- {
- get;
- set;
- }
-
- ///
- /// 价格
- ///
- public decimal TotalPrice
- {
- get;
- set;
- }
-
- ///
- /// 套餐名
- ///
- public string PackageName
- {
- get;
- set;
- }
- }
-
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Response/BaoDian/ClerkResp.cs b/Reportapi/MyCode.Project.Domain/Message/Response/BaoDian/ClerkResp.cs
deleted file mode 100644
index e26aac4..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Response/BaoDian/ClerkResp.cs
+++ /dev/null
@@ -1,51 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Response.BaoDian
-{
- public class ClerkResp
- {
- ///
- /// 关联id(前端忽略)
- ///
- public string KeyId { get; set; }
-
- ///
- /// 店员id
- ///
- public Guid? ClerkId { get; set; }
-
- ///
- /// 店员名称
- ///
- public string ClerkName { get; set; }
-
- ///
- /// 店员手机号
- ///
- public string ClerkMobile { get; set; }
-
- ///
- /// 店员计划数
- ///
- public decimal ClerkPlanQty { get; set; }
-
- ///
- /// 店员实际达成
- ///
- public decimal ClerkCompletedQty { get; set; }
-
- ///
- /// 店员达成率
- ///
- public decimal ClerkCompletedRate { get; set; }
-
- ///
- /// 店员达成率(%)
- ///
- public string ClerkCompletedPercent { get; set; }
- }
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Response/BaoDian/ItemQtiyUnitPriceResp.cs b/Reportapi/MyCode.Project.Domain/Message/Response/BaoDian/ItemQtiyUnitPriceResp.cs
deleted file mode 100644
index 3c26546..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Response/BaoDian/ItemQtiyUnitPriceResp.cs
+++ /dev/null
@@ -1,38 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Response.BaoDian
-{
- public class ItemQtiyUnitPriceResp
- {
- ///
- /// 数量
- ///
- public int TotalQty
- {
- get;
- set;
- }
-
- ///
- /// 商品的SKUID
- ///
- public string SkuId
- {
- get;
- set;
- }
-
- ///
- /// 单价
- ///
- public decimal UnitPrice
- {
- get;
- set;
- }
- }
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Response/BaoDian/MatchPlanQtyResp.cs b/Reportapi/MyCode.Project.Domain/Message/Response/BaoDian/MatchPlanQtyResp.cs
deleted file mode 100644
index b54ae7b..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Response/BaoDian/MatchPlanQtyResp.cs
+++ /dev/null
@@ -1,38 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Response.BaoDian
-{
- public class MatchPlanQtyResp
- {
- ///
- /// 匹配数量
- ///
- public int Qty
- {
- get;
- set;
- }
-
- ///
- /// 金额
- ///
- public decimal Amount
- {
- get;
- set;
- }
-
- ///
- /// SKU
- ///
- public List Sku
- {
- get;
- set;
- }
- }
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Response/BaoDian/MemberInvitationResp.cs b/Reportapi/MyCode.Project.Domain/Message/Response/BaoDian/MemberInvitationResp.cs
deleted file mode 100644
index 4b96640..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Response/BaoDian/MemberInvitationResp.cs
+++ /dev/null
@@ -1,46 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Response.BaoDian
-{
- public class MemberInvitationResp
- {
- ///
- /// 关联id(前端忽略)
- ///
- public string KeyId { get; set; }
-
- ///
- /// 客户名称
- ///
- public string MemberName { get; set; }
-
- ///
- /// 客户手机号
- ///
- public string MemberMobile { get; set; }
-
- ///
- /// 计划邀约套餐
- ///
- public string PackageName { get; set; }
-
- ///
- /// 计划邀约时间
- ///
- public string InvitationTimeStr { get; set; }
-
- ///
- /// 邀约负责人
- ///
- public string ClerkName { get; set; }
-
- ///
- /// 实际执行结果字符串
- ///
- public string CompleteStr { get; set; }
- }
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Response/BaoDian/NewMemberALLDetailsResp.cs b/Reportapi/MyCode.Project.Domain/Message/Response/BaoDian/NewMemberALLDetailsResp.cs
deleted file mode 100644
index e4e758a..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Response/BaoDian/NewMemberALLDetailsResp.cs
+++ /dev/null
@@ -1,286 +0,0 @@
-using MyCode.Project.Domain.Message.Response.Common;
-using SqlSugar;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Response.BaoDian
-{
- public class NewMemberALLDetailsResp
- {
- ///
- /// 渠道类型 0= 其他; 1= 抖音; 2= 美团; 3=自然流量; 4=老顾客列表 5=1元公益、派单
- ///
- public int AddFromType { get; set; }
-
- ///
- /// 渠道类型字符串 0= 其他; 1= 抖音; 2= 美团; 3=自然流量; 4=老顾客列表 5=1元公益、派单
- ///
- public string AddFromTypeStr { get; set; }
-
- ///
- /// 动态表头数据
- ///
- public List ListAttr { get; set; }
-
- ///
- /// 分页查询中的记录总数
- ///
- public int Total { get; set; }
- }
-
- public class NewMemberALLDetailsItem
- {
- ///
- /// 关联id
- ///
- public string KeyId { get; set; }
-
- ///
- /// 渠道类型 0= 其他; 1= 抖音; 2= 美团; 3=自然流量; 4=老顾客列表 5=1元公益、派单
- ///
- public int AddFromType { get; set; }
-
- ///
- /// 套餐id 1=新客人数;2=首单数
- ///
- public long PackagePlanId { get; set; }
-
- ///
- /// 套餐名称
- ///
- public string PackageName { get; set; }
-
- ///
- /// 计划邀约人数
- ///
- public decimal PlanQty { get; set; }
-
- ///
- /// 实际达成人数
- ///
- public decimal CompletedQty { get; set; }
-
- ///
- /// 所属版本时间
- ///
- public DateTime VersionTime { get; set; }
- }
-
- public class NewMemberALLDetailsResult
- {
- ///
- /// 增加的动态字段
- ///
- public List ListHeadField { get; set; }
-
- ///
- /// 列表数据
- ///
- public List DataList { get; set; }
-
- ///
- /// 月份
- ///
- public string DisPlayMonth { get; set; }
-
- ///
- /// 店铺归属(加盟商名称)
- ///
- public string CustomerName { get; set; }
-
- ///
- /// 店铺编码
- ///
- public string Code { get; set; }
-
- ///
- /// 店铺名称
- ///
- public string ShopName { get; set; }
- }
-
-
- ///
- ///后台报表--新客销售计划进度的详情导出的类
- ///
- public partial class BdNewMemberDetailsExcelResp
- {
-
- ///
- /// 渠道--名称
- ///
-
- public string Name { get; set; }
-
- ///
- /// 达成率
- ///
-
- public decimal CompletedRate { get; set; }
-
- ///
- /// Desc:新客人数--计划人数
- ///
-
- public int? PlanTotalAmount1 { get; set; }
-
- ///
- /// Desc:新客人数--实际达成
- ///
-
- public decimal? CompletedPrice1 { get; set; }
-
- ///
- /// Desc:新客人数--达成率
- ///
- public string CompletedRate1 { get; set; }
-
-
- ///
- /// Desc:69体验数--计划人数
- ///
-
- public int? PlanTotalAmount2 { get; set; }
-
- ///
- /// Desc:69体验数--实际达成
- ///
- public decimal? CompletedPrice2 { get; set; }
-
- ///
- /// Desc:69体验数--达成率
- ///
-
- public string CompletedRate2 { get; set; }
-
- ///
- /// Desc:99体验数--计划人数
- ///
-
- public int? PlanTotalAmount3 { get; set; }
-
- ///
- /// Desc:99体验数--实际达成
- ///
-
- public decimal? CompletedPrice3 { get; set; }
-
- ///
- /// Desc:99体验数--达成率
- ///
-
- public string CompletedRate3 { get; set; }
-
-
- ///
- /// Desc:三重养肤护理套--计划人数
- ///
-
- public int? PlanTotalAmount4 { get; set; }
-
- ///
- /// Desc:三重养肤护理套--实际达成
- ///
-
- public decimal? CompletedPrice4 { get; set; }
-
- ///
- /// Desc:三重养肤护理套--达成率
- ///
-
- public string CompletedRate4 { get; set; }
-
-
- ///
- /// Desc:赋妍焕能美肌拓客套--计划人数
- ///
-
- public int? PlanTotalAmount5 { get; set; }
-
- ///
- /// Desc:赋妍焕能美肌拓客套--实际达成
- ///
-
- public decimal? CompletedPrice5 { get; set; }
-
- ///
- /// Desc:赋妍焕能美肌拓客套--达成率
- ///
-
- public string CompletedRate5 { get; set; }
-
-
- ///
- /// Desc:盘发数--计划人数
- ///
-
- public int? PlanTotalAmount6 { get; set; }
-
- ///
- /// Desc:盘发数--实际达成
- ///
-
- public decimal? CompletedPrice6 { get; set; }
-
- ///
- /// Desc:盘发数--达成率
- ///
-
- public string CompletedRate6 { get; set; }
-
-
- ///
- /// Desc:化妆数--计划人数
- ///
-
- public int? PlanTotalAmount7 { get; set; }
-
- ///
- /// Desc:化妆数--实际达成
- ///
-
- public decimal? CompletedPrice7 { get; set; }
-
- ///
- /// Desc:化妆数--达成率
- ///
-
- public string CompletedRate7 { get; set; }
-
-
- ///
- /// Desc:首单人数--计划人数
- ///
-
- public int? PlanTotalAmount8 { get; set; }
-
- ///
- /// Desc:首单人数--实际达成
- ///
-
- public decimal? CompletedPrice8 { get; set; }
-
- ///
- /// Desc:首单人数--达成率
- ///
-
- public string CompletedRate8 { get; set; }
-
-
- public List A { get; set; }
-
- public List B { get; set; }
- public List C { get; set; }
- public List D { get; set; }
-
- public int?[] PlanQty2 { get; set; }
- public List PlanQty { get; set; }
- public List CompletedQty { get; set; }
-
- public List CompletedRateArray { get; set; }
-
- }
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Response/BaoDian/NewMemberReportDetailsExport.cs b/Reportapi/MyCode.Project.Domain/Message/Response/BaoDian/NewMemberReportDetailsExport.cs
deleted file mode 100644
index cbd42b0..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Response/BaoDian/NewMemberReportDetailsExport.cs
+++ /dev/null
@@ -1,466 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Response.BaoDian
-{
- public class NewMemberReportDetailsExportResp
- {
- ///
- /// 渠道类型字符串
- ///
- public string AddFromTypeStr { get; set; }
-
- ///
- /// 计划数
- ///
- public decimal? PlanQty1 { get; set; }
-
- ///
- /// 完成数
- ///
- public decimal? CompletedQty1 { get; set; }
-
- ///
- /// 达成率
- ///
- public string CompletedPercent1 { get; set; }
-
- ///
- /// 计划数
- ///
- public decimal? PlanQty2 { get; set; }
-
- ///
- /// 完成数
- ///
- public decimal? CompletedQty2 { get; set; }
-
- ///
- /// 达成率
- ///
- public string CompletedPercent2 { get; set; }
-
- ///
- /// 计划数
- ///
- public decimal? PlanQty3 { get; set; }
-
- ///
- /// 完成数
- ///
- public decimal? CompletedQty3 { get; set; }
-
- ///
- /// 达成率
- ///
- public string CompletedPercent3 { get; set; }
-
- ///
- /// 计划数
- ///
- public decimal? PlanQty4 { get; set; }
-
- ///
- /// 完成数
- ///
- public decimal? CompletedQty4 { get; set; }
-
- ///
- /// 达成率
- ///
- public string CompletedPercent4 { get; set; }
-
- ///
- /// 计划数
- ///
- public decimal? PlanQty5 { get; set; }
-
- ///
- /// 完成数
- ///
- public decimal? CompletedQty5 { get; set; }
-
- ///
- /// 达成率
- ///
- public string CompletedPercent5 { get; set; }
-
- ///
- /// 计划数
- ///
- public decimal? PlanQty6 { get; set; }
-
- ///
- /// 完成数
- ///
- public decimal? CompletedQty6 { get; set; }
-
- ///
- /// 达成率
- ///
- public string CompletedPercent6 { get; set; }
-
- ///
- /// 计划数
- ///
- public decimal? PlanQty7 { get; set; }
-
- ///
- /// 完成数
- ///
- public decimal? CompletedQty7 { get; set; }
-
- ///
- /// 达成率
- ///
- public string CompletedPercent7 { get; set; }
-
- ///
- /// 计划数
- ///
- public decimal? PlanQty8 { get; set; }
-
- ///
- /// 完成数
- ///
- public decimal? CompletedQty8 { get; set; }
-
- ///
- /// 达成率
- ///
- public string CompletedPercent8 { get; set; }
-
- ///
- /// 计划数
- ///
- public decimal? PlanQty9 { get; set; }
-
- ///
- /// 完成数
- ///
- public decimal? CompletedQty9 { get; set; }
-
- ///
- /// 达成率
- ///
- public string CompletedPercent9 { get; set; }
-
- ///
- /// 计划数
- ///
- public decimal? PlanQty10 { get; set; }
-
- ///
- /// 完成数
- ///
- public decimal? CompletedQty10 { get; set; }
-
- ///
- /// 达成率
- ///
- public string CompletedPercent10 { get; set; }
-
- ///
- /// 计划数
- ///
- public decimal? PlanQty11 { get; set; }
-
- ///
- /// 完成数
- ///
- public decimal? CompletedQty11 { get; set; }
-
- ///
- /// 达成率
- ///
- public string CompletedPercent11 { get; set; }
-
- ///
- /// 计划数
- ///
- public decimal? PlanQty12 { get; set; }
-
- ///
- /// 完成数
- ///
- public decimal? CompletedQty12 { get; set; }
-
- ///
- /// 达成率
- ///
- public string CompletedPercent12 { get; set; }
-
- ///
- /// 计划数
- ///
- public decimal? PlanQty13 { get; set; }
-
- ///
- /// 完成数
- ///
- public decimal? CompletedQty13 { get; set; }
-
- ///
- /// 达成率
- ///
- public string CompletedPercent13 { get; set; }
-
- ///
- /// 计划数
- ///
- public decimal? PlanQty14 { get; set; }
-
- ///
- /// 完成数
- ///
- public decimal? CompletedQty14 { get; set; }
-
- ///
- /// 达成率
- ///
- public string CompletedPercent14 { get; set; }
-
- ///
- /// 计划数
- ///
- public decimal? PlanQty15 { get; set; }
-
- ///
- /// 完成数
- ///
- public decimal? CompletedQty15 { get; set; }
-
- ///
- /// 达成率
- ///
- public string CompletedPercent15 { get; set; }
-
- ///
- /// 计划数
- ///
- public decimal? PlanQty16 { get; set; }
-
- ///
- /// 完成数
- ///
- public decimal? CompletedQty16 { get; set; }
-
- ///
- /// 达成率
- ///
- public string CompletedPercent16 { get; set; }
-
- ///
- /// 计划数
- ///
- public decimal? PlanQty17 { get; set; }
-
- ///
- /// 完成数
- ///
- public decimal? CompletedQty17 { get; set; }
-
- ///
- /// 达成率
- ///
- public string CompletedPercent17 { get; set; }
-
- ///
- /// 计划数
- ///
- public decimal? PlanQty18 { get; set; }
-
- ///
- /// 完成数
- ///
- public decimal? CompletedQty18 { get; set; }
-
- ///
- /// 达成率
- ///
- public string CompletedPercent18 { get; set; }
-
- ///
- /// 计划数
- ///
- public decimal? PlanQty19 { get; set; }
-
- ///
- /// 完成数
- ///
- public decimal? CompletedQty19 { get; set; }
-
- ///
- /// 达成率
- ///
- public string CompletedPercent19 { get; set; }
-
- ///
- /// 计划数
- ///
- public decimal? PlanQty20 { get; set; }
-
- ///
- /// 完成数
- ///
- public decimal? CompletedQty20 { get; set; }
-
- ///
- /// 达成率
- ///
- public string CompletedPercent20 { get; set; }
-
- ///
- /// 计划数
- ///
- public decimal? PlanQty21 { get; set; }
-
- ///
- /// 完成数
- ///
- public decimal? CompletedQty21 { get; set; }
-
- ///
- /// 达成率
- ///
- public string CompletedPercent21 { get; set; }
-
- ///
- /// 计划数
- ///
- public decimal? PlanQty22 { get; set; }
-
- ///
- /// 完成数
- ///
- public decimal? CompletedQty22 { get; set; }
-
- ///
- /// 达成率
- ///
- public string CompletedPercent22 { get; set; }
-
- ///
- /// 计划数
- ///
- public decimal? PlanQty23 { get; set; }
-
- ///
- /// 完成数
- ///
- public decimal? CompletedQty23 { get; set; }
-
- ///
- /// 达成率
- ///
- public string CompletedPercent23 { get; set; }
-
- ///
- /// 计划数
- ///
- public decimal? PlanQty24 { get; set; }
-
- ///
- /// 完成数
- ///
- public decimal? CompletedQty24 { get; set; }
-
- ///
- /// 达成率
- ///
- public string CompletedPercent24 { get; set; }
-
- ///
- /// 计划数
- ///
- public decimal? PlanQty25 { get; set; }
-
- ///
- /// 完成数
- ///
- public decimal? CompletedQty25 { get; set; }
-
- ///
- /// 达成率
- ///
- public string CompletedPercent25 { get; set; }
-
- ///
- /// 计划数
- ///
- public decimal? PlanQty26 { get; set; }
-
- ///
- /// 完成数
- ///
- public decimal? CompletedQty26 { get; set; }
-
- ///
- /// 达成率
- ///
- public string CompletedPercent26 { get; set; }
-
- ///
- /// 计划数
- ///
- public decimal? PlanQty27 { get; set; }
-
- ///
- /// 完成数
- ///
- public decimal? CompletedQty27 { get; set; }
-
- ///
- /// 达成率
- ///
- public string CompletedPercent27 { get; set; }
-
- ///
- /// 计划数
- ///
- public decimal? PlanQty28 { get; set; }
-
- ///
- /// 完成数
- ///
- public decimal? CompletedQty28 { get; set; }
-
- ///
- /// 达成率
- ///
- public string CompletedPercent28 { get; set; }
-
- ///
- /// 计划数
- ///
- public decimal? PlanQty29 { get; set; }
-
- ///
- /// 完成数
- ///
- public decimal? CompletedQty29 { get; set; }
-
- ///
- /// 达成率
- ///
- public string CompletedPercent29 { get; set; }
-
- ///
- /// 计划数
- ///
- public decimal? PlanQty30 { get; set; }
-
- ///
- /// 完成数
- ///
- public decimal? CompletedQty30 { get; set; }
-
- ///
- /// 达成率
- ///
- public string CompletedPercent30 { get; set; }
- }
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Response/BaoDian/NewMemberReportResp.cs b/Reportapi/MyCode.Project.Domain/Message/Response/BaoDian/NewMemberReportResp.cs
deleted file mode 100644
index 75b0b4c..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Response/BaoDian/NewMemberReportResp.cs
+++ /dev/null
@@ -1,86 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Response.BaoDian
-{
- public class NewMemberReportResp
- {
- ///
- /// 关联id
- ///
- public string KeyId { get; set; }
-
- ///
- /// 店铺id
- ///
- public Guid? ShopId { get; set; }
-
- ///
- /// 月份
- ///
- public string DisPlayMonth { get; set; }
-
- ///
- /// 所属时间
- ///
- public DateTime VersionTime { get; set; }
-
- ///
- /// 使用天数
- ///
- public int UseDays { get; set; }
-
- ///
- /// 店铺编码
- ///
- public string Code { get; set; }
-
- ///
- /// 店铺名称
- ///
- public string ShopName { get; set; }
-
- ///
- /// 店铺归属(加盟商名称)
- ///
- public string CustomerName { get; set; }
-
- ///
- /// 省名称
- ///
- public string ProvinceName { get; set; }
-
- ///
- /// 市名称
- ///
- public string CityName { get; set; }
-
- ///
- /// 区域(大区名称)
- ///
- public string ZoneName { get; set; }
-
- ///
- /// 区域督导
- ///
- public string RegionManager { get; set; }
-
- ///
- /// 计划邀约人数
- ///
- public decimal PlanQty { get; set; }
-
- ///
- /// 实际达成人数
- ///
- public decimal CompletedQty { get; set; }
-
- ///
- /// 达成率(%)
- ///
- public string CompletedPercent { get; set; }
- }
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Response/BaoDian/NewMemberSalesScheduleDetailsResp.cs b/Reportapi/MyCode.Project.Domain/Message/Response/BaoDian/NewMemberSalesScheduleDetailsResp.cs
deleted file mode 100644
index a4517f6..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Response/BaoDian/NewMemberSalesScheduleDetailsResp.cs
+++ /dev/null
@@ -1,256 +0,0 @@
-using MyCode.Project.Domain.Model;
-using SqlSugar;
-using System;
-using System.Collections.Generic;
-using System.Diagnostics;
-using System.Linq;
-using System.Security.Cryptography;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Response.BaoDian
-{
- public class NewMemberSalesScheduleDetailsResp
- {
- ///
- /// 主键id
- ///
- public long Id { get; set; }
-
- ///
- /// 套餐编码
- ///
- public string Code { get; set; }
-
- ///
- /// 套餐名称
- ///
- public string PackageName { get; set; }
-
- ///
- /// 商品明细列表
- ///
- public List SkuList { get; set; }
-
- ///
- /// 服务明细列表
- ///
- public List ServiceList { get; set; }
- }
-
- public class SalesTargetResp
- {
- ///
- /// 计划指标
- ///
- public decimal Amount { get; set; }
-
- ///
- /// 店员ID
- ///
- public string ClerkId { get; set; }
-
- ///
- /// 计划名称
- ///
- public string PlanName { get; set; }
-
- ///
- /// 计划时间
- ///
- public string PlanTime { get; set; }
-
- ///
- /// 计划类型 1=产品销售计划表 2=新客销售计划表 3=老客复购销售计划
- ///
- public int PlanType { get; set; }
- }
-
- public class CompletionOfShopSalesPlan
- {
-
- ///
- /// 店铺Id
- ///
- public string ShopId { get; set; }
-
-
- ///
- /// 店铺名称
- ///
- public string ShopName { get; set; }
-
- ///
- /// 计划时间
- ///
- public string PlanTime { get; set; }
-
- ///
- /// 计划完成的进度列表
- ///
- public List PlanList { get; set; }
-
- }
-
- public class CompletionOfShopSalesPlanDetail
- {
- ///
- /// 计划指标
- ///
- public decimal PlanAmount { get; set; }
-
- ///
- /// 实际达成
- ///
- public decimal CompletedAmount { get; set; }
-
- ///
- /// 实际率
- ///
- public decimal CompletedRate { get; set; }
-
-
- ///
- /// 计划名称
- ///
- public string PlanName { get; set; }
-
- ///
- /// 计划类型 1=产品销售计划表 2=新客销售计划表 3=老客复购销售计划
- ///
- public int PlanType { get; set; }
- }
-
- public class BDProductSalesPlanStatistics
- {
-
-
- ///
- /// 店铺Id
- ///
- public string ShopId { get; set; }
-
- ///
- /// 店铺名称
- ///
- public string ShopName { get; set; }
-
- ///
- /// 计划时间
- ///
- public string PlanTime { get; set; }
-
- ///
- /// 计划指标
- ///
- public decimal PlanAmount { get; set; }
-
- ///
- /// 实际达成
- ///
- public decimal CompletedAmount { get; set; }
-
- ///
- /// 实际率
- ///
- public decimal CompletedRate { get; set; }
-
- ///
- /// 1=允许调整 0=不允许调整
- /// (只对店长/加盟商 展示,若计划属于次月,显示“调整”,店长/加盟商有权帮店员修改计划数量,若计划已属于当月,在执行中的计划,不显示“调整”,不可修改计划)
- ///
- public int CanEdit { get; set; }
-
- }
-
- public class BDProductSalesPlanResp
- {
- ///
- /// 版本时间
- ///
- [SugarColumn(ColumnName = "version_time")]
- public DateTime VersionTime { get; set; }
-
- ///
- /// Desc:套餐名称
- ///
- [SugarColumn(ColumnName = "name")]
- public string Name { get; set; }
-
- ///
- /// 计划销量
- ///
- [SugarColumn(ColumnName = "plan_qty")]
- public int PlanQty { get; set; }
-
- ///
- /// 计划单价
- ///
- [SugarColumn(ColumnName = "plan_price")]
- public decimal PlanPrice { get; set; }
-
- ///
- /// Desc:lxm_product_sales_schedule表的主键ID
- ///
- [SugarColumn(ColumnName = "product_id")]
- public long? ProductId { get; set; }
-
- ///
- /// Desc::所属类型, 99=其他
- /// Default:0
- /// Nullable:False
- ///
- [SugarColumn(ColumnName = "package_type")]
- public int PackageType { get; set; }
-
- ///
- /// Desc:完成销量
- /// Default:
- /// Nullable:False
- ///
- [SugarColumn(ColumnName = "completed_qty")]
- public int CompletedQty { get; set; }
-
- ///
- /// Desc:实际完成销售金额
- /// Default:
- /// Nullable:False
- ///
- [SugarColumn(ColumnName = "completed_price")]
- public decimal CompletedPrice { get; set; }
-
- ///
- /// 实际率
- ///
- public decimal CompletedRate { get; set; }
- }
-
- public class BDClerkProductSalesStatisticsResp
- {
- ///
- /// 店员ID
- ///
- public string ClerkId { get; set; }
-
- ///
- /// 店员名称
- ///
- public string ClerkName { get; set; }
-
- ///
- /// 计划销量
- ///
- public decimal PlanQty { get; set; }
-
- ///
- /// 实际达成
- ///
- public decimal CompletedQty { get; set; }
-
- ///
- /// 实际率
- ///
- public decimal CompletedRate { get; set; }
- }
-
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Response/BaoDian/NewMemberSalesScheduleResp.cs b/Reportapi/MyCode.Project.Domain/Message/Response/BaoDian/NewMemberSalesScheduleResp.cs
deleted file mode 100644
index a921d54..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Response/BaoDian/NewMemberSalesScheduleResp.cs
+++ /dev/null
@@ -1,47 +0,0 @@
-using MyCode.Project.Domain.Model;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Response.BaoDian
-{
- public class NewMemberSalesScheduleResp
- {
- ///
- /// 主键id
- ///
- public long Id { get; set; }
-
- ///
- /// 套餐名称
- ///
- public string PackageName { get; set; }
-
- ///
- /// 状态 1=启用 0=禁用
- ///
- public int Status { get; set; }
-
- ///
- /// 修改时间
- ///
- public DateTime EditTime { get; set; }
-
- ///
- /// 修改人
- ///
- public string Editor { get; set; }
-
- ///
- /// 商品明细列表
- ///
- public List SkuList { get; set; }
-
- ///
- /// 服务明细列表
- ///
- public List ServiceList { get; set; }
- }
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Response/BaoDian/OldMemberPlanResp.cs b/Reportapi/MyCode.Project.Domain/Message/Response/BaoDian/OldMemberPlanResp.cs
deleted file mode 100644
index eb52a8c..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Response/BaoDian/OldMemberPlanResp.cs
+++ /dev/null
@@ -1,78 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Response.BaoDian
-{
- ///
- /// 老客的销售计划
- ///
- public class OldMemberPlanResp
- {
- ///
- /// 套餐id
- ///
- public long PackageId
- {
- get;
- set;
- }
-
- ///
- /// 来源套餐id
- ///
- public long SourcePackageId
- {
- get;
- set;
- }
-
- ///
- /// 套餐名
- ///
- public string PackageName
- {
- get;
- set;
- }
-
- ///
- /// 计划id
- ///
- public long PlanId
- {
- get;
- set;
- }
-
- ///
- /// 消费的时间-开始
- ///
- public DateTime BeginTime
- {
- get;
- set;
- }
-
- ///
- /// 消费的时间结束
- ///
- public DateTime EndTime
- {
- get;
- set;
- }
-
- ///
- /// 会员id
- ///
- public string MemberId
- {
- get;
- set;
- }
-
- }
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Response/BaoDian/OldMemberReportResp.cs b/Reportapi/MyCode.Project.Domain/Message/Response/BaoDian/OldMemberReportResp.cs
deleted file mode 100644
index c697ca7..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Response/BaoDian/OldMemberReportResp.cs
+++ /dev/null
@@ -1,115 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Response.BaoDian
-{
- public class OldMemberReportResp
- {
- ///
- /// 关联id
- ///
- public string KeyId { get; set; }
-
- ///
- /// 店铺id
- ///
- public Guid? ShopId { get; set; }
-
- ///
- /// 月份
- ///
- public string DisPlayMonth { get; set; }
-
- ///
- /// 所属时间
- ///
- public DateTime VersionTime { get; set; }
-
- ///
- /// 使用天数
- ///
- public int UseDays { get; set; }
-
- ///
- /// 店铺编码
- ///
- public string Code { get; set; }
-
- ///
- /// 店铺名称
- ///
- public string ShopName { get; set; }
-
- ///
- /// 店铺归属(加盟商名称)
- ///
- public string CustomerName { get; set; }
-
- ///
- /// 省名称
- ///
- public string ProvinceName { get; set; }
-
- ///
- /// 市名称
- ///
- public string CityName { get; set; }
-
- ///
- /// 区域(大区名称)
- ///
- public string ZoneName { get; set; }
-
- ///
- /// 区域督导
- ///
- public string RegionManager { get; set; }
-
- ///
- /// 计划邀约人数
- ///
- public decimal PlanQty { get; set; }
-
- ///
- /// 实际达成人数
- ///
- public decimal CompletedQty { get; set; }
-
- ///
- /// 达成率(%)
- ///
- public string CompletedPercent { get; set; }
- }
-
- public class OldMemberReport
- {
-
- ///
- /// 月份
- ///
- public string DisPlayMonth { get; set; }
-
- ///
- /// 店铺归属(加盟商名称)
- ///
- public string CustomerName { get; set; }
-
- ///
- /// 店铺编码
- ///
- public string Code { get; set; }
-
- ///
- /// 店铺名称
- ///
- public string ShopName { get; set; }
-
- ///
- /// 店铺会员数据
- ///
- public List MemberList { get; set; }
- }
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Response/BaoDian/OldMemberSalesPlanResp.cs b/Reportapi/MyCode.Project.Domain/Message/Response/BaoDian/OldMemberSalesPlanResp.cs
deleted file mode 100644
index f96b8d0..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Response/BaoDian/OldMemberSalesPlanResp.cs
+++ /dev/null
@@ -1,107 +0,0 @@
-using SqlSugar;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Response.BaoDian
-{
- public class OldMemberSalesPlanProduct
- {
- ///
- /// 版本时间
- ///
- [SugarColumn(ColumnName = "version_time")]
- public DateTime VersionTime { get; set; }
-
- ///
- /// Desc:套餐名称
- ///
- [SugarColumn(ColumnName = "name")]
- public string Name { get; set; }
-
- ///
- /// 计划单价
- ///
- [SugarColumn(ColumnName = "plan_price")]
- public decimal PlanPrice { get; set; }
-
- ///
- /// Desc:lxm_product_sales_schedule表的主键ID
- ///
- [SugarColumn(ColumnName = "product_id")]
- public long? ProductId { get; set; }
-
- }
-
- public class OldMemberInvitationPlan
- {
- ///
- /// 计划邀约人数
- ///
- public int PlannedInvitationsCount { get; set; }
-
- ///
- /// 计划列表
- ///
- public List PlanList { get; set; }
-
- }
-
- public class InvitationPlanList
- {
- ///
- /// 计划ID
- ///
- public long Id { get; set; }
-
- ///
- /// 会员ID
- ///
- public string MemberId { get; set; }
-
- ///
- /// 店铺ID
- ///
- public string ShopId { get; set; }
- ///
- /// 会员名称
- ///
- public string MemberName { get; set; }
-
- ///
- /// 手机号
- ///
- public string Mobile { get; set; }
-
- ///
- /// 计划邀约套餐
- ///
- public int ProductCount { get; set; }
-
- ///
- /// 邀约时间
- ///
- public string InvitationTime { get; set; }
-
- }
-
- public class InvitationPlanCompleteResp : InvitationPlanList
- {
- ///
- /// 是否已完成 0=否 1=是
- /// Nullable:False
- ///
- [SugarColumn(ColumnName = "if_complete")]
- public int IfComplete { get; set; }
-
- ///
- /// 计划销售的商品数组
- ///
- public List PlanProducts { get; set; }
- }
-
-
-
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Response/BaoDian/OrderPlanPackageSkuResp.cs b/Reportapi/MyCode.Project.Domain/Message/Response/BaoDian/OrderPlanPackageSkuResp.cs
deleted file mode 100644
index 93591de..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Response/BaoDian/OrderPlanPackageSkuResp.cs
+++ /dev/null
@@ -1,38 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Response.BaoDian
-{
- public class OrderPlanPackageSkuResp
- {
- ///
- /// 原始套餐id
- ///
- public long SourcePackageId
- {
- get;
- set;
- }
-
- ///
- /// SKUID
- ///
- public string SkuId
- {
- get;
- set;
- }
-
- ///
- /// 剩余数量
- ///
- public int LeftQty
- {
- get;
- set;
- }
- }
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Response/BaoDian/OrderPlanRefundPlanPackageResp.cs b/Reportapi/MyCode.Project.Domain/Message/Response/BaoDian/OrderPlanRefundPlanPackageResp.cs
deleted file mode 100644
index 6eaadf0..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Response/BaoDian/OrderPlanRefundPlanPackageResp.cs
+++ /dev/null
@@ -1,41 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Response.BaoDian
-{
- ///
- /// 订单退款计划
- ///
- public class OrderPlanRefundPlanPackageResp
- {
- ///
- /// 套餐id
- ///
- public long PackageId
- {
- get;
- set;
- }
-
- ///
- /// 计划id
- ///
- public long PlanId
- {
- get;
- set;
- }
-
- ///
- /// 退款金额
- ///
- public decimal RefundMoney
- {
- get;
- set;
- }
- }
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Response/BaoDian/PackageListResp.cs b/Reportapi/MyCode.Project.Domain/Message/Response/BaoDian/PackageListResp.cs
deleted file mode 100644
index 0eca523..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Response/BaoDian/PackageListResp.cs
+++ /dev/null
@@ -1,54 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Response.BaoDian
-{
- ///
- /// 宝典的套餐
- ///
- public class PackageListResp
- {
- ///
- /// 主键id
- ///
- public long Id { get; set; }
-
- ///
- /// 套餐名
- ///
- public string PackageName { get; set; }
-
- ///
- /// 产品或服务名
- ///
- public string ProductOrServiceName { get; set; }
-
- ///
- /// 产品或服务id
- ///
- public string ProductOrServiceId { get; set; }
-
- ///
- /// 数据类型 2:新客销售中套餐和商品关系 3:新客销售中套餐和服务关系
- ///
- public int DataType { get; set; }
-
- ///
- /// 顶级分类
- ///
- public string TopCategoryId { get; set; }
-
- ///
- /// 吊牌价
- ///
- public decimal SourcePrice { get; set; }
-
- ///
- /// 数量
- ///
- public int Qty { get; set; }
- }
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Response/BaoDian/PersonalNewMemberReportResp.cs b/Reportapi/MyCode.Project.Domain/Message/Response/BaoDian/PersonalNewMemberReportResp.cs
deleted file mode 100644
index fc8a94e..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Response/BaoDian/PersonalNewMemberReportResp.cs
+++ /dev/null
@@ -1,139 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Response.BaoDian
-{
- public class PersonalNewMemberReportResp
- {
- ///
- /// 月份
- ///
- public string DisPlayMonth { get; set; }
-
- ///
- /// 店铺编码
- ///
- public string Code { get; set; }
-
- ///
- /// 店铺名称
- ///
- public string ShopName { get; set; }
-
- ///
- /// 渠道类型 0= 其他; 1= 抖音; 2= 美团; 3=自然流量; 4=老顾客列表 5=1元公益、派单
- ///
- public int AddFromType { get; set; }
-
- ///
- /// 渠道类型字符串 0= 其他; 1= 抖音; 2= 美团; 3=自然流量; 4=老顾客列表 5=1元公益、派单
- ///
- public string AddFromTypeStr { get; set; }
-
- ///
- /// 拓客类型(套餐名称)
- ///
- public string PackageName { get; set; }
-
- ///
- /// 计划人数
- ///
- public decimal PlanQty { get; set; }
-
- ///
- /// 实际达成人数
- ///
- public decimal CompletedQty { get; set; }
-
- ///
- /// 达成率(%)
- ///
- public string CompletedPercent { get; set; }
-
- ///
- /// 店员数据列表
- ///
- public List ClerkList { get; set; }
-
- ///
- /// 关联id(前端忽略)
- ///
- public string KeyId { get; set; }
- }
-
- public class PersonalNewMemberReport
- {
- ///
- /// 月份
- ///
- public string DisPlayMonth { get; set; }
-
- ///
- /// 店铺编码
- ///
- public string Code { get; set; }
-
- ///
- /// 店铺名称
- ///
- public string ShopName { get; set; }
-
- ///
- /// 渠道类型 0= 其他; 1= 抖音; 2= 美团; 3=自然流量; 4=老顾客列表 5=1元公益、派单
- ///
- public string AddFromTypeStr { get; set; }
-
- ///
- /// 拓客类型(套餐名称)
- ///
- public string PackageName { get; set; }
-
- ///
- /// 计划人数
- ///
- public decimal PlanQty { get; set; }
-
- ///
- /// 实际达成人数
- ///
- public decimal CompletedQty { get; set; }
-
- ///
- /// 达成率(%)
- ///
- public string CompletedPercent { get; set; }
-
- ///
- /// 店员名称
- ///
- public string ClerkName { get; set; }
-
- ///
- /// 店员手机号
- ///
- public string ClerkMobile { get; set; }
-
- ///
- /// 店员计划人数
- ///
- public decimal ClerkPlanQty { get; set; }
-
- ///
- /// 店员实际达成人数
- ///
- public decimal ClerkCompletedQty { get; set; }
-
- ///
- /// 店员达成率
- ///
- public decimal ClerkCompletedRate { get; set; }
-
- ///
- /// 店员达成率(%)
- ///
- public string ClerkCompletedPercent { get; set; }
- }
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Response/BaoDian/PersonalOldMemberReportResp.cs b/Reportapi/MyCode.Project.Domain/Message/Response/BaoDian/PersonalOldMemberReportResp.cs
deleted file mode 100644
index e13cfc0..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Response/BaoDian/PersonalOldMemberReportResp.cs
+++ /dev/null
@@ -1,139 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Response.BaoDian
-{
- public class PersonalOldMemberReportResp
- {
- ///
- /// 月份
- ///
- public string DisPlayMonth { get; set; }
-
- ///
- /// 店铺编码
- ///
- public string Code { get; set; }
-
- ///
- /// 店铺名称
- ///
- public string ShopName { get; set; }
-
- ///
- /// 店员名称
- ///
- public string ClerkName { get; set; }
-
- ///
- /// 店员手机号
- ///
- public string ClerkMobile { get; set; }
-
- ///
- /// 计划邀约人数
- ///
- public decimal PlanQty { get; set; }
-
- ///
- /// 实际达成人数
- ///
- public decimal CompletedQty { get; set; }
-
- ///
- /// 达成率
- ///
- public decimal CompletedRate { get; set; }
-
- ///
- /// 达成率(%)
- ///
- public string CompletedPercent { get; set; }
-
- ///
- /// 关联id(前端忽略)
- ///
- public string KeyId { get; set; }
-
- ///
- /// 会员邀约明细列表
- ///
- public List MemberList { get; set; }
- }
-
- public class PersonalOldMemberReport
- {
- ///
- /// 月份
- ///
- public string DisPlayMonth { get; set; }
-
- ///
- /// 店铺编码
- ///
- public string Code { get; set; }
-
- ///
- /// 店铺名称
- ///
- public string ShopName { get; set; }
-
- ///
- /// 店员名称
- ///
- public string ClerkName { get; set; }
-
- ///
- /// 店员手机号
- ///
- public string ClerkMobile { get; set; }
-
- ///
- /// 计划邀约人数
- ///
- public decimal PlanQty { get; set; }
-
- ///
- /// 实际达成人数
- ///
- public decimal CompletedQty { get; set; }
-
- ///
- /// 达成率
- ///
- public decimal CompletedRate { get; set; }
-
- ///
- /// 达成率(%)
- ///
- public string CompletedPercent { get; set; }
-
- ///
- /// 客户名称
- ///
- public string MemberName { get; set; }
-
- ///
- /// 客户手机号
- ///
- public string MemberMobile { get; set; }
-
- ///
- /// 计划邀约套餐
- ///
- public string PackageName { get; set; }
-
- ///
- /// 计划邀约时间
- ///
- public string InvitationTimeStr { get; set; }
-
- ///
- /// 实际执行结果字符串
- ///
- public string CompleteStr { get; set; }
- }
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Response/BaoDian/PersonalProductReportResp.cs b/Reportapi/MyCode.Project.Domain/Message/Response/BaoDian/PersonalProductReportResp.cs
deleted file mode 100644
index d122ed1..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Response/BaoDian/PersonalProductReportResp.cs
+++ /dev/null
@@ -1,164 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Response.BaoDian
-{
- public class PersonalProductReportResp
- {
- ///
- /// 月份
- ///
- public string DisPlayMonth { get; set; }
-
- ///
- /// 店铺编码
- ///
- public string Code { get; set; }
-
- ///
- /// 店铺名称
- ///
- public string ShopName { get; set; }
-
- ///
- /// 商品名称(套餐名称)
- ///
- public string PackageName { get; set; }
-
- ///
- /// 价格
- ///
- public decimal TotalPrice { get; set; }
-
- ///
- /// 所属类型 11=拓客体验 12=基础套餐 13=叠加套餐 14=家居护理
- ///
- public int PackageType { get; set; }
-
- ///
- /// 所属类型字符串 11=拓客体验 12=基础套餐 13=叠加套餐 14=家居护理
- ///
- public string PackageTypeStr { get; set; }
-
- ///
- /// 功效 1= 清洁 2=补水保湿 3=美白淡斑 4=提拉紧绷 5=淡纹抗皱 6=双抗抗老
- ///
- public int EffectType { get; set; }
-
- ///
- /// 功效字符串 1= 清洁 2=补水保湿 3=美白淡斑 4=提拉紧绷 5=淡纹抗皱 6=双抗抗老
- ///
- public string EffectTypeStr { get; set; }
-
- ///
- /// 计划销量
- ///
- public decimal PlanQty { get; set; }
-
- ///
- /// 实际达成
- ///
- public decimal CompletedQty { get; set; }
-
- ///
- /// 达成率(%)
- ///
- public string CompletedPercent { get; set; }
-
- ///
- /// 店员数据列表
- ///
- public List ClerkList { get; set; }
-
- ///
- /// 关联id(前端忽略)
- ///
- public string KeyId { get; set; }
- }
-
- public class PersonalProductReport
- {
- ///
- /// 月份
- ///
- public string DisPlayMonth { get; set; }
-
- ///
- /// 店铺编码
- ///
- public string Code { get; set; }
-
- ///
- /// 店铺名称
- ///
- public string ShopName { get; set; }
-
- ///
- /// 商品名称(套餐名称)
- ///
- public string PackageName { get; set; }
-
- ///
- /// 价格
- ///
- public decimal TotalPrice { get; set; }
-
- ///
- /// 所属类型字符串 11=拓客体验 12=基础套餐 13=叠加套餐 14=家居护理
- ///
- public string PackageTypeStr { get; set; }
-
- ///
- /// 功效字符串 1= 清洁 2=补水保湿 3=美白淡斑 4=提拉紧绷 5=淡纹抗皱 6=双抗抗老
- ///
- public string EffectTypeStr { get; set; }
-
- ///
- /// 计划销量
- ///
- public decimal PlanQty { get; set; }
-
- ///
- /// 实际达成
- ///
- public decimal CompletedQty { get; set; }
-
- ///
- /// 达成率(%)
- ///
- public string CompletedPercent { get; set; }
-
- ///
- /// 店员名称
- ///
- public string ClerkName { get; set; }
-
- ///
- /// 店员手机号
- ///
- public string ClerkMobile { get; set; }
-
- ///
- /// 店员计划数
- ///
- public decimal ClerkPlanQty { get; set; }
-
- ///
- /// 店员实际达成
- ///
- public decimal ClerkCompletedQty { get; set; }
-
- ///
- /// 店员达成率
- ///
- public decimal ClerkCompletedRate { get; set; }
-
- ///
- /// 店员达成率(%)
- ///
- public string ClerkCompletedPercent { get; set; }
- }
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Response/BaoDian/PlanItem.cs b/Reportapi/MyCode.Project.Domain/Message/Response/BaoDian/PlanItem.cs
deleted file mode 100644
index 209fb36..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Response/BaoDian/PlanItem.cs
+++ /dev/null
@@ -1,26 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Response.BaoDian
-{
- public class PlanItem
- {
- ///
- /// 计划邀约人数
- ///
- public decimal PlanQty { get; set; }
-
- ///
- /// 实际达成人数
- ///
- public decimal CompletedQty { get; set; }
-
- ///
- /// 达成率(%)
- ///
- public string CompletedPercent { get; set; }
- }
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Response/BaoDian/ProductSalesScheduleDetailsResp.cs b/Reportapi/MyCode.Project.Domain/Message/Response/BaoDian/ProductSalesScheduleDetailsResp.cs
deleted file mode 100644
index 47d69fe..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Response/BaoDian/ProductSalesScheduleDetailsResp.cs
+++ /dev/null
@@ -1,52 +0,0 @@
-using MyCode.Project.Domain.Message.Act.Goods;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Response.BaoDian
-{
- public class ProductSalesScheduleDetailsResp
- {
- ///
- /// 主键id
- ///
- public long Id { get; set; }
-
- ///
- /// 套餐编码
- ///
- public string Code { get; set; }
-
- ///
- /// 套餐名称
- ///
- public string PackageName { get; set; }
-
- ///
- /// 所属类型 11=拓客体验 12=基础套餐 13=叠加套餐 14=家居护理
- ///
- public string PackageType { get; set; }
-
- ///
- /// 功效 1= 清洁 2=补水保湿 3=美白淡斑 4=提拉紧绷 5=淡纹抗皱 6=双抗抗老
- ///
- public string EffectType { get; set; }
-
- ///
- /// 总价
- ///
- public decimal TotalPrice { get; set; }
-
- ///
- /// 商品明细列表
- ///
- public List SkuList { get; set; }
-
- ///
- /// 服务明细列表
- ///
- public List ServiceList { get; set; }
- }
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Response/BaoDian/ProductSalesScheduleResp.cs b/Reportapi/MyCode.Project.Domain/Message/Response/BaoDian/ProductSalesScheduleResp.cs
deleted file mode 100644
index c0058e2..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Response/BaoDian/ProductSalesScheduleResp.cs
+++ /dev/null
@@ -1,175 +0,0 @@
-using MyCode.Project.Domain.Message.Act.Goods;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Security.Cryptography;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Response.BaoDian
-{
- public class ProductSalesScheduleResp
- {
- ///
- /// 主键id
- ///
- public long Id { get; set; }
-
- ///
- /// 套餐名称
- ///
- public string PackageName { get; set; }
-
- ///
- /// 所属类型 11=拓客体验 12=基础套餐 13=叠加套餐 14=家居护理
- ///
- public int PackageType { get; set; }
-
- ///
- /// 所属类型字符串 11=拓客体验 12=基础套餐 13=叠加套餐 14=家居护理
- ///
- public string PackageTypeStr { get; set; }
-
- ///
- /// 功效 1= 清洁 2=补水保湿 3=美白淡斑 4=提拉紧绷 5=淡纹抗皱 6=双抗抗老
- ///
- public int EffectType { get; set; }
-
- ///
- /// 功效字符串 1= 清洁 2=补水保湿 3=美白淡斑 4=提拉紧绷 5=淡纹抗皱 6=双抗抗老
- ///
- public string EffectTypeStr { get; set; }
-
- ///
- /// 总价
- ///
- public decimal TotalPrice { get; set; }
-
- ///
- /// 是否邀约商品 1=是 0=否
- ///
- public int IsInvitationProducts { get; set; }
-
- ///
- /// 状态 1=启用 0=禁用
- ///
- public int Status { get; set; }
-
- ///
- /// 修改时间
- ///
- public DateTime EditTime { get; set; }
-
- ///
- /// 修改人
- ///
- public string Editor { get; set; }
-
- ///
- /// 商品明细列表
- ///
- public List SkuList { get; set; }
-
- ///
- /// 服务明细列表
- ///
- public List ServiceList { get; set; }
- }
-
-
- public class ManagerProductSalesIndicators
- {
- ///
- /// 销售金额总指标
- ///
- public decimal PlanAmount { get; set; }
-
- ///
- /// 实际达成金额
- ///
- public decimal CompletedAmount { get; set; }
-
- ///
- /// 达成率
- ///
- public decimal AchievementaRte { get; set; }
-
- ///
- /// 60%以下
- ///
- public RateOfRegional Below60 { get; set; }
-
-
- ///
- /// 60-69.99%
- ///
- public RateOfRegional Below70 { get; set; }
-
-
- ///
- /// 70-79.99%
- ///
- public RateOfRegional Below80 { get; set; }
-
- ///
- /// 80-99.99%
- ///
- public RateOfRegional Below90 { get; set; }
-
- ///
- /// 90-99.99%
- ///
- public RateOfRegional Below100 { get; set; }
-
- ///
- /// 100%以上
- ///
- public RateOfRegional Above100 { get; set; }
-
-
- }
-
- public class RateOfRegional
- {
- ///
- /// 百分比
- ///
- public decimal RateNum { get; set; }
-
- ///
- /// 店铺数量
- ///
- public decimal ShopNum { get; set; }
-
- ///
- /// 达成率类型 1=60%以下 2=60-69.99% 3=70-79.99% 4=80-89.99% 5=90-99.99% 6= 100%以上
- ///
- public int RateType { get; set; }
- }
-
-
- public class ShopCustomerListResp
- {
- ///
- /// ID
- ///
- public string Id { get; set; }
-
- ///
- /// 店铺名称
- ///
- public string Name { get; set; }
-
- ///
- /// 加盟商名称
- ///
- public string CustomerName { get; set; }
-
- ///
- /// 完成率,排序用
- ///
- public decimal AchievementaRate { get; set; }
-
-
- }
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Response/BaoDian/SerciceItemResp.cs b/Reportapi/MyCode.Project.Domain/Message/Response/BaoDian/SerciceItemResp.cs
deleted file mode 100644
index 0f6c722..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Response/BaoDian/SerciceItemResp.cs
+++ /dev/null
@@ -1,17 +0,0 @@
-using MyCode.Project.Domain.Model;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Response.BaoDian
-{
- public class SerciceItemResp:ServiceResp
- {
- ///
- /// 关联Id(计划Id)
- ///
- public long Id { get; set; }
- }
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Response/BaoDian/ServiceResp.cs b/Reportapi/MyCode.Project.Domain/Message/Response/BaoDian/ServiceResp.cs
deleted file mode 100644
index dfc4cc0..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Response/BaoDian/ServiceResp.cs
+++ /dev/null
@@ -1,31 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Response.BaoDian
-{
- public class ServiceResp
- {
- ///
- ///
- ///
- public string ServiceID { get; set; }
-
- ///
- /// 服务名
- ///
- public string ServiceName { get; set; }
-
- ///
- /// 服务编码
- ///
- public string ServiceCustomNo { get; set; }
-
- ///
- /// 价格
- ///
- public decimal BasePrice { get; set; }
- }
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Response/BaoDian/SkuItemResp.cs b/Reportapi/MyCode.Project.Domain/Message/Response/BaoDian/SkuItemResp.cs
deleted file mode 100644
index 4699675..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Response/BaoDian/SkuItemResp.cs
+++ /dev/null
@@ -1,52 +0,0 @@
-using MyCode.Project.Domain.Model;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Response.BaoDian
-{
- public class SkuItemResp
- {
- ///
- /// 关联Id(计划ID)
- ///
- public long Id { get; set; }
-
- ///
- /// 数量
- ///
- public int Qty { get; set; }
-
- ///
- /// sku的id
- ///
- public string BarcodeId { get; set; }
-
- ///
- /// 商品单价
- ///
- public decimal BasePrice { get; set; }
-
- ///
- /// 色号
- ///
- public string ColorName { get; set; }
-
- ///
- /// 商品名
- ///
- public string Name { get; set; }
-
- ///
- /// 商品编码
- ///
- public string CustomBc { get; set; }
-
- ///
- /// 商品款号
- ///
- public string CustomNo { get; set; }
- }
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Response/BaoDian/SkuResp.cs b/Reportapi/MyCode.Project.Domain/Message/Response/BaoDian/SkuResp.cs
deleted file mode 100644
index 0f02dad..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Response/BaoDian/SkuResp.cs
+++ /dev/null
@@ -1,41 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Response.BaoDian
-{
- public class SkuResp
- {
- ///
- /// sku的id
- ///
- public string BarcodeId { get; set; }
-
- ///
- /// 商品单价
- ///
- public decimal BasePrice { get; set; }
-
- ///
- /// 色号
- ///
- public string ColorName { get; set; }
-
- ///
- /// 商品名
- ///
- public string Name { get; set; }
-
- ///
- /// 商品编码
- ///
- public string CustomBC { get; set; }
-
- ///
- /// 商品款号
- ///
- public string CustomNo { get; set; }
- }
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Response/Bfy/BfyResult.cs b/Reportapi/MyCode.Project.Domain/Message/Response/Bfy/BfyResult.cs
deleted file mode 100644
index b5cd89b..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Response/Bfy/BfyResult.cs
+++ /dev/null
@@ -1,28 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Response.Bfy
-{
- public class BfyResult
- {
- public T Data { get; set; }
-
- public int Code { get; set; }
-
- public string ErrorMessage { get; set; }
-
- }
-
- public class DHResult
- {
- public T Data { get; set; }
-
- public int Code { get; set; }
-
- public string Message { get; set; }
-
- }
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Response/Bfy/TheMonthDataResp.cs b/Reportapi/MyCode.Project.Domain/Message/Response/Bfy/TheMonthDataResp.cs
deleted file mode 100644
index 7c83548..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Response/Bfy/TheMonthDataResp.cs
+++ /dev/null
@@ -1,855 +0,0 @@
-using MyCode.Project.Domain.Model;
-using SqlSugar;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Response.Bfy
-{
- public class TheMonthDataResp: RpShopZhenduansibiaoYejiData
- {
- ///
- /// Desc:店铺ID
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "shop_id")]
- public string ShopId { get; set; }
-
- ///
- /// Desc:时间,方便查询用
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "days")]
- public DateTime? Days { get; set; }
-
- ///
- /// Desc:使用天数:任意在手机端或pos端使用收银、核销、会员功能记1
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "shi_yong_tian_shu")]
- public int? ShiYongTianShu { get; set; }
-
- ///
- /// Desc: 是否符合均店条件 1=是 0= 否 取值范围:按智慧门店使用天数≥10天且收款金额大于0 的店铺 注意:若筛选月份包含当月,当月使用天数算法:当前日期未大于20号,则统计当天日期/2的天数且收款金额大于0的店铺,超过20号,则按≥10天
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "if_junDian")]
- public int? IfJunDian { get; set; }
-
-
- }
-
-
- public class TheMonthData2309Resp : RpShopZhenduansibiaoYejiData
- {
- ///
- /// Desc:店铺ID
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "shop_id")]
- public string ShopId { get; set; }
-
- ///
- /// Desc:时间,方便查询用
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "days")]
- public DateTime? Days { get; set; }
-
- ///
- /// Desc:区域名称
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "zone_name")]
- public string ZoneName { get; set; }
-
- ///
- /// Desc:使用天数:任意在手机端或pos端使用收银、核销、会员功能记1
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "shi_yong_tian_shu")]
- public int? ShiYongTianShu { get; set; }
-
- ///
- /// Desc: 是否符合均店条件 1=是 0= 否 取值范围:按智慧门店使用天数≥10天且收款金额大于0 的店铺 注意:若筛选月份包含当月,当月使用天数算法:当前日期未大于20号,则统计当天日期/2的天数且收款金额大于0的店铺,超过20号,则按≥10天
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "if_junDian")]
- public int? IfJunDian { get; set; }
-
- }
-
- public class JunDian2309
- {
- ///
- /// 均单业绩 统计使用智慧门月使用天数超过10天且收款金额大于0的店铺业绩/满足取值范围店铺数。
- ///
- public decimal JunDianYeJi { get; set; }
-
- ///
- /// 低于均单(店铺) 根据筛选月份,算出单店的平均业绩,比较“均单业绩”(元),低于(<)均单业绩,则记1.
- ///
- public decimal DiYuJunDian { get; set; }
-
- ///
- /// 店铺数量(前端不要对接)
- ///
- public int Num { get; set; }
-
- ///
- /// 总业绩(前端不要对接)
- ///
- public decimal ZongYeJi { get; set; }
-
- ///
- /// 店铺ID (前端不要对接)
- ///
- [SugarColumn(ColumnName = "shop_id")]
- public string shopId { get; set; }
- }
-
- public class JunDianResp2309
- {
-
- ///
- /// Desc:区域名称
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "zone_name")]
- public string ZoneName { get; set; }
-
-
- ///
- /// Desc:店铺ID
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "shop_id")]
- public string ShopId { get; set; }
-
- ///
- /// Desc:时间,方便查询用
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "days")]
- public DateTime? Days { get; set; }
-
- ///
- /// Desc:使用天数:任意在手机端或pos端使用收银、核销、会员功能记1
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "shi_yong_tian_shu")]
- public int? ShiYongTianShu { get; set; }
-
- ///
- /// Desc: 是否符合均店条件 1=是 0= 否 取值范围:按智慧门店使用天数≥10天且收款金额大于0 的店铺 注意:若筛选月份包含当月,当月使用天数算法:当前日期未大于20号,则统计当天日期/2的天数且收款金额大于0的店铺,超过20号,则按≥10天
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "if_junDian")]
- public int? IfJunDian { get; set; }
-
- ///
- /// Desc:主键id,与rp_shop_zhenduansibiao_search表id相等
- /// Default:
- /// Nullable:False
- ///
- [SugarColumn(IsPrimaryKey = true, ColumnName = "id")]
- public long Id { get; set; }
-
- ///
- /// Desc:总收款:门店实际总收款金额 (订单实付金额+充值金额+预售金额)
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "zong_shou_kuan")]
- public decimal? ZongShouKuan { get; set; }
-
- ///
- /// Desc:总业绩:订单实付金额+消预存金额 (不含充值) +预售转销售单金额
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "zong_ye_ji")]
- public decimal? ZongYeJi { get; set; }
-
- ///
- /// Desc:饰品金额:购买饰品类实付金额+消预存金额(发饰品类+首饰品类)
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "shi_pin_jin_e")]
- public decimal? ShiPinJinE { get; set; }
-
- ///
- /// Desc:饰品占的百分比:购买饰品类实付金额+消预存金额(发饰品类+首饰品类)/总业绩*100%
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "shi_pin_bi_li")]
- public decimal? ShiPinBiLi { get; set; }
-
- ///
- /// Desc:化妆品金额: 购买彩妆品类实付金额+消预存金额(彩妆类产品)
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "hua_zhuang_pin_jin_e")]
- public decimal? HuaZhuangPinJinE { get; set; }
-
- ///
- /// Desc:化妆品占的百分比:购买彩妆品类实付金额+消预存金额(彩妆类产品)/总业绩*100%
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "hua_zhuang_pin_bi_li")]
- public decimal? HuaZhuangPinBiLi { get; set; }
-
- ///
- /// Desc:护肤品金额: 购买护肤品类实付金额+消预存金额(护肤类产品)
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "hu_fu_pin_jin_e")]
- public decimal? HuFuPinJinE { get; set; }
-
- ///
- /// Desc:护肤品占的百分比:购买护肤品类实付金额+消预存金额(护肤类产品)/总业绩*100%
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "hu_fu_pin_bi_li")]
- public decimal? HuFuPinBiLi { get; set; }
-
- ///
- /// Desc:服务业绩金额:服务业绩(包含所有服务类业绩,不包含产品销售)
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "fu_wu_ye_ji_jin_e")]
- public decimal? FuWuYeJiJinE { get; set; }
-
- ///
- /// Desc:服务业绩占的百分比:服务业绩(包含所有服务类业绩,不包含产品销售)/总业绩*100%
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "fu_wu_ye_ji_bi_li")]
- public decimal? FuWuYeJiBiLi { get; set; }
-
- ///
- /// Desc:其他业绩金额:非购买发饰、彩妆、护肤类实付金额+消预存金额(含工具类)
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "qi_ta_ye_ji_jin_e")]
- public decimal? QiTaYeJiJinE { get; set; }
-
- ///
- /// Desc:其他业绩占的百分比:非购买发饰、彩妆、护肤类实付金额+消预存金额(含工具类)/总业绩*100%
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "qi_ta_ye_ji_bi_li")]
- public decimal? QiTaYeJiBiLi { get; set; }
-
- ///
- /// Desc:月拓客体验数:第一次产生核销或收银的人数
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "yue_tuo_ke_ti_yan")]
- public decimal? YueTuoKeTiYan { get; set; }
-
- ///
- /// Desc:月新客首单数:第一次购买产品的人数(产品不包含体验套、其他类、服务类)
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "yue_xin_ke_shou_dan")]
- public decimal? YueXinKeShouDan { get; set; }
-
- ///
- /// Desc:本月新客首单金额
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "xin_ke_shou_dan_jin_e")]
- public decimal? XinKeShouDanJinE { get; set; }
-
- ///
- /// Desc:首单客单(均):月新客首单金额/月新客首单人数(产品不包含体验套、其他类、服务类)
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "shou_dan_ke_dan")]
- public decimal? ShouDanKeDan { get; set; }
-
- ///
- /// Desc:月升单复购数 : 有过首单记录,本月内再次消费的人数(产品不包含体验套、其他类、服务类)
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "yue_sheng_dan_ren_shu")]
- public decimal? YueShengDanRenShu { get; set; }
-
- ///
- /// Desc:月升单复购金额:有过首单记录,本月内再次消费的符合条件的明细金额(产品不包含体验套、其他类、服务类)
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "yue_sheng_dan_jin_e")]
- public decimal? YueShengDanJinE { get; set; }
-
- ///
- /// Desc:复购客单(均): 月升单复购会员的订单金额/人数(产品不包含体验套、其他类、服务类)
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "fu_gou_ke_dan")]
- public decimal? FuGouKeDan { get; set; }
-
- ///
- /// Desc:套餐总人数:拥有套餐的会员人数(不含体验类、卡券或单独售卖的服务、)
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "tao_can_zong_ren_shu")]
- public decimal? TaoCanZongRenShu { get; set; }
-
- ///
- /// Desc:2套人数:拥有2个套餐的会员人数(不含体验类、卡券或单独售卖的服务),以套餐ID去重数统计个数
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "tao_can_2tao_ren_shu")]
- public decimal? TaoCan2taoRenShu { get; set; }
-
- ///
- /// Desc:3套以上人数:拥有3个或以上套餐的会员人数(不含体验类、卡券或单独售卖的服务)
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "tao_can_3tao_ren_shu")]
- public decimal? TaoCan3taoRenShu { get; set; }
-
- ///
- /// Desc:1月1次:近1个月,套餐顾客核销护肤服务1次的人数. 近一个月,是本月1日开始算
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "tao_can_huo_yue_1m_1")]
- public decimal? TaoCanHuoYue1m1 { get; set; }
-
- ///
- /// Desc:1月2次:近1个月,套餐顾客核销护肤服务2次以上的人数 近一个月,是本月1日开始算
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "tao_can_huo_yue_1m_2")]
- public decimal? TaoCanHuoYue1m2 { get; set; }
-
- ///
- /// Desc:2月1次:近1个月没来,2个月套餐顾客核销护肤服务1次以上的人数 近2个月,是上月1日开始算
- /// Default:
- /// Nullable:False
- ///
- [SugarColumn(ColumnName = "tao_can_huo_yue_2m_1")]
- public decimal TaoCanHuoYue2m1 { get; set; }
-
- ///
- /// Desc:3月1次:近2个月没来,3个月套餐顾客核销护肤服务1次以上的人数 近2个月,是上月1日开始算
- /// Default:
- /// Nullable:False
- ///
- [SugarColumn(ColumnName = "tao_can_huo_yue_3m_2")]
- public decimal TaoCanHuoYue3m2 { get; set; }
-
- ///
- /// Desc:日均护理人数:本月平均每天拥有套餐的会员护理多少人
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "he_xiao_ren_shu")]
- public decimal? HeXiaoRenShu { get; set; }
-
- ///
- /// Desc:日均护理次数:本月平均每天拥有套餐的会员服务核销多少次(一次三单算三次); 如果一个服务单 明细都是套餐, A服务3次,B服务2次,C服务5次。次数= 3+2+5
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "he_xiao_ci_shu")]
- public decimal? HeXiaoCiShu { get; set; }
-
- ///
- /// Desc:1套人数:拥有1个套餐的会员人数(不含体验类、卡券或单独售卖的服务),以套餐ID去重数统计个数
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "tao_can_1tao_ren_shu")]
- public decimal? TaoCan1taoRenShu { get; set; }
-
- ///
- /// Desc:套餐项目数——套餐总数:统计拥有套餐会员的项目数(不含体验类、或单独售卖的服务)
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "tao_can_zong_shu")]
- public decimal? TaoCanZongShu { get; set; }
-
- ///
- /// Desc:新增套餐数:统计比上月新增的拥有套餐会员的项目数(不含体验类、或单独售卖的服务) 注意:统计是项目数,不是项目次数。
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "tao_can_xin_zeng_shu")]
- public decimal? TaoCanXinZengShu { get; set; }
-
- ///
- /// Desc:七大指标月报里面的新客业绩
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "xin_ke_ye_ji")]
- public decimal? XinKeYeJi { get; set; }
-
- ///
- /// Desc:七大指标月报里面的老客业绩
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "lao_ke_ye_ji")]
- public decimal? LaoKeYeJi { get; set; }
- }
-
-
- public class HuanBiResp2310
- {
- ///
- /// 主键
- ///
- public long Id { get; set; }
-
- ///
- /// Desc:店铺ID
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "shop_id")]
- public string ShopId { get; set; }
-
- ///
- /// Desc:店铺名称
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "shop_name")]
- public string ShopName { get; set; }
-
- ///
- /// Desc:店铺编码
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "shop_code")]
- public string ShopCode { get; set; }
-
-
- ///
- /// Desc:加盟商名称
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "customer_name")]
- public string CustomerName { get; set; }
-
- ///
- /// Desc:大区ID
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "zone_id")]
- public string ZoneId { get; set; }
-
- ///
- /// Desc:月报所属年份
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "years")]
- public int? Years { get; set; }
-
- ///
- /// Desc:月报所属月份
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "months")]
- public int? Months { get; set; }
-
- ///
- /// Desc:月报所属天的日期
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "days_num")]
- public int? DaysNum { get; set; }
-
- ///
- /// Desc:省名称
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "state_name")]
- public string StateName { get; set; }
-
- ///
- /// Desc:城市
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "city_name")]
- public string CityName { get; set; }
-
- ///
- /// Desc:区/县
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "district_name")]
- public string DistrictName { get; set; }
-
- ///
- /// Desc:大区名称
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "zone_name")]
- public string ZoneName { get; set; }
-
- ///
- /// Desc:使用天数环比
- ///
- [SugarColumn(ColumnName = "shi_yong_tian_shu")]
- public string ShiYongTianShu { get; set; }
-
- ///
- /// Desc:时间,方便查询用,精确到天
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "search_days")]
- public DateTime? SearchDays { get; set; }
-
- ///
- /// 日期,前端对接这个字段做日期
- ///
- public string Days { get; set; }
-
- ///
- /// Desc:总收款:门店实际总收款金额 (订单实付金额+充值金额+预售金额)
- ///
-
- public string ZongShouKuan { get; set; }
-
- ///
- /// Desc:总业绩:订单实付金额+消预存金额 (不含充值) +预售转销售单金额
- ///
-
- public string ZongYeJi { get; set; }
-
-
- ///
- /// Desc:饰品
- ///
-
- public string ShiPin { get; set; }
-
- ///
- /// Desc:彩妆
- ///
-
- public string CaiZhuang { get; set; }
-
-
- ///
- /// 护肤品
- ///
-
- public string HuFuPin { get; set; }
-
- ///
- /// 服务业绩
- ///
-
- public string FuWuYeJi { get; set; }
-
- ///
- /// 其他业绩金额
- ///
- public string QiTaYeJi { get; set; }
-
-
- ///
- /// 月拓客体验数
- ///
- public string YueTuoKeTiYan { get; set; }
-
-
- ///
- /// 月新客首单数
- ///
- public string YueXinKeShouDan { get; set; }
-
- ///
- /// 月新客首单数,仅购买产品的人数
- ///
- public string YueXinKeShouDan2 { get; set; }
-
-
- ///
- /// 月新客首单数,购买产品,并赠送服务套餐的人数
- ///
- public string YueXinKeShouDan3 { get; set; }
-
- ///
- /// 首单客单(均)
- ///
- public string ShouDanKeDan { get; set; }
-
-
- ///
- /// 月升单复购数
- ///
- public string YueShengDanRenShu { get; set; }
-
-
- ///
- /// 月升单复购数,仅购买产品的人数
- ///
- public string YueShengDanRenShu2 { get; set; }
-
-
- ///
- /// 月升单复购数,购买产品,并赠送服务套餐的人数
- ///
- public string YueShengDanRenShu3 { get; set; }
-
-
-
- ///
- /// 复购客单(均)
- ///
- public string FuGouKeDan { get; set; }
-
- ///
- /// 套餐总人数
- ///
- public string TaoCanZongRenShu { get; set; }
-
-
- ///
- /// 1套人数
- ///
- public string TaoCan1taoRenShu { get; set; }
-
- ///
- /// 2套人数
- ///
- public string TaoCan2taoRenShu { get; set; }
-
- ///
- /// 3套以上人数
- ///
- public string TaoCan3taoRenShu { get; set; }
-
- ///
- /// 套餐总数
- ///
- public string TaoCanZongShu { get; set; }
-
- ///
- /// 新增套餐数
- ///
- public string TaoCanXinZengShu { get; set; }
-
- ///
- /// 1月2次
- ///
- public string TaoCanHuoYue1m2 { get; set; }
-
- ///
- /// 1月1次
- ///
- public string TaoCanHuoYue1m1 { get; set; }
-
-
- ///
- /// 2月1次
- ///
- public string TaoCanHuoYue2m1 { get; set; }
-
- ///
- /// 3月1次:近2个月没来,3个月套餐顾客核销护肤服务1次以上的人数 近2个月,是上月1日开始算
- ///
- public string TaoCanHuoYue3m2 { get; set; }
-
-
- ///
- /// 日均护理人数
- ///
- public string HeXiaoRenShu { get; set; }
-
- ///
- /// 日均护理次数
- ///
- public string HeXiaoCiShu { get; set; }
-
-
- }
-
-
-
- ///
- /// 销售订单属性分析
- ///
-
- public class SalesOrderAttributeAnalysis
- {
- ///
- /// 单据ID
- ///
- public string Id { get; set; }
-
- ///
- /// 单据号
- ///
- public string Sheet { get; set; }
-
- ///
- /// 顾客名称
- ///
- public string MemberName { get; set; }
-
- ///
- /// 会员卡号
- ///
- public string MemberMobile { get; set; }
-
- ///
- /// 消费店铺
- ///
- public string ShopName { get; set; }
-
- ///
- /// 操作员
- ///
- public string ClerkName { get; set; }
-
- ///
- /// 单据类型
- ///
- public string SheetTypeString { get; set; }
-
- ///
- /// 订单来源文本
- ///
- public string PlatformSourceText { get; set; }
-
- ///
- /// 店铺类型
- ///
- public string ShopKind { get; set; }
-
- ///
- /// 消费日期
- ///
- public DateTime SalesTime { get; set; }
-
- ///
- /// 实收金额
- ///
- public decimal? TotalAmount { get; set; }
-
- ///
- /// 余额支付
- ///
- public decimal? Balance { get; set; }
-
- ///
- /// 商品数量
- ///
- public int TotalQty { get; set; }
-
- ///
- /// 护肤
- ///
- public decimal HuFu { get; set; }
-
- ///
- /// 彩妆
- ///
- public decimal CaiZhuang { get; set; }
-
- ///
- /// 饰品
- ///
- public decimal ShiPin { get; set; }
-
- ///
- /// 其它
- ///
- public decimal QiTa { get; set; }
-
-
- ///
- /// 服务
- ///
- public decimal FuWu { get; set; }
-
- ///
- /// 充值
- ///
- public decimal ChongZhi { get; set; }
-
- ///
- /// 赠送套餐(护肤)
- ///
- public int HuFuZengPin { get; set; }
-
- ///
- /// 赠送套餐(除护肤类)
- ///
- public int NoHuFuZengPin { get; set; }
-
- ///
- /// 顾客类型
- ///
- public string MemberType { get; set; }
-
- ///
- /// 购买行为
- ///
- public string PurchasingBehavior { get; set; }
-
- ///
- /// 顾客来源
- ///
- public string FromType { get; set; }
- }
-
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Response/Label/ShopIdByLabelResp.cs b/Reportapi/MyCode.Project.Domain/Message/Response/Label/ShopIdByLabelResp.cs
deleted file mode 100644
index 8fb7a2d..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Response/Label/ShopIdByLabelResp.cs
+++ /dev/null
@@ -1,21 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Response.Label
-{
- public class ShopIdByLabelResp
- {
- ///
- /// 店铺Id
- ///
- public string ShopId { get; set; }
-
- ///
- /// 标签数量
- ///
- public int LabelTotal { get; set; }
- }
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Response/Lxm/ChangeRecordResp.cs b/Reportapi/MyCode.Project.Domain/Message/Response/Lxm/ChangeRecordResp.cs
deleted file mode 100644
index 801b481..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Response/Lxm/ChangeRecordResp.cs
+++ /dev/null
@@ -1,192 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Response.Lxm
-{
- ///
- /// 变更的记录
- ///
- public class ChangeRecordResp
- {
- ///
- /// 单据id
- ///
- public Guid SheetId
- {
- get;
- set;
- }
-
- ///
- /// 单据类型
- ///
- public int SheetType
- {
- get;
- set;
- }
-
- ///
- /// 支付金额
- ///
- public decimal TotalAmount
- {
- get;
- set;
- }
-
- ///
- /// 预售金额
- ///
- public decimal YuShouAmount
- {
- get;
- set;
- }
-
- ///
- /// 余额
- ///
- public decimal Balance
- {
- get;
- set;
- }
-
- ///
- /// 店铺id
- ///
- public Guid? ShopId
- {
- get;
- set;
- }
-
- ///
- /// 加盟商id
- ///
- public Guid? CustomerId
- {
- get;
- set;
- }
-
- ///
- /// 会员id
- ///
- public Guid? MemberId
- {
- get;
- set;
- }
-
- ///
- /// 会员手机
- ///
- public string MemberMobile
- {
- get;
- set;
- }
-
- ///
- /// 会员姓名
- ///
- public string MemberName
- {
- get;
- set;
- }
-
- ///
- /// 加盟商名
- ///
- public string CustomerName
- {
- get;
- set;
- }
-
- ///
- /// 修改时间
- ///
- public DateTime EditTime
- {
- get;
- set;
- }
-
- ///
- /// 创建时间
- ///
- public DateTime CreateTime
- {
- get;
- set;
- }
-
- ///
- /// 充值金额
- ///
- public decimal RechargeAmount
- {
- get;
- set;
- }
-
- ///
- /// 100是正常的,其它都不要了
- ///
- public int Flag
- {
- get;
- set;
- }
-
- ///
- /// 对应MSSQL的IfNew
- ///
- public int IsNewMemberOrder
- {
- get;
- set;
- }
-
- ///
- /// 对应MSSQL的IfShouDan
- ///
- public int IsFirstOrder
- {
- get;
- set;
- }
-
- ///
- /// 下单店员id
- ///
- public Guid? ClerkId { get; set; }
-
- ///
- /// 店员名
- ///
- public string ClerkName { get; set; }
-
- ///
- /// 店员手机
- ///
- public string ClerkMobile { get; set; }
-
- ///
- /// 数据来源平台 0=冰芙云;1=智慧门店
- ///
- public int ? PlatformSource { get; set; }
-
- ///
- /// Desc:1=是;0=否 是否复购订单 :此人在该门店有过首单记录,本月内再次消费的订单(产品不包含体验套、其他类、服务类)
- ///
- public int? IsRepurchase { get; set; }
- }
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Response/Lxm/IdTimeResp.cs b/Reportapi/MyCode.Project.Domain/Message/Response/Lxm/IdTimeResp.cs
deleted file mode 100644
index 01dddaa..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Response/Lxm/IdTimeResp.cs
+++ /dev/null
@@ -1,32 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Response.Lxm
-{
- ///
- /// Id和时间
- ///
- public class IdTimeResp
- {
- ///
- /// Id
- ///
- public Guid Id
- {
- get;
- set;
- }
-
- ///
- /// 修改时间
- ///
- public DateTime? EditTime
- {
- get;
- set;
- }
- }
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Response/Lxm/LxmCardResp.cs b/Reportapi/MyCode.Project.Domain/Message/Response/Lxm/LxmCardResp.cs
deleted file mode 100644
index 726d503..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Response/Lxm/LxmCardResp.cs
+++ /dev/null
@@ -1,20 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Response.Lxm
-{
- ///
- /// 卡券
- ///
- public class LxmCardResp
- {
- public string Name
- {
- get;
- set;
- }
- }
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Response/Lxm/LxmCustomPackageResp.cs b/Reportapi/MyCode.Project.Domain/Message/Response/Lxm/LxmCustomPackageResp.cs
deleted file mode 100644
index 2e2041e..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Response/Lxm/LxmCustomPackageResp.cs
+++ /dev/null
@@ -1,19 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Response.Lxm
-{
- ///
- /// 流行美自定义套餐
- ///
- public class LxmCustomPackageResp
- {
- ///
- /// 套餐名
- ///
- public string Name { get; set; }
- }
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Response/Lxm/LxmDiyPackageType.cs b/Reportapi/MyCode.Project.Domain/Message/Response/Lxm/LxmDiyPackageType.cs
deleted file mode 100644
index 060b5f6..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Response/Lxm/LxmDiyPackageType.cs
+++ /dev/null
@@ -1,42 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Response.Lxm
-{
- ///
- /// 流行美DIY套餐
- ///
- public class LxmDiyPackageType
- {
- ///
- /// 主键id
- ///
- public Guid Id
- {
- get;
- set;
- }
-
- ///
- /// 自定义套餐的名字
- ///
- public string Name
- {
- get;
- set;
- }
-
- ///
- /// 是不是商品套餐
- ///
- public int IsProduct
- {
- get;
- set;
- }
-
- }
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Response/Lxm/LxmRechargeResp.cs b/Reportapi/MyCode.Project.Domain/Message/Response/Lxm/LxmRechargeResp.cs
deleted file mode 100644
index 6d1c24a..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Response/Lxm/LxmRechargeResp.cs
+++ /dev/null
@@ -1,23 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Response.Lxm
-{
- ///
- /// 流行美充值
- ///
- public class LxmRechargeResp
- {
- ///
- /// 充值单号
- ///
- public string Sheet
- {
- get;
- set;
- }
- }
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Response/Lxm/LxmServicePackageResp.cs b/Reportapi/MyCode.Project.Domain/Message/Response/Lxm/LxmServicePackageResp.cs
deleted file mode 100644
index 894d716..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Response/Lxm/LxmServicePackageResp.cs
+++ /dev/null
@@ -1,20 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Response.Lxm
-{
- public class LxmServicePackageResp
- {
- ///
- /// 流行美服务套餐
- ///
- public string Name
- {
- get;
- set;
- }
- }
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Response/Lxm/LxmServiceResp.cs b/Reportapi/MyCode.Project.Domain/Message/Response/Lxm/LxmServiceResp.cs
deleted file mode 100644
index a72d28e..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Response/Lxm/LxmServiceResp.cs
+++ /dev/null
@@ -1,16 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Response.Lxm
-{
- public class LxmServiceResp
- {
- ///
- /// 服务名
- ///
- public string Name { get; set; }
- }
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Response/Lxm/LxmSheetItemResp.cs b/Reportapi/MyCode.Project.Domain/Message/Response/Lxm/LxmSheetItemResp.cs
deleted file mode 100644
index 9d05202..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Response/Lxm/LxmSheetItemResp.cs
+++ /dev/null
@@ -1,83 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Response.Lxm
-{
- public class LxmSheetItemResp
- {
- ///
- /// 主键id
- ///
- public Guid Id
- {
- get;
- set;
- }
-
- ///
- /// 数量
- ///
- public int Qty
- {
- get;
- set;
- }
-
- ///
- /// 没有余额的单价
- ///
- public decimal NoBalanceUnitPrice
- {
- get;
- set;
- }
-
- ///
- /// 含余额的单价
- ///
- public decimal InBlanceUnitPrice
- {
- get;
- set;
- }
-
- ///
- /// 商品类型
- ///
- public int ItemType
- {
- get;
- set;
- }
-
- ///
- /// 明细的内容ID,根据ItemType决定内容
- ///
- public Guid ItemId
- {
- get;
- set;
- }
-
- ///
- /// 商品名
- ///
- public string Name
- {
- get;
- set;
- }
-
- ///
- /// 1级分类的id
- ///
- public Guid? TopId
- {
- get;
- set;
- }
- }
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Response/Lxm/LxmSheetResp.cs b/Reportapi/MyCode.Project.Domain/Message/Response/Lxm/LxmSheetResp.cs
deleted file mode 100644
index 1825ce0..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Response/Lxm/LxmSheetResp.cs
+++ /dev/null
@@ -1,29 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Response.Lxm
-{
- public class LxmSheetResp
- {
- ///
- /// 单号
- ///
- public string Sheet
- {
- get;
- set;
- }
-
- ///
- /// 预售单的id
- ///
- public Guid? PreSalesSheetId
- {
- get;
- set;
- }
- }
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Response/Lxm/LxmSimpleGoodsResp.cs b/Reportapi/MyCode.Project.Domain/Message/Response/Lxm/LxmSimpleGoodsResp.cs
deleted file mode 100644
index c55d745..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Response/Lxm/LxmSimpleGoodsResp.cs
+++ /dev/null
@@ -1,24 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Response.Lxm
-{
- ///
- /// 流行美商品简单的信息
- ///
- public class LxmSimpleGoodsResp
- {
- ///
- /// 商品名
- ///
- public string Name { get; set; }
-
- ///
- /// 商品一级分类
- ///
- public Guid? TopCategoryId { get; set; }
- }
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Response/Lxm/LxmUseDaysResp.cs b/Reportapi/MyCode.Project.Domain/Message/Response/Lxm/LxmUseDaysResp.cs
deleted file mode 100644
index bbe8c50..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Response/Lxm/LxmUseDaysResp.cs
+++ /dev/null
@@ -1,32 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Response.Lxm
-{
- ///
- /// 流行美使用天数
- ///
- public class LxmUseDaysResp
- {
- ///
- /// 使用天数
- ///
- public DateTime CreateTime
- {
- get;
- set;
- }
-
- ///
- /// 店铺id
- ///
- public string ShopId
- {
- get;
- set;
- }
- }
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Response/LxmZHMDReport/CollectionRankReportExportResp.cs b/Reportapi/MyCode.Project.Domain/Message/Response/LxmZHMDReport/CollectionRankReportExportResp.cs
deleted file mode 100644
index f0f681a..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Response/LxmZHMDReport/CollectionRankReportExportResp.cs
+++ /dev/null
@@ -1,222 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Response.LxmZHMDReport
-{
- public class CollectionRankReportExportResp
- {
- ///
- /// 累计收款排名
- ///
- public int CumulativeCollectionRanking { get; set; }
-
- ///
- /// 当天收款排名
- ///
- public int TodayCollectionRanking { get; set; }
-
- ///
- /// 店铺id
- ///
- public Guid? ShopId { get; set; }
-
- ///
- /// 区域(大区名称)
- ///
- public string ZoneName { get; set; }
-
- ///
- /// 省名称
- ///
- public string ProvinceName { get; set; }
-
- ///
- /// 市名称
- ///
- public string CityName { get; set; }
-
- ///
- /// 店铺归属(加盟商名称)
- ///
- public string CustomerName { get; set; }
-
- ///
- /// 店铺编码
- ///
- public string Code { get; set; }
-
- ///
- /// 店铺名称
- ///
- public string ShopName { get; set; }
-
- ///
- /// 总收款
- ///
- public decimal TotalCollection { get; set; }
-
- ///
- /// 收款排名金额(截止到当前时间的前一天)
- ///
- public decimal CollectionRankAmount { get; set; }
-
- ///
- /// 1
- ///
- public decimal ? One { get; set; }
-
- ///
- /// 2
- ///
- public decimal ? Two { get; set; }
-
- ///
- /// 3
- ///
- public decimal ? Three { get; set; }
-
- ///
- /// 4
- ///
- public decimal ? Four { get; set; }
-
- ///
- /// 5
- ///
- public decimal ? Five { get; set; }
-
- ///
- /// 6
- ///
- public decimal ? Six { get; set; }
-
- ///
- ///7
- ///
- public decimal ? Seven { get; set; }
-
- ///
- /// 8
- ///
- public decimal ? Eight { get; set; }
-
- ///
- /// 9
- ///
- public decimal ? Nine { get; set; }
-
- ///
- /// 10
- ///
- public decimal ? Ten { get; set; }
-
- ///
- /// 11
- ///
- public decimal ? Eleven { get; set; }
-
- ///
- /// 12
- ///
- public decimal ? Twelve { get; set; }
-
- ///
- /// 13
- ///
- public decimal ? Thirteen { get; set; }
-
- ///
- /// 14
- ///
- public decimal ? Fourteen { get; set; }
-
- ///
- /// 15
- ///
- public decimal ? Fifteen { get; set; }
-
- ///
- /// 16
- ///
- public decimal ? Sixteen { get; set; }
-
- ///
- ///17
- ///
- public decimal ? Seventeen { get; set; }
-
- ///
- /// 18
- ///
- public decimal ? Eighteen { get; set; }
-
- ///
- /// 19
- ///
- public decimal ? Nineteen { get; set; }
-
- ///
- /// 20
- ///
- public decimal ? Twenty { get; set; }
-
- ///
- /// 21
- ///
- public decimal ? TwentyOne { get; set; }
-
- ///
- /// 22
- ///
- public decimal ? TwentyTwo { get; set; }
-
- ///
- /// 23
- ///
- public decimal ? TwentyThree { get; set; }
-
- ///
- /// 24
- ///
- public decimal ? TwentyFour { get; set; }
-
- ///
- /// 25
- ///
- public decimal ? TwentyFive { get; set; }
-
- ///
- /// 26
- ///
- public decimal ? TwentySix { get; set; }
-
- ///
- ///27
- ///
- public decimal ? TwentySeven { get; set; }
-
- ///
- /// 28
- ///
- public decimal ? TwentyEight { get; set; }
-
- ///
- /// 29
- ///
- public decimal ? TwentyNine { get; set; }
-
- ///
- /// 30
- ///
- public decimal ? Thirty { get; set; }
-
- ///
- /// 31
- ///
- public decimal ? ThirtyOne { get; set; }
-
- }
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Response/LxmZHMDReport/CollectionRankReportResult.cs b/Reportapi/MyCode.Project.Domain/Message/Response/LxmZHMDReport/CollectionRankReportResult.cs
deleted file mode 100644
index e23019e..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Response/LxmZHMDReport/CollectionRankReportResult.cs
+++ /dev/null
@@ -1,27 +0,0 @@
-using MyCode.Project.Domain.Message.Response.Common;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Response.LxmZHMDReport
-{
- public class CollectionRankReportResult
- {
- ///
- /// 增加的动态字段
- ///
- public List ListHeadField { get; set; }
-
- ///
- /// 列表数据
- ///
- public List DataList { get; set; }
-
- ///
- /// 分页查询中的记录总数
- ///
- public int Total { get; set; }
- }
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Response/LxmZHMDReport/CollectionRankingResp.cs b/Reportapi/MyCode.Project.Domain/Message/Response/LxmZHMDReport/CollectionRankingResp.cs
deleted file mode 100644
index db5498f..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Response/LxmZHMDReport/CollectionRankingResp.cs
+++ /dev/null
@@ -1,78 +0,0 @@
-using System;
-using System.Collections.Generic;
-
-namespace MyCode.Project.Domain.Message.Response.LxmZHMDReport
-{
- public class CollectionRankReportResp
- {
- ///
- /// 累计收款排名
- ///
- public int CumulativeCollectionRanking { get; set; }
-
- ///
- /// 当天收款排名
- ///
- public int TodayCollectionRanking { get; set; }
-
- ///
- /// 店铺id
- ///
- public Guid? ShopId { get; set; }
-
- ///
- /// 区域(大区名称)
- ///
- public string ZoneName { get; set; }
-
- ///
- /// 省名称
- ///
- public string ProvinceName { get; set; }
-
- ///
- /// 市名称
- ///
- public string CityName { get; set; }
-
- ///
- /// 加盟商id
- ///
- public Guid? CustomerId { get; set; }
-
- ///
- /// 店铺归属(加盟商名称)
- ///
- public string CustomerName { get; set; }
-
- ///
- /// 店铺编码
- ///
- public string Code { get; set; }
-
- ///
- /// 店铺名称
- ///
- public string ShopName { get; set; }
-
- ///
- /// 总收款
- ///
- public decimal TotalCollection { get; set; }
-
- ///
- /// 收款排名金额(截止到当前时间的前一天)
- ///
- public decimal CollectionRankAmount { get; set; }
-
- ///
- /// 动态表头数据
- ///
- public List ListAttr { get; set; }
-
- ///
- /// 分页查询中的记录总数
- ///
- public int Total { get; set; }
- }
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Response/LxmZHMDReport/CollectionTotalReportResp.cs b/Reportapi/MyCode.Project.Domain/Message/Response/LxmZHMDReport/CollectionTotalReportResp.cs
deleted file mode 100644
index 1ecf3e2..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Response/LxmZHMDReport/CollectionTotalReportResp.cs
+++ /dev/null
@@ -1,116 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Response.LxmZHMDReport
-{
- public class CollectionTotalReportResp
- {
- ///
- /// 店铺id
- ///
- public Guid? ShopId { get; set; }
-
- ///
- /// 区域(大区名称)
- ///
- public string ZoneName { get; set; }
-
- ///
- /// 省名称
- ///
- public string ProvinceName { get; set; }
-
- ///
- /// 市名称
- ///
- public string CityName { get; set; }
-
- ///
- /// 店铺归属(加盟商名称)
- ///
- public string CustomerName { get; set; }
-
- ///
- /// 加盟商ID(前端忽略)
- ///
- public Guid? CustomerId { get; set; }
-
- ///
- /// 店铺编码
- ///
- public string Code { get; set; }
-
- ///
- /// 店铺名称
- ///
- public string ShopName { get; set; }
-
- ///
- /// 总收款
- ///
- public decimal TotalCollection { get; set; }
-
- ///
- /// 护肤收款%
- ///
- public string SkinCareCollectionPercent { get; set; }
-
- ///
- /// 化妆品收款%
- ///
- public string CosmeticsCollectionPercent { get; set; }
-
- ///
- /// 饰品收款%
- ///
- public string OrnamentsCollectionPercent { get; set; }
-
- ///
- /// 服务收款%
- ///
- public string ServiceCollectionPercent { get; set; }
-
- ///
- /// 其他收款%
- ///
- public string OtherCollectionPercent { get; set; }
-
- ///
- /// 充值收款%
- ///
- public string RechargeCollectionPercent { get; set; }
-
- ///
- /// 护肤收款(前端忽略)
- ///
- public decimal SkinCareCollection { get; set; }
-
- ///
- /// 化妆品收款(前端忽略)
- ///
- public decimal CosmeticsCollection { get; set; }
-
- ///
- /// 饰品收款(前端忽略)
- ///
- public decimal OrnamentsCollection { get; set; }
-
- ///
- /// 服务收款(前端忽略)
- ///
- public decimal ServiceCollection { get; set; }
-
- ///
- /// 其他收款(前端忽略)
- ///
- public decimal OtherCollection { get; set; }
-
- ///
- /// 充值收款(前端忽略)
- ///
- public decimal RechargeCollection { get; set; }
- }
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Response/LxmZHMDReport/CollectionTotalTypeResp.cs b/Reportapi/MyCode.Project.Domain/Message/Response/LxmZHMDReport/CollectionTotalTypeResp.cs
deleted file mode 100644
index 12c7d67..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Response/LxmZHMDReport/CollectionTotalTypeResp.cs
+++ /dev/null
@@ -1,31 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Response.LxmZHMDReport
-{
- public class CollectionTotalTypeResp
- {
- ///
- /// 店铺id
- ///
- public Guid? ShopId { get; set; }
-
- ///
- /// 加盟商ID
- ///
- public Guid? CustomerId { get; set; }
-
- ///
- /// 一级分类id
- ///
- public string TopCategoryId { get; set; }
-
- ///
- /// 总收款
- ///
- public decimal TotalCollection { get; set; }
- }
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Response/LxmZHMDReport/DayCollectionRankingResp.cs b/Reportapi/MyCode.Project.Domain/Message/Response/LxmZHMDReport/DayCollectionRankingResp.cs
deleted file mode 100644
index e235034..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Response/LxmZHMDReport/DayCollectionRankingResp.cs
+++ /dev/null
@@ -1,31 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Response.LxmZHMDReport
-{
- public class DayCollectionRankingResp
- {
- ///
- /// 店铺id
- ///
- public Guid? ShopId { get; set; }
-
- ///
- /// 加盟商id
- ///
- public Guid ?CustomerId { get; set; }
-
- ///
- /// 日期字符串
- ///
- public string CreateTimeStr { get; set; }
-
- ///
- /// 收款金额
- ///
- public decimal CollectionAmount { get; set; }
- }
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Response/LxmZHMDReport/MemberAssetInquiryResp.cs b/Reportapi/MyCode.Project.Domain/Message/Response/LxmZHMDReport/MemberAssetInquiryResp.cs
deleted file mode 100644
index 918f012..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Response/LxmZHMDReport/MemberAssetInquiryResp.cs
+++ /dev/null
@@ -1,567 +0,0 @@
-using MyCode.Project.Domain.Message.Response.Common;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Response.LxmZHMDReport
-{
- public class MemberAssetInquiryResp
- {
- ///
- /// 会员ID
- ///
- public Guid Id { get; set; }
-
- ///
- /// 会员名称
- ///
- public string Name { get; set; }
-
- ///
- /// 会员号
- ///
- public string Code { get; set; }
-
- ///
- /// 电话
- ///
- public string Mobile { get; set; }
-
- ///
- /// 等级
- ///
- public string GradeName { get; set; }
-
- ///
- /// 等级ID
- ///
- public Guid MemberGradeID { get; set; }
-
- ///
- /// 余额
- ///
- public decimal Account { get; set; }
-
- ///
- /// 积分
- ///
- public int Integral { get; set; }
-
- ///
- /// 剩余服务次数
- ///
- public int ServiceQty { get; set; }
-
- ///
- /// 关联店铺
- ///
- public string ShopName { get; set; }
- }
-
- ///
- /// 会员查询的会员详情
- ///
- public class MemberShopDetailResp2023
- {
- ///
- /// 会员主键ID
- ///
- public Guid? ID { get; set; }
-
- ///
- /// 会员名称
- ///
- public string Name { get; set; }
-
- ///
- /// 会员号
- ///
- public string Code { get; set; }
-
- ///
- /// 电话
- ///
- public string Mobile { get; set; }
-
- ///
- /// 等级
- ///
- public string GradeName { get; set; }
-
- ///
- /// 等级ID
- ///
- public Guid MemberGradeID { get; set; }
-
- ///
- /// 备注
- ///
- public string Note { get; set; }
-
- ///
- /// 生日
- ///
- public string BirthDay { get; set; }
-
- ///
- /// 会员资料增加来源 0= 其他; 1= 抖音; 2= 美团; 3=自来客; 4=老客转介绍
- ///
- public int AddFromType { get; set; }
-
- ///
- /// 会员资料增加来源文本显示
- ///
- public string AddFromTypeName { get; set; }
-
- ///
- /// 余额
- ///
- public decimal? Account { get; set; }
-
- ///
- /// 积分
- ///
- public int? Integral { get; set; }
-
- ///
- /// 在册时长: 例如: 76天
- ///
- public string RegisteredDays { get; set; }
-
- ///
- /// 剩余服务次数
- ///
- public int ServiceQty { get; set; }
-
- }
-
- public class RMemberAccountBookLogResp
- {
- ///
- /// 主键ID
- ///
- public Guid Id { get; set; }
-
- ///
- /// 变动方式
- ///
- public string Note { get; set; }
-
- ///
- /// 变动方式类型: 2444=初始化
- ///
- public int SheetType { get; set; }
-
- ///
- /// 支付方式
- ///
- public string PayTypeStr { get; set; }
-
- ///
- /// 赠送的金额
- ///
- public decimal Amount { get; set; }
-
- ///
- /// 实际支付金额
- ///
- public decimal Value { get; set; }
-
-
- ///
- /// 变动时间
- ///
- public DateTime ApplyTime { get; set; }
-
- ///
- /// 充值来源店铺
- ///
- public string FromShopName { get; set; }
-
-
- ///
- /// 本次消费店铺
- ///
- public string SheetShopName { get; set; }
- }
-
- public class XiaoFeiFenXiResp
- {
- ///
- /// 消费金额
- ///
- public decimal XiaoFeiJinE { get; set; }
-
- ///
- /// 消费次数
- ///
- public int XiaoFeiCiShu { get; set; }
-
-
- ///
- /// 累计到店次数
- ///
- public int DaoDianCiShu { get; set; }
-
- ///
- /// 最后消费时间(N天前)
- ///
- public string ZuiHouXiaoFeiShiJian { get; set; }
- }
-
- ///
- ///
- ///
- public class SalesSheetReportResp
- {
- ///
- /// 单据ID
- ///
- public Guid Id { get; set; }
-
- ///
- /// 单据号
- ///
- public string Sheet { get; set; }
-
- ///
- /// 消费店铺
- ///
- public string ShopName { get; set; }
-
- ///
- /// 订单来源 1=智慧门店 0=冰芙云
- ///
- public int? PlatformSource { get; set; }
-
- ///
- /// 订单来源文本
- ///
- public string PlatformSourceText { get; set; }
-
- ///
- /// 消费类型
- ///
- public string SalesTypeStr { get; set; }
- ///
- /// 消费日期
- ///
- public DateTime SalesTime { get; set; }
-
- ///
- /// 操作员
- ///
- public string Editor { get; set; }
-
- ///
- /// 实收金额
- ///
- public decimal? TotalAmount { get; set; }
- }
-
- ///
- ///
- ///
- public class SalesSheetItemListResp
- {
- ///
- /// 明细ID
- ///
- public Guid Id { get; set; }
-
- ///
- /// 类型,0=商品,1=服务,2=套餐服务,3=卡券 4=自定义套餐
- ///
- public int ItemType { get; set; }
-
- ///
- /// 类型文本
- ///
- public string TypeTex { get; set; }
-
-
- ///
- /// 编码
- ///
- public string Code { get; set; }
-
- ///
- /// 商品名称
- ///
- public string GoodsName { get; set; }
-
- ///
- /// 色号
- ///
- public string Color { get; set; }
-
- ///
- /// 实际单价
- ///
- public decimal? Price { get; set; }
-
- ///
- /// 吊牌单价
- ///
- public decimal SalesPrice { get; set; }
-
- ///
- /// 数量
- ///
- public int Qty { get; set; }
-
- ///
- /// 金额
- ///
- public decimal? Amount { get; set; }
-
- ///
- /// 折扣
- ///
- public string Discount { get; set; }
-
- }
-
- public class MemberServiceOrderRespon
- {
- ///
- /// 明细ID
- ///
- public Guid Id { get; set; }
-
- ///
- /// 服务日期
- ///
- public DateTime CreateTime { get; set; }
-
- ///
- /// 单号
- ///
- public string Sheet { get; set; }
-
- ///
- /// 服务技师
- ///
-
- public string ClerkName { get; set; }
-
- ///
- /// 服务名称
- ///
- public string ServiceName { get; set; }
-
- ///
- /// 数量
- ///
- public int Qty { get; set; }
-
- ///
- /// 服务店铺
- ///
- public string ShopName { get; set; }
-
- ///
- /// 订单来源 1=智慧门店 0=冰芙云
- ///
- public int? PlatformSource { get; set; }
-
- ///
- /// 订单来源文本
- ///
- public string PlatformSourceText { get; set; }
-
- }
-
- public class MemberOrderRespon
- {
- public string Sheet { get; set; }
- ///
- /// 明细ID
- ///
- public Guid Id { get; set; }
-
- ///
- /// 时间
- ///
- public DateTime CreateTime { get; set; }
-
- ///
- /// 明细类型
- ///
- public string DetailType { get; set; }
-
- ///
- /// 消费店铺
- ///
- public string ShopName { get; set; }
-
- ///
- /// 订单类型
- ///
-
- public string SheetType { get; set; }
-
- ///
- /// 类型文本
- ///
- public string TypeTex { get; set; }
-
-
- ///
- /// 编码
- ///
- public string Code { get; set; }
-
- ///
- /// 商品名称
- ///
- public string GoodsName { get; set; }
-
- ///
- /// 商品数量
- ///
- public int Qty { get; set; }
-
- ///
- /// 明细金额
- ///
- public decimal Amount { get; set; }
-
- ///
- /// 销售单价
- ///
- public decimal Price { get; set; }
-
-
- ///
- /// 订单实付金额
- ///
- public decimal TotalAmount { get; set; }
-
- ///
- /// 色号
- ///
- public string Color { get; set; }
-
- ///
- /// 订单来源文本
- ///
- public string PlatformSourceText { get; set; }
-
- }
-
- public class ServiceInvInfo
- {
- ///
- /// 套餐ID
- ///
- public Guid? Id { get; set; }
-
- ///
- /// 服务名称
- ///
- public string GoodsName { get; set; }
-
-
- ///
- /// 项目类型0=商品;1=服务;2=套餐,3=卡券 , 4=自定义套餐
- ///
- public int? ItemType { get; set; }
-
- ///
- /// 剩余服务次数
- ///
- public int? Qty { get; set; }
-
- ///
- /// 加盟商ID
- ///
- public Guid? CustomerId { get; set; }
-
- ///
- /// 服务ID
- ///
- public Guid? ServiceID { get; set; }
- }
-
-
- public class ROldMemberAccountBookLogResp
- {
- ///
- /// 主键ID
- ///
- public Guid Id { get; set; }
-
- ///
- /// 变动方式
- ///
- public string Note { get; set; }
-
-
- ///
- /// 赠送的金额
- ///
- public decimal Amount { get; set; }
-
- ///
- /// 实际支付金额
- ///
- public decimal Value { get; set; }
-
- ///
- /// 变动时间
- ///
- public DateTime ApplyTime { get; set; }
-
- }
-
- public class SalesSheetItemListResp2
- {
- ///
- /// 订单销售明细
- ///
- public List Items { get; set; }
-
- ///
- /// 赠品明细
- ///
- public List ZengPinList { get; set; }
- }
-
- public class ZengPinResp
- {
- ///
- /// 明细ID
- ///
- public Guid Id { get; set; }
-
- ///
- /// 订单ID
- ///
- public Guid SalesSheetId { get; set; }
-
- ///
- /// 类型,0=商品,1=服务,2=套餐
- ///
- public int ItemType { get; set; }
-
- ///
- /// 编码
- ///
- public string Code { get; set; }
-
- ///
- /// 名称
- ///
- public string Name { get; set; }
-
- ///
- /// 数量
- ///
- public int Qty { get; set; }
-
- }
-
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Response/LxmZHMDReport/MonthOperationReportResp.cs b/Reportapi/MyCode.Project.Domain/Message/Response/LxmZHMDReport/MonthOperationReportResp.cs
deleted file mode 100644
index 8ad6876..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Response/LxmZHMDReport/MonthOperationReportResp.cs
+++ /dev/null
@@ -1,46 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Response.LxmZHMDReport
-{
- public class MonthOperationReportResp
- {
- ///
- /// 主键id
- ///
- public long Id { get; set; }
-
- ///
- /// 报表类型 5=店长月度报表 6=加盟商月度报表
- ///
- public int ReportType { get; set; }
-
- ///
- /// 是否有报表 1=有,0=无
- ///
- public int HasReport { get; set; }
-
- ///
- /// 年报中的X年
- ///
- public int? YearNum { get; set; }
-
- ///
- /// 月报中的X月
- ///
- public int? MonthNum { get; set; }
-
- ///
- /// 单店运营核心指标
- ///
- public List OperateList { get; set; }
-
- ///
- /// 产品品项分析
- ///
- public List AnalysisList { get; set; }
- }
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Response/LxmZHMDReport/MonthProductItemAnalysisResp.cs b/Reportapi/MyCode.Project.Domain/Message/Response/LxmZHMDReport/MonthProductItemAnalysisResp.cs
deleted file mode 100644
index 1ec2972..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Response/LxmZHMDReport/MonthProductItemAnalysisResp.cs
+++ /dev/null
@@ -1,13 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Response.LxmZHMDReport
-{
- public class MonthProductItemAnalysisResp:ProductItemAnalysisResp
- {
-
- }
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Response/LxmZHMDReport/PerformanceResp.cs b/Reportapi/MyCode.Project.Domain/Message/Response/LxmZHMDReport/PerformanceResp.cs
deleted file mode 100644
index 6e14b9d..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Response/LxmZHMDReport/PerformanceResp.cs
+++ /dev/null
@@ -1,46 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Response.LxmZHMDReport
-{
- public class PerformanceResp
- {
- ///
- /// 总收款
- ///
- public decimal TotalCollection { get; set; }
-
- ///
- /// 总业绩
- ///
- public decimal TotalPerformance { get; set; }
-
- ///
- /// 饰品%
- ///
- public string OrnamentsPercent { get; set; }
-
- ///
- /// 化妆品%
- ///
- public string CosmeticsPercent { get; set; }
-
- ///
- /// 护肤%
- ///
- public string SkinCarePercent { get; set; }
-
- ///
- /// 服务业绩%
- ///
- public string ServicePerformancePercent { get; set; }
-
- ///
- /// 其他业绩%
- ///
- public string OtherPerformancePercent { get; set; }
- }
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Response/LxmZHMDReport/ProductItemAnalysisResp.cs b/Reportapi/MyCode.Project.Domain/Message/Response/LxmZHMDReport/ProductItemAnalysisResp.cs
deleted file mode 100644
index 53bcff9..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Response/LxmZHMDReport/ProductItemAnalysisResp.cs
+++ /dev/null
@@ -1,151 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Response.LxmZHMDReport
-{
- public class ProductItemAnalysisResp
- {
- ///
- /// 总库存(万元)
- ///
- public decimal TotalStock { get; set; }
-
- ///
- /// 拓客套数库存
- ///
- public int ExpandCustomerSetsStock { get; set; }
-
- ///
- /// 首单套数库存
- ///
- public int FirstOrderSetsStock { get; set; }
-
- ///
- /// 一维套数库存
- ///
- public int OneDimensionSetsStock { get; set; }
-
- ///
- /// 二维套数库存
- ///
- public int TwoDimensionSetsStock { get; set; }
-
- ///
- /// 三维套数库存
- ///
- public int ThreeDimensionSetsStock { get; set; }
-
- ///
- /// 四维套数库存
- ///
- public int FourDimensionSetsStock { get; set; }
-
- ///
- /// 叠加套数库存
- ///
- public int StackedSetsStock { get; set; }
-
- ///
- /// 饰品库存(万元)
- ///
- public decimal OrnamentsStock { get; set; }
-
- ///
- /// 化妆品库存(万元)
- ///
- public decimal CosmeticsStock { get; set; }
-
- ///
- /// 家护库存(万元)
- ///
- public decimal HomeCareStock { get; set; }
-
- ///
- /// 其他护肤库存(万元)
- ///
- public decimal OtherStock { get; set; }
-
- /////
- ///// 月销售Top5套餐排行
- /////
- //public MonthSalesTopFivePackageRankResp MonthSalesTopFivePackageRank { get; set; }
-
- ///
- ///1 (月销售Top5套餐排行)
- ///
- public string One { get; set; }
-
- ///
- /// 2(月销售Top5套餐排行)
- ///
- public string Two { get; set; }
-
- ///
- /// 3(月销售Top5套餐排行)
- ///
- public string Three { get; set; }
-
- ///
- ///4 (月销售Top5套餐排行)
- ///
- public string Four { get; set; }
-
- ///
- /// 5(月销售Top5套餐排行)
- ///
- public string Five { get; set; }
-
- ///
- ///1 (月销售Top5套餐排行)商品名称
- ///
- public string OneName { get; set; }
-
- ///
- ///1 (月销售Top5套餐排行)商品数量
- ///
- public int OneQty { get; set; }
-
- ///
- ///2 (月销售Top5套餐排行)商品名称
- ///
- public string TwoName { get; set; }
-
- ///
- ///2 (月销售Top5套餐排行)商品数量
- ///
- public int TwoQty { get; set; }
-
- ///
- ///3 (月销售Top5套餐排行)商品名称
- ///
- public string ThreeName { get; set; }
-
- ///
- ///3 (月销售Top5套餐排行)商品数量
- ///
- public int ThreeQty { get; set; }
-
- ///
- ///4 (月销售Top5套餐排行)商品名称
- ///
- public string FourName { get; set; }
-
- ///
- ///4 (月销售Top5套餐排行)商品数量
- ///
- public int FourQty { get; set; }
-
- ///
- ///5 (月销售Top5套餐排行)商品名称
- ///
- public string FiveName { get; set; }
-
- ///
- ///5 (月销售Top5套餐排行)商品数量
- ///
- public int FiveQty { get; set; }
- }
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Response/LxmZHMDReport/ProductItemAnalysisSummaryResp.cs b/Reportapi/MyCode.Project.Domain/Message/Response/LxmZHMDReport/ProductItemAnalysisSummaryResp.cs
deleted file mode 100644
index 5af8200..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Response/LxmZHMDReport/ProductItemAnalysisSummaryResp.cs
+++ /dev/null
@@ -1,62 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Response.LxmZHMDReport
-{
- public class ProductItemAnalysisSummaryResp:ProductItemAnalysisResp
- {
- ///
- /// 关联id
- ///
- ///
- public long Id { get; set; }
-
- ///
- /// 店铺id
- ///
- public Guid? ShopId { get; set; }
-
- ///
- ///日期
- ///
- public string DisplayTimeStr { get; set; }
-
- ///
- /// 使用天数
- ///
- public int UseDays { get; set; }
-
- ///
- /// 店铺编码
- ///
- public string Code { get; set; }
-
- ///
- /// 店铺名称
- ///
- public string ShopName { get; set; }
-
- ///
- /// 店铺归属(加盟商名称)
- ///
- public string CustomerName { get; set; }
-
- ///
- /// 省名称
- ///
- public string ProvinceName { get; set; }
-
- ///
- /// 市名称
- ///
- public string CityName { get; set; }
-
- ///
- /// 大区名称
- ///
- public string ZoneName { get; set; }
- }
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Response/LxmZHMDReport/RpShopZhenduansibiaoYejiDataResp.cs b/Reportapi/MyCode.Project.Domain/Message/Response/LxmZHMDReport/RpShopZhenduansibiaoYejiDataResp.cs
deleted file mode 100644
index e475a8b..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Response/LxmZHMDReport/RpShopZhenduansibiaoYejiDataResp.cs
+++ /dev/null
@@ -1,37 +0,0 @@
-using MyCode.Project.Domain.Model;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Response.LxmZHMDReport
-{
- public class RpShopZhenduansibiaoYejiDataResp
- {
- ///
- /// 主键id
- ///
- public long Id { get; set; }
-
- ///
- /// 年
- ///
- public int? YearNum { get; set; }
-
- ///
- /// 月
- ///
- public int? MonthNum { get; set; }
-
- ///
- /// 店铺id
- ///
- public string ShopId { get; set; }
-
- ///
- /// 业绩表数据
- ///
- public RpShopZhenduansibiaoYejiData YeJiData { get; set; }
- }
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Response/LxmZHMDReport/SalesNOMemberAmountResp.cs b/Reportapi/MyCode.Project.Domain/Message/Response/LxmZHMDReport/SalesNOMemberAmountResp.cs
deleted file mode 100644
index 9ef90d6..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Response/LxmZHMDReport/SalesNOMemberAmountResp.cs
+++ /dev/null
@@ -1,185 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Response.LxmZHMDReport
-{
- ///
- /// 店均数据
- ///
- public class SalesNOMemberAmountResp
- {
- ///
- /// 店铺编码
- ///
- public Guid ShopId
- {
- get;
- set;
- }
-
- ///
- /// 月份
- ///
- public string YearMonth
- {
- get;
- set;
- }
-
- ///
- /// 店铺编码
- ///
- public string ShopCode
- {
- get;
- set;
- }
-
- ///
- /// 店铺名
- ///
- public string ShopName
- {
- get;
- set;
- }
-
- ///
- /// 加盟商名-店铺归属
- ///
- public string CustomerName
- {
- get;
- set;
- }
-
- ///
- /// 省份名
- ///
- public string ProvinceName
- {
- get;
- set;
- }
-
- ///
- /// 城市名
- ///
- public string CityName
- {
- get;
- set;
- }
-
- ///
- /// 区名
- ///
- public string ZoneName
- {
- get;
- set;
- }
-
- ///
- /// 区域经理
- ///
- public string ZoneManager
- {
- get;
- set;
- }
-
- ///
- /// 总业绩
- ///
- public decimal TotalAmount
- {
- get;
- set;
- }
-
- ///
- /// 总收款
- ///
- public decimal TotalMoney
- {
- get;
- set;
- }
-
- ///
- /// 当月体验人数
- ///
- public int ThisMonthTiYanQty
- {
- get;
- set;
- }
-
- ///
- /// 当月体验业绩
- ///
- public decimal ThisMonthTiYanAmount
- {
- get;
- set;
- }
-
- ///
- /// 当月新客人数
- ///
- public int ThisMonthNewMemberQty
- {
- get;
- set;
- }
-
- ///
- /// 当月新客业绩
- ///
- public decimal ThisMonthNewMemberAmount
- {
- get;
- set;
- }
-
- ///
- /// 当月老客人数
- ///
- public int ThisMonthOldMemberQty
- {
- get;
- set;
- }
-
- ///
- /// 当月老客业绩
- ///
- public decimal ThisMonthOldMemberAmount
- {
- get;
- set;
- }
-
- ///
- /// 当月散客人次 - 非会员产生的消费单次
- ///
- public int ThisMonthNotMemberOrderQty
- {
- get;
- set;
- }
-
- ///
- /// 当月散客业绩
- ///
- public decimal ThisMonthNotMemberAmount
- {
- get;
- set;
- }
- }
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Response/LxmZHMDReport/ShopAvgResp.cs b/Reportapi/MyCode.Project.Domain/Message/Response/LxmZHMDReport/ShopAvgResp.cs
deleted file mode 100644
index 07bb1dd..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Response/LxmZHMDReport/ShopAvgResp.cs
+++ /dev/null
@@ -1,104 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Response.LxmZHMDReport
-{
- ///
- /// 店均数据
- ///
- public class ShopAvgResp
- {
- ///
- /// 店铺编码
- ///
- public Guid ShopId
- {
- get;
- set;
- }
-
- ///
- /// 店铺编码
- ///
- public string ShopCode
- {
- get;
- set;
- }
-
- ///
- /// 店铺名
- ///
- public string ShopName
- {
- get;
- set;
- }
-
- ///
- /// 加盟商名-店铺归属
- ///
- public string CustomerName
- {
- get;
- set;
- }
-
- ///
- /// 省份名
- ///
- public string ProvinceName
- {
- get;
- set;
- }
-
- ///
- /// 城市名
- ///
- public string CityName
- {
- get;
- set;
- }
-
- ///
- /// 区名
- ///
- public string ZoneName
- {
- get;
- set;
- }
-
- ///
- /// 区域经理
- ///
- public string ZoneManager
- {
- get;
- set;
- }
-
- ///
- /// 总业绩
- ///
- public decimal TotalAmount
- {
- get;
- set;
- }
-
- ///
- /// 均单业绩
- ///
- public decimal AvgAmount
- {
- get;
- set;
- }
- }
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Response/LxmZHMDReport/ShopDatePerformanceReportResp.cs b/Reportapi/MyCode.Project.Domain/Message/Response/LxmZHMDReport/ShopDatePerformanceReportResp.cs
deleted file mode 100644
index 0f8bc86..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Response/LxmZHMDReport/ShopDatePerformanceReportResp.cs
+++ /dev/null
@@ -1,176 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Response.LxmZHMDReport
-{
- public class ShopDatePerformanceReportResp
- {
- ///
- /// 店铺id
- ///
- public Guid? ShopId { get; set; }
-
- ///
- /// 日期
- ///
- public string DisplayTimeStr { get; set; }
-
- ///
- /// 区域(大区名称)
- ///
- public string ZoneName { get; set; }
-
- ///
- /// 省名称
- ///
- public string ProvinceName { get; set; }
-
- ///
- /// 市名称
- ///
- public string CityName { get; set; }
-
- ///
- /// 店铺类型 1=直营 2=联营 3=加盟 4=员工内购
- ///
- public int ShopKind { get; set; }
-
- ///
- /// 店铺类型字符串
- ///
- public string ShopKindStr { get; set; }
-
- ///
- /// 加盟商id
- ///
- public Guid? CustomerId { get; set; }
-
- ///
- /// 店铺归属(加盟商名称)
- ///
- public string CustomerName { get; set; }
-
- ///
- /// 店铺编码
- ///
- public string Code { get; set; }
-
- ///
- /// 店铺名称
- ///
- public string ShopName { get; set; }
-
- ///
- /// 使用天数
- ///
- public int UseDays { get; set; }
-
- ///
- /// 总收款
- ///
- public decimal TotalCollection { get; set; }
-
- ///
- /// 总业绩
- ///
- public decimal TotalPerformance { get; set; }
-
- ///
- /// 总销售笔数
- ///
- public int TotalSale { get; set; }
-
- ///
- /// 平均单价
- ///
- public decimal AvgUnitPrice { get; set; }
-
- ///
- /// 商品业绩
- ///
- public decimal ProductPerformance { get; set; }
-
- ///
- /// 商品销售数
- ///
- public int TotalProductSale { get; set; }
-
- ///
- /// 平均商品单价
- ///
- public decimal AvgProductUnitPrice { get; set; }
-
- ///
- /// 服务业绩
- ///
- public decimal ServicePerformance { get; set; }
-
- ///
- /// 服务销售数
- ///
- public int TotalServiceSale { get; set; }
-
- ///
- /// 平均服务单价
- ///
- public decimal AvgServiceUnitPrice { get; set; }
-
- ///
- /// 充值金额
- ///
- public decimal RechargeAmount { get; set; }
-
- ///
- /// 充值笔数
- ///
- public int TotalRecharge { get; set; }
-
- ///
- /// 平均充值金额
- ///
- public decimal AvgRechargeAmount { get; set; }
-
- ///
- /// 消预存
- ///
- public decimal Balance { get; set; }
-
- ///
- /// 消预存笔数
- ///
- public int TotalBalance { get; set; }
-
- ///
- /// 退换货金额
- ///
- public decimal ReturnAmount { get; set; }
-
- ///
- /// 退换货到余额
- ///
- public decimal ReturnToBalance { get; set; }
-
- ///
- /// 饰品业绩
- ///
- public decimal OrnamentsPerformance { get; set; }
-
- ///
- /// 化妆品业绩
- ///
- public decimal CosmeticsPerformance { get; set; }
-
- ///
- /// 护肤业绩
- ///
- public decimal SkinCarePerformance { get; set; }
-
- ///
- /// 其他业绩
- ///
- public decimal OtherPerformance { get; set; }
- }
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Response/LxmZHMDReport/ShopDiagnosisReportExportResp.cs b/Reportapi/MyCode.Project.Domain/Message/Response/LxmZHMDReport/ShopDiagnosisReportExportResp.cs
deleted file mode 100644
index 4e1ca1e..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Response/LxmZHMDReport/ShopDiagnosisReportExportResp.cs
+++ /dev/null
@@ -1,326 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Response.LxmZHMDReport
-{
- public class ShopDiagnosisReportExportResp
- {
- ///
- /// 主键id
- ///
- public long Id { get; set; }
-
- ///
- /// 时间
- ///
- public string DisplayTimeStr { get; set; }
-
- ///
- /// 时间
- ///
- public DateTime DisplayTime { get; set; }
-
- ///
- /// 店铺id
- ///
- public Guid? ShopId { get; set; }
-
- ///
- /// 店铺编码
- ///
- public string Code { get; set; }
-
- ///
- /// 店铺名称
- ///
- public string ShopName { get; set; }
-
- ///
- /// 店铺归属(加盟商名称)
- ///
- public string CustomerName { get; set; }
-
- ///
- /// 总收款(业绩)
- ///
- public decimal TotalCollection { get; set; }
-
- ///
- /// 总业绩(业绩)
- ///
- public decimal TotalPerformance { get; set; }
-
- ///
- /// 饰品%(业绩)
- ///
- public string OrnamentsPercent { get; set; }
-
- ///
- /// 化妆品%(业绩)
- ///
- public string CosmeticsPercent { get; set; }
-
- ///
- /// 护肤%(业绩)
- ///
- public string SkinCarePercent { get; set; }
-
- ///
- /// 服务业绩%(业绩)
- ///
- public string ServicePerformancePercent { get; set; }
-
- ///
- /// 其他业绩%(业绩)
- ///
- public string OtherPerformancePercent { get; set; }
-
- ///
- /// 月拓客体验数
- ///
- public int MonthExpandCustomerQty { get; set; }
-
- ///
- /// 月新客首单数
- ///
- public int MonthNewCustomerFirstQty { get; set; }
-
- ///
- /// 月新客首单数,仅购买产品的人数
- ///
- public int MonthNewCustomerFirstQty2 { get; set; }
-
- ///
- /// 月新客首单数,购买产品,并赠送服务套餐的人数
- ///
- public int MonthNewCustomerFirstQty3 { get; set; }
-
- ///
- /// 首单客单(均)
- ///
- public decimal FirstOrderAvg { get; set; }
-
- ///
- /// 月升单复购数
- ///
- public int MonthUpgradeRepurchaseQty { get; set; }
-
- ///
- /// 月升单复购数,仅购买产品的人数
- ///
- public int MonthUpgradeRepurchaseQty2 { get; set; }
-
- ///
- /// 月升单复购数,购买产品,并赠送服务套餐的人数
- ///
- public int MonthUpgradeRepurchaseQty3 { get; set; }
-
- ///
- /// 复购客单(均)
- ///
- public decimal RepurchaseOrderAvg { get; set; }
-
- ///
- /// 总数(总套餐人数)
- ///
- public int Total { get; set; }
-
- ///
- /// 1套(总套餐人数)
- ///
- public int OneSets { get; set; }
-
- ///
- /// 2套(总套餐人数)
- ///
- public int TwoSets { get; set; }
-
- ///
- /// 2套以上(总套餐人数)
- ///
- public int MoreThanTwoSets { get; set; }
-
- ///
- /// 套餐总数(套餐项目数)
- ///
- public int SetMealTotal { get; set; }
-
- ///
- /// 新增套餐数(套餐项目数)
- ///
- public int NewAddSetMeal { get; set; }
-
- ///
- /// 月2次以上(套餐活跃度)
- ///
- public int MoreThanTwiceMonth { get; set; }
-
- ///
- /// 月1次(套餐活跃度)
- ///
- public int OnceMonth { get; set; }
-
- ///
- /// 2月1次(套餐活跃度)
- ///
- public int OnceInFebruary { get; set; }
-
- ///
- /// 3月1次(套餐活跃度)
- ///
- public int OnceInMarch { get; set; }
-
- ///
- /// 人(本月平均每天拥有套餐的会员护理多少人)(日均护理动耗次数)
- ///
- public decimal Personal { get; set; }
-
- ///
- /// 次(本月平均每天拥有套餐的会员服务核销多少次(一次三单算三次))(日均护理动耗次数)
- ///
- public decimal Frequency { get; set; }
-
- ///
- /// 总库存(万元)
- ///
- public decimal TotalStock { get; set; }
-
- ///
- /// 拓客套数库存
- ///
- public int ExpandCustomerSetsStock { get; set; }
-
- ///
- /// 首单套数库存
- ///
- public int FirstOrderSetsStock { get; set; }
-
- ///
- /// 一维套数库存
- ///
- public int OneDimensionSetsStock { get; set; }
-
- ///
- /// 二维套数库存
- ///
- public int TwoDimensionSetsStock { get; set; }
-
- ///
- /// 三维套数库存
- ///
- public int ThreeDimensionSetsStock { get; set; }
-
- ///
- /// 四维套数库存
- ///
- public int FourDimensionSetsStock { get; set; }
-
- ///
- /// 叠加套数库存
- ///
- public int StackedSetsStock { get; set; }
-
- ///
- /// 饰品库存(万元)
- ///
- public decimal OrnamentsStock { get; set; }
-
- ///
- /// 化妆品库存(万元)
- ///
- public decimal CosmeticsStock { get; set; }
-
- ///
- /// 家护库存(万元)
- ///
- public decimal HomeCareStock { get; set; }
-
- ///
- /// 其他护肤库存(万元)
- ///
- public decimal OtherStock { get; set; }
-
- /////
- ///// 月销售Top5套餐排行
- /////
- //public MonthSalesTopFivePackageRankResp MonthSalesTopFivePackageRank { get; set; }
-
- ///
- ///1 (月销售Top5套餐排行)
- ///
- public string One { get; set; }
-
- ///
- /// 2(月销售Top5套餐排行)
- ///
- public string Two { get; set; }
-
- ///
- /// 3(月销售Top5套餐排行)
- ///
- public string Three { get; set; }
-
- ///
- ///4 (月销售Top5套餐排行)
- ///
- public string Four { get; set; }
-
- ///
- /// 5(月销售Top5套餐排行)
- ///
- public string Five { get; set; }
-
- ///
- ///1 (月销售Top5套餐排行)商品名称
- ///
- public string OneName { get; set; }
-
- ///
- ///1 (月销售Top5套餐排行)商品数量
- ///
- public int OneQty { get; set; }
-
- ///
- ///2 (月销售Top5套餐排行)商品名称
- ///
- public string TwoName { get; set; }
-
- ///
- ///2 (月销售Top5套餐排行)商品数量
- ///
- public int TwoQty { get; set; }
-
- ///
- ///3 (月销售Top5套餐排行)商品名称
- ///
- public string ThreeName { get; set; }
-
- ///
- ///3 (月销售Top5套餐排行)商品数量
- ///
- public int ThreeQty { get; set; }
-
- ///
- ///4 (月销售Top5套餐排行)商品名称
- ///
- public string FourName { get; set; }
-
- ///
- ///4 (月销售Top5套餐排行)商品数量
- ///
- public int FourQty { get; set; }
-
- ///
- ///5 (月销售Top5套餐排行)商品名称
- ///
- public string FiveName { get; set; }
-
- ///
- ///5 (月销售Top5套餐排行)商品数量
- ///
- public int FiveQty { get; set; }
- }
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Response/LxmZHMDReport/ShopDiagnosisReportResp.cs b/Reportapi/MyCode.Project.Domain/Message/Response/LxmZHMDReport/ShopDiagnosisReportResp.cs
deleted file mode 100644
index e5cfafa..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Response/LxmZHMDReport/ShopDiagnosisReportResp.cs
+++ /dev/null
@@ -1,56 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Response.LxmZHMDReport
-{
- public class ShopDiagnosisReportResp
- {
- ///
- /// 主键id
- ///
- public long Id { get; set; }
-
- ///
- /// 时间
- ///
- public string DisplayTimeStr { get; set; }
-
- ///
- /// 时间
- ///
- public DateTime DisplayTime { get; set; }
-
- ///
- /// 店铺id
- ///
- public Guid? ShopId { get; set; }
-
- ///
- /// 店铺编码
- ///
- public string Code { get; set; }
-
- ///
- /// 店铺名称
- ///
- public string ShopName { get; set; }
-
- ///
- /// 店铺归属(加盟商名称)
- ///
- public string CustomerName { get; set; }
-
- ///
- /// 单店运营核心指标
- ///
- public List OperateList { get; set; }
-
- ///
- /// 产品品项分析
- ///
- public List AnalysisList { get;set;}
- }
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Response/LxmZHMDReport/ShopDiagnosisSearchResp.cs b/Reportapi/MyCode.Project.Domain/Message/Response/LxmZHMDReport/ShopDiagnosisSearchResp.cs
deleted file mode 100644
index 56f37b4..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Response/LxmZHMDReport/ShopDiagnosisSearchResp.cs
+++ /dev/null
@@ -1,64 +0,0 @@
-using MyCode.Project.Domain.Model;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Response.LxmZHMDReport
-{
- public class ShopDiagnosisSearchResp
- {
- ///
- /// 关联id
- ///
- public long Id { get; set; }
- ///
- /// 店铺id
- ///
- public Guid? ShopId { get; set; }
-
- public DateTime? Days { get; set; }
- ///
- ///日期
- ///
- public string DisplayTimeStr { get; set; }
-
- ///
- /// 使用天数
- ///
- public int? UseDays { get; set; }
-
- ///
- /// 店铺编码
- ///
- public string Code { get; set; }
-
- ///
- /// 店铺名称
- ///
- public string ShopName { get; set; }
-
- ///
- /// 店铺归属(加盟商名称)
- ///
- public string CustomerName { get; set; }
-
- ///
- /// 省名称
- ///
- public string ProvinceName { get; set; }
-
- ///
- /// 市名称
- ///
- public string CityName { get; set; }
-
- ///
- /// 大区名称
- ///
- public string ZoneName { get; set; }
- }
-
-
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Response/LxmZHMDReport/ShopMonthsPerformanceReportResp.cs b/Reportapi/MyCode.Project.Domain/Message/Response/LxmZHMDReport/ShopMonthsPerformanceReportResp.cs
deleted file mode 100644
index b3fbf8e..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Response/LxmZHMDReport/ShopMonthsPerformanceReportResp.cs
+++ /dev/null
@@ -1,176 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Response.LxmZHMDReport
-{
- public class ShopMonthsPerformanceReportResp
- {
- ///
- /// 店铺id
- ///
- public Guid? ShopId { get; set; }
-
- ///
- /// 日期
- ///
- public string DisplayTimeStr { get; set; }
-
- ///
- /// 区域(大区名称)
- ///
- public string ZoneName { get; set; }
-
- ///
- /// 省名称
- ///
- public string ProvinceName { get; set; }
-
- ///
- /// 市名称
- ///
- public string CityName { get; set; }
-
- ///
- /// 店铺类型 1=直营 2=联营 3=加盟 4=员工内购
- ///
- public int ShopKind { get; set; }
-
- ///
- /// 店铺类型字符串
- ///
- public string ShopKindStr { get; set; }
-
- ///
- /// 加盟商id
- ///
- public Guid? CustomerId { get; set; }
-
- ///
- /// 店铺归属(加盟商名称)
- ///
- public string CustomerName { get; set; }
-
- ///
- /// 店铺编码
- ///
- public string Code { get; set; }
-
- ///
- /// 店铺名称
- ///
- public string ShopName { get; set; }
-
- ///
- /// 使用天数
- ///
- public int UseDays { get; set; }
-
- ///
- /// 总收款
- ///
- public decimal TotalCollection { get; set; }
-
- ///
- /// 总业绩
- ///
- public decimal TotalPerformance { get; set; }
-
- ///
- /// 总销售笔数
- ///
- public int TotalSale { get; set; }
-
- ///
- /// 平均单价
- ///
- public decimal AvgUnitPrice { get; set; }
-
- ///
- /// 商品业绩
- ///
- public decimal ProductPerformance { get; set; }
-
- ///
- /// 商品销售数
- ///
- public int TotalProductSale { get; set; }
-
- ///
- /// 平均商品单价
- ///
- public decimal AvgProductUnitPrice { get; set; }
-
- ///
- /// 服务业绩
- ///
- public decimal ServicePerformance { get; set; }
-
- ///
- /// 服务销售数
- ///
- public int TotalServiceSale { get; set; }
-
- ///
- /// 平均服务单价
- ///
- public decimal AvgServiceUnitPrice { get; set; }
-
- ///
- /// 充值金额
- ///
- public decimal RechargeAmount { get; set; }
-
- ///
- /// 充值笔数
- ///
- public int TotalRecharge { get; set; }
-
- ///
- /// 平均充值金额
- ///
- public decimal AvgRechargeAmount { get; set; }
-
- ///
- /// 消预存
- ///
- public decimal Balance { get; set; }
-
- ///
- /// 消预存笔数
- ///
- public int TotalBalance { get; set; }
-
- ///
- /// 退换货金额
- ///
- public decimal ReturnAmount { get; set; }
-
- ///
- /// 退换货到余额
- ///
- public decimal ReturnToBalance { get; set; }
-
- ///
- /// 饰品业绩
- ///
- public decimal OrnamentsPerformance { get; set; }
-
- ///
- /// 化妆品业绩
- ///
- public decimal CosmeticsPerformance { get; set; }
-
- ///
- /// 护肤业绩
- ///
- public string SkinCarePerformance { get; set; }
-
- ///
- /// 其他业绩
- ///
- public decimal OtherPerformance { get; set; }
- }
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Response/LxmZHMDReport/ShopOperationDataReportResp.cs b/Reportapi/MyCode.Project.Domain/Message/Response/LxmZHMDReport/ShopOperationDataReportResp.cs
deleted file mode 100644
index 97f0709..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Response/LxmZHMDReport/ShopOperationDataReportResp.cs
+++ /dev/null
@@ -1,176 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Response.LxmZHMDReport
-{
- public class ShopOperationDataReportResp
- {
- ///
- /// 店铺id
- ///
- public Guid? ShopId { get; set; }
-
- ///
- /// 区域(大区名称)
- ///
- public string ZoneName { get; set; }
-
- ///
- /// 省名称
- ///
- public string ProvinceName { get; set; }
-
- ///
- /// 市名称
- ///
- public string CityName { get; set; }
-
- ///
- /// 店铺类型 1=直营 2=联营 3=加盟 4=员工内购
- ///
- public int ShopKind { get; set; }
-
- ///
- /// 店铺类型字符串
- ///
- public string ShopKindStr { get; set; }
-
- ///
- /// 加盟商id
- ///
- public Guid? CustomerId { get; set; }
-
- ///
- /// 店铺归属(加盟商名称)
- ///
- public string CustomerName { get; set; }
-
- ///
- /// 店铺编码
- ///
- public string Code { get; set; }
-
- ///
- /// 店铺名称
- ///
- public string ShopName { get; set; }
-
- ///
- /// 区域经理
- ///
- public string RegionManager { get; set; }
-
- ///
- /// 使用天数
- ///
- public int UseDays { get; set; }
-
- ///
- /// 总收款
- ///
- public decimal TotalCollection { get; set; }
-
- ///
- /// 总业绩
- ///
- public decimal TotalPerformance { get; set; }
-
- ///
- /// 总销售笔数
- ///
- public int TotalSale { get; set; }
-
- ///
- /// 平均单价
- ///
- public decimal AvgUnitPrice { get; set; }
-
- ///
- /// 商品业绩
- ///
- public decimal ProductPerformance { get; set; }
-
- ///
- /// 商品销售数
- ///
- public int TotalProductSale { get; set; }
-
- ///
- /// 平均商品单价
- ///
- public decimal AvgProductUnitPrice { get; set; }
-
- ///
- /// 服务业绩
- ///
- public decimal ServicePerformance { get; set; }
-
- ///
- /// 服务销售数
- ///
- public int TotalServiceSale { get; set; }
-
- ///
- /// 平均服务单价
- ///
- public decimal AvgServiceUnitPrice { get; set; }
-
- ///
- /// 充值金额
- ///
- public decimal RechargeAmount { get; set; }
-
- ///
- /// 充值笔数
- ///
- public int TotalRecharge { get; set; }
-
- ///
- /// 平均充值金额
- ///
- public decimal AvgRechargeAmount { get; set; }
-
- ///
- /// 消预存
- ///
- public decimal Balance { get; set; }
-
- ///
- /// 消预存笔数
- ///
- public int TotalBalance { get; set; }
-
- ///
- /// 退换货金额
- ///
- public decimal ReturnAmount { get; set; }
-
- ///
- /// 退换货到余额
- ///
- public decimal ReturnToBalance { get; set; }
-
- ///
- /// 饰品业绩
- ///
- public decimal OrnamentsPerformance { get; set; }
-
- ///
- /// 化妆品业绩
- ///
- public decimal CosmeticsPerformance { get; set; }
-
- ///
- /// 护肤业绩
- ///
- public decimal SkinCarePerformance { get; set; }
-
- ///
- /// 其他业绩
- ///
- public decimal OtherPerformance { get; set; }
- }
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Response/LxmZHMDReport/ShopPerformanceTypeResp.cs b/Reportapi/MyCode.Project.Domain/Message/Response/LxmZHMDReport/ShopPerformanceTypeResp.cs
deleted file mode 100644
index 50d9ce9..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Response/LxmZHMDReport/ShopPerformanceTypeResp.cs
+++ /dev/null
@@ -1,51 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Response.LxmZHMDReport
-{
- public class ShopPerformanceTypeResp
- {
- ///
- /// 店铺id
- ///
- public Guid? ShopId { get; set; }
-
- ///
- /// 加盟商id
- ///
- public Guid? CustomerId { get; set; }
-
- ///
- /// 一级分类id
- ///
- public string TopCategoryId { get; set; }
-
- ///
- /// 日期
- ///
- public string DisplayTimeStr { get; set; }
-
- ///
- /// 总业绩
- ///
- public decimal TotalPerformance { get; set; }
-
- ///
- /// 总销售笔数
- ///
- public int TotalSale { get; set; }
-
- ///
- /// 分类数量统计
- ///
- public int TotalCategory { get; set; }
-
- ///
- /// 总销售笔数合计(店铺)
- ///
- public int SumTotalSale { get; set; }
- }
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Response/LxmZHMDReport/SimpleOrderOrChargeResp.cs b/Reportapi/MyCode.Project.Domain/Message/Response/LxmZHMDReport/SimpleOrderOrChargeResp.cs
deleted file mode 100644
index 6d950db..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Response/LxmZHMDReport/SimpleOrderOrChargeResp.cs
+++ /dev/null
@@ -1,74 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Response.LxmZHMDReport
-{
- public class SimpleOrderOrChargeResp
- {
- ///
- /// 主键id
- ///
- public string Id
- {
- get;
- set;
- }
-
- ///
- /// 建单时间
- ///
- public DateTime? CreateTime
- {
- get;
- set;
- }
-
- ///
- /// 店铺id
- ///
- public string ShopId
- {
- get;
- set;
- }
-
- ///
- /// 金额 -订单或者充值
- ///
- public decimal? Amount
- {
- get;
- set;
- }
-
- ///
- /// 1:订单 2:充值
- ///
- public int Type
- {
- get;
- set;
- }
-
- ///
- /// 会员id
- ///
- public string MemberId
- {
- get;
- set;
- }
-
- ///
- /// 方向
- ///
- public int DirectFlag
- {
- get;
- set;
- }
- }
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Response/LxmZHMDReport/SingleShopOperateResp.cs b/Reportapi/MyCode.Project.Domain/Message/Response/LxmZHMDReport/SingleShopOperateResp.cs
deleted file mode 100644
index cd47933..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Response/LxmZHMDReport/SingleShopOperateResp.cs
+++ /dev/null
@@ -1,151 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Response.LxmZHMDReport
-{
- public class SingleShopOperateResp
- {
- ///
- /// 总收款(业绩)
- ///
- public decimal TotalCollection { get; set; }
-
- ///
- /// 总业绩(业绩)
- ///
- public decimal TotalPerformance { get; set; }
-
- ///
- /// 饰品%(业绩)
- ///
- public string OrnamentsPercent { get; set; }
-
- ///
- /// 化妆品%(业绩)
- ///
- public string CosmeticsPercent { get; set; }
-
- ///
- /// 护肤%(业绩)
- ///
- public string SkinCarePercent { get; set; }
-
- ///
- /// 服务业绩%(业绩)
- ///
- public string ServicePerformancePercent { get; set; }
-
- ///
- /// 其他业绩%(业绩)
- ///
- public string OtherPerformancePercent { get; set; }
-
- ///
- /// 月拓客体验数
- ///
- public int MonthExpandCustomerQty { get; set; }
-
- ///
- /// 月新客首单数
- ///
- public int MonthNewCustomerFirstQty { get; set; }
-
- ///
- /// 月新客首单数,仅购买产品的人数
- ///
- public int MonthNewCustomerFirstQty2 { get; set; }
-
- ///
- /// 月新客首单数,购买产品,并赠送服务套餐的人数
- ///
- public int MonthNewCustomerFirstQty3 { get; set; }
-
- ///
- /// 首单客单(均)
- ///
- public decimal FirstOrderAvg { get; set; }
-
- ///
- /// 月升单复购数
- ///
- public int MonthUpgradeRepurchaseQty { get; set; }
-
- ///
- /// 月升单复购数,仅购买产品的人数
- ///
- public int MonthUpgradeRepurchaseQty2 { get; set; }
-
- ///
- /// 月升单复购数,购买产品,并赠送服务套餐的人数
- ///
- public int MonthUpgradeRepurchaseQty3 { get; set; }
-
- ///
- /// 复购客单(均)
- ///
- public decimal RepurchaseOrderAvg { get; set; }
-
- ///
- /// 总数(总套餐人数)
- ///
- public int Total { get; set; }
-
- ///
- /// 1套(总套餐人数)
- ///
- public int OneSets { get; set; }
-
- ///
- /// 2套(总套餐人数)
- ///
- public int TwoSets { get; set; }
-
- ///
- /// 2套以上(总套餐人数)
- ///
- public int MoreThanTwoSets { get; set; }
-
- ///
- /// 套餐总数(套餐项目数)
- ///
- public int SetMealTotal { get; set; }
-
- ///
- /// 新增套餐数(套餐项目数)
- ///
- public int NewAddSetMeal { get; set; }
-
- ///
- /// 月2次以上(套餐活跃度)
- ///
- public int MoreThanTwiceMonth { get; set; }
-
- ///
- /// 月1次(套餐活跃度)
- ///
- public int OnceMonth { get; set; }
-
- ///
- /// 2月1次(套餐活跃度)
- ///
- public int OnceInFebruary { get; set; }
-
- ///
- /// 3月1次(套餐活跃度)
- ///
- public int OnceInMarch { get; set; }
-
- ///
- /// 人(本月平均每天拥有套餐的会员护理多少人)(日均护理动耗次数)
- ///
- public decimal Personal { get; set; }
-
- ///
- /// 次(本月平均每天拥有套餐的会员服务核销多少次(一次三单算三次))(日均护理动耗次数)
- ///
- public decimal Frequency { get; set; }
- }
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Response/LxmZHMDReport/SingleShopOperateSummaryResp.cs b/Reportapi/MyCode.Project.Domain/Message/Response/LxmZHMDReport/SingleShopOperateSummaryResp.cs
deleted file mode 100644
index 53378d1..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Response/LxmZHMDReport/SingleShopOperateSummaryResp.cs
+++ /dev/null
@@ -1,654 +0,0 @@
-using MyCode.Project.Infrastructure.Enumeration;
-using SqlSugar;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Response.LxmZHMDReport
-{
- public class SingleShopOperateSummaryResp
- {
- ///
- /// 关联id
- ///
- public long Id { get; set; }
-
- ///
- /// 店铺id
- ///
- public Guid? ShopId { get; set; }
-
- public DateTime? Days { get; set; }
-
- ///
- ///日期
- ///
- public string DisplayTimeStr { get; set; }
-
- ///
- /// 使用天数
- ///
- public int UseDays { get; set; }
-
- ///
- /// 店铺编码
- ///
- public string Code { get; set; }
-
- ///
- /// 店铺名称
- ///
- public string ShopName { get; set; }
-
- ///
- /// 店铺归属(加盟商名称)
- ///
- public string CustomerName { get; set; }
-
- ///
- /// 省名称
- ///
- public string ProvinceName { get; set; }
-
- ///
- /// 市名称
- ///
- public string CityName { get; set; }
-
- ///
- /// 大区名称
- ///
- public string ZoneName { get; set; }
-
- ///
- /// 总收款(业绩)
- ///
- public decimal TotalCollection { get; set; }
-
- ///
- /// 总业绩(业绩)
- ///
- public decimal TotalPerformance { get; set; }
-
- ///
- /// 饰品%(业绩)
- ///
- public string OrnamentsPercent { get; set; }
-
- ///
- /// 化妆品%(业绩)
- ///
- public string CosmeticsPercent { get; set; }
-
- ///
- /// 护肤%(业绩)
- ///
- public string SkinCarePercent { get; set; }
-
- ///
- /// 服务业绩%(业绩)
- ///
- public string ServicePerformancePercent { get; set; }
-
- ///
- /// 其他业绩%(业绩)
- ///
- public string OtherPerformancePercent { get; set; }
-
- ///
- /// 月拓客体验数
- ///
- public int MonthExpandCustomerQty { get; set; }
-
- ///
- /// 月新客首单数
- ///
- public int MonthNewCustomerFirstQty { get; set; }
-
- ///
- /// 月新客首单数,仅购买产品的人数
- ///
- public int MonthNewCustomerFirstQty2 { get; set; }
-
-
- ///
- /// 月新客首单数,购买产品,并赠送服务套餐的人数
- ///
- public int MonthNewCustomerFirstQty3 { get; set; }
-
-
- ///
- /// 首单客单(均)
- ///
- public decimal FirstOrderAvg { get; set; }
-
- ///
- /// 月升单复购数
- ///
- public int MonthUpgradeRepurchaseQty { get; set; }
-
- ///
- /// 月升单复购数,仅购买产品的人数
- ///
- public int MonthUpgradeRepurchaseQty2 { get; set; }
-
-
- ///
- /// 月升单复购数,购买产品,并赠送服务套餐的人数
- ///
- public int MonthUpgradeRepurchaseQty3 { get; set; }
-
-
- ///
- /// 复购客单(均)
- ///
- public decimal RepurchaseOrderAvg { get; set; }
-
- ///
- /// 总数(总套餐人数)
- ///
- public int Total { get; set; }
-
- ///
- /// 1套(总套餐人数)
- ///
- public int OneSets { get; set; }
-
- ///
- /// 2套(总套餐人数)
- ///
- public int TwoSets { get; set; }
-
- ///
- /// 2套以上(总套餐人数)
- ///
- public int MoreThanTwoSets { get; set; }
-
- ///
- /// 套餐总数(套餐项目数)
- ///
- public int SetMealTotal { get; set; }
-
- ///
- /// 新增套餐数(套餐项目数)
- ///
- public int NewAddSetMeal { get; set; }
-
- ///
- /// 月2次以上(套餐活跃度)
- ///
- public int MoreThanTwiceMonth { get; set; }
-
- ///
- /// 月1次(套餐活跃度)
- ///
- public int OnceMonth { get; set; }
-
- ///
- /// 2月1次(套餐活跃度)
- ///
- public int OnceInFebruary { get; set; }
-
- ///
- /// 3月1次(套餐活跃度)
- ///
- public int OnceInMarch { get; set; }
-
- ///
- /// 人(本月平均每天拥有套餐的会员护理多少人)(日均护理动耗次数)
- ///
- public decimal Personal { get; set; }
-
- ///
- /// 次(本月平均每天拥有套餐的会员服务核销多少次(一次三单算三次))(日均护理动耗次数)
- ///
- public decimal Frequency { get; set; }
-
- ///
- /// 老客业绩
- ///
- public decimal LaoKeYeJi { get; set;}
-
- ///
- /// 老客业绩占比
- ///
- public string LaoKeZhanBi { get; set; }
-
- ///
- /// 新客业绩
- ///
- public decimal XinKeYeJi { get; set; }
-
- ///
- /// 新客业绩占比
- ///
- public string XinKeZhanBi { get; set; }
-
- ///
- /// 拓客人数
- ///
- public int TuoKeRenShu { get; set; }
-
- ///
- /// 拓客新客
- ///
- public int XinTuoKeRenShu { get; set; }
-
- ///
- /// 拓客老客
- ///
- public int LaoTuoKeRenShu { get; set; }
-
- ///
- /// 拓客新客占比
- ///
- public string XinTuoKeZhanBi { get; set; }
-
- ///
- /// 拓客老客占比
- ///
- public string LaoTuoKeZhanBi { get; set; }
-
-
- ///
- /// 体验人数
- ///
- public int TiYanRenShu { get; set; }
-
- ///
- /// 留客人数
- ///
- public int LiuKeRenShu { get; set; }
-
- ///
- /// 锁客人数
- ///
- public int SuoKeRenShu { get; set; }
-
- ///
- /// 拓留转化率
- ///
- public string TuoLiuZhuanHuaLv { get; set; }
- }
-
-
- public class ShopConversionFunnelDataResp
- {
- ///
- /// 店铺id
- ///
- public Guid? ShopId { get; set; }
-
- public DateTime? Days { get; set; }
-
- ///
- ///日期
- ///
- public string DisplayTimeStr { get; set; }
-
- ///
- ///带教师
- ///
- public string DaiJiaoShi { get; set; }
-
- ///
- /// 店铺编码
- ///
- public string ShopCode { get; set; }
-
- ///
- /// 店铺名称
- ///
- public string ShopName { get; set; }
-
- ///
- /// 店铺归属(加盟商名称)
- ///
- public string CustomerName { get; set; }
-
- ///
- /// 大区名称
- ///
- public string ZoneName { get; set; }
-
-
- ///
- /// 拓客人数
- ///
- public int TuoKeRenShu { get; set; }
-
- ///
- /// 拓客新客
- ///
- public int XinTuoKeRenShu { get; set; }
-
- ///
- /// 拓客老客
- ///
- public int LaoTuoKeRenShu { get; set; }
-
- ///
- /// 拓客新客占比
- ///
- public string XinTuoKeZhanBi { get; set; }
-
- ///
- /// 拓客老客占比
- ///
- public string LaoTuoKeZhanBi { get; set; }
-
-
- ///
- /// 体验人数
- ///
- public int TiYanRenShu { get; set; }
-
- ///
- /// 未体验人数
- ///
- public int TiYanRenShu0 { get; set; }
-
- ///
- /// 1次体验人数
- ///
- public int TiYanRenShu1 { get; set; }
-
- ///
- /// 2次体验人数
- ///
- public int TiYanRenShu2 { get; set; }
-
- ///
- /// 3次体验人数
- ///
- public int TiYanRenShu3 { get; set; }
-
- ///
- /// 留客人数
- ///
- public int LiuKeRenShu { get; set; }
-
-
- ///
- /// 留客新客
- ///
- public int XinLiuKeRenShu { get; set; }
-
- ///
- /// 留客老客
- ///
- public int LaoLiuKeRenShu { get; set; }
-
- ///
- /// 留客新客占比
- ///
- public string XinLiuKeZhanBi { get; set; }
-
- ///
- /// 留客老客占比
- ///
- public string LaoLiuKeZhanBi { get; set; }
-
- ///
- /// 0-4次服务
- ///
- public int LiuKeTiYan0 { get; set; }
-
- ///
- /// 5·6次服务
- ///
- public int LiuKeTiYan5 { get; set; }
-
- ///
- /// 7·8次服务
- ///
- public int LiuKeTiYan7 { get; set; }
-
- ///
- /// 9-10次服务
- ///
- public int LiuKeTiYan9 { get; set; }
-
- ///
- /// 拓留转化率
- ///
- public string TuoLiuZhuanHuaLv { get; set; }
-
-
- ///
- /// 锁客人数
- ///
- public int SuoKeRenShu { get; set; }
-
- ///
- /// 锁客新客
- ///
- public int XinSuoKeRenShu { get; set; }
-
- ///
- /// 锁客老客
- ///
- public int LaoSuoKeRenShu { get; set; }
-
- ///
- /// 锁客新客占比
- ///
- public string XinSuoKeZhanBi { get; set; }
-
- ///
- /// 锁客老客占比
- ///
- public string LaoSuoKeZhanBi { get; set; }
-
- ///
- /// 留锁转化率
- ///
- public string LiuSuoZhuanHuaLv { get; set; }
-
- ///
- /// 拓锁转化率
- ///
- public string TuoSuoZhuanHuaLv { get; set; }
-
- ///
- /// 余20次以上
- ///
- public int SuoKeQty20 { get; set; }
-
- ///
- /// 余10-19次以上
- ///
- public int SuoKeQty10 { get; set; }
-
- ///
- /// 余5-9次以上
- ///
- public int SuoKeQty5 { get; set; }
-
- ///
- /// 余<=5次
- ///
- public int SuoKeQty0 { get; set; }
-
- }
-
- public class TuoLiuSuoShengDataResp
- {
- ///
- /// 店铺id
- ///
- public Guid? ShopId { get; set; }
-
- public DateTime? Days { get; set; }
-
- ///
- ///日期
- ///
- public string DisplayTimeStr { get; set; }
-
- ///
- /// 操作人
- ///
- public string ClerkName { get; set; }
-
-
- ///
- ///带教师
- ///
- public string DaiJiaoShi { get; set; }
-
- ///
- /// 店铺编码
- ///
- public string ShopCode { get; set; }
-
- ///
- /// 店铺名称
- ///
- public string ShopName { get; set; }
-
- ///
- /// 店铺归属(加盟商名称)
- ///
- public string CustomerName { get; set; }
-
- ///
- /// 大区名称
- ///
- public string ZoneName { get; set; }
-
- ///
- /// 总收款
- ///
- public decimal ZongShouKuan { get; set; }
-
- ///
- /// 总业绩
- ///
- public decimal ZongYeJi { get; set; }
-
- ///
- /// 老客业绩
- ///
- public decimal LaoKeYeJi { get; set; }
-
- ///
- /// 新客业绩
- ///
- public decimal XinKeYeJi { get; set; }
-
- ///
- /// 新客业绩占比
- ///
- public string XinKeYeJiZhanBi { get; set; }
-
- ///
- /// 拓客人数
- ///
- public int TuoKeRenShu { get; set; }
-
-
- ///
- /// 体验人数
- ///
- public int TiYanRenShu { get; set; }
-
- ///
- /// 留客人数
- ///
- public int LiuKeRenShu { get; set; }
-
- ///
- /// 锁客人数
- ///
- public int SuoKeRenShu { get; set; }
-
- ///
- /// QL
- ///
- public int QL { get; set; }
-
- ///
- /// QS
- ///
- public int QS { get; set; }
-
- ///
- /// 服务人数
- ///
- public int FuWuRenShu { get; set; }
-
- ///
- /// 服务次数
- ///
- public int FuWuCiShu { get; set; }
-
- ///
- /// 拓升锁人数
- ///
- public int TuoShengSuo { get; set; }
-
- ///
- /// 留升锁人数
- ///
- public int LiuShengSuo { get; set; }
-
- ///
- /// 仅留客人数
- ///
- public int JinLiu { get; set; }
-
- }
-
- public class YangBanDianJianCeResp
- {
- ///
- /// 姓名
- ///
- [SugarColumn(ColumnName = "user_name")]
- public string UserName { get; set; }
-
- ///
- /// 人员类型文本
- ///
- public string RoleTypeText { get; set; }
-
- ///
- /// 人员类型
- ///
- [SugarColumn(ColumnName = "role_type")]
- public int RoleType { get; set; }
-
- ///
- /// 查看报表天数
- ///
-
- public int ReportDays { get; set; }
-
- ///
- /// 查看报表次数
- ///
- public int ReportNum { get; set; }
-
- ///
- /// 最近一次查看时间
- ///
- public DateTime? LastTimes { get; set; }
- }
-
-
- public class YangBanDianJianCeResp2
- {
- ///
- /// 使用量
- ///
- public int PV { get; set; }
-
- ///
- /// 使用人数
- ///
- public int UV { get; set; }
- }
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Response/LxmZHMDReport/TodayCollectionRankingResp.cs b/Reportapi/MyCode.Project.Domain/Message/Response/LxmZHMDReport/TodayCollectionRankingResp.cs
deleted file mode 100644
index 32927fa..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Response/LxmZHMDReport/TodayCollectionRankingResp.cs
+++ /dev/null
@@ -1,27 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Response.LxmZHMDReport
-{
- public class CollectionRankingResp
- {
- ///
- /// 排名
- ///
- public int Ranks { get; set; }
-
- ///
- /// 店铺id
- ///
- public Guid? ShopId { get; set; }
-
- ///
- /// 加盟商id
- ///
- public Guid? CustomerId { get; set; }
-
- }
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Response/Report2309/Report2309.cs b/Reportapi/MyCode.Project.Domain/Message/Response/Report2309/Report2309.cs
deleted file mode 100644
index 67ee56f..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Response/Report2309/Report2309.cs
+++ /dev/null
@@ -1,499 +0,0 @@
-using MyCode.Project.Domain.Model;
-using SqlSugar;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Response.Report2309
-{
- public class Item2Result2309
- {
- ///
- /// 系列名称 例如 清芯透光系列
- ///
- public string Text { get; set; }
-
- ///
- /// 销售量百分比的值 例如 0.3
- ///
- public decimal Value { get; set; }
-
- }
-
-
- public class DuoQuXian2308
- {
- ///
- /// 月份,底部的节点名称
- ///
- public string Month { get; set; }
-
- ///
- /// 日期,前端不用对接
- ///
- public DateTime Days { get; set; }
-
- ///
- /// 本月所有曲线的各个值
- ///
- public List DataList { get; set; }
- }
-
- public class Item1Result2308
- {
- ///
- /// 名称
- ///
- public string Text { get; set; }
-
- ///
- /// 数值
- ///
- public decimal Value { get; set; }
-
- ///
- /// 图案的类型 0=柱状图 1=曲线图
- ///
- public int PatternType { get; set; }
- ///
- /// 年月日 (前端不用对接)
- ///
- public DateTime Days { get; set; }
-
- ///
- /// 底部的月份
- ///
- public string Month { get; set; }
- }
-
- public class ShopSortTopResult2309
- {
- ///
- /// 店铺名称
- ///
- public string ShopName { get; set; }
-
- ///
- /// 区域经理
- ///
- public string RegionalManager { get; set; }
-
- ///
- /// 总业绩
- ///
- public decimal Value { get; set; }
- ///
- /// 排序号
- ///
- public int? SortId { get; set; }
-
- }
-
-
- public class XiaoShouQuShiResp2309
- {
- ///
- /// 总收款
- ///
- public decimal ZongShouKuan { get; set; }
-
- ///
- /// 总业绩
- ///
- public decimal ZongYeJi { get; set; }
-
- ///
- /// 均单业绩
- ///
- public decimal JunDanYeJi { get; set; }
-
-
- ///
- /// 低于均单(店铺)
- ///
- public int DiYuJunDanDianShu { get; set; }
-
- ///
- /// 业绩曲线
- ///
- public List YeJiQuXian { get; set; }
-
-
- }
-
-
- ///
- /// 门店经营月度报表
- ///
-
- public class JingYingYueBao2309
- {
- ///
- /// 月份
- ///
- public string MonthString { get; set; }
-
- ///
- /// Desc:主键ID
- /// Default:
- /// Nullable:False
- ///
- [SugarColumn(ColumnName = "id")]
- public long Id { get; set; }
-
- ///
- /// Desc:店铺ID
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "shop_id")]
- public string ShopId { get; set; }
-
- ///
- /// Desc:店铺名称
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "shop_name")]
- public string ShopName { get; set; }
-
- ///
- /// Desc:店铺编码
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "shop_code")]
- public string ShopCode { get; set; }
-
-
-
- ///
- /// Desc:加盟商名称
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "customer_name")]
- public string CustomerName { get; set; }
-
-
- ///
- /// Desc:省名称
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "state_name")]
- public string StateName { get; set; }
-
- ///
- /// Desc:城市
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "city_name")]
- public string CityName { get; set; }
-
- ///
- /// Desc:大区名称
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "zone_name")]
- public string ZoneName { get; set; }
-
-
- ///
- /// Desc:区域经理
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "region_manager")]
- public string RegionManager { get; set; }
-
-
- ///
- /// Desc:新客人数 : 在该店铺第一次任意消费的会员人数 (任意购买服务、商品、充值都算) 注意:在其它店铺消费,第一次来该店消费,也属于新客。
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "xin_ke_ren_shu")]
- public int? XinKeRenShu { get; set; }
-
- ///
- /// Desc:新客升单套餐人数: 首次任意消费的会员,当天再次消费(购买商品赠送套餐)的会员人数。
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "xin_ke_sheng_dan_tao_can_ren_shu")]
- public int? XinKeShengDanTaoCanRenShu { get; set; }
-
- ///
- /// Desc:新客升单套餐金额:首次任意消费的会员,当天再次消费(购买商品赠送套餐)的金额
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "xin_ke_sheng_dan_tao_can_jin_e")]
- public decimal? XinKeShengDanTaoCanJinE { get; set; }
-
- ///
- /// Desc:新客升单其他人数:首次任意消费的会员,当天再次消费(除掉购买商品赠送套餐)的会员人数。
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "xin_ke_sheng_dan_qi_ta_ren_shu")]
- public int? XinKeShengDanQiTaRenShu { get; set; }
-
- ///
- /// Desc:新客升单其他金额:首次任意消费的会员,当天再次消费(除掉购买商品赠送套餐,单独购买产品或服务,充值、其他)的金额。
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "xin_ke_sheng_dan_qi_ta_jin_e")]
- public decimal? XinKeShengDanQiTaJinE { get; set; }
-
- ///
- /// Desc:新客平均升单套餐金额:新客升单套餐金额/新客升单套餐人数
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "xin_ke_ping_jun_sheng_dan_tao_can_jin_e")]
- public decimal? XinKePingJunShengDanTaoCanJinE { get; set; }
-
- ///
- /// Desc:新客升单套餐转化率:新客升单套餐人数/新客人数
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "xin_ke_sheng_dan_tao_zhuan_hua_Lv")]
- public decimal? XinKeShengDanTaoZhuanHuaLv { get; set; }
-
- ///
- /// Desc:新客总收入:新客本月产生的消费。(新客第一次到店消费+当天再次消费金额) 消费是:任意消费,充值、产品、服务都算
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "xin_ke_zong_shou_ru")]
- public decimal? XinKeZongShouRu { get; set; }
-
- ///
- /// Desc:老客到店次数:有过首单记录,次日再次任意消费的会员人数。统计本月到店消费次数(当天多次消费则需排重记1) 某客户 9月1日上午消费100元,下午消费100, 9月3日过来消费200元 9月1日只算1次,共统计到店次数 :2次
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "lao_ke_dao_dian_ci_shu")]
- public int? LaoKeDaoDianCiShu { get; set; }
-
- ///
- /// Desc:老客复购人数:有过首单记录,次日再次任意消费的会员人数。
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "lao_ke_fu_gou_ren_shu")]
- public int? LaoKeFuGouRenShu { get; set; }
-
- ///
- /// Desc:老客复购套餐人数:有过首单记录,次日再次消费(购买商品赠送套餐)的会员人数
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "lao_ke_fu_gou_tao_can_ren_shu")]
- public int? LaoKeFuGouTaoCanRenShu { get; set; }
-
- ///
- /// Desc:老客复购套餐金额:有过首单记录,次日再次消费(购买商品赠送套餐)的金额
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "lao_ke_fu_gou_tao_can_jin_e")]
- public decimal? LaoKeFuGouTaoCanJinE { get; set; }
-
- ///
- /// Desc:老客复购其他金额:有过首单记录,次日再次消费(除掉购买商品赠送套餐,单独购买产品或服务,充值、其他)的金额
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "lao_ke_fu_gou_qi_ta_jin_e")]
- public decimal? LaoKeFuGouQiTaJinE { get; set; }
-
- ///
- /// Desc:老客平均复购套餐金额:老客复购套餐金额/老客复购套餐人数
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "lao_ke_ping_jun_fu_gou_tao_can_jin_e")]
- public decimal? LaoKePingJunFuGouTaoCanJinE { get; set; }
-
- ///
- /// Desc:老客复购率:老客复购人数/老客到店次数
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "lao_ke_fu_gou_lv")]
- public decimal? LaoKeFuGouLv { get; set; }
-
- ///
- /// Desc:老客总收入:有过首单记录,次日再次任意消费的金额
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "lao_ke_zong_shou_ru")]
- public decimal? LaoKeZongShouRu { get; set; }
-
- ///
- /// Desc:新客贡献占比:新客收入/总收款
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "xin_ke_gong_xian_zhan_bi")]
- public decimal? XinKeGongXianZhanBi { get; set; }
-
- ///
- /// Desc:老客贡献占比:老客收入/总收款
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "lao_ke_gong_xian_zhan_bi")]
- public decimal? LaoKeGongXianZhanBi { get; set; }
-
- ///
- /// Desc:散客业绩:非会员产生的业绩
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "san_ke_ye_ji")]
- public decimal? SanKeYeJi { get; set; }
-
- ///
- /// Desc:散客单数:非会员产生的销售单数
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "san_ke_dan_shu")]
- public int? SanKeDanShu { get; set; }
-
- ///
- /// Desc:月服务人数:当月核销服务的人数
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "yue_fu_wu_ren_shu")]
- public int? YueFuWuRenShu { get; set; }
-
- ///
- /// Desc:月服务次数:当月核销服务的次数
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "yue_fu_wu_ci_shu")]
- public int? YueFuWuCiShu { get; set; }
-
- ///
- /// Desc:人均服务次数:月服务次数/月服务人数
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "ren_jun_fu_wu_ci_shu")]
- public decimal? RenJunFuWuCiShu { get; set; }
-
- ///
- /// Desc:总收款:门店实际总收款金额 (订单实付金额+充值金额+预售金额)
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "zong_shou_kuan")]
- public decimal? ZongShouKuan { get; set; }
-
- ///
- /// Desc:总业绩:订单实付金额+消预存金额 (不含充值) +预售转销售单金额
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "zong_ye_ji")]
- public decimal? ZongYeJi { get; set; }
-
- ///
- /// Desc:饰品金额:购买饰品类实付金额+消预存金额(发饰品类+首饰品类)
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "shi_pin_jin_e")]
- public decimal? ShiPinJinE { get; set; }
-
- ///
- /// Desc:化妆品金额: 购买彩妆品类实付金额+消预存金额(彩妆类产品)
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "hua_zhuang_pin_jin_e")]
- public decimal? HuaZhuangPinJinE { get; set; }
-
- ///
- /// Desc:护肤品金额: 购买护肤品类实付金额+消预存金额(护肤类产品)
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "hu_fu_pin_jin_e")]
- public decimal? HuFuPinJinE { get; set; }
-
- ///
- /// Desc:服务业绩金额:服务业绩(包含所有服务类业绩,不包含产品销售)
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "fu_wu_ye_ji_jin_e")]
- public decimal? FuWuYeJiJinE { get; set; }
-
- ///
- /// Desc:其他业绩金额:非购买发饰、彩妆、护肤类实付金额+消预存金额(含工具类)
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "qi_ta_ye_ji_jin_e")]
- public decimal? QiTaYeJiJinE { get; set; }
-
- ///
- /// Desc:老客复购其他人数:有过首单记录,次日再次消费(除掉购买商品赠送套餐,单独购买产品或服务,充值、其他)的金额
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "lao_ke_fu_gou_qi_ta_ren_shu")]
- public int? LaoKeFuGouQiTaRenShu { get; set; }
-
- ///
- /// Desc:新客首单套餐人数:首次消费购买商品赠送套餐的会员人数
- /// Default:
- /// Nullable:False
- ///
- [SugarColumn(ColumnName = "xin_ke_shou_dan_tao_can_ren_shu")]
- public int XinKeShouDanTaoCanRenShu { get; set; }
-
- ///
- /// Desc:新客首单套餐金额:首次消费购买商品赠送套餐的金额
- /// Default:
- /// Nullable:False
- ///
- [SugarColumn(ColumnName = "xin_ke_shou_dan_tao_can_jin_e")]
- public decimal XinKeShouDanTaoCanJinE { get; set; }
-
- ///
- /// Desc:新客首单其他人数:首次任意消费的(除掉购买商品赠送套餐,单独购买产品或服务、其他)的会员人数。除掉购买商品赠送套餐,单独购买产品或服务、其他)
- /// Default:
- /// Nullable:False
- ///
- [SugarColumn(ColumnName = "xin_ke_shou_dan_qi_ta_ren_shu")]
- public int XinKeShouDanQiTaRenShu { get; set; }
-
- ///
- /// Desc:新客首单其他金额:首次任意消费的(除掉购买商品赠送套餐,单独购买产品或服务、其他)的金额
- /// Default:
- /// Nullable:False
- ///
- [SugarColumn(ColumnName = "xin_ke_shou_dan_qi_ta_jin_e")]
- public decimal XinKeShouDanQiTaJinE { get; set; }
-
- }
-
-
-
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Response/Report2309/Report2310.cs b/Reportapi/MyCode.Project.Domain/Message/Response/Report2309/Report2310.cs
deleted file mode 100644
index d7155a7..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Response/Report2309/Report2310.cs
+++ /dev/null
@@ -1,172 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Response.Report2309
-{
- public class RpShiYongTianShu
- {
- public int ShiYongTianShu { get; set; }
-
- public Guid ShopId { get; set; }
-
- public string ShopCode { get; set; }
-
- ///
- /// 当月业绩
- ///
- public decimal YeJi { get; set; }
-
- ///
- /// 上月业绩
- ///
- public decimal ShangYueYeJi { get; set; }
-
-
- ///
- /// 当月收款
- ///
- public decimal ShouKuan { get; set; }
-
- ///
- /// 上月收款
- ///
- public decimal ShangYueShouKuan { get; set; }
-
- ///
- /// 上月使用天数
- ///
- public int ShangYueShiYongTianShu { get; set; }
-
- ///
- /// 均店动耗人数
- ///
- public decimal HeXiaoRenShu { get; set; }
-
- ///
- /// 上月均店动耗人数
- ///
- public decimal ShangYueHeXiaoRenShu { get; set; }
-
- ///
- /// 均店动耗次数
- ///
- public decimal HeXiaoCiShu { get; set; }
-
- ///
- /// 上月均店动耗次数
- ///
- public decimal ShangYueHeXiaoCiShu { get; set; }
-
- }
-
- public class RpDuDaoKanBan
- {
-
- ///
- /// 管理店铺
- ///
- public int ShopNum { get; set; }
-
- ///
- /// 使用店铺
- ///
- public int ShiYongDianPu { get; set; }
-
- ///
- /// 排序路径
- ///
- public string Path { get; set; }
-
- ///
- /// 用户ID
- ///
- public Guid LoginID { get; set; }
-
- ///
- /// 区域督导
- ///
- public string DuDaoName { get; set; }
-
- ///
- /// 账号名称(前端不要对接)
- ///
- public string UserName { get; set; }
-
- ///
- /// 均单业绩
- ///
- public decimal JunDanYeJi { get; set; }
-
- ///
- /// 环比均单业绩
- ///
- public decimal HuanBiJunDanYeJi { get; set; }
-
- ///
- /// 均店订货金额
- ///
- public decimal JunDianDingHuoJinE { get; set; }
-
-
- ///
- /// 环比均店订货金额
- ///
- public decimal HuanBiJunDianDingHuoJinE { get; set; }
-
- ///
- /// 均店动耗人数
- ///
- public decimal JunDianDongHaoRenShu { get; set; }
-
- ///
- /// 环比均店动耗人数
- ///
- public decimal HuanBiJunDianDongHaoRenShu { get; set; }
-
- ///
- /// 均店动耗次数
- ///
- public decimal JunDianDongHaoCiShu { get; set; }
-
- ///
- /// 环比均店动耗次数
- ///
- public decimal HuanBiJunDianDongHaoCiShu { get; set; }
-
- }
-
- public class RpYeJi2310Resp
- {
- public Guid ShopId { get; set; }
-
- public decimal YeJi { get; set; }
- }
-
- public class RpDuDaoShopId
- {
- ///
- /// 店铺ID
- ///
- public Guid ShopId { get; set; }
-
- ///
- /// 账号ID
- ///
- public Guid LoginID { get; set; }
-
- ///
- /// 店铺编码
- ///
- public string ShopCode { get; set; }
- }
-
- public class DHShopOrderAmountResp
- {
- public string ShopCode { get; set; }
-
- public decimal TotalAmount { get; set; }
- }
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Response/Report2309/Report2406.cs b/Reportapi/MyCode.Project.Domain/Message/Response/Report2309/Report2406.cs
deleted file mode 100644
index 3ba46e7..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Response/Report2309/Report2406.cs
+++ /dev/null
@@ -1,514 +0,0 @@
-using MyCode.Project.Domain.Model;
-using SqlSugar;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Response.Report2309
-{
- ///
- ///门店诊断报表的查询条件
- ///
-
- public partial class YangbandianSearchDay
- {
-
- ///
- /// Desc:主键id
- /// Default:
- /// Nullable:False
- ///
- [SugarColumn(IsPrimaryKey = true, ColumnName = "id")]
- public string Id { get; set; }
-
- ///
- /// Desc:店铺ID
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "shop_id")]
- public string ShopId { get; set; }
-
- ///
- /// Desc:店铺名称
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "shop_name")]
- public string ShopName { get; set; }
-
- ///
- /// Desc:店铺编码
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "shop_code")]
- public string ShopCode { get; set; }
-
-
- ///
- /// Desc:加盟商名称
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "customer_name")]
- public string CustomerName { get; set; }
-
- ///
- /// Desc:省名称
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "state_name")]
- public string StateName { get; set; }
-
- ///
- /// Desc:城市
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "city_name")]
- public string CityName { get; set; }
-
- ///
- /// Desc:此时此刻的最新大区名称
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "zone_name")]
- public string ZoneName { get; set; }
-
- ///
- /// Desc:使用天数:任意在手机端或pos端使用收银、核销、会员功能记1
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "shi_yong_tian_shu")]
- public int? ShiYongTianShu { get; set; }
-
- ///
- /// 督导
- ///
- public string RegionManager { get; set; }
-
- ///
- /// 日期
- ///
- public string DisplayTimeStr { get; set; }
-
- ///
- /// Desc:前端不要对接
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "search_days")]
- public DateTime? SearchDays { get; set; }
- }
-
- public class XinKeYangBanDian: YangbandianSearchDay
- {
-
- ///
- /// Desc:新客业绩+新客体验业绩
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "xin_ke_zong_ye_ji")]
- public decimal? XinKeZongYeJi { get; set; }
-
- ///
- /// Desc:新客业绩:顾客购买首单后,则该顾客首单当月所有的消费订单都算为新客业绩(不限品类)
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "xin_ke_ye_ji")]
- public decimal? XinKeYeJi { get; set; }
-
- ///
- /// Desc:新拓客人数:购买体验,一次性服务的新客人数
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "xin_tuo_ke_ren_shu")]
- public decimal? XinTuoKeRenShu { get; set; }
-
- ///
- /// Desc:新客体验业绩:新客首单前购买体验,一次性服务的业绩总和
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "xin_ke_ti_yan_ye_ji")]
- public decimal? XinKeTiYanYeJi { get; set; }
-
- ///
- /// Desc:有核销体验/一次性服务的新客人数
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "dao_dian_ti_yan_ren_shu")]
- public int? DaoDianTiYanRenShu { get; set; }
-
-
-
- ///
- /// Desc:留客业绩(统计护肤明细的金额)
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "liu_ke_ye_ji")]
- public decimal? LiuKeYeJi { get; set; }
-
-
- ///
- /// Desc:留客转化人数:首次购买单次付款大于等于590元的护理套餐(套餐指:购买护肤品,且有赠送服务项目)的新客人数
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "liu_ke_ren_shu")]
- public int? LiuKeRenShu { get; set; }
-
- ///
- /// Desc:转化率:留客转化人数/到店体验人数
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "zhuan_hua_lv")]
- public decimal? ZhuanHuaLv { get; set; }
-
- ///
- /// Desc:锁客卡销售人数:首次购买同一护理套餐(套餐指:购买护肤品,且有赠送服务项目)累计次数大于等于30次的新客人数
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "suo_ke_ren_shu")]
- public int? SuoKeRenShu { get; set; }
-
- ///
- /// Desc:锁客卡销售额
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "suo_ke_ye_ji")]
- public decimal? SuoKeYeJi { get; set; }
-
- ///
- /// Desc:家居/妆发产品业绩:新客购买护肤品(不含赠送)、发饰、化妆产品的业绩
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "jia_ju_ye_ji")]
- public decimal? JiaJuYeJi { get; set; }
-
-
-
- }
- public class LaoKeYangBanDian : YangbandianSearchDay
- {
-
- ///
- /// Desc:总业绩:订单实付金额+消预存金额 (不含充值) +预售转销售单金额
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "zong_ye_ji")]
- public decimal? ZongYeJi { get; set; }
-
- ///
- /// Desc:本月累计业绩:订单实付金额+消预存金额 (不含充值) +预售转销售单金额
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "ben_yue_ye_ji")]
- public decimal? BenYueYeJi { get; set; }
-
- ///
- /// Desc:老客业绩:老客所有消费业绩
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "lao_ke_ye_ji")]
- public decimal? LaoKeYeJi { get; set; }
-
- ///
- /// Desc:老客体验人数:购买体验,一次性服务的新客人数
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "lao_ke_ti_yan_ren_shu")]
- public int? LaoKeTiYanRenShu { get; set; }
-
- ///
- /// Desc:老客体验业绩:老客购买体验,一次性服务的业绩总和
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "lao_ke_ti_yan_ye_ji")]
- public decimal? LaoKeTiYanYeJi { get; set; }
-
- ///
- /// Desc:套餐业绩:老客购买护理套餐的业绩总和(护肤品+赠送服务)
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "tao_can_ye_ji")]
- public decimal? TaoCanYeJi { get; set; }
-
- ///
- /// Desc:锁客卡销售人数:首次购买同一护理套餐(套餐指:购买护肤品,且有赠送服务项目)累计次数大于等于30次的新客人数
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "suo_ke_ren_shu")]
- public int? SuoKeRenShu { get; set; }
-
- ///
- /// Desc:锁客卡销售额
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "suo_ke_ye_ji")]
- public decimal? SuoKeYeJi { get; set; }
-
- ///
- /// Desc:家居/妆发产品业绩:新客购买护肤品(不含赠送)、发饰、化妆产品的业绩
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "jia_ju_ye_ji")]
- public decimal? JiaJuYeJi { get; set; }
-
- ///
- /// Desc:抖音核销单数
- /// Default:NULL
- /// Nullable:True
- ///
- [SugarColumn(ColumnName = "dou_yin_dan_shu")]
- public int? DouYinDanShu { get; set; }
-
- ///
- /// Desc:店铺销售指标
- /// Default:0
- /// Nullable:True
- ///
- public decimal? ShopSalesIndicators { get; set; }
-
-
- ///
- /// Desc:抖音刷单单数
- /// Default:0
- /// Nullable:True
- ///
- public int? DouYinBrushingOrdersQty { get; set; }
-
- ///
- /// Desc:抖音刷单金额
- /// Default:0
- /// Nullable:True
- ///
- public decimal? DouYinBrushingOrdersAmount { get; set; }
-
- ///
- /// Desc:抖音好评数
- /// Default:0
- /// Nullable:True
- ///
- public int? DouYinPositiveReviewQty { get; set; }
-
- ///
- /// Desc:美团核销单数
- /// Default:0
- /// Nullable:True
- ///
- public int? MeituanVerifyOrderQty { get; set; }
-
- ///
- /// Desc:美团刷单单数
- /// Default:0
- /// Nullable:True
- ///
- public int? MeituanBrushingOrdersQty { get; set; }
-
- ///
- /// Desc:美团刷单金额
- /// Default:0
- /// Nullable:True
- ///
- public decimal? MeituanBrushingOrdersAmount { get; set; }
-
- ///
- /// Desc:美团刷单好评数
- /// Default:0
- /// Nullable:True
- ///
- public int? MeituanPositiveReviewQty { get; set; }
-
- ///
- /// Desc:自然流量人数
- /// Default:0
- /// Nullable:True
- ///
- public int? NaturalFlowQty { get; set; }
-
- ///
- /// 本月达标率
- ///
- public string DaBiaoLv { get; set; }
-
- ///
- /// 剩余每日业绩目标
- ///
- public decimal ShengYuMeiRiYeJi { get; set; }
- }
-
-
- public class MemberValueReport
- {
- public string Id { get; set; }
-
- ///
- /// 会员名称
- ///
- public string MemberName { get; set; }
-
-
- ///
- /// 会员等级
- ///
- public string GrageName { get; set; }
-
- /////
- /////
- /////
- //public string MemberCode { get; set; }
-
- ///
- /// 会员手机号
- ///
- public string Mobile { get; set; }
-
- ///
- /// 注册时间
- ///
- public DateTime CreateTime { get; set; }
-
- ///
- /// 店铺名称
- ///
- public string ShopName { get; set; }
-
- ///
- /// 店铺编码
- ///
- public string ShopCode { get; set; }
-
- ///
- /// 店铺归属
- ///
- public string CustomerName { get; set; }
- ///
- /// 省
- ///
- public string StateName { get; set; }
-
- ///
- /// 市
- ///
- public string CityName { get; set; }
- ///
- /// 区
- ///
- public string ZoneName { get; set; }
-
- ///
- /// 累计消费金额
- ///
- public decimal LeiJiXiaoFei { get; set; }
- ///
- /// 体验消费次数
- ///
- public int TiYanCiShu { get; set; }
-
- ///
- /// 体验消费金额
- ///
- public decimal TiYanXiaoFei { get; set; }
-
- ///
- /// 复购次数
- ///
- public int FuGouCiShu { get; set; }
-
- ///
- /// 复购累计消费金额
- ///
- public decimal FuGouXiaoFei { get; set; }
-
- ///
- /// 充值金额
- ///
- public decimal ChongZhiJinE { get; set; }
-
- ///
- /// 累计核销次数
- ///
- public int HeXiaoCiShu { get; set; }
- ///
- /// 首次体验时间
- ///
- public string TiYanTime { get; set; }
-
- ///
- /// 首单时间
- ///
- public string ShouDanTime { get; set; }
- ///
- /// 首单消费金额
- ///
- public string ShouDanXiaoFei { get; set; }
-
- ///
- /// 剩余余额
- ///
- public decimal MemberAccount { get; set; }
-
- ///
- /// 拥有套餐项目数
- ///
- public int ServerTypeQty { get; set; }
-
- ///
- /// 剩余服务次数
- ///
- public int ServerQty { get; set; }
-
- ///
- /// 剩余积分
- ///
- public int JiFen { get; set; }
-
- ///
- /// 会员活跃度
- ///
- public int StatusType { get; set; }
- ///
- /// 会员活跃度 (对接这个字段)
- ///
- public string StatusTypeText { get; set; }
- ///
- /// 最后一次到店时间
- ///
- public string DaoDianTime { get; set; }
- ///
- /// 最后一次购买时间
- ///
- public string LastSalesTime { get; set; }
- ///
- /// 到店频率 (消费时间范围总天数/消费时间范围内有任意订单的累计天数)
- ///
- public decimal DaoDianPingLv { get; set; }
-
-
- }
-}
diff --git a/Reportapi/MyCode.Project.Domain/Message/Response/Report2309/TuoKeReport2407.cs b/Reportapi/MyCode.Project.Domain/Message/Response/Report2309/TuoKeReport2407.cs
deleted file mode 100644
index 92b6094..0000000
--- a/Reportapi/MyCode.Project.Domain/Message/Response/Report2309/TuoKeReport2407.cs
+++ /dev/null
@@ -1,672 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Domain.Message.Response.Report2309
-{
- public class TuoKeTiYanGuanKongReportResp2407
- {
- ///
- ///
- ///
- public string Id { get; set; }
-
- ///
- /// 店铺id
- ///
- public string ShopId { get; set; }
-
- ///
- /// 买卡日期
- ///
- public string MaiKaRiQi { get; set; }
-
- ///
- /// 首次体验时间
- ///
- public string FirstTiYanTime { get; set; }
-
-
- ///
- /// 顾客姓名
- ///
- public string MemberName { get; set; }
-
- ///
- /// 会员手机号
- ///
- public string Mobile { get; set; }
-
- ///
- /// 会员资料来源 0= 其他; 1= 抖音; 2= 美团; 3=自然流量; 4=老顾客裂变 5=1元公益、派单 6=第三方合作
- ///
- public int FromType { get; set; }
-
- ///
- /// 顾客来源渠道
- ///
- public string FromTypeText { get; set; }
-
- ///
- /// 主服务/成交人
- ///
- public string ClerkName { get; set; }
-
- ///
- /// 是否购买留客卡
- ///
- public int IfLiuKe { get; set; }
-
- ///
- /// 是否购买留客卡字符串
- ///
- public string IfLiuKeStr { get; set; }
-
- ///
- /// 顾客第几次体验购买留客卡
- ///
- public int TiYanCiShu { get; set; }
-
- ///
- /// 门店名称
- ///
- public string ShopName { get; set; }
-
-
-
- }
-
-
- public class RiFuWuTuiJinReport2407Resp
- {
- ///
- ///
- ///
- public string Id { get; set; }
-
-
- ///
- /// 门店名称
- ///
- public string ShopName { get; set; }
-
- ///
- /// 店员名称
- ///
- public string ClerkName { get; set; }
-
- ///
- /// 岗位
- ///
- public string GangWei { get; set; }
-
-
- ///
- /// 拓客卡核销总人数
- ///
-
- public int TotalQty { get; set; }
-
-
- ///
- /// 拓客总人数
- ///
-
- public int TuoKeQty { get; set; }
-
- ///
- /// 第1次核销拓客卡人数
- ///
- public int Qty1 { get; set; }
-
-
- ///
- /// 第2次核销拓客卡人数
- ///
- public int Qty2 { get; set; }
-
- ///
- /// 第3次以上核销拓客卡人数
- ///
- public int Qty3 { get; set; }
-
- ///
- /// 购买留客卡顾客数量
- ///
- public int LiuKeQty { get; set; }
-
- }
-
- public class LiuKeZhuanHuanReport2407Resp
- {
- public string Id { get; set; }
-
- ///
- /// 门店名称
- ///
- public string ShopName { get; set; }
-
- ///
- /// 店员名称
- ///
- public string ClerkName { get; set; }
-
-
- ///
- /// 岗位
- ///
- public string GangWei { get; set; }
-
- /****************合计*********************/
- #region
- ///
- /// 合计进店人数
- ///
- public int TotalJinDianQty { get; set; }
-
- ///
- /// 合计成交人数
- ///
- public int TotalLiuKeQty { get; set; }
-
- ///
- /// 合计成交率(对接这个字段)
- ///
- public string TotalChengJiaoLvText { get; set; }
-
- ///
- /// 合计金额
- ///
- public decimal TotalAmount { get; set; }
-
-
- ///
- /// 合计进店人数--1次
- ///
- public int TotalJinDianQty1 { get; set; }
-
- ///
- /// 合计成交人数--1次
- ///
- public int TotalLiuKeQty1 { get; set; }
-
- ///
- /// 合计成交率(对接这个字段)--1次
- ///
- public string TotalChengJiaoLvText1 { get; set; }
-
-
- ///
- /// 合计金额--1次
- ///
- public decimal TotalTotalAmount1 { get; set; }
-
-
-
- ///
- /// 合计进店人数--2次
- ///
- public int TotalJinDianQty2 { get; set; }
-
- ///
- /// 合计成交人数--2次
- ///
- public int TotalLiuKeQty2 { get; set; }
-
- ///
- /// 合计成交率(对接这个字段)--2次
- ///
- public string TotalChengJiaoLvText2 { get; set; }
-
-
- ///
- /// 合计金额--2次
- ///
- public decimal TotalTotalAmount2 { get; set; }
-
-
-
- ///
- /// 合计进店人数--3次
- ///
- public int TotalJinDianQty3 { get; set; }
-
- ///
- /// 合计成交人数--3次
- ///
- public int TotalLiuKeQty3 { get; set; }
-
- ///
- /// 合计成交率(对接这个字段)--3次
- ///
- public string TotalChengJiaoLvText3 { get; set; }
-
- ///
- /// 合计金额--3次
- ///
- public decimal TotalTotalAmount3 { get; set; }
-
- #endregion
-
- /***********线上*************/
-
-
- #region
- ///
- /// 线上合计进店人数
- ///
- public int OnlineTotalJinDianQty { get; set; }
-
- ///
- /// 线上合计成交人数
- ///
- public int OnlineTotalLiuKeQty { get; set; }
-
- ///
- /// 线上合计成交率(对接这个字段)
- ///
- public string OnlineTotalChengJiaoLvText { get; set; }
-
- ///
- /// 线上合计金额
- ///
- public decimal OnlineTotalAmount { get; set; }
-
-
- ///
- /// 线上进店人数--1次
- ///
- public int OnlineTotalJinDianQty1 { get; set; }
-
- ///
- /// 线上成交人数--1次
- ///
- public int OnlineTotalLiuKeQty1 { get; set; }
-
- ///
- /// 线上成交率(对接这个字段)--1次
- ///
- public string OnlineTotalChengJiaoLvText1 { get; set; }
-
- ///
- /// 线上金额--1次
- ///
- public decimal OnlineTotalAmount1 { get; set; }
-
-
-
- ///
- /// 线上进店人数--2次
- ///
- public int OnlineTotalJinDianQty2 { get; set; }
-
- ///
- /// 线上成交人数--2次
- ///
- public int OnlineTotalLiuKeQty2 { get; set; }
-
- ///
- /// 线上成交率(对接这个字段)--2次
- ///
- public string OnlineTotalChengJiaoLvText2 { get; set; }
-
- ///
- /// 线上金额--2次
- ///
- public decimal OnlineTotalAmount2 { get; set; }
-
- ///
- /// 线上进店人数--3次
- ///
- public int OnlineTotalJinDianQty3 { get; set; }
-
- ///
- /// 线上成交人数--3次
- ///
- public int OnlineTotalLiuKeQty3 { get; set; }
-
- ///
- /// 线上成交率(对接这个字段)--3次
- ///
- public string OnlineTotalChengJiaoLvText3 { get; set; }
-
-
- ///
- /// 线上金额--3次
- ///
- public decimal OnlineTotalAmount3 { get; set; }
-
- #endregion
-
- /***********线下*************/
-
-
- #region
- ///
- /// 线下合计进店人数
- ///
- public int OfflineTotalJinDianQty { get; set; }
-
- ///
- /// 线下合计成交人数
- ///
- public int OfflineTotalLiuKeQty { get; set; }
-
- ///
- /// 线下合计成交率(对接这个字段)
- ///
- public string OfflineTotalChengJiaoLvText { get; set; }
-
- ///
- /// 线下合计金额
- ///
- public decimal OfflineTotalAmount { get; set; }
-
- ///
- /// 线下进店人数--1次
- ///
- public int OfflineTotalJinDianQty1 { get; set; }
-
- ///
- /// 线下成交人数--1次
- ///
- public int OfflineTotalLiuKeQty1 { get; set; }
-
- ///
- /// 线下成交率(对接这个字段)--1次
- ///
- public string OfflineTotalChengJiaoLvText1 { get; set; }
-
- ///
- /// 线下金额--1次
- ///
- public decimal OfflineTotalAmount1 { get; set; }
-
- ///
- /// 线下进店人数--2次
- ///
- public int OfflineTotalJinDianQty2 { get; set; }
-
- ///
- /// 线下成交人数--2次
- ///
- public int OfflineTotalLiuKeQty2 { get; set; }
-
- ///
- /// 线下成交率(对接这个字段)--2次
- ///
- public string OfflineTotalChengJiaoLvText2 { get; set; }
-
- ///
- /// 线下金额--2次
- ///
- public decimal OfflineTotalAmount2 { get; set; }
-
- ///
- /// 线下进店人数--3次
- ///
- public int OfflineTotalJinDianQty3 { get; set; }
-
- ///
- /// 线下成交人数--3次
- ///
- public int OfflineTotalLiuKeQty3 { get; set; }
-
- ///
- /// 线下成交率(对接这个字段)--3次
- ///
- public string OfflineTotalChengJiaoLvText3 { get; set; }
-
- ///
- /// 线下金额--3次
- ///
- public decimal OfflineTotalAmount3 { get; set; }
-
- #endregion
- }
-
- public class LiuKeShenKeGuanKongReport2407Resp
- {
- public string Id { get; set; }
-
- ///
- /// 店铺id
- ///
- public string ShopId { get; set; }
-
- ///
- /// 门店名称
- ///
- public string ShopName { get; set; }
-
- ///
- /// 顾客第一次体验时间
- ///
- public string FirstExperienceTime { get; set; }
-
- ///
- /// 客户姓名
- ///
- public string MemberName { get; set; }
-
- ///
- /// 年龄
- ///
- public int Age { get; set; }
-
- ///
- /// Desc:性别 1=男;2=女 0=不明
- /// Default:
- /// Nullable:False
- ///
- public int Sex { get; set; }
-
- ///
- /// Desc:性别 1=男;2=女 0=不明 字符串
- /// Default:
- /// Nullable:False
- public string SexStr { get; set; }
-
- ///
- /// 会员手机号
- ///
- public string Mobile { get; set; }
-
- ///
- /// 进店方式(顾客来源) 0= 其他; 1= 抖音; 2= 美团; 3=自然流量; 4=老顾客裂变 5=1元公益、派单 6=第三方合作
- ///
- public int FromType { get; set; }
-
- ///
- /// 顾客来源渠道
- ///
- public string FromTypeText { get; set; }
-
- ///
- /// 购买留客卡项目名称
- ///
- public string GouMaiLiuKeName { get; set; }
-
- ///
- /// 购买留客卡时间
- ///
- public string GouMaiLiuKeTime { get; set; }
-
- ///
- /// 成交留客卡后的服务美容师
- ///
- public string ClerkName { get; set; }
-
- ///
- /// 到店列表
- ///
- public List ArrivalItemList { get; set; }
- }
-
- public class ArrivalItem
- {
- ///
- /// 到店频次
- ///
- public int ArrivalQty { get; set; }
-
- ///到店频次
- public string ArrivalQtyStr { get; set; }
-
- ///
- /// 耗卡时间
- ///
- public string ConsumeTime { get; set; }
- }
-
- public class LiuKeShenKeGuanKongReportExportResp: LiuKeShenKeGuanKongReport2407Resp
- {
- ///
- /// 耗卡时间
- ///
- public string FirstLiuKeTime { get; set; }
-
- ///
- /// 耗卡时间
- ///
- public string SecondLiuKeTime { get; set; }
-
- ///
- /// 耗卡时间
- ///
- public string ThirdLiuKeTime { get; set; }
- ///
- /// 耗卡时间
- ///
- public string FourthLiuKeTime { get; set; }
- ///
- /// 耗卡时间
- ///
- public string FifthLiuKeTime { get; set; }
- ///
- /// 耗卡时间
- ///
- public string SixthLiuKeTime { get; set; }
-
- ///
- /// 耗卡时间
- ///
- public string SeventhLiuKeTime { get; set; }
- ///
- /// 耗卡时间
- ///
- public string EighthLiuKeTime { get; set; }
- ///
- /// 耗卡时间
- ///
- public string NinthLiuKeTime { get; set; }
- ///
- /// 耗卡时间
- ///
- public string TenthtLiuKeTime { get; set; }
- }
-
-
- public class YaoYueDaoDianReport2407Resp
- {
- ///
- ///
- ///
- public string Id { get; set; }
-
-
- ///
- /// 门店名称
- ///
- public string ShopName { get; set; }
-
-
- ///
- /// 邀约人数
- ///
-
- public int YaoYueQty { get; set; }
-
- ///
- /// 回店人数
- ///
- public int HuiDianQty { get; set; }
-
-
- ///
- /// 消费人数
- ///
- public int XiaoFeiQty { get; set; }
-
- ///
- /// 消费金额
- ///
- public decimal TatalAmount { get; set; }
-
- ///
- /// 服务人数
- ///
- public int FuWuQty { get; set; }
-
-
- ///
- /// 邀约到店率
- ///
- public string YaoYueDaoDianLv { get; set; }
-
- }
-
- public class RiFuWuZhuanHuaReport2407Resp
- {
- ///
- ///
- ///
- public string Id { get; set; }
-
-
- ///
- /// 门店名称
- ///
- public string ShopName { get; set; }
-
- ///
- /// 店员名称
- ///
- public string ClerkName { get; set; }
-
- ///
- /// 岗位
- ///
- public string GangWei { get; set; }
-
-
- ///
- /// 拓客卡核销总人数
- ///
-
- public int TotalQty { get; set; }
- ///
- /// 第1次核销拓客卡人数
- ///
- public int Qty1 { get; set; }
-
-
- ///
- /// 第2次核销拓客卡人数
- ///
- public int Qty2 { get; set; }
-
- ///
- /// 第3次以上核销拓客卡人数
- ///
- public int Qty3 { get; set; }
-
- ///
- /// 购买留客卡顾客数量
- ///
- public int LiuKeQty { get; set; }
-
- }
-}
diff --git a/Reportapi/MyCode.Project.Domain/MyCode.Project.Domain.csproj b/Reportapi/MyCode.Project.Domain/MyCode.Project.Domain.csproj
index f8c186b..619f0df 100644
--- a/Reportapi/MyCode.Project.Domain/MyCode.Project.Domain.csproj
+++ b/Reportapi/MyCode.Project.Domain/MyCode.Project.Domain.csproj
@@ -55,11 +55,6 @@
-
-
-
-
-
@@ -67,115 +62,14 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -212,7 +106,9 @@
MyCode.Project.Infrastructure
-
+
+
+
diff --git a/Reportapi/MyCode.Project.Infrastructure/Enumeration/AddFromTypeName.cs b/Reportapi/MyCode.Project.Infrastructure/Enumeration/AddFromTypeName.cs
deleted file mode 100644
index 3f32d4c..0000000
--- a/Reportapi/MyCode.Project.Infrastructure/Enumeration/AddFromTypeName.cs
+++ /dev/null
@@ -1,52 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.ComponentModel;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Infrastructure.Enumeration
-{
- ///
- /// 会员资料增加来源 0= 其他; 1= 抖音; 2= 美团; 3=自然流量; 4=老顾客裂变 5=1元公益、派单
- ///
- public enum AddFromTypeName
- {
- ///
- /// 其它
- ///
- [Description("其它")]
- Other = 0,
-
- ///
- /// 抖音
- ///
- [Description("抖音")]
- DouYin = 1,
-
- ///
- /// 美团
- ///
- [Description("美团")]
- MeiTuan = 2,
-
- ///
- /// 自然流量
- ///
- [Description("自然流量")]
- Nature = 3,
-
- ///
- /// 老顾客裂变
- ///
- [Description("老顾客裂变")]
- OldMember = 4,
-
- ///
- /// 1元公益,派单
- ///
- [Description("1元公益、派单")]
- Benefit = 5
-
- }
-}
diff --git a/Reportapi/MyCode.Project.Infrastructure/Enumeration/AvgType.cs b/Reportapi/MyCode.Project.Infrastructure/Enumeration/AvgType.cs
deleted file mode 100644
index f68df71..0000000
--- a/Reportapi/MyCode.Project.Infrastructure/Enumeration/AvgType.cs
+++ /dev/null
@@ -1,27 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.ComponentModel;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Infrastructure.Enumeration
-{
- ///
- /// 均单业绩类型
- ///
- public enum AvgType
- {
- ///
- /// 小于
- ///
- [Description("小于")]
- Less = 1,
-
- ///
- /// 开发环境
- ///
- [Description("大于等于")]
- MoreAndEqual = 2
- }
-}
diff --git a/Reportapi/MyCode.Project.Infrastructure/Enumeration/EnumType.cs b/Reportapi/MyCode.Project.Infrastructure/Enumeration/EnumType.cs
deleted file mode 100644
index 497dea6..0000000
--- a/Reportapi/MyCode.Project.Infrastructure/Enumeration/EnumType.cs
+++ /dev/null
@@ -1,24 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.ComponentModel;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Infrastructure.Enumeration
-{
- public enum EnumType
- {
- ///
- /// 宝典功效
- ///
- [Description("宝典功效")]
- BaoDianEffect = 1,
-
- ///
- /// 宝典套餐类型
- ///
- [Description("宝典套餐类型")]
- BaoDianTaoCangType = 2
- }
-}
diff --git a/Reportapi/MyCode.Project.Infrastructure/Enumeration/LxmPackageType.cs b/Reportapi/MyCode.Project.Infrastructure/Enumeration/LxmPackageType.cs
deleted file mode 100644
index 367f2cf..0000000
--- a/Reportapi/MyCode.Project.Infrastructure/Enumeration/LxmPackageType.cs
+++ /dev/null
@@ -1,33 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.ComponentModel;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Infrastructure.Enumeration
-{
- ///
- /// 流行美套餐类型
- ///
- public enum LxmPackageType
- {
- ///
- /// 服务套餐
- ///
- [Description("服务套餐")]
- ServicePackage = 1,
-
- ///
- /// 自定义服务套餐
- ///
- [Description("自定义服务套餐")]
- DiyServicePackage = 2,
-
- ///
- ///自定义商品套餐
- ///
- [Description("自定义商品套餐")]
- DiyProductPackage = 3
- }
-}
diff --git a/Reportapi/MyCode.Project.Infrastructure/Enumeration/LxmRecordType.cs b/Reportapi/MyCode.Project.Infrastructure/Enumeration/LxmRecordType.cs
deleted file mode 100644
index 7f35acb..0000000
--- a/Reportapi/MyCode.Project.Infrastructure/Enumeration/LxmRecordType.cs
+++ /dev/null
@@ -1,40 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.ComponentModel;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Infrastructure.Enumeration
-{
- ///
- /// 流行美数据类型
- ///
- public enum LxmRecordType
- {
- ///
- /// 销售单
- ///
- [Description("销售单")]
- SalesSheet = 1,
-
- ///
- /// 预售单
- ///
- [Description("预售单")]
- PreSalesSheet = 2,
-
- ///
- /// 充值单
- ///
- [Description("充值单")]
- Recharge = 3,
-
- ///
- /// 销售单的退货
- ///
- [Description("销售单的退货")]
- SalesOrderRefund = 4
-
- }
-}
diff --git a/Reportapi/MyCode.Project.Infrastructure/Enumeration/OneMoreType.cs b/Reportapi/MyCode.Project.Infrastructure/Enumeration/OneMoreType.cs
deleted file mode 100644
index 231c15b..0000000
--- a/Reportapi/MyCode.Project.Infrastructure/Enumeration/OneMoreType.cs
+++ /dev/null
@@ -1,38 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.ComponentModel;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Infrastructure.Enumeration
-{
- public enum OneMoreType
- {
- ///
- /// 产品计划中的套餐和商品关系
- ///
- [Description("产品计划中的套餐和商品关系")]
- ProductPlanPackageAndSku = 1,
-
- ///
- /// 新客销售中套餐和商品关系
- ///
- [Description("新客销售中套餐和商品关系")]
- NewGuestSalesPlanPackageAndSku = 2,
-
- ///
- /// 新客销售中套餐和服务关系
- ///
- [Description("新客销售中套餐和服务关系")]
- NewGuestSalesPlanPackageAndServe = 3,
-
- ///
- /// 产品计划中的套餐和服务的关系
- ///
- [Description("产品计划中的套餐和服务的关系")]
- ProductPlanPackageAndService = 4
-
-
- }
-}
diff --git a/Reportapi/MyCode.Project.Infrastructure/Enumeration/OrderFromType.cs b/Reportapi/MyCode.Project.Infrastructure/Enumeration/OrderFromType.cs
deleted file mode 100644
index d521b25..0000000
--- a/Reportapi/MyCode.Project.Infrastructure/Enumeration/OrderFromType.cs
+++ /dev/null
@@ -1,58 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.ComponentModel;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Infrastructure.Enumeration
-{
- ///
- /// 订单来源类型
- ///
- public enum OrderFromType
- {
- ///
- /// 其它
- ///
- [Description("其它")]
- Other = 0,
-
- ///
- /// 抖音
- ///
- [Description("抖音")]
- DouYin = 1,
-
- ///
- /// 美团
- ///
- [Description("美团")]
- MeiTuan = 2,
-
- ///
- /// 自然流量
- ///
- [Description("自然流量")]
- Nature = 3,
-
- ///
- /// 老顾客裂变
- ///
- [Description("老顾客裂变")]
- OldMember = 4,
-
- ///
- /// 1元公益,派单
- ///
- [Description("1元公益、派单")]
- Benefit = 5,
- ///
- ///第三方合作
- ///
- [Description("第三方合作")]
- ThirdPartyCooperation = 6
-
-
- }
-}
diff --git a/Reportapi/MyCode.Project.Infrastructure/Enumeration/OrderItemType.cs b/Reportapi/MyCode.Project.Infrastructure/Enumeration/OrderItemType.cs
deleted file mode 100644
index 72b3da2..0000000
--- a/Reportapi/MyCode.Project.Infrastructure/Enumeration/OrderItemType.cs
+++ /dev/null
@@ -1,57 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.ComponentModel;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Infrastructure.Enumeration
-{
- ///
- /// 订单明细的项目类型
- ///
- public enum OrderItemType
- {
- ///
- /// 商品,套装商品(直接存的套装商品的id,比如:"id": "1f26a3dc-2db0-9c70-7a14-3a01634de171",),不需要明细
- ///
- [Description("商品")]
- Goods = 0,
-
- ///
- /// 服务
- ///
- [Description("服务")]
- Service = 1,
-
- ///
- /// 服务套餐?服务管理 > 服务套餐 - 暂定没有说是否需要拆分的问题
- ///
- [Description("服务套餐")]
- Package = 2,
-
- ///
- /// 卡券-有服务又有商品,暂不参与
- ///
- [Description("卡券")]
- CardCoupon = 3,
-
- ///
- /// 加盟商的自定义套餐,需要拆分明细,历史数据因为报表全部归结于
- ///
- [Description("自定义套餐")]
- DiyPackage = 4,
-
- ///
- /// 自定义套餐商品
- ///
- [Description("自定义套餐商品")]
- DiyPackageGoods = 40,
-
- ///
- /// 自定义套餐服务
- ///
- [Description("自定义套餐服务")]
- DiyPackageService = 41
- }
-}
diff --git a/Reportapi/MyCode.Project.Infrastructure/Enumeration/OrderMoreType.cs b/Reportapi/MyCode.Project.Infrastructure/Enumeration/OrderMoreType.cs
deleted file mode 100644
index ffea923..0000000
--- a/Reportapi/MyCode.Project.Infrastructure/Enumeration/OrderMoreType.cs
+++ /dev/null
@@ -1,24 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.ComponentModel;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Infrastructure.Enumeration
-{
- public enum OrderMoreType
- {
- ///
- /// 订单
- ///
- [Description("订单")]
- Order = 1,
-
- ///
- /// 充值单
- ///
- [Description("充值单")]
- Recharge = 2
- }
-}
diff --git a/Reportapi/MyCode.Project.Infrastructure/Enumeration/PlanProductId.cs b/Reportapi/MyCode.Project.Infrastructure/Enumeration/PlanProductId.cs
deleted file mode 100644
index 5555694..0000000
--- a/Reportapi/MyCode.Project.Infrastructure/Enumeration/PlanProductId.cs
+++ /dev/null
@@ -1,40 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.ComponentModel;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Infrastructure.Enumeration
-{
- ///
- /// 新会员销售计划固定的两个套餐
- ///
- public enum PlanProductId
- {
- ///
- /// 新客人数
- ///
- [Description("新客人数")]
- NewMemberQty = 1,
-
- ///
- /// 首单人数
- ///
- [Description("首单人数")]
- FirstOrderQty = 2,
-
- ///
- /// 彩妆
- ///
- [Description("彩妆")]
- ColorProduct = 3,
-
- ///
- /// 发饰
- ///
- [Description("发饰")]
- HairProduct = 4
-
- }
-}
diff --git a/Reportapi/MyCode.Project.Infrastructure/Enumeration/PlanType.cs b/Reportapi/MyCode.Project.Infrastructure/Enumeration/PlanType.cs
deleted file mode 100644
index 81b6f04..0000000
--- a/Reportapi/MyCode.Project.Infrastructure/Enumeration/PlanType.cs
+++ /dev/null
@@ -1,39 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.ComponentModel;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Infrastructure.Enumeration
-{
- ///
- /// 销售计划类型
- ///
- public enum PlanType
- {
- ///
- /// 产品销售计划表
- ///
- [Description("产品销售计划表")]
- ProductSalesPlan = 1,
-
- ///
- /// 新客销售计划表
- ///
- [Description("新客销售计划表")]
- NewMemberSalesPlan = 2,
-
- ///
- /// 老客复购销售计划
- ///
- [Description("老客复购")]
- OldMemberSalesPlan = 3,
-
- ///
- /// 没有匹配到的商品剩余
- ///
- [Description("没有匹配到的商品剩余")]
- NoMatchSalesPlan = 999
- }
-}
diff --git a/Reportapi/MyCode.Project.Infrastructure/Enumeration/ReportType.cs b/Reportapi/MyCode.Project.Infrastructure/Enumeration/ReportType.cs
index 0301aec..8308434 100644
--- a/Reportapi/MyCode.Project.Infrastructure/Enumeration/ReportType.cs
+++ b/Reportapi/MyCode.Project.Infrastructure/Enumeration/ReportType.cs
@@ -13,292 +13,10 @@ namespace MyCode.Project.Infrastructure.Enumeration
public enum ReportType
{
///
- /// 门店诊断报表
+ ///
///
- [Description("门店诊断报表")]
+ [Description("")]
ShopDiagnoseDataExport = 1,
-
- ///
- /// 门店诊断总报表--单店运营核心指标
- ///
- [Description("门店诊断总报表--单店运营核心指标")]
- SingleShopOperateSummaryExport = 2,
-
- ///
- /// 门店诊断总报表--产品品项分析列表
- ///
- [Description("门店诊断总报表--产品品项分析列表")]
- ProductItemAnalysisSummaryExport = 3,
-
- ///
- /// 会员统计--会员查询
- ///
- [Description("会员统计--会员查询")]
- MemberAssetInquiryExport = 4,
-
- ///
- /// 会员余额变动明细
- ///
- [Description("会员余额变动明细")]
- MemberAccountBookLogExport = 5,
-
- ///
- /// 会员消费明细
- ///
- [Description("会员消费明细")]
- MemberOrderExport = 6,
-
- ///
- /// 会员服务明细
- ///
- [Description("会员服务明细")]
- MemberServiceOrderExport = 7,
-
- ///
- /// 初始化会员余额变动明细
- ///
- [Description("初始化会员余额变动明细")]
- OldMemberAccountBookLogExport = 8,
-
- ///
- /// 收款排名报表
- ///
- [Description("收款排名报表")]
- CollectionRankReportExport = 9,
-
- ///
- /// 收款总报表
- ///
- [Description("收款总报表")]
- CollectionTotalReportExport = 10,
-
- ///
- /// 店铺日业绩报表导出
- ///
- [Description("店铺日业绩报表导出")]
- ShopDaysPerformanceReportExport = 11,
-
- ///
- /// 店铺月业绩报表导出
- ///
- [Description("店铺月业绩报表导出")]
- ShopMonthsPerformanceReportExport = 12,
-
- ///
- /// 店铺运营业绩报表导出
- ///
- [Description("店铺运营业绩报表导出")]
- ShopOperationDataReportExport = 13,
-
- ///
- /// 均店报表导出
- ///
- [Description("均店报表导出")]
- ShopAvgReportExport = 14,
-
- ///
- /// 零售业绩报表
- ///
- [Description("零售业绩报表")]
- SalesNOMemberAmountReportExport = 15,
-
- ///
- /// 门店经营月度报表
- ///
- [Description("门店经营月度报表")]
- RpShopJingYingYueBaoExport = 16,
-
- ///
- /// 个人产品销售计划进度报表
- ///
- [Description("个人产品销售计划进度报表")]
- PersonalProductReportExport = 17,
-
- ///
- /// 个人新客销售计划进度报表
- ///
- [Description("个人新客销售计划进度报表")]
- PersonalNewMemberReportExport = 18,
-
- ///
- /// 个人老客复购邀约计划进度报表
- ///
- [Description("个人老客复购邀约计划进度报表")]
- PersonalOldMemberReportExport =19,
-
- ///
- /// 产品销售计划进度报表
- ///
- [Description("产品销售计划进度报表")]
- BdAdminProductSalesPlanExport = 20,
-
- ///
- /// 新客销售计划店铺明细报表
- ///
- [Description("新客销售计划店铺明细报表")]
- NewMemberReportDetailsExport = 22,
-
- ///
- /// 新客销售计划进度报表
- ///
- [Description("新客销售计划进度报表")]
- NewMemberReportExport = 23,
-
- ///
- /// 新客销售计划店铺明细报表
- ///
- [Description("新客销售计划店铺明细报表")]
- NewMemberReportDetailsExpor = 24,
-
- ///
- /// 新客销售计划全部店铺明细报表
- ///
- [Description("新客销售计划全部店铺明细报表")]
- NewMemberALLDetailsExport = 25,
-
- ///
- /// 老客复购邀约计划进度报表
- ///
- [Description("老客复购邀约计划进度报表")]
- OldMemberReportExport = 26,
-
- ///
- /// 老客复购邀约计划店铺明细报表
- ///
- [Description("老客复购邀约计划店铺明细报表")]
- OldMemberReportDetailsExport = 27,
-
- ///
- /// 老客复购邀约计划全部店铺明细报表
- ///
- [Description("老客复购邀约计划全部店铺明细报表")]
- OldMemberALLDetailsExport = 28,
-
- ///
- /// 单店单月的产品销售计划进度详情
- ///
- [Description("单店单月的产品销售计划进度详情")]
- BdSingleShopPerMonthProductSalesPlanDetailExport = 29,
-
-
- ///
- /// 多个店铺多个月份的产品销售计划进度详情
- ///
- [Description("多个店铺多个月份的产品销售计划进度详情")]
- BdShopMonthProductSalesPlanDetailExport = 30,
-
- ///
- /// 门店诊断环比
- ///
- [Description("门店诊断环比")]
- ShopDiagnosisMonthOnMonthComparisonExport = 31,
-
- ///
- /// 门店诊断去年同比
- ///
- [Description("门店诊断去年同比")]
- ShopDiagnosisYearOnYearComparisonExport = 32,
-
- ///
- /// 销售订单属性分析
- ///
- [Description("销售订单属性分析")]
- SalesOrderAttributeAnalysisExport = 33,
-
- ///
- /// 区域看板报表
- ///
- [Description("区域看板报表")]
- GetRptQuYuKanBanForAMingExport = 34,
-
- ///
- /// 样板店新客业绩日报
- ///
- [Description("样板店新客业绩日报")]
- GetYangBanBianXinKeDataExport = 35,
-
- ///
- /// 样板店老客业绩日报
- ///
- [Description("样板店老客业绩日报")]
- GetYangBanBianLaoKeDataExport = 36,
-
- ///
- /// 样板店新客业绩月报
- ///
- [Description("样板店新客业绩月报")]
- GetYangBanBianXinKeMonthDataExport = 37,
-
- ///
- /// 样板店老客业绩月报
- ///
- [Description("样板店老客业绩月报")]
- GetYangBanBianLaoKeMonthDataExport = 38,
-
- ///
- /// 会员价值报表
- ///
- [Description("会员价值报表")]
- MemberValueReportExport = 39,
-
- ///
- /// 拓客卡体验管控表
- ///
- [Description("拓客卡体验管控表")]
- TuoKeTiYanGuanKongReportExport =40,
-
- ///
- /// 拓客质量转化表
- ///
- [Description("拓客质量转化表")]
- RiFuWuTuiJinReportExport =41,
-
- ///
- /// 留客转化日报表
- ///
- [Description("留客转化日报表")]
- LiuKeZhuanHuanReportExport =42,
-
- ///
- /// 留客升客管控表
- ///
- [Description("留客升客管控表")]
- LiuKeShenKeGuanKongReportExport =43,
-
-
- ///
- /// 邀约及到店报表
- ///
- [Description("邀约及到店报表")]
- YaoYueDaoDianReportExport = 44,
-
- ///
- /// 店铺转化漏斗数据表
- ///
- [Description("店铺转化漏斗数据表")]
- ShopConversionFunnelReportExport = 45,
-
- ///
- /// 店员-样板店拓留锁升数据统计日报表
- ///
- [Description("店员-样板店拓留锁升数据统计日报表")]
- TuoLiuSuoShengDataReportExport = 46,
-
- ///
- /// 服务质量转化表
- ///
- [Description("服务质量转化表")]
- RiFuWuZhuanHuaReportExport = 47,
- ///
- /// 店铺-样板店拓留锁升数据统计日报表
- ///
- [Description("店铺-样板店拓留锁升数据统计日报表")]
- ShopTuoLiuSuoShengDataReportExport = 48,
-
- ///
- /// 样板店打造--数据监测
- ///
- [Description("样板店打造--数据监测")]
- YangBanDianJianCeExport = 49,
+
}
}
diff --git a/Reportapi/MyCode.Project.Infrastructure/Enumeration/SalesSheetItemType.cs b/Reportapi/MyCode.Project.Infrastructure/Enumeration/SalesSheetItemType.cs
deleted file mode 100644
index 4f37d9e..0000000
--- a/Reportapi/MyCode.Project.Infrastructure/Enumeration/SalesSheetItemType.cs
+++ /dev/null
@@ -1,44 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.ComponentModel;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Infrastructure.Enumeration
-{
- ///
- /// 销售订单项目类型
- ///
- public enum SalesSheetItemType
- {
- ///
- /// 商品
- ///
- [Description("商品")]
- Goods = 0,
-
- ///
- /// 服务
- ///
- [Description("服务")]
- Service = 1,
-
- ///
- /// 套餐
- ///
- [Description("套餐")]
- ServiceSet = 2,
- ///
- /// 卡券
- ///
- [Description("卡券")]
- ServiceCard = 3,
-
- ///
- /// 自定义套餐
- ///
- [Description("自定义套餐")]
- ServiceCustom = 4,
- }
-}
diff --git a/Reportapi/MyCode.Project.Infrastructure/Enumeration/ShopKindType.cs b/Reportapi/MyCode.Project.Infrastructure/Enumeration/ShopKindType.cs
deleted file mode 100644
index 236fcc2..0000000
--- a/Reportapi/MyCode.Project.Infrastructure/Enumeration/ShopKindType.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.ComponentModel;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Infrastructure.Enumeration
-{
- public enum ShopKindType
- {
- ///
- /// 直营
- ///
- [Description("直营")]
- DirectSale = 1,
-
- ///
- /// 联营
- ///
- [Description("联营")]
- JointSale = 2,
-
- ///
- /// 加盟
- ///
- [Description("加盟")]
- FranchiseSale = 3,
-
- ///
- /// 员工内购
- ///
- [Description("员工内购")]
- Employee = 4
- }
-}
diff --git a/Reportapi/MyCode.Project.Infrastructure/MyCode.Project.Infrastructure.csproj b/Reportapi/MyCode.Project.Infrastructure/MyCode.Project.Infrastructure.csproj
index 836f726..4282fc8 100644
--- a/Reportapi/MyCode.Project.Infrastructure/MyCode.Project.Infrastructure.csproj
+++ b/Reportapi/MyCode.Project.Infrastructure/MyCode.Project.Infrastructure.csproj
@@ -231,28 +231,15 @@
-
-
-
-
-
-
-
-
-
+
+
-
-
-
-
-
-
diff --git a/Reportapi/MyCode.Project.OutSideService/IBfyService.cs b/Reportapi/MyCode.Project.OutSideService/IBfyService.cs
index 6f28e6d..c47d392 100644
--- a/Reportapi/MyCode.Project.OutSideService/IBfyService.cs
+++ b/Reportapi/MyCode.Project.OutSideService/IBfyService.cs
@@ -1,14 +1,4 @@
-using MyCode.Project.Domain.Message.Request.AMing;
-using MyCode.Project.Domain.Message.Request.Bfy;
-using MyCode.Project.Domain.Message.Response.AMing;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-
-namespace MyCode.Project.OutSideService
+namespace MyCode.Project.OutSideService
{
public interface IBfyService
{
diff --git a/Reportapi/MyCode.Project.OutSideService/Implementation/BfyService.cs b/Reportapi/MyCode.Project.OutSideService/Implementation/BfyService.cs
index 827f9fc..19a6576 100644
--- a/Reportapi/MyCode.Project.OutSideService/Implementation/BfyService.cs
+++ b/Reportapi/MyCode.Project.OutSideService/Implementation/BfyService.cs
@@ -1,22 +1,4 @@
-using MyCode.Project.Domain.Config;
-using MyCode.Project.Domain.Message.Act.Report2301;
-using MyCode.Project.Domain.Message.Request.AMing;
-using MyCode.Project.Domain.Message.Request.Bfy;
-using MyCode.Project.Domain.Message.Response.AMing;
-using MyCode.Project.Domain.Message.Response.Bfy;
-using MyCode.Project.Infrastructure.Cache;
-using MyCode.Project.Infrastructure.Common;
-using MyCode.Project.Infrastructure.Constant;
-using MyCode.Project.Infrastructure.Exceptions;
-using MyCode.Project.Infrastructure.Extensions;
-using MyCode.Project.Infrastructure.WebPost;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.OutSideService.Implementation
+namespace MyCode.Project.OutSideService.Implementation
{
public class BfyService : IBfyService
{
diff --git a/Reportapi/MyCode.Project.Repositories/Lxm/LxmReportRepository.cs b/Reportapi/MyCode.Project.Repositories/Lxm/LxmReportRepository.cs
index e6ddb2c..0dbde44 100644
--- a/Reportapi/MyCode.Project.Repositories/Lxm/LxmReportRepository.cs
+++ b/Reportapi/MyCode.Project.Repositories/Lxm/LxmReportRepository.cs
@@ -1,24 +1,4 @@
using MyCode.Project.Repositories.Common;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using MyCode.Project.Domain.Message;
-using MyCode.Project.Domain.Model;
-using MyCode.Project.Domain.Repositories;
-using MyCode.Project.Infrastructure.Common;
-using MyCode.Project.Infrastructure.Search;
-using MyCode.Project.Domain.Message.Response.User;
-using MyCode.Project.Domain.Message.Response.LxmZHMDReport;
-using MyCode.Project.Domain.Message.Request.LxmZHMDReport;
-using SqlSugar;
-using MyCode.Project.Domain.Message.Response.Common;
-using MyCode.Project.Infrastructure.Extensions;
-using System.Data;
-using MyCode.Project.Infrastructure;
-using MyCode.Project.Domain.Message.Response.Label;
-using MyCode.Project.Infrastructure.Enumeration;
namespace MyCode.Project.Repositories
{
diff --git a/Reportapi/MyCode.Project.ScheduleTask/Jobs/AnsyLxmBaseDataJob.cs b/Reportapi/MyCode.Project.ScheduleTask/Jobs/AnsyLxmBaseDataJob.cs
deleted file mode 100644
index e922e8b..0000000
--- a/Reportapi/MyCode.Project.ScheduleTask/Jobs/AnsyLxmBaseDataJob.cs
+++ /dev/null
@@ -1,28 +0,0 @@
-using MyCode.Project.Services.Implementation;
-using Quartz;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.ScheduleTask.Jobs
-{
- [DisallowConcurrentExecution]
- public class AnsyLxmBaseDataJob:IJob
- {
- private readonly ILxmInfraDataService _lxmInfraDataService;
-
- public AnsyLxmBaseDataJob(ILxmInfraDataService lxmInfraDataService)
- {
- _lxmInfraDataService = lxmInfraDataService;
- }
-
-
- public void Execute(IJobExecutionContext context)
- {
- //同步店铺数据
- _lxmInfraDataService.AnsyShop();
- }
- }
-}
diff --git a/Reportapi/MyCode.Project.ScheduleTask/Jobs/AnsyLxmDataJob.cs b/Reportapi/MyCode.Project.ScheduleTask/Jobs/AnsyLxmDataJob.cs
deleted file mode 100644
index 8f3e425..0000000
--- a/Reportapi/MyCode.Project.ScheduleTask/Jobs/AnsyLxmDataJob.cs
+++ /dev/null
@@ -1,29 +0,0 @@
-using MyCode.Project.Services;
-using MyCode.Project.Services.Implementation;
-using Quartz;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.ScheduleTask.Jobs
-{
- [DisallowConcurrentExecution]
- public class AnsyLxmDataJob : IJob
- {
-
- private readonly ILxmInfraDataService _lxmInfraDataService;
-
- public AnsyLxmDataJob(ILxmInfraDataService lxmInfraDataService)
- {
- _lxmInfraDataService = lxmInfraDataService;
- }
-
-
- public void Execute(IJobExecutionContext context)
- {
- _lxmInfraDataService.AnsyLxmDataIntoMyql();
- }
- }
-}
diff --git a/Reportapi/MyCode.Project.ScheduleTask/Jobs/AnsyLxmHasGiftJob.cs b/Reportapi/MyCode.Project.ScheduleTask/Jobs/AnsyLxmHasGiftJob.cs
deleted file mode 100644
index d03e2fb..0000000
--- a/Reportapi/MyCode.Project.ScheduleTask/Jobs/AnsyLxmHasGiftJob.cs
+++ /dev/null
@@ -1,29 +0,0 @@
-using MyCode.Project.Services;
-using MyCode.Project.Services.Implementation;
-using Quartz;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.ScheduleTask.Jobs
-{
- [DisallowConcurrentExecution]
- public class AnsyLxmHasGiftJob : IJob
- {
-
- private readonly ILxmInfraDataService _lxmInfraDataService;
-
- public AnsyLxmHasGiftJob(ILxmInfraDataService lxmInfraDataService)
- {
- _lxmInfraDataService = lxmInfraDataService;
- }
-
-
- public void Execute(IJobExecutionContext context)
- {
- _lxmInfraDataService.BuChongOrderHasGift();
- }
- }
-}
diff --git a/Reportapi/MyCode.Project.ScheduleTask/Jobs/AnsyLxmServiceOrderJob.cs b/Reportapi/MyCode.Project.ScheduleTask/Jobs/AnsyLxmServiceOrderJob.cs
deleted file mode 100644
index ce37e97..0000000
--- a/Reportapi/MyCode.Project.ScheduleTask/Jobs/AnsyLxmServiceOrderJob.cs
+++ /dev/null
@@ -1,29 +0,0 @@
-using MyCode.Project.Services;
-using MyCode.Project.Services.Implementation;
-using Quartz;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.ScheduleTask.Jobs
-{
- [DisallowConcurrentExecution]
- public class AnsyLxmServiceOrderJob : IJob
- {
-
- private readonly ILxmInfraDataService _lxmInfraDataService;
-
- public AnsyLxmServiceOrderJob(ILxmInfraDataService lxmInfraDataService)
- {
- _lxmInfraDataService = lxmInfraDataService;
- }
-
-
- public void Execute(IJobExecutionContext context)
- {
- _lxmInfraDataService.SyncServiceOrder();
- }
- }
-}
diff --git a/Reportapi/MyCode.Project.ScheduleTask/Jobs/AnsyLxmUseDaysJob.cs b/Reportapi/MyCode.Project.ScheduleTask/Jobs/AnsyLxmUseDaysJob.cs
deleted file mode 100644
index 5a8f55f..0000000
--- a/Reportapi/MyCode.Project.ScheduleTask/Jobs/AnsyLxmUseDaysJob.cs
+++ /dev/null
@@ -1,29 +0,0 @@
-using MyCode.Project.Services;
-using MyCode.Project.Services.Implementation;
-using Quartz;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.ScheduleTask.Jobs
-{
- [DisallowConcurrentExecution]
- public class AnsyLxmUseDaysJob : IJob
- {
-
- private readonly ILxmInfraDataService _lxmInfraDataService;
-
- public AnsyLxmUseDaysJob(ILxmInfraDataService lxmInfraDataService)
- {
- _lxmInfraDataService = lxmInfraDataService;
- }
-
-
- public void Execute(IJobExecutionContext context)
- {
- _lxmInfraDataService.AnsyLxmUseDaysIntoMySql();
- }
- }
-}
diff --git a/Reportapi/MyCode.Project.Services/BLL/BaoDianBLL.cs b/Reportapi/MyCode.Project.Services/BLL/BaoDianBLL.cs
deleted file mode 100644
index 3645805..0000000
--- a/Reportapi/MyCode.Project.Services/BLL/BaoDianBLL.cs
+++ /dev/null
@@ -1,83 +0,0 @@
-using MyCode.Project.Domain.Message.Act.BaoDian;
-using MyCode.Project.Infrastructure.Exceptions;
-using MyCode.Project.Domain.Model;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using SqlSugar;
-using MyCode.Project.Domain.Repositories;
-
-namespace MyCode.Project.Services.BLL
-{
- public class BaoDianBLL
- {
- #region 初始化
- private readonly IRepository _repository;
- public BaoDianBLL(IRepository repository)
- {
- _repository = repository;
- }
- #endregion
-
- #region CheckSaveProductSalesSchedules 判断产品销售计划的保存
- ///
- /// 判断产品销售计划的保存
- ///
- ///
- public void CheckSaveProductSalesSchedules(ProductSalesScheduleAct act)
- {
- if (string.IsNullOrWhiteSpace(act.PackageName)) { throw new BaseException("套餐名称不能为空"); }
- if (act.EffectType == 0) { throw new BaseException("请选择功效"); }
- if (act.PackageType == 0) { throw new BaseException("请选择所属类型"); }
- if ((act.SkuList == null || act.SkuList.Count == 0) && (act.ServiceList == null || act.ServiceList.Count == 0)) { throw new BaseException("至少选择一个商品或服务"); }
- act.SkuList.ForEach(x => {
- if (x.Qty <= 0) { throw new BaseException($"{x.Name}的数量不能少于等于0"); }
- });
- }
- #endregion
-
- #region CheckSaveNewMemberSalesSchedule 判断新客销售计划的保存
- ///
- /// 判断新客销售计划的保存
- ///
- ///
- public void CheckSaveNewMemberSalesSchedule(NewMemberSalesScheduleAct act)
- {
- if (string.IsNullOrWhiteSpace(act.PackageName)) { throw new BaseException("套餐名称不能为空"); }
- if ((act.SkuList == null || act.SkuList.Count == 0)&&(act.ServiceList==null||act.ServiceList.Count==0)) { throw new BaseException("至少选择一个商品或服务"); }
- }
- #endregion
-
- #region GetProductCode 获取产品计划套餐编码
- ///
- /// 获取产品计划套餐编码
- ///
- ///
- public string GetProductCode()
- {
- var code = _repository.Queryable().OrderBy(p => p.CreateTime, OrderByType.Desc).Select(p => p.Code).First();
- //新店铺编码+1
- if (!string.IsNullOrWhiteSpace(code)) { int codeNum = Convert.ToInt32(code.Replace('C', ' ').Replace('P', ' ')); code = $"CP{codeNum + 1}"; }
- if (string.IsNullOrWhiteSpace(code)) { code = $"CP10001"; }
- return code;
- }
- #endregion
-
- #region GetNewMemberCode 获取新客计划套餐编码
- ///
- /// 获取新客计划套餐编码
- ///
- ///
- public string GetNewMemberCode()
- {
- var code = _repository.Queryable().OrderBy(p => p.CreateTime, OrderByType.Desc).Select(p => p.Code).First();
- //新店铺编码+1
- if (!string.IsNullOrWhiteSpace(code)) { int codeNum = Convert.ToInt32(code.Replace('X', ' ').Replace('K', ' ')); code = $"XK{codeNum + 1}"; }
- if (string.IsNullOrWhiteSpace(code)) { code = $"XK10001"; }
- return code;
- }
- #endregion
- }
-}
diff --git a/Reportapi/MyCode.Project.Services/BLL/CardBLL.cs b/Reportapi/MyCode.Project.Services/BLL/CardBLL.cs
deleted file mode 100644
index 64d802e..0000000
--- a/Reportapi/MyCode.Project.Services/BLL/CardBLL.cs
+++ /dev/null
@@ -1,64 +0,0 @@
-using MyCode.Project.Domain.Message.Response.Lxm;
-using MyCode.Project.Infrastructure.Common;
-using MyCode.Project.Repositories.Lxm;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Services.BLL
-{
- ///
- /// 卡券
- ///
- public class CardBLL
- {
- #region 初始化
- private readonly LxmInfraRepository _lxmInfraRepository;
- public CardBLL(LxmInfraRepository lxmInfraRepository)
- {
- _lxmInfraRepository = lxmInfraRepository;
- }
- #endregion
-
- #region GetLxmServiceResp(得到流行美服务)
- ///
- /// 得到服务的明细
- ///
- ///
- ///
- private LxmCardResp GetLxmCardResp(Guid cardId)
- {
- var cardInfo = _lxmInfraRepository.GetCard(cardId);
-
- if (cardInfo == null)
- {
- return new LxmCardResp()
- {
- Name = "卡券"
- };
- }
-
- return new LxmCardResp() { Name = cardInfo.Name };
- }
- #endregion
-
- #region GetCacheLxmCardResp(得到缓存的卡券信息)
- ///
- /// 得到缓存的卡券信息
- ///
- ///
- ///
- public LxmCardResp GetCacheLxmCardResp(Guid cardId)
- {
- return CacheHelper.GetCacheValue(
-
- $"GetLxmCardResp-{cardId}",
- () => { return GetLxmCardResp(cardId); },
- 3600
- );
- }
- #endregion
- }
-}
diff --git a/Reportapi/MyCode.Project.Services/BLL/CustomPackageBLL.cs b/Reportapi/MyCode.Project.Services/BLL/CustomPackageBLL.cs
deleted file mode 100644
index 266f725..0000000
--- a/Reportapi/MyCode.Project.Services/BLL/CustomPackageBLL.cs
+++ /dev/null
@@ -1,59 +0,0 @@
-using MyCode.Project.Domain.Message.Response.Lxm;
-using MyCode.Project.Infrastructure.Common;
-using MyCode.Project.Repositories.Lxm;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Services.BLL
-{
- public class CustomPackageBLL
- {
- private readonly LxmInfraRepository _lxmInfraRepository;
- public CustomPackageBLL(LxmInfraRepository lxmInfraRepository)
- {
- _lxmInfraRepository = lxmInfraRepository;
- }
-
- #region GetLxmCustomPackageResp(得到流行美自定义套餐明细)
- ///
- /// 得到商品的明细
- ///
- ///
- ///
- private LxmCustomPackageResp GetLxmCustomPackageResp(Guid skuId)
- {
- var customPackage = _lxmInfraRepository.GetCustomPackage(skuId);
-
- if (customPackage == null)
- {
- return new LxmCustomPackageResp()
- {
- Name = "自定义套餐"
- };
- }
-
- return new LxmCustomPackageResp() { Name = customPackage.Name };
- }
- #endregion
-
- #region GetCacheLxmCustomPackageResp(得到缓存的自定义套餐信息)
- ///
- /// 得到缓存的自定义套餐信息
- ///
- ///
- ///
- public LxmCustomPackageResp GetCacheLxmCustomPackageResp(Guid packageId)
- {
- return CacheHelper.GetCacheValue(
-
- $"GetLxmCustomPackageResp-{packageId}",
- () => { return GetLxmCustomPackageResp(packageId); },
- 3600
- );
- }
- #endregion
- }
-}
diff --git a/Reportapi/MyCode.Project.Services/BLL/GoodsBLL.cs b/Reportapi/MyCode.Project.Services/BLL/GoodsBLL.cs
deleted file mode 100644
index 432eac0..0000000
--- a/Reportapi/MyCode.Project.Services/BLL/GoodsBLL.cs
+++ /dev/null
@@ -1,59 +0,0 @@
-using MyCode.Project.Domain.Message.Response.Lxm;
-using MyCode.Project.Infrastructure.Common;
-using MyCode.Project.Repositories.Lxm;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Services.BLL
-{
- public class GoodsBLL
- {
- private readonly LxmInfraRepository _lxmInfraRepository;
- public GoodsBLL(LxmInfraRepository lxmInfraRepository)
- {
- _lxmInfraRepository = lxmInfraRepository;
- }
-
- #region GetLxmSimpleGoodsResp(得到商品的明细)
- ///
- /// 得到商品的明细
- ///
- ///
- ///
- private LxmSimpleGoodsResp GetLxmSimpleGoodsResp(Guid skuId)
- {
- var goodsInfo = _lxmInfraRepository.GetGoodsInfo(skuId);
-
- if (goodsInfo == null)
- {
- return new LxmSimpleGoodsResp()
- {
- Name = "商品"
- };
- }
-
- return new LxmSimpleGoodsResp() { Name = goodsInfo.Name, TopCategoryId = goodsInfo.TopCategoryId };
- }
- #endregion
-
- #region GetCacheLxmSimpleGoodsResp(得到缓存的SKU信息)
- ///
- /// 得到缓存的SKU信息
- ///
- ///
- ///
- public LxmSimpleGoodsResp GetCacheLxmSimpleGoodsResp(Guid skuId)
- {
- return CacheHelper.GetCacheValue(
-
- $"GetLxmSimpleGoodsResp-{skuId}",
- () => { return GetLxmSimpleGoodsResp(skuId); },
- 3600
- );
- }
- #endregion
- }
-}
diff --git a/Reportapi/MyCode.Project.Services/BLL/LabelBLL.cs b/Reportapi/MyCode.Project.Services/BLL/LabelBLL.cs
deleted file mode 100644
index 6362d50..0000000
--- a/Reportapi/MyCode.Project.Services/BLL/LabelBLL.cs
+++ /dev/null
@@ -1,51 +0,0 @@
-using MyCode.Project.Domain.Message.Request.Label;
-using MyCode.Project.Repositories;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Services.BLL
-{
- public class LabelBLL
- {
- private readonly LxmReportRepository _lxmReportRepository;
- public LabelBLL(LxmReportRepository lxmReportRepository)
- {
- _lxmReportRepository = lxmReportRepository;
- }
-
- #region GetShopIdByLabel 获取符合店铺标签条件的店铺Id列表
- ///
- /// 获取符合店铺标签条件的店铺Id列表
- ///
- ///
- ///
- public List GetShopIdByLabel(ShopLabelSearch req)
- {
- List result = new List();
- var shopIdByLabelList = _lxmReportRepository.GetShopIdByLabel(req.LabelIds);
- //没有店铺标签对应的店铺数据
- if (shopIdByLabelList == null || shopIdByLabelList.Count == 0) { return result; }
- if (req.SearchType == 1) { return shopIdByLabelList.Select(p => p.ShopId).ToList(); }
- if (req.SearchType == 2&& shopIdByLabelList.Exists(p => p.LabelTotal >= req.LabelIds.Count)) { return shopIdByLabelList.Where(p => p.LabelTotal >= req.LabelIds.Count).Select(p => p.ShopId).ToList(); }
- return result;
- }
- #endregion
-
- #region GetYangBanDianLabelShopIds 获取2024年样板店标签的店铺列表
- ///
- /// 获取2024年样板店标签的店铺列表
- ///
- ///
- ///
- public List GetYangBanDianLabelShopIds()
- {
-
- return _lxmReportRepository.GetYangBanDianLabelShopIds();
- }
- #endregion
-
- }
-}
diff --git a/Reportapi/MyCode.Project.Services/BLL/OrderBLL.cs b/Reportapi/MyCode.Project.Services/BLL/OrderBLL.cs
deleted file mode 100644
index de55ce9..0000000
--- a/Reportapi/MyCode.Project.Services/BLL/OrderBLL.cs
+++ /dev/null
@@ -1,282 +0,0 @@
-using MyCode.Project.Domain.Message.Response.Lxm;
-using MyCode.Project.Domain.Message.Response.LxmZHMDReport;
-using MyCode.Project.Domain.Model;
-using MyCode.Project.Domain.Repositories;
-using MyCode.Project.Domain.ZHMDModel;
-using MyCode.Project.Infrastructure.Enumeration;
-using MyCode.Project.Infrastructure.Exceptions;
-using MyCode.Project.Repositories.Common;
-using MyCode.Project.Repositories.Lxm;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Services.BLL
-{
- public class OrderBLL
- {
- private readonly LxmInfraRepository _lxmInfraRepository;
- private readonly LxmRepository _lxmRepository;
- private readonly IRepository _repository;
- private readonly GoodsBLL _goodsBLL;
- private readonly ServiceBLL _serviceBLL;
- private readonly CustomPackageBLL _customPackageBLL;
- private readonly CardBLL _cardBLL;
- private readonly ServicePackageBLL _servicePackageBLL;
-
- public OrderBLL(LxmInfraRepository lxmInfraRepository,
- IRepository repository,
- GoodsBLL goodsBLL,
- LxmRepository lxmRepository,
- ServiceBLL serviceBLL,
- CustomPackageBLL customPackageBLL,
- CardBLL cardBLL,
- ServicePackageBLL servicePackageBLL)
- {
- _lxmInfraRepository = lxmInfraRepository;
- _repository = repository;
- _goodsBLL = goodsBLL;
- _serviceBLL = serviceBLL;
- _lxmRepository = lxmRepository;
- _customPackageBLL = customPackageBLL;
- _cardBLL = cardBLL;
- _servicePackageBLL = servicePackageBLL;
- }
-
-
- #region GetAddFromType(根据店铺id和会员id得到来源)
- ///
- /// 根据店铺id和会员id得到来源
- ///
- ///
- ///
- ///
- public int GetAddFromType(string strShopId, string strMemberId)
- {
- if (string.IsNullOrWhiteSpace(strMemberId)) { return (int)OrderFromType.Other; }
-
- if (string.IsNullOrWhiteSpace(strShopId)) { throw new BaseException("GetAddFromType方法中strShopId不能为空"); }
-
- var guidShopId = Guid.Parse(strShopId);
- var guidMemberId = Guid.Parse(strMemberId);
-
- var memberConsultant = _lxmInfraRepository.Queryable().Where(p => p.ShopID == guidShopId && p.MemberID == guidMemberId).Select(p => new { p.AddFromType }).First();
-
- if (memberConsultant == null || memberConsultant.AddFromType == null) { return (int)OrderFromType.Other; }
-
- return (int)memberConsultant.AddFromType;
- }
- #endregion
-
- #region HandleOrder(处理单个订单)
- ///
- /// 处理单个订单
- ///
- ///
- public void HandleOrder(ChangeRecordResp record)
- {
- var strSheetId = record.SheetId.ToString();
-
- if (record.Flag != 100)
- {
- //_repository.DeleteQueue(p => p.Id == strSheetId);
- //_repository.DeleteQueue(p => p.SalesSheetId == strSheetId);
- return;
- }
-
-
- var sheet = ToLxmSheet(record);
-
- //补充单号
- var mssqlSheet = _lxmInfraRepository.GetSheet(record.SheetId);
-
- if (mssqlSheet == null) { throw new BaseException($"预售单sheetid={record.SheetId}在BusPresalesSheet中找不到数据"); }
-
- sheet.Sheet = mssqlSheet.Sheet;
-
- var items = ToLxmSheetItem(record.SheetId,mssqlSheet);
-
- _repository.AddQueue(sheet);
- _repository.AddQueue(items);
-
- }
- #endregion
-
- #region ToPreLxmSheetItem(转换层流行美的订单明细)
- ///
- /// 转换层流行美的订单明细
- ///
- ///
- ///
- private List ToLxmSheetItem(Guid sheetId,LxmSheetResp sheet)
- {
- var items = _lxmInfraRepository.GetSheetItems(sheetId);
-
- if (items == null || items.Count == 0) { throw new BaseException($"预售单SheetId={sheetId}找不到明细"); }
-
- var returnList = new List();
-
- foreach (var item in items)
- {
- var returnItem = new LxmSheetItem()
- {
- Id = item.Id.ToString(),
- NoBalanceUnitPrice = Math.Abs(item.NoBalanceUnitPrice),
- NoBalanceAmount = Math.Abs(item.NoBalanceUnitPrice) * Math.Abs(item.Qty),
- Qty = Math.Abs(item.Qty),
- SalesSheetId = sheetId.ToString(),
- Name = item.Name,
- ItemId = item.ItemId.ToString(),
- HasChildNode = 0,
- //这个要转成实际的,比如套餐的话
- ItemType = item.ItemType,
- InBlanceUnitPrice = Math.Abs(item.InBlanceUnitPrice),
- NoBalancePayUnitPrice = Math.Abs(item.NoBalanceUnitPrice)
- };
-
- returnItem.InBlanceAmount = returnItem.InBlanceUnitPrice * returnItem.Qty;
-
- //如果有预售单的id,则说明是预转销订单,这种订单实付支付为0,因为在预售单的时候就已经支付了
- if (sheet.PreSalesSheetId != null)
- {
- returnItem.NoBalancePayUnitPrice = 0;
- returnItem.NoBalancePayAmount = 0;
- }
- else
- {
- returnItem.NoBalancePayAmount = returnItem.NoBalancePayUnitPrice * returnItem.Qty;
- }
-
- if (item.Qty < 0)
- {
- returnItem.Direct = -1;
- }
- else
- {
- returnItem.Direct = 1;
- }
-
- UpdateOrderItem(returnItem);
-
- returnList.Add(returnItem);
- }
-
- return returnList;
- }
- #endregion
-
- #region UpdateOrderItem(更新明细)
- ///
- /// 更新明细
- ///
- ///
- private void UpdateOrderItem(LxmSheetItem item)
- {
- var gItemId = Guid.Parse(item.ItemId);
-
- //如果是商品,则拿到商品名称和顶级分类
- if (item.ItemType == (int)OrderItemType.Goods)
- {
- var goodsInfo = _goodsBLL.GetCacheLxmSimpleGoodsResp(gItemId);
- item.Name = goodsInfo.Name;
- item.TopCategoryId = goodsInfo.TopCategoryId.ToString();
- }
- else if (item.ItemType == (int)OrderItemType.Service)
- {
- var service = _serviceBLL.GetCacheLxmServiceResp(gItemId);
- item.Name = service.Name;
- }
- else if (item.ItemType == (int)OrderItemType.DiyPackage)
- {
- var diyPackage = _customPackageBLL.GetCacheLxmCustomPackageResp(gItemId);
- item.Name = diyPackage.Name;
-
- //这个版本的话先不处理,下个版本需要直接处理成40或者41,并且把明细拆分出来
- }
- else if (item.ItemType == (int)OrderItemType.CardCoupon)
- {
- var card = _cardBLL.GetCacheLxmCardResp(gItemId);
- item.Name = card.Name;
- }
- else if (item.ItemType == (int)OrderItemType.Package)
- {
- var servicePackage = _servicePackageBLL.GetCacheLxmServicePackage(gItemId);
- item.Name = servicePackage.Name;
- }
- else
- {
- throw new BaseException($"无法找到对应的数据,itemType={item.ItemType},sheetid={gItemId}");
- }
- }
- #endregion
-
- #region ToLxmSheet(转换为MYSQL订单主表的实体)
- ///
- /// 转换为MYSQL订单主表的实体
- ///
- ///
- private LxmSheet ToLxmSheet(ChangeRecordResp record)
- {
- var sheet = new LxmSheet();
-
- if (record.TotalAmount < 0)
- {
- sheet.Direct = -1;
- }
- else
- {
- sheet.Direct = 1;
- }
-
- sheet.Id = record.SheetId.ToString();
- sheet.ShopId = record.ShopId.ToString();
- sheet.Balance = Math.Abs(record.Balance);
- sheet.CreateTime = record.CreateTime;
- sheet.CustomerId = record.CustomerId?.ToString();
- sheet.CustomerName = record.CustomerName;
-
- if (Math.Abs(record.YuShouAmount) > 0)
- {
- sheet.TotalAmount = Math.Abs(record.YuShouAmount);
- sheet.NoBalancePayAmount = 0;
-
- //预转销订单
- sheet.IsPorderToSorder = 1;
- }
- else
- {
- sheet.TotalAmount = Math.Abs(record.TotalAmount);
- sheet.NoBalancePayAmount = Math.Abs(sheet.TotalAmount.Value - sheet.Balance.Value);
- }
-
- //add by florent 2023-10-30
- //首单
- sheet.IsFirstOrder = record.IsFirstOrder;
- sheet.IsNewMemberOrder = record.IsNewMemberOrder;
-
- if (record.MemberId != null)
- {
- sheet.MemberId = record.MemberId.ToString();
- sheet.MemberName = record.MemberName;
- sheet.MemberMobile = record.MemberMobile;
- }
-
- if (record.ClerkId != null)
- {
- sheet.OrderClerkId = record.ClerkId.ToString();
- sheet.OrderClerkName = record.ClerkName;
- sheet.OrderClerkMobile = record.ClerkMobile;
- }
- if (record.PlatformSource != null) { sheet.PlatformSource = record.PlatformSource; }
- if (record.IsRepurchase != null) { sheet.IsRepurchase = record.IsRepurchase; }
- sheet.Type = (int)LxmRecordType.SalesSheet;
- sheet.UpdateTime = DateTime.Now;
- sheet.EditTime = record.EditTime;
-
- return sheet;
- }
- #endregion
- }
-}
diff --git a/Reportapi/MyCode.Project.Services/BLL/PreOrderBLL.cs b/Reportapi/MyCode.Project.Services/BLL/PreOrderBLL.cs
deleted file mode 100644
index 710d647..0000000
--- a/Reportapi/MyCode.Project.Services/BLL/PreOrderBLL.cs
+++ /dev/null
@@ -1,168 +0,0 @@
-using MyCode.Project.Domain.Message.Response.Lxm;
-using MyCode.Project.Domain.Model;
-using MyCode.Project.Domain.Repositories;
-using MyCode.Project.Infrastructure.Enumeration;
-using MyCode.Project.Infrastructure.Exceptions;
-using MyCode.Project.Repositories.Lxm;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Services.BLL
-{
- public class PreOrderBLL
- {
- private readonly LxmInfraRepository _lxmInfraRepository;
- private readonly IRepository _repository;
-
- public PreOrderBLL(LxmInfraRepository lxmInfraRepository,
- IRepository repository)
- {
- _lxmInfraRepository = lxmInfraRepository;
- _repository = repository;
- }
-
- #region HandlePreOrder(处理单个的预售单)
- ///
- /// 处理单个的预售单
- ///
- public void HandlePreOrder(ChangeRecordResp record)
- {
- var strSheetId = record.SheetId.ToString();
-
- //因为有些数据是删除了
- if (record.Flag != 100)
- {
- return;
- }
-
- var sheet = ToPreLxmSheet(record);
-
- //补充单号
- var mssqlSheet = _lxmInfraRepository.GetPreSheet(record.SheetId);
-
- if (mssqlSheet == null) { throw new BaseException($"预售单sheetid={record.SheetId}在BusPresalesSheet中找不到数据"); }
-
- sheet.Sheet = mssqlSheet.Sheet;
-
- var items = ToPreLxmSheetItem(record.SheetId);
-
- _repository.AddQueue(sheet);
- _repository.AddQueue(items);
-
- }
- #endregion
-
- #region ToLxmSheet(转换为MYSQL订单主表的实体)
- ///
- /// 转换为MYSQL订单主表的实体
- ///
- ///
- private LxmSheet ToPreLxmSheet(ChangeRecordResp record)
- {
- var sheet = new LxmSheet();
-
- if (record.TotalAmount < 0)
- {
- sheet.Direct = -1;
- }
- else
- {
- sheet.Direct = 1;
- }
-
- sheet.Id = record.SheetId.ToString();
- sheet.ShopId = record.ShopId.ToString();
- sheet.Balance = Math.Abs(record.Balance);
- sheet.CreateTime = record.CreateTime;
- sheet.CustomerId = record.CustomerId?.ToString();
- sheet.CustomerName = record.CustomerName;
-
- sheet.TotalAmount = Math.Abs(record.TotalAmount);
-
- sheet.Type = (int)LxmRecordType.PreSalesSheet;
- sheet.EditTime = record.EditTime;
- sheet.UpdateTime = DateTime.Now;
-
- //add by florent 2023-10-30
- sheet.IsFirstOrder = record.IsFirstOrder;
- sheet.IsNewMemberOrder = record.IsNewMemberOrder;
-
- if (record.MemberId != null)
- {
- sheet.MemberId = record.MemberId.ToString();
- sheet.MemberName = record.MemberName;
- sheet.MemberMobile = record.MemberMobile;
- }
-
- if (record.ClerkId != null)
- {
- sheet.OrderClerkId = record.ClerkId.ToString();
- sheet.OrderClerkName = record.ClerkName;
- sheet.OrderClerkMobile = record.ClerkMobile;
- }
- if (record.PlatformSource != null) { sheet.PlatformSource = record.PlatformSource; }
- if (record.IsRepurchase != null) { sheet.IsRepurchase = record.IsRepurchase; }
- //预售的实际支付金额
- sheet.NoBalancePayAmount = Math.Abs(record.TotalAmount-record.Balance);
-
- return sheet;
- }
- #endregion
-
- #region ToPreLxmSheetItem(转换层流行美的订单明细)
- ///
- /// 转换层流行美的订单明细
- ///
- ///
- ///
- private List ToPreLxmSheetItem(Guid sheetId)
- {
- var items = _lxmInfraRepository.GetPreSheetItems(sheetId);
-
- if (items == null || items.Count == 0) { throw new BaseException($"预售单SheetId={sheetId}找不到明细"); }
-
- var returnList = new List();
-
- foreach (var item in items)
- {
- var returnItem = new LxmSheetItem()
- {
- Id = item.Id.ToString(),
- NoBalanceUnitPrice = Math.Abs(item.NoBalanceUnitPrice),
- NoBalanceAmount = Math.Abs(item.NoBalanceUnitPrice) * Math.Abs(item.Qty),
- Qty = Math.Abs(item.Qty),
- SalesSheetId = sheetId.ToString(),
- TopCategoryId = item.TopId.ToString(),
- Name = item.Name,
- ItemId = item.ItemId.ToString(),
- HasChildNode = 0,
- //预售单全部都是商品
- ItemType = (int)OrderItemType.Goods,
- InBlanceUnitPrice = Math.Abs(item.InBlanceUnitPrice)
- };
-
- returnItem.InBlanceAmount = returnItem.InBlanceUnitPrice * returnItem.Qty;
-
- returnItem.NoBalancePayAmount = returnItem.NoBalanceAmount;
- returnItem.NoBalancePayUnitPrice = returnItem.NoBalanceUnitPrice;
-
- if (item.Qty < 0)
- {
- returnItem.Direct = -1;
- }
- else
- {
- returnItem.Direct = 1;
- }
-
- returnList.Add(returnItem);
- }
-
- return returnList;
- }
- #endregion
- }
-}
diff --git a/Reportapi/MyCode.Project.Services/BLL/RechargeBLL.cs b/Reportapi/MyCode.Project.Services/BLL/RechargeBLL.cs
deleted file mode 100644
index 7b86bce..0000000
--- a/Reportapi/MyCode.Project.Services/BLL/RechargeBLL.cs
+++ /dev/null
@@ -1,92 +0,0 @@
-using MyCode.Project.Domain.Message.Response.Lxm;
-using MyCode.Project.Domain.Model;
-using MyCode.Project.Domain.Repositories;
-using MyCode.Project.Infrastructure.Exceptions;
-using MyCode.Project.Repositories.Lxm;
-using System;
-
-namespace MyCode.Project.Services.BLL
-{
- public class RechargeBLL
- {
- #region 初始化
- private readonly LxmInfraRepository _lxmInfraRepository;
- private readonly IRepository _repository;
- public RechargeBLL(LxmInfraRepository lxmInfraRepository,
- IRepository repository)
- {
- _lxmInfraRepository = lxmInfraRepository;
- _repository = repository;
- }
- #endregion
-
- #region HandleRecharge(处理充值)
- ///
- /// 处理充值
- ///
- ///
- public void HandleRecharge(ChangeRecordResp record)
- {
- var rechargeId = record.SheetId.ToString();
-
- if (record.Flag != 100)
- {
- //_repository.DeleteQueue(p => p.Id == rechargeId);
- return;
- }
-
- var rechargeModel = new LxmRecharge()
- {
- Id = record.SheetId.ToString(),
- Amount = Math.Abs(record.RechargeAmount),
- CustomerId = record.CustomerId?.ToString(),
- CustomerName = record.CustomerName,
- ShopId = record.ShopId.ToString(),
- CreateTime = record.CreateTime,
- UpdateTime = DateTime.Now,
- EditTime = record.EditTime,
-
-
- };
-
- //add by florent 2023-10-30
- rechargeModel.IsNewMemberOrder = record.IsNewMemberOrder;
- rechargeModel.OrderClerkId = record.ClerkId?.ToString();
-
- if (record.MemberId != null)
- {
- rechargeModel.MemberId = record.MemberId.ToString();
- rechargeModel.MemberName = record.MemberName;
- rechargeModel.MemberMobile = record.MemberMobile;
- }
-
- if (record.ClerkId != null)
- {
- rechargeModel.OrderClerkId = record.ClerkId.ToString();
- rechargeModel.OrderClerkName = record.ClerkName;
- rechargeModel.OrderClerkMobile = record.ClerkMobile;
- }
- if (record.PlatformSource != null) { rechargeModel.PlatformSource = record.PlatformSource; }
-
- var mssqlRecharge = _lxmInfraRepository.GetLxmRecharge(record.SheetId);
-
- if (mssqlRecharge == null) { throw new BaseException($"充值id={record.SheetId}在流行美MSSQL数据库BasMemberRecharge表中找不到数据"); }
-
- rechargeModel.Sheet = mssqlRecharge.Sheet;
-
- if (record.RechargeAmount < 0)
- {
- rechargeModel.Direct = -1;
- }
- else
- {
- rechargeModel.Direct = 1;
- }
-
- _repository.AddQueue(rechargeModel);
-
-
- }
- #endregion
- }
-}
diff --git a/Reportapi/MyCode.Project.Services/BLL/ReportBLL.cs b/Reportapi/MyCode.Project.Services/BLL/ReportBLL.cs
deleted file mode 100644
index 80fe32b..0000000
--- a/Reportapi/MyCode.Project.Services/BLL/ReportBLL.cs
+++ /dev/null
@@ -1,437 +0,0 @@
-using MyCode.Project.Domain.Config;
-using MyCode.Project.Domain.Message.Request.Bfy;
-using MyCode.Project.Domain.Message.Request.LxmZHMDReport;
-using MyCode.Project.Domain.Message.Response.LxmZHMDReport;
-using MyCode.Project.Domain.Model;
-using MyCode.Project.Infrastructure.Common;
-using MyCode.Project.Infrastructure.Extensions;
-using MyCode.Project.OutSideService;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Services.BLL
-{
- public class ReportBLL
- {
- #region 初始化
- private readonly IBfyService _bfyService;
-
-
- public ReportBLL(IBfyService bfyService)
- {
- _bfyService = bfyService;
- }
- #endregion
-
- #region GetSingleShopOperate 单店运营核心指标数据转换
- ///
- /// 单店运营核心指标数据转换
- ///
- ///
- ///
- public SingleShopOperateResp GetSingleShopOperate(RpShopZhenduansibiaoYejiData model)
- {
- SingleShopOperateResp resp = new SingleShopOperateResp();
- if (model == null) { return resp; }
- resp.TotalCollection = model.ZongShouKuan.SafeValue();
- resp.TotalPerformance = model.ZongYeJi.SafeValue();
- resp.OrnamentsPercent = model.ShiPinBiLi.SafeValue().ToString()+"%";
- resp.CosmeticsPercent = model.HuaZhuangPinBiLi.SafeValue().ToString() + "%";
- resp.SkinCarePercent = model.HuFuPinBiLi.SafeValue().ToString() + "%";
- resp.ServicePerformancePercent = model.FuWuYeJiBiLi.SafeValue().ToString() + "%";
- resp.OtherPerformancePercent = model.QiTaYeJiBiLi.SafeValue().ToString() + "%";
- resp.MonthExpandCustomerQty = model.YueTuoKeTiYan.SafeValue();
- resp.MonthNewCustomerFirstQty = model.YueXinKeShouDan.SafeValue();
- resp.MonthNewCustomerFirstQty2 = model.YueXinKeShouDan2.SafeValue();
- resp.MonthNewCustomerFirstQty3 = model.YueXinKeShouDan3.SafeValue();
- resp.FirstOrderAvg = model.ShouDanKeDan.SafeValue();
- resp.MonthUpgradeRepurchaseQty = model.YueShengDanRenShu.SafeValue();
- resp.MonthUpgradeRepurchaseQty2 = model.YueShengDanRenShu2.SafeValue();
- resp.MonthUpgradeRepurchaseQty3 = model.YueShengDanRenShu3.SafeValue();
- resp.RepurchaseOrderAvg = model.FuGouKeDan.SafeValue();
- resp.Total = model.TaoCanZongRenShu.SafeValue();
- resp.OneSets = model.TaoCan1taoRenShu.SafeValue();
- resp.TwoSets = model.TaoCan2taoRenShu.SafeValue();
- resp.MoreThanTwoSets = model.TaoCan3taoRenShu.SafeValue();
- resp.SetMealTotal = model.TaoCanZongShu.SafeValue();
- resp.NewAddSetMeal = model.TaoCanXinZengShu.SafeValue();
- resp.MoreThanTwiceMonth = model.TaoCanHuoYue1m2.SafeValue();
- resp.OnceMonth = model.TaoCanHuoYue1m1.SafeValue();
- resp.OnceInFebruary = model.TaoCanHuoYue2m1;
- resp.OnceInMarch = model.TaoCanHuoYue3m2;
- resp.Personal = model.HeXiaoRenShu.SafeValue();
- resp.Frequency = model.HeXiaoCiShu.SafeValue();
- return resp;
- }
- #endregion
-
- #region GetSingleShopOperateSummary 单店运营核心指标列表数据转换
- ///
- /// 单店运营核心指标列表数据转换
- ///
- ///
- ///
- ///
- public List GetSingleShopOperateSummary(List modelList,List searchList
- , List yangbangdianList, List tuoKeList)
- {
- List respList = new List();
- //searchList.ForEach(x => {
- // var model = modelList.Where(p => p.Id == x.Id).FirstOrDefault();
- // SingleShopOperateSummaryResp resp = new SingleShopOperateSummaryResp();
- // resp.Id = x.Id;
- // resp.ShopId = x.ShopId;
- // resp.DisplayTimeStr = x.DisplayTimeStr;
- // resp.UseDays = x.UseDays.SafeValue();
- // resp.Code = x.Code;
- // resp.ShopName = x.ShopName;
- // resp.CustomerName = x.CustomerName;
- // resp.ProvinceName = x.ProvinceName;
- // resp.CityName = x.CityName;
- // resp.ZoneName = x.ZoneName;
- // resp.TotalCollection = model.ZongShouKuan.SafeValue();
- // resp.TotalPerformance = model.ZongYeJi.SafeValue();
- // resp.OrnamentsPercent = model.ShiPinBiLi.SafeValue().ToString() + "%";
- // resp.CosmeticsPercent = model.HuaZhuangPinBiLi.SafeValue().ToString() + "%";
- // resp.SkinCarePercent = model.HuFuPinBiLi.SafeValue().ToString() + "%";
- // resp.ServicePerformancePercent = model.FuWuYeJiBiLi.SafeValue().ToString() + "%";
- // resp.OtherPerformancePercent = model.QiTaYeJiBiLi.SafeValue().ToString() + "%";
- // resp.MonthExpandCustomerQty = model.YueTuoKeTiYan.SafeValue();
- // resp.MonthNewCustomerFirstQty = model.YueXinKeShouDan.SafeValue();
- // resp.MonthNewCustomerFirstQty2 = model.YueXinKeShouDan2.SafeValue();
- // resp.MonthNewCustomerFirstQty3 = model.YueXinKeShouDan3.SafeValue();
- // resp.FirstOrderAvg = model.ShouDanKeDan.SafeValue();
- // resp.MonthUpgradeRepurchaseQty = model.YueShengDanRenShu.SafeValue();
- // resp.MonthUpgradeRepurchaseQty2 = model.YueShengDanRenShu2.SafeValue();
- // resp.MonthUpgradeRepurchaseQty3 = model.YueShengDanRenShu3.SafeValue();
- // resp.RepurchaseOrderAvg = model.FuGouKeDan.SafeValue();
- // resp.Total = model.TaoCanZongRenShu.SafeValue();
- // resp.OneSets = model.TaoCan1taoRenShu.SafeValue();
- // resp.TwoSets = model.TaoCan2taoRenShu.SafeValue();
- // resp.MoreThanTwoSets = model.TaoCan3taoRenShu.SafeValue();
- // resp.SetMealTotal = model.TaoCanZongShu.SafeValue();
- // resp.NewAddSetMeal = model.TaoCanXinZengShu.SafeValue();
- // resp.MoreThanTwiceMonth = model.TaoCanHuoYue1m2.SafeValue();
- // resp.OnceMonth = model.TaoCanHuoYue1m1.SafeValue();
- // resp.OnceInFebruary = model.TaoCanHuoYue2m1;
- // resp.OnceInMarch = model.TaoCanHuoYue3m2;
- // resp.Personal = model.HeXiaoRenShu.SafeValue();
- // resp.Frequency = model.HeXiaoCiShu.SafeValue();
- // respList.Add(resp);
- //});
- respList = (from x in searchList
- join model in modelList on x.Id equals model.Id
- join n in yangbangdianList.DefaultIfEmpty() on new { x.ShopId, x.Days } equals new { n?.ShopId, n?.Days } into ngroup
- from nitem in ngroup.DefaultIfEmpty()
- join k in tuoKeList.DefaultIfEmpty() on new { x.ShopId, x.Days } equals new { k?.ShopId, k?.Days } into kgroup
- from kItem in kgroup.DefaultIfEmpty()
- select new SingleShopOperateSummaryResp
- {
- Id = x.Id,
- ShopId = x.ShopId,
- DisplayTimeStr = x.DisplayTimeStr,
- UseDays = x.UseDays.SafeValue(),
- Code = x.Code,
- ShopName = x.ShopName,
- CustomerName = x.CustomerName,
- ProvinceName = x.ProvinceName,
- CityName = x.CityName,
- ZoneName = x.ZoneName,
- TotalCollection = model.ZongShouKuan.SafeValue(),
- TotalPerformance = model.ZongYeJi.SafeValue(),
- OrnamentsPercent = model.ShiPinBiLi.SafeValue().ToString() + "%",
- CosmeticsPercent = model.HuaZhuangPinBiLi.SafeValue().ToString() + "%",
- SkinCarePercent = model.HuFuPinBiLi.SafeValue().ToString() + "%",
- ServicePerformancePercent = model.FuWuYeJiBiLi.SafeValue().ToString() + "%",
- OtherPerformancePercent = model.QiTaYeJiBiLi.SafeValue().ToString() + "%",
- MonthExpandCustomerQty = model.YueTuoKeTiYan.SafeValue(),
- MonthNewCustomerFirstQty = model.YueXinKeShouDan.SafeValue(),
- MonthNewCustomerFirstQty2 = model.YueXinKeShouDan2.SafeValue(),
- MonthNewCustomerFirstQty3 = model.YueXinKeShouDan3.SafeValue(),
- FirstOrderAvg = model.ShouDanKeDan.SafeValue(),
- MonthUpgradeRepurchaseQty = model.YueShengDanRenShu.SafeValue(),
- MonthUpgradeRepurchaseQty2 = model.YueShengDanRenShu2.SafeValue(),
- MonthUpgradeRepurchaseQty3 = model.YueShengDanRenShu3.SafeValue(),
- RepurchaseOrderAvg = model.FuGouKeDan.SafeValue(),
- Total = model.TaoCanZongRenShu.SafeValue(),
- OneSets = model.TaoCan1taoRenShu.SafeValue(),
- TwoSets = model.TaoCan2taoRenShu.SafeValue(),
- MoreThanTwoSets = model.TaoCan3taoRenShu.SafeValue(),
- SetMealTotal = model.TaoCanZongShu.SafeValue(),
- NewAddSetMeal = model.TaoCanXinZengShu.SafeValue(),
- MoreThanTwiceMonth = model.TaoCanHuoYue1m2.SafeValue(),
- OnceMonth = model.TaoCanHuoYue1m1.SafeValue(),
- OnceInFebruary = model.TaoCanHuoYue2m1,
- OnceInMarch = model.TaoCanHuoYue3m2,
- Personal = model.HeXiaoRenShu.SafeValue(),
- Frequency = model.HeXiaoCiShu.SafeValue(),
- LaoKeYeJi = nitem?.LaoKeYeJi ?? 0,
- XinKeYeJi = nitem?.XinKeYeJi ?? 0,
- LaoKeZhanBi = nitem?.LaoKeZhanBi ?? "--%",
- XinKeZhanBi = nitem?.XinKeZhanBi ?? "--%",
- TuoKeRenShu = kItem?.TuoKeRenShu ?? 0,
- XinTuoKeRenShu = kItem?.XinTuoKeRenShu ?? 0,
- LaoTuoKeRenShu = kItem?.LaoTuoKeRenShu ?? 0,
- XinTuoKeZhanBi = kItem?.XinTuoKeZhanBi ?? "--%",
- LaoTuoKeZhanBi = kItem?.LaoTuoKeZhanBi ?? "--%",
-
- TiYanRenShu = kItem?.TiYanRenShu ?? 0,
- LiuKeRenShu = kItem?.LiuKeRenShu ?? 0,
- SuoKeRenShu = kItem?.SuoKeRenShu ?? 0,
- TuoLiuZhuanHuaLv = kItem?.TuoLiuZhuanHuaLv ?? "--%",
- }).ToList();
-
-
- return respList;
- }
- #endregion
-
- #region GetProductItemAnalysis 产品品项分析
- ///
- /// 产品品项分析数据转换
- ///
- ///
- ///
- public ProductItemAnalysisResp GetProductItemAnalysis(RpShopZhenduansibiaoKucunData model)
- {
- ProductItemAnalysisResp resp = new ProductItemAnalysisResp();
- if (model == null) { return resp; }
- resp.TotalStock = model.ZongKuCun.SafeValue();
- resp.ExpandCustomerSetsStock = model.TuoKeTaoShu.SafeValue();
- resp.FirstOrderSetsStock = model.ShouDanTaoShu.SafeValue();
- resp.OneDimensionSetsStock = model.YiWeiTaoShu.SafeValue();
- resp.TwoDimensionSetsStock = model.ErWeiTaoShu.SafeValue();
- resp.ThreeDimensionSetsStock = model.SanWeiTaoShu.SafeValue();
- resp.FourDimensionSetsStock = model.SiWeiTaoShu.SafeValue();
- resp.StackedSetsStock = model.DieJiaTaoShu.SafeValue();
- resp.OrnamentsStock = model.ShiPinKuCun.SafeValue();
- resp.CosmeticsStock = model.HuaZhuangPinKuCun.SafeValue();
- resp.HomeCareStock = model.JiaHuKuCun.SafeValue();
- resp.OtherStock = model.QiTaHuFuKuCun.SafeValue();
- resp.OneName = model.Top1Name;
- resp.OneQty = model.Top1Qty.SafeValue();
- resp.TwoName = model.Top2Name;
- resp.TwoQty = model.Top2Qty.SafeValue();
- resp.ThreeName = model.Top3Name;
- resp.ThreeQty = model.Top3Qty.SafeValue();
- resp.FourName = model.Top4Name;
- resp.FourQty = model.Top4Qty.SafeValue();
- resp.FiveName = model.Top5Name;
- resp.FiveQty = model.Top5Qty.SafeValue();
- resp.One = string.IsNullOrWhiteSpace(resp.OneName)? "" : (resp.OneName + ":" + resp.OneQty.ToString());
- resp.Two =string.IsNullOrWhiteSpace(resp.TwoName)? "" : (resp.TwoName + ":" + resp.TwoQty.ToString());
- resp.Three =string.IsNullOrWhiteSpace(resp.ThreeName)? "" : (resp.ThreeName + ":" + resp.ThreeQty.ToString());
- resp.Four = string.IsNullOrWhiteSpace(resp.FourName) ? "" : (resp.FourName + ":" + resp.FourQty.ToString());
- resp.Five =string.IsNullOrWhiteSpace(resp.FiveName)? "" : (resp.FiveName + ":" + resp.FiveQty.ToString());
- return resp;
- }
-
- public MonthProductItemAnalysisResp GetMonthProductItemAnalysis(RpShopZhenduansibiaoKucunData model)
- {
- MonthProductItemAnalysisResp resp = new MonthProductItemAnalysisResp();
- if (model == null) { return resp; }
- resp.TotalStock = model.ZongKuCun.SafeValue();
- resp.ExpandCustomerSetsStock = model.TuoKeTaoShu.SafeValue();
- resp.FirstOrderSetsStock = model.ShouDanTaoShu.SafeValue();
- resp.OneDimensionSetsStock = model.YiWeiTaoShu.SafeValue();
- resp.TwoDimensionSetsStock = model.ErWeiTaoShu.SafeValue();
- resp.ThreeDimensionSetsStock = model.SanWeiTaoShu.SafeValue();
- resp.FourDimensionSetsStock = model.SiWeiTaoShu.SafeValue();
- resp.StackedSetsStock = model.DieJiaTaoShu.SafeValue();
- resp.OrnamentsStock = model.ShiPinKuCun.SafeValue();
- resp.CosmeticsStock = model.HuaZhuangPinKuCun.SafeValue();
- resp.HomeCareStock = model.JiaHuKuCun.SafeValue();
- resp.OtherStock = model.QiTaHuFuKuCun.SafeValue();
- resp.OneName = model.Top1Name;
- resp.OneQty = model.Top1Qty.SafeValue();
- resp.TwoName = model.Top2Name;
- resp.TwoQty = model.Top2Qty.SafeValue();
- resp.ThreeName = model.Top3Name;
- resp.ThreeQty = model.Top3Qty.SafeValue();
- resp.FourName = model.Top4Name;
- resp.FourQty = model.Top4Qty.SafeValue();
- resp.FiveName = model.Top5Name;
- resp.FiveQty = model.Top5Qty.SafeValue();
- resp.One = resp.OneName + " " + resp.OneQty.ToString();
- resp.Two = resp.TwoName + " " + resp.TwoQty.ToString();
- resp.Three = resp.ThreeName + " " + resp.ThreeQty.ToString();
- resp.Four = resp.FourName + " " + resp.FourQty.ToString();
- resp.Five = resp.FiveName + " " + resp.FiveQty.ToString();
- return resp;
-
- }
- #endregion
-
- #region GetProductItemAnalysisSummary 产品品项分析列表数据转换
- ///
- /// 产品品项分析列表数据转换
- ///
- ///
- ///
- public List GetProductItemAnalysisSummary(List modelList, List searchList)
- {
- List respList = new List();
- searchList.ForEach(x =>
- {
- var model = modelList.Where(p => p.Id == x.Id).FirstOrDefault();
- ProductItemAnalysisSummaryResp resp = new ProductItemAnalysisSummaryResp();
- resp.Id = x.Id;
- resp.ShopId = x.ShopId;
- resp.DisplayTimeStr = x.DisplayTimeStr;
- resp.UseDays = x.UseDays.SafeValue();
- resp.Code = x.Code;
- resp.ShopName = x.ShopName;
- resp.CustomerName = x.CustomerName;
- resp.ProvinceName = x.ProvinceName;
- resp.CityName = x.CityName;
- resp.ZoneName = x.ZoneName;
- resp.TotalStock = model.ZongKuCun.SafeValue();
- resp.ExpandCustomerSetsStock = model.TuoKeTaoShu.SafeValue();
- resp.FirstOrderSetsStock = model.ShouDanTaoShu.SafeValue();
- resp.OneDimensionSetsStock = model.YiWeiTaoShu.SafeValue();
- resp.TwoDimensionSetsStock = model.ErWeiTaoShu.SafeValue();
- resp.ThreeDimensionSetsStock = model.SanWeiTaoShu.SafeValue();
- resp.FourDimensionSetsStock = model.SiWeiTaoShu.SafeValue();
- resp.StackedSetsStock = model.DieJiaTaoShu.SafeValue();
- resp.OrnamentsStock = model.ShiPinKuCun.SafeValue();
- resp.CosmeticsStock = model.HuaZhuangPinKuCun.SafeValue();
- resp.HomeCareStock = model.JiaHuKuCun.SafeValue();
- resp.OtherStock = model.QiTaHuFuKuCun.SafeValue();
- resp.OneName = model.Top1Name;
- resp.OneQty = model.Top1Qty.SafeValue();
- resp.TwoName = model.Top2Name;
- resp.TwoQty = model.Top2Qty.SafeValue();
- resp.ThreeName = model.Top3Name;
- resp.ThreeQty = model.Top3Qty.SafeValue();
- resp.FourName = model.Top4Name;
- resp.FourQty = model.Top4Qty.SafeValue();
- resp.FiveName = model.Top5Name;
- resp.FiveQty = model.Top5Qty.SafeValue();
- resp.One = string.IsNullOrWhiteSpace(resp.OneName) ? "" : (resp.OneName + ":" + resp.OneQty.ToString());
- resp.Two = string.IsNullOrWhiteSpace(resp.TwoName) ? "" : (resp.TwoName + ":" + resp.TwoQty.ToString());
- resp.Three = string.IsNullOrWhiteSpace(resp.ThreeName) ? "" : (resp.ThreeName + ":" + resp.ThreeQty.ToString());
- resp.Four = string.IsNullOrWhiteSpace(resp.FourName) ? "" : (resp.FourName + ":" + resp.FourQty.ToString());
- resp.Five = string.IsNullOrWhiteSpace(resp.FiveName) ? "" : (resp.FiveName + ":" + resp.FiveQty.ToString());
- respList.Add(resp);
- });
- return respList;
- }
- #endregion
-
- #region GetShopDiagnosisReportExport 门店诊断报表导出数据转换
- ///
- /// 门店诊断报表导出数据转换
- ///
- ///
- ///
- ///
- ///
- public ShopDiagnosisReportExportResp GetShopDiagnosisReportExport(ShopDiagnosisReportResp shop, RpShopZhenduansibiaoYejiData model, RpShopZhenduansibiaoKucunData model2)
- {
- ShopDiagnosisReportExportResp resp = new ShopDiagnosisReportExportResp();
- resp.Id = shop.Id;
- resp.DisplayTimeStr = shop.DisplayTimeStr;
- resp.DisplayTime = shop.DisplayTime;
- resp.ShopId = shop.ShopId;
- resp.Code = shop.Code;
- resp.ShopName = shop.ShopName;
- resp.CustomerName = shop.CustomerName;
- //单店运营核心指标
- if (model != null)
- {
- resp.TotalCollection = model.ZongShouKuan.SafeValue();
- resp.TotalPerformance = model.ZongYeJi.SafeValue();
- resp.OrnamentsPercent = model.ShiPinBiLi.SafeValue().ToString() + "%";
- resp.CosmeticsPercent = model.HuaZhuangPinBiLi.SafeValue().ToString() + "%";
- resp.SkinCarePercent = model.HuFuPinBiLi.SafeValue().ToString() + "%";
- resp.ServicePerformancePercent = model.FuWuYeJiBiLi.SafeValue().ToString() + "%";
- resp.OtherPerformancePercent = model.QiTaYeJiBiLi.SafeValue().ToString() + "%";
- resp.MonthExpandCustomerQty = model.YueTuoKeTiYan.SafeValue();
- resp.MonthNewCustomerFirstQty = model.YueXinKeShouDan.SafeValue();
- resp.MonthNewCustomerFirstQty2 = model.YueXinKeShouDan2.SafeValue();
- resp.MonthNewCustomerFirstQty3 = model.YueXinKeShouDan3.SafeValue();
- resp.FirstOrderAvg = model.ShouDanKeDan.SafeValue();
- resp.MonthUpgradeRepurchaseQty = model.YueShengDanRenShu.SafeValue();
- resp.MonthUpgradeRepurchaseQty2 = model.YueShengDanRenShu2.SafeValue();
- resp.MonthUpgradeRepurchaseQty3 = model.YueShengDanRenShu3.SafeValue();
- resp.RepurchaseOrderAvg = model.FuGouKeDan.SafeValue();
- resp.Total = model.TaoCanZongRenShu.SafeValue();
- resp.OneSets = model.TaoCan1taoRenShu.SafeValue();
- resp.TwoSets = model.TaoCan2taoRenShu.SafeValue();
- resp.MoreThanTwoSets = model.TaoCan3taoRenShu.SafeValue();
- resp.SetMealTotal = model.TaoCanZongShu.SafeValue();
- resp.NewAddSetMeal = model.TaoCanXinZengShu.SafeValue();
- resp.MoreThanTwiceMonth = model.TaoCanHuoYue1m2.SafeValue();
- resp.OnceMonth = model.TaoCanHuoYue1m1.SafeValue();
- resp.OnceInFebruary = model.TaoCanHuoYue2m1;
- resp.OnceInMarch = model.TaoCanHuoYue3m2;
- resp.Personal = model.HeXiaoRenShu.SafeValue();
- resp.Frequency = model.HeXiaoCiShu.SafeValue();
- }
- //产品品项分析
- if (model2 != null)
- {
- resp.TotalStock = model2.ZongKuCun.SafeValue();
- resp.ExpandCustomerSetsStock = model2.TuoKeTaoShu.SafeValue();
- resp.FirstOrderSetsStock = model2.ShouDanTaoShu.SafeValue();
- resp.OneDimensionSetsStock = model2.YiWeiTaoShu.SafeValue();
- resp.TwoDimensionSetsStock = model2.ErWeiTaoShu.SafeValue();
- resp.ThreeDimensionSetsStock = model2.SanWeiTaoShu.SafeValue();
- resp.FourDimensionSetsStock = model2.SiWeiTaoShu.SafeValue();
- resp.StackedSetsStock = model2.DieJiaTaoShu.SafeValue();
- resp.OrnamentsStock = model2.ShiPinKuCun.SafeValue();
- resp.CosmeticsStock = model2.HuaZhuangPinKuCun.SafeValue();
- resp.HomeCareStock = model2.JiaHuKuCun.SafeValue();
- resp.OtherStock = model2.QiTaHuFuKuCun.SafeValue();
- resp.OneName = model2.Top1Name;
- resp.OneQty = model2.Top1Qty.SafeValue();
- resp.TwoName = model2.Top2Name;
- resp.TwoQty = model2.Top2Qty.SafeValue();
- resp.ThreeName = model2.Top3Name;
- resp.ThreeQty = model2.Top3Qty.SafeValue();
- resp.FourName = model2.Top4Name;
- resp.FourQty = model2.Top4Qty.SafeValue();
- resp.FiveName = model2.Top5Name;
- resp.FiveQty = model2.Top5Qty.SafeValue();
- resp.One = string.IsNullOrWhiteSpace(resp.OneName) ? "" : (resp.OneName + ":" + resp.OneQty.ToString());
- resp.Two = string.IsNullOrWhiteSpace(resp.TwoName) ? "" : (resp.TwoName + ":" + resp.TwoQty.ToString());
- resp.Three = string.IsNullOrWhiteSpace(resp.ThreeName) ? "" : (resp.ThreeName + ":" + resp.ThreeQty.ToString());
- resp.Four = string.IsNullOrWhiteSpace(resp.FourName) ? "" : (resp.FourName + ":" + resp.FourQty.ToString());
- resp.Five = string.IsNullOrWhiteSpace(resp.FiveName) ? "" : (resp.FiveName + ":" + resp.FiveQty.ToString());
- }
- return resp;
- }
- #endregion
-
- #region GetPowerShopIds(得到当前账号可以看到的店铺列表)
- ///
- /// 得到当前账号可以看到的店铺列表,为null是没有权限,而返回[]则为全部权限
- ///
- ///
- public List GetPowerShopIds(Guid userId)
- {
- return CacheHelper.GetCacheValue>($"GetPowerShopIds{userId}",() => {
-
- //获取当前用户的店铺id列表
- var bfyReq = new ShopListByLoginIdReq() { Json = userId, LxmZHMDReportKey = SystemConfig.LxmZHMDReportKey };
-
- //用户可查看的店铺列表
- var powerIdList = _bfyService.GetShopListByLoginId(bfyReq,1);
-
- //没有权限,直接返回空数据
- if (powerIdList == null) { return null; }
-
- //店铺权限返回[]则为全部店铺权限
- if (powerIdList.Count == 0) { return new List(); }
-
- return powerIdList;
-
- },60);
-
- }
- #endregion
- }
-}
diff --git a/Reportapi/MyCode.Project.Services/BLL/ReportExport/BaseExport.cs b/Reportapi/MyCode.Project.Services/BLL/ReportExport/BaseExport.cs
index bfe7980..bb6cf64 100644
--- a/Reportapi/MyCode.Project.Services/BLL/ReportExport/BaseExport.cs
+++ b/Reportapi/MyCode.Project.Services/BLL/ReportExport/BaseExport.cs
@@ -3,7 +3,6 @@ using MiniExcelLibs.Attributes;
using MiniExcelLibs.OpenXml;
using MyCode.Project.Domain.Config;
using MyCode.Project.Domain.Message.Act.Common;
-using MyCode.Project.Domain.Message.Response.Common;
using MyCode.Project.Domain.Message.Response.LxmZHMDReport;
using MyCode.Project.Domain.Message.Response.User;
using MyCode.Project.Infrastructure;
@@ -18,10 +17,6 @@ using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
-using System.Reflection;
-using System.Text;
-using System.Threading.Tasks;
-using System.Web;
namespace MyCode.Project.Services.BLL.ReportExport
{
diff --git a/Reportapi/MyCode.Project.Services/BLL/ReportExport/BdAdminProductSalesPlanExport.cs b/Reportapi/MyCode.Project.Services/BLL/ReportExport/BdAdminProductSalesPlanExport.cs
deleted file mode 100644
index 8a87fd9..0000000
--- a/Reportapi/MyCode.Project.Services/BLL/ReportExport/BdAdminProductSalesPlanExport.cs
+++ /dev/null
@@ -1,38 +0,0 @@
-using MyCode.Project.Domain.Message.Request.BaoDian;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Services.BLL.ReportExport
-{
- public class BdAdminProductSalesPlanExport : BaseExport
- {
- #region 初始化
- private readonly IBaoDianService _baoDianService;
- public BdAdminProductSalesPlanExport(IBaoDianService baoDianService)
- {
- _baoDianService = baoDianService;
- }
- #endregion
- #region Execute(执行)
- public override string Execute()
- {
- var pageSearch = base.GetPageSearch(Condition);
-
- var opList = _baoDianService.GetBdAdminProductSalesPlan(pageSearch, this.CurrentUser);
-
- var dataResult = new
- {
- op = opList.DataList
- };
-
- base.AddExcelProcess("产品销售计划进度报表导出", dataResult);
-
- return base.Execute();
-
- }
- #endregion
- }
-}
diff --git a/Reportapi/MyCode.Project.Services/BLL/ReportExport/BdShopMonthProductSalesPlanDetailExport.cs b/Reportapi/MyCode.Project.Services/BLL/ReportExport/BdShopMonthProductSalesPlanDetailExport.cs
deleted file mode 100644
index e42652a..0000000
--- a/Reportapi/MyCode.Project.Services/BLL/ReportExport/BdShopMonthProductSalesPlanDetailExport.cs
+++ /dev/null
@@ -1,83 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using MyCode.Project.Domain.Message.Request.BaoDian;
-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.Infrastructure.Exceptions;
-using MyCode.Project.Services.Implementation;
-using MyCode.Project.Services.IServices;
-
-namespace MyCode.Project.Services.BLL.ReportExport
-{
- ///
- /// 产品销售计划进度所有明细的导出,模板导出的方式
- ///
- public class BdShopMonthProductSalesPlanDetailExport : BaseExport
- {
- #region 初始化
- private readonly IBaoDianService _baoDianService;
- public BdShopMonthProductSalesPlanDetailExport(IBaoDianService baoDianService)
- {
- _baoDianService = baoDianService;
- }
- #endregion
- #region Execute(执行)
- public override string Execute()
- {
- var pageSearch = base.GetPageSearch(Condition);
-
- var opList = _baoDianService.GetSearchForTypeSalesPlanDetail(pageSearch, this.CurrentUser);
-
- var resultData = new ReportCalRateResp()
- {
- Total = 0,
- Rate = 0.01m
- };
-
- var result = new Result()
- {
- Data = resultData,
- Code = ResultCode.Success
- };
-
- if (base.ExcelFileType == (int)ExportFileType.Zip)
- {
- //类型为0是报表专用,验证客户端是否在线
- WebSocketBLL.CheckOnline(ReportId, 0);
- //开始运算,先发送个进度0%,表明开始
- WebSocketBLL.SendSocketMsg(ReportId, JsonHelper.ToJson(result, false, true));
- }
-
- resultData.Total = opList.TotalCount;
- opList.DataList.ForEach(t => {
- var list = _baoDianService.GetAllProductPackageTypeSalesPlanDetail(t.VersionTime.ToString(), t.ShopId);
-
- var dataResult = new
- {
- op = list
- };
-
- var fileName=$"{t.VersionTime.ToString("yyMM")}_{t.CustomerName}_{t.ShopCode}_{t.ShopName}"+ "产品销售计划明细";
- base.AddExcelProcess(fileName, dataResult);
-
- });
-
- if (base.ExcelFileType == (int)ExportFileType.Zip)
- {
- resultData.Rate = 0.02m;
- result.Data = resultData;
- WebSocketBLL.SendSocketMsg(ReportId, JsonHelper.ToJson(result, false, true));
-
- }
- return base.Execute();
-
- }
- #endregion
- }
-}
diff --git a/Reportapi/MyCode.Project.Services/BLL/ReportExport/BdSingleShopPerMonthProductSalesPlanDetailExport.cs b/Reportapi/MyCode.Project.Services/BLL/ReportExport/BdSingleShopPerMonthProductSalesPlanDetailExport.cs
deleted file mode 100644
index 6153b3a..0000000
--- a/Reportapi/MyCode.Project.Services/BLL/ReportExport/BdSingleShopPerMonthProductSalesPlanDetailExport.cs
+++ /dev/null
@@ -1,59 +0,0 @@
-using MiniExcelLibs;
-using MiniExcelLibs.Attributes;
-using MiniExcelLibs.OpenXml;
-using MyCode.Project.Domain.Message.Request.BaoDian;
-using MyCode.Project.Domain.Message.Request.LxmZHMDReport;
-using MyCode.Project.Infrastructure.Common;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Reflection;
-using System.Text;
-using System.Threading.Tasks;
-using System.Xml.Linq;
-
-namespace MyCode.Project.Services.BLL.ReportExport
-{
- public class BdSingleShopPerMonthProductSalesPlanDetailExport : BaseExport
- {
- #region 初始化
- private readonly IBaoDianService _baoDianService;
- public BdSingleShopPerMonthProductSalesPlanDetailExport(IBaoDianService baoDianService)
- {
- _baoDianService = baoDianService;
- }
- #endregion
- #region Execute(执行)
- public override string Execute()
- {
- var req = JsonHelper.ToObject(Condition.ToString());
-
- var opList = _baoDianService.GetAllProductPackageTypeSalesPlanDetail(req.VersionTime, req.ShopId);
-
- var dataResult = new
- {
- op = opList
- };
- string fileName = "产品销售计划详情";
- string shopName = opList.Select(t => t.ShopName).FirstOrDefault();
-
- fileName = DateTime.Parse(req.VersionTime).ToString("yyMM") + "_" + shopName + "_" + fileName;
- base.AddExcelProcess(fileName, dataResult);
- //var config = new OpenXmlConfiguration
- //{
- // DynamicColumns = new DynamicExcelColumn[] {
- // new DynamicExcelColumn("id"){Ignore=true},
- // new DynamicExcelColumn("name"){Index=1,Width=10},
- // new DynamicExcelColumn("createdate"){Index=0,Format="yyyy-MM-dd",Width=15},
- // new DynamicExcelColumn("point"){Index=2,Name="Account Point"},
- // }
- //};
- //var path = "";//PathHelper.GetTempPath();
- //var value = new[] { new { id = 1, name = "Jack", createdate = new DateTime(2022, 04, 12), point = 123.456 } };
- //MiniExcel.SaveAs(path, value, configuration: config);
- return base.Execute();
-
- }
- #endregion
- }
-}
diff --git a/Reportapi/MyCode.Project.Services/BLL/ReportExport/CollectionRankReportExport - 复制.cs b/Reportapi/MyCode.Project.Services/BLL/ReportExport/CollectionRankReportExport - 复制.cs
deleted file mode 100644
index a9dbc05..0000000
--- a/Reportapi/MyCode.Project.Services/BLL/ReportExport/CollectionRankReportExport - 复制.cs
+++ /dev/null
@@ -1,297 +0,0 @@
-using System;
-using System.Collections;
-using System.Collections.Generic;
-using System.Linq;
-using System.Security.Policy;
-using System.Text;
-using System.Threading.Tasks;
-using System.Web.DynamicData;
-using System.Xml.Linq;
-using MiniExcelLibs.Utils;
-using MyCode.Project.Domain.Message.Request.BaoDian;
-using MyCode.Project.Domain.Message.Request.LxmZHMDReport;
-using MyCode.Project.Domain.Message.Response.BaoDian;
-using MyCode.Project.Domain.Message.Response.Common;
-using MyCode.Project.Domain.Message.Response.LxmZHMDReport;
-using MyCode.Project.Domain.Model;
-using MyCode.Project.Domain.Repositories;
-using MyCode.Project.Infrastructure;
-using MyCode.Project.Infrastructure.Common;
-using MyCode.Project.Infrastructure.Enumeration;
-using MyCode.Project.Infrastructure.Exceptions;
-using MyCode.Project.Infrastructure.Extensions;
-using MyCode.Project.Services.IServices;
-
-namespace MyCode.Project.Services.BLL.ReportExport
-{
- public class NewMemberReportDetailsExpor : BaseExport
- {
- #region 初始化
- private readonly IBaoDianService _baoDianService;
- private IBdClerkNewMemberSalesPlanRepository _bdClerkNewMemberSalesPlanRepository;
- private IRepository _repository;
- public NewMemberReportDetailsExpor(IBaoDianService baoDianService, IBdClerkNewMemberSalesPlanRepository bdClerkNewMemberSalesPlanRepository, IRepository repository)
- {
- _baoDianService = baoDianService;
- _bdClerkNewMemberSalesPlanRepository = bdClerkNewMemberSalesPlanRepository;
- _repository = repository;
- }
- #endregion
- #region Execute(执行)
- public override string Execute()
- {
- var req = JsonHelper.ToObject(Condition.ToString());
-
- //var opList = _baoDianService.GetNewMemberDetails(req);
-
-
- //List fieldDatas = opList.ListHeadField;
- //List columnNames = fieldDatas.Select(t => t.FieldName).ToList();
- //List list = new List();
- //list = opList.DataList;
- //opList.DataList.ForEach(x =>
- //{
- // NewMemberALLDetailsResp resp = new NewMemberALLDetailsResp();
- // resp.Total = x.Total;
- // resp.AddFromType = x.AddFromType;
- // resp.AddFromTypeStr = x.AddFromTypeStr;
- // if (x.ListAttr == null) { x.ListAttr = new List(); }
- // resp.ListAttr = x.ListAttr;
- // int i = 0;
-
- // list.Add(resp);
- //});
-
- //先获取列表
- var opList = _bdClerkNewMemberSalesPlanRepository.GetNewMemberDetailsItemList(req);
- DateTime versionTime = req.VersionTime.SafeValue();
- var dataResult = new List();
- var addFromTypeList = opList.Select(t => t.AddFromType).Distinct().ToList();
- var nameList = opList.Where(t => t.PackagePlanId > 2).Select(t => new { t.PackageName, t.PackagePlanId }).Distinct().ToList();
- int i = nameList.Count();
-
- //dataResult = addFromTypeList.Select(one => new BdNewMemberDetailsExcelResp
- //{
- // Name = EnumHelper.GetDescription(one),
- // PlanTotalAmount1 = (int)opList.Where(t => t.AddFromType == one && t.PackagePlanId == 1).Sum(t => t.PlanQty),
- // CompletedPrice1 = opList.Where(t => t.AddFromType == one && t.PackagePlanId == 1).Sum(t => t.CompletedQty),
- // CompletedRate1= opList.Where(t => t.AddFromType == one && t.PackagePlanId == 1).Sum(t => t.PlanQty) != 0 ?
- // (opList.Where(t => t.AddFromType == one && t.PackagePlanId == 1).Sum(t => t.CompletedQty)*100.00m
- // / opList.Where(t => t.AddFromType == one && t.PackagePlanId == 1).Sum(t => t.PlanQty)).ToString("F2")+"%":"",
-
- // PlanTotalAmount2 = (int)opList.Where(t => t.AddFromType == one && t.PackagePlanId == 2).Sum(t => t.PlanQty),
- // CompletedPrice2 = opList.Where(t => t.AddFromType == one && t.PackagePlanId == 2).Sum(t => t.CompletedQty),
- // CompletedRate2 = opList.Where(t => t.AddFromType == one && t.PackagePlanId == 2).Sum(t => t.PlanQty) != 0 ?
- // (opList.Where(t => t.AddFromType == one && t.PackagePlanId == 2).Sum(t => t.CompletedQty) * 100.00m
- // / opList.Where(t => t.AddFromType == one && t.PackagePlanId == 2).Sum(t => t.PlanQty)).ToString("F2") + "%" : "",
-
- // PlanTotalAmount3 = i > 0 ? (int?)opList.Where(t => t.AddFromType == one && t.PackagePlanId== nameList[0].PackagePlanId).Sum(t => t.PlanQty): null,
- // CompletedPrice3 = i > 0 ? (int?)opList.Where(t => t.AddFromType == one && t.PackagePlanId == nameList[0].PackagePlanId).Sum(t => t.CompletedQty) : null,
- // CompletedRate3 = i > 0 && opList.Where(t => t.AddFromType == one && t.PackagePlanId == nameList[0].PackagePlanId).Sum(t => t.PlanQty) != 0 ?
- // (opList.Where(t => t.AddFromType == one && t.PackagePlanId == nameList[0].PackagePlanId).Sum(t => t.CompletedQty) * 100.00m
- // / opList.Where(t => t.AddFromType == one && t.PackagePlanId == nameList[0].PackagePlanId).Sum(t => t.PlanQty)).ToString("F2") + "%" : "",
-
- // PlanTotalAmount4 = i > 1 ? (int?)opList.Where(t => t.AddFromType == one && t.PackagePlanId == nameList[1].PackagePlanId).Sum(t => t.PlanQty) : null,
- // CompletedPrice4 = i > 1 ? (int?)opList.Where(t => t.AddFromType == one && t.PackagePlanId == nameList[1].PackagePlanId).Sum(t => t.CompletedQty) : null,
- // CompletedRate4 = i > 1 && opList.Where(t => t.AddFromType == one && t.PackagePlanId == nameList[1].PackagePlanId).Sum(t => t.PlanQty) != 0 ?
- // (opList.Where(t => t.AddFromType == one && t.PackagePlanId == nameList[1].PackagePlanId).Sum(t => t.CompletedQty) * 100.00m
- // / opList.Where(t => t.AddFromType == one && t.PackagePlanId == nameList[1].PackagePlanId).Sum(t => t.PlanQty)).ToString("F2") + "%" : (i > 1?"0%":""),
- //}) .ToList();
- ////var packNameList = _repository.Queryable().Where(t => t.VersionTime == versionTime && t.Status == 1).ToList();
-
- //addFromTypeList.ForEach(one =>
- //{
- // BdNewMemberDetailsExcelResp detailsExcelResp = new BdNewMemberDetailsExcelResp();
- // detailsExcelResp.CompletedRateArray = new List();
- // detailsExcelResp.PlanQty = new List();
- // detailsExcelResp.CompletedQty = new List();
- // detailsExcelResp.A = new List();
- // detailsExcelResp.B = new List();
- // detailsExcelResp.C = new List();
- // detailsExcelResp.D = new List();
-
- // string Name = EnumHelper.GetDescription(one);
- // detailsExcelResp.Name = Name;
-
- // detailsExcelResp.A.Add("新客人数");
- // detailsExcelResp.B.Add("计划人数");
- // detailsExcelResp.C.Add("实际达成");
- // detailsExcelResp.D.Add("达成率");
- // var planQty = opList.Where(t => t.AddFromType == one && t.PackagePlanId == 1).Sum(t => t.PlanQty);
- // var completedQty = opList.Where(t => t.AddFromType == one && t.PackagePlanId == 1).Sum(t => t.CompletedQty);
- // string CompletedRate = "";
- // if (planQty != 0)
- // {
- // CompletedRate = (completedQty * 100.00m / planQty).ToString("F2") + "%";
- // }
- // detailsExcelResp.PlanQty.Add((int)planQty);
- // detailsExcelResp.CompletedQty.Add(completedQty);
- // detailsExcelResp.CompletedRateArray.Add(CompletedRate);
-
- // detailsExcelResp.A.Add("首单数");
- // detailsExcelResp.B.Add("计划人数");
- // detailsExcelResp.C.Add("实际达成");
- // detailsExcelResp.D.Add("达成率");
- // planQty = opList.Where(t => t.AddFromType == one && t.PackagePlanId == 2).Sum(t => t.PlanQty);
- // completedQty = opList.Where(t => t.AddFromType == one && t.PackagePlanId == 2).Sum(t => t.CompletedQty);
- // CompletedRate = "";
- // if (planQty != 0)
- // {
- // CompletedRate = (completedQty * 100.00m / planQty).ToString("F2") + "%";
- // }
- // detailsExcelResp.PlanQty.Add((int)planQty);
- // detailsExcelResp.CompletedQty.Add(completedQty);
- // detailsExcelResp.CompletedRateArray.Add(CompletedRate);
-
-
- // nameList.ForEach(packageName =>
- // {
- // detailsExcelResp.A.Add(packageName.PackageName);
- // detailsExcelResp.B.Add("计划人数");
- // detailsExcelResp.C.Add("实际达成");
- // detailsExcelResp.D.Add("达成率");
- // planQty = opList.Where(t => t.AddFromType == one && t.PackagePlanId == packageName.PackagePlanId).Sum(t => t.PlanQty);
- // completedQty = opList.Where(t => t.AddFromType == one && t.PackagePlanId == packageName.PackagePlanId).Sum(t => t.CompletedQty);
- // CompletedRate = "";
- // if (planQty != 0)
- // {
- // CompletedRate = (completedQty * 100.00m / planQty).ToString("F2") + "%";
- // }
-
- // detailsExcelResp.PlanQty.Add((int)planQty);
- // detailsExcelResp.CompletedQty.Add(completedQty);
- // detailsExcelResp.CompletedRateArray.Add(CompletedRate);
- // });
- // for (int k = 0; k < 10; k++)
- // {
- // detailsExcelResp.A.Add("");
- // detailsExcelResp.B.Add("");
- // detailsExcelResp.C.Add("");
- // detailsExcelResp.D.Add("");
- // detailsExcelResp.PlanQty.Add(null);
- // detailsExcelResp.CompletedQty.Add(null);
- // detailsExcelResp.CompletedRateArray.Add("");
- // }
-
- // // CompletedPrice1 = opList.Where(t => t.AddFromType == one && t.PackagePlanId == 1).Sum(t => t.CompletedQty),
- // // CompletedRate1= opList.Where(t => t.AddFromType == one && t.PackagePlanId == 1).Sum(t => t.PlanQty) != 0 ?
- // // (opList.Where(t => t.AddFromType == one && t.PackagePlanId == 1).Sum(t => t.CompletedQty)*100.00m
- // // / opList.Where(t => t.AddFromType == one && t.PackagePlanId == 1).Sum(t => t.PlanQty)).ToString("F2")+"%":"",
-
- // detailsExcelResp.PlanQty2 = new int?[] { 0, 0, 0, 0, 0, null };
- // dataResult.Add(detailsExcelResp);
- //});
-
- Dictionary keyValuePairs = new Dictionary();
- keyValuePairs.Add("A1", "新客人数");
- keyValuePairs.Add("B1", "计划人数");
- keyValuePairs.Add("C1", "实际达成");
- keyValuePairs.Add("D1", "达成率");
-
- keyValuePairs.Add("A2", "新客人数");
- keyValuePairs.Add("B2", "计划人数");
- keyValuePairs.Add("C2", "实际达成");
- keyValuePairs.Add("D2", "达成率");
-
- List> dataList = new List>();
-
- int k = 3;
- nameList.ForEach(packageName =>
- {
- keyValuePairs.Add("A" + k.ToString(), packageName.PackageName);
- keyValuePairs.Add("B" + k.ToString(), "计划人数");
- keyValuePairs.Add("C" + k.ToString(), "实际达成");
- keyValuePairs.Add("D" + k.ToString(), "达成率");
- k++;
- });
-
- addFromTypeList.ForEach(one =>
- {
- k = 3;
- Dictionary tempKeyValues1 = new Dictionary();
- string Name = EnumHelper.GetDescription(one);
- var planQty = opList.Where(t => t.AddFromType == one && t.PackagePlanId == 1).Sum(t => t.PlanQty);
- var completedQty = opList.Where(t => t.AddFromType == one && t.PackagePlanId == 1).Sum(t => t.CompletedQty);
- string CompletedRate = "";
- if (planQty != 0)
- {
- CompletedRate = (completedQty * 100.00m / planQty).ToString("F2") + "%";
- }
- tempKeyValues1.Add("name", Name);
- tempKeyValues1.Add("planQty1", (int)planQty);
- tempKeyValues1.Add("completedQty1", completedQty);
- tempKeyValues1.Add("CompletedRate1", CompletedRate);
-
- planQty = opList.Where(t => t.AddFromType == one && t.PackagePlanId == 2).Sum(t => t.PlanQty);
- completedQty = opList.Where(t => t.AddFromType == one && t.PackagePlanId == 2).Sum(t => t.CompletedQty);
- CompletedRate = "";
- if (planQty != 0)
- {
- CompletedRate = (completedQty * 100.00m / planQty).ToString("F2") + "%";
- }
-
- tempKeyValues1.Add("planQty2", (int)planQty);
- tempKeyValues1.Add("completedQty2", completedQty);
- tempKeyValues1.Add("CompletedRate2", CompletedRate);
-
-
- nameList.ForEach(packageName =>
- {
- planQty = opList.Where(t => t.AddFromType == one && t.PackagePlanId == packageName.PackagePlanId).Sum(t => t.PlanQty);
- completedQty = opList.Where(t => t.AddFromType == one && t.PackagePlanId == packageName.PackagePlanId).Sum(t => t.CompletedQty);
- CompletedRate = "";
- if (planQty != 0)
- {
- CompletedRate = (completedQty * 100.00m / planQty).ToString("F2") + "%";
- }
- tempKeyValues1.Add("planQty" + k.ToString(), (int)planQty);
- tempKeyValues1.Add("completedQty" + k.ToString(), completedQty);
- tempKeyValues1.Add("CompletedRate" + k.ToString(), CompletedRate);
- k++;
- });
- dataList.Add(tempKeyValues1);
- });
- var result = new
- {
- Title = keyValuePairs,
- op = dataList,
- };
-
- //var result = new
- //{
- // op = dataResult,
- // //A = dataResult.Select(t => t.A).Distinct().ToList(),
-
- // //A = i > 0 ? nameList[0].PackageName : "",
- // //A1 = i > 0 ? "计划人数" : "",
- // //A2 = i > 0 ? "实际达成" : "",
- // //A3 = i > 0 ? "达成率" : "",
- // //B = i > 1 ? nameList[1].PackageName : "",
- // //B1 = i > 1 ? "计划人数" : "",
- // //B2 = i > 1 ? "实际达成" : "",
- // //B3 = i > 1 ? "达成率" : "",
- // //A11 = i > 0 ? (int)opList.Where(t => t.AddFromType == one && t.PackagePlanId == 1).Sum(t => t.PlanQty),
- // //A22 = i > 0 ? "计划人数" : "",
- // //A33 = i > 0 ? "计划人数" : "",
-
-
- //};
-
-
- dataList.ForEach(t =>
- {
- base.AddExcelProcess("新客销售计划进度明细", t); //只能传单个字典
- });
-
-
-
- return base.Execute();
-
- }
- #endregion
- }
-}
-
-
-
-
\ No newline at end of file
diff --git a/Reportapi/MyCode.Project.Services/BLL/ReportExport/CollectionRankReportExport.cs b/Reportapi/MyCode.Project.Services/BLL/ReportExport/CollectionRankReportExport.cs
deleted file mode 100644
index c50c7dd..0000000
--- a/Reportapi/MyCode.Project.Services/BLL/ReportExport/CollectionRankReportExport.cs
+++ /dev/null
@@ -1,128 +0,0 @@
-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.Common;
-using MyCode.Project.Domain.Message.Response.LxmZHMDReport;
-using MyCode.Project.Infrastructure;
-using MyCode.Project.Infrastructure.Common;
-using MyCode.Project.Infrastructure.Enumeration;
-using MyCode.Project.Infrastructure.Exceptions;
-using MyCode.Project.Infrastructure.Extensions;
-using MyCode.Project.Services.IServices;
-
-namespace MyCode.Project.Services.BLL.ReportExport
-{
- public class CollectionRankReportExport: BaseExport
- {
- #region 初始化
- private readonly IReportService _reportService;
- public CollectionRankReportExport(IReportService reportService)
- {
- _reportService = reportService;
- }
- #endregion
- #region Execute(执行)
- public override string Execute()
- {
- var pageSearch = base.GetPageSearch(Condition);
-
- var opList = _reportService.GetCollectionRankReportList(pageSearch, this.CurrentUser);
-
- List fieldDatas= opList.ListHeadField;
- List list = new List();
- opList.DataList.ForEach(x => {
- CollectionRankReportExportResp resp = new CollectionRankReportExportResp();
- resp.CumulativeCollectionRanking = x.CumulativeCollectionRanking;
- resp.TodayCollectionRanking = x.TodayCollectionRanking;
- resp.ZoneName = x.ZoneName;
- resp.ProvinceName = x.ProvinceName;
- resp.CityName = x.CityName;
- resp.CustomerName = x.CustomerName;
- resp.Code = x.Code;
- resp.ShopName = x.ShopName;
- resp.TotalCollection = x.TotalCollection;
- resp.CollectionRankAmount = x.CollectionRankAmount;
- if (x.ListAttr == null) { x.ListAttr = new List(); }
- int i = 0;
- x.ListAttr.ForEach(t => {
- i++;
- if (i == (int)(DayNumber.One)) { resp.One =Convert.ToDecimal(t); }
- if (i == (int)(DayNumber.Two)) { resp.Two = Convert.ToDecimal(t); }
- if (i == (int)(DayNumber.Three)) { resp.Three = Convert.ToDecimal(t); }
- if (i == (int)(DayNumber.Four)) { resp.Four = Convert.ToDecimal(t); }
- if (i == (int)(DayNumber.Five)) { resp.Five = Convert.ToDecimal(t); }
- if (i == (int)(DayNumber.Six)) { resp.Six = Convert.ToDecimal(t); }
- if (i == (int)(DayNumber.Seven)) { resp.Seven = Convert.ToDecimal(t); }
- if (i == (int)(DayNumber.Eight)) { resp.Eight = Convert.ToDecimal(t); }
- if (i == (int)(DayNumber.Nine)) { resp.Nine = Convert.ToDecimal(t); }
- if (i == (int)(DayNumber.Ten)) { resp.Ten = Convert.ToDecimal(t); }
- if (i == (int)(DayNumber.Eleven)) { resp.Eleven = Convert.ToDecimal(t); }
- if (i == (int)(DayNumber.Twelve)) { resp.Twelve = Convert.ToDecimal(t); }
- if (i == (int)(DayNumber.Thirteen)) { resp.Thirteen = Convert.ToDecimal(t); }
- if (i == (int)(DayNumber.Fourteen)) { resp.Fourteen = Convert.ToDecimal(t); }
- if (i == (int)(DayNumber.Fifteen)) { resp.Fifteen = Convert.ToDecimal(t); }
- if (i == (int)(DayNumber.Sixteen)) { resp.Sixteen = Convert.ToDecimal(t); }
- if (i == (int)(DayNumber.Seventeen)) { resp.Seventeen = Convert.ToDecimal(t); }
- if (i == (int)(DayNumber.Eighteen)) { resp.Eighteen = Convert.ToDecimal(t); }
- if (i == (int)(DayNumber.Nineteen)) { resp.Nineteen = Convert.ToDecimal(t); }
- if (i == (int)(DayNumber.Twenty)) { resp.Twenty = Convert.ToDecimal(t); }
- if (i == (int)(DayNumber.TwentyOne)) { resp.TwentyOne = Convert.ToDecimal(t); }
- if (i == (int)(DayNumber.TwentyTwo)) { resp.TwentyTwo = Convert.ToDecimal(t); }
- if (i == (int)(DayNumber.TwentyThree)) { resp.TwentyThree = Convert.ToDecimal(t); }
- if (i == (int)(DayNumber.TwentyFour)) { resp.TwentyFour = Convert.ToDecimal(t); }
- if (i == (int)(DayNumber.TwentyFive)) { resp.TwentyFive = Convert.ToDecimal(t); }
- if (i == (int)(DayNumber.TwentySix)) { resp.TwentySix = Convert.ToDecimal(t); }
- if (i == (int)(DayNumber.TwentySeven)) { resp.TwentySeven = Convert.ToDecimal(t); }
- if (i == (int)(DayNumber.TwentyEight)) { resp.TwentyEight = Convert.ToDecimal(t); }
- if (i == (int)(DayNumber.TwentyNine)) { resp.TwentyNine = Convert.ToDecimal(t); }
- if (i == (int)(DayNumber.Thirty)) { resp.Thirty = Convert.ToDecimal(t); }
- if (i == (int)(DayNumber.ThirtyOne)) { resp.ThirtyOne = Convert.ToDecimal(t); }
- });
- list.Add(resp);
- });
- var dataResult = new
- {
- op = list,
- One = fieldDatas.Where(p=>p.Sort==1).Select(p=>p.FieldName).FirstOrDefault(),
- Two = fieldDatas.Where(p => p.Sort == 2).Select(p => p.FieldName).FirstOrDefault(),
- Three = fieldDatas.Where(p => p.Sort == 3).Select(p => p.FieldName).FirstOrDefault(),
- Four = fieldDatas.Where(p => p.Sort == 4).Select(p => p.FieldName).FirstOrDefault(),
- Five = fieldDatas.Where(p=>p.Sort==5).Select(p=>p.FieldName).FirstOrDefault(),
- Six = fieldDatas.Where(p=>p.Sort==6).Select(p=>p.FieldName).FirstOrDefault(),
- Seven = fieldDatas.Where(p=>p.Sort==7).Select(p=>p.FieldName).FirstOrDefault(),
- Eight = fieldDatas.Where(p=>p.Sort==8).Select(p=>p.FieldName).FirstOrDefault(),
- Nine = fieldDatas.Where(p=>p.Sort==9).Select(p=>p.FieldName).FirstOrDefault(),
- Ten = fieldDatas.Where(p=>p.Sort==10).Select(p=>p.FieldName).FirstOrDefault(),
- Eleven = fieldDatas.Where(p=>p.Sort==11).Select(p=>p.FieldName).FirstOrDefault(),
- Twelve = fieldDatas.Where(p=>p.Sort==12).Select(p=>p.FieldName).FirstOrDefault(),
- Thirteen = fieldDatas.Where(p=>p.Sort==13).Select(p=>p.FieldName).FirstOrDefault(),
- Fourteen = fieldDatas.Where(p=>p.Sort==14).Select(p=>p.FieldName).FirstOrDefault(),
- Fifteen = fieldDatas.Where(p=>p.Sort==15).Select(p=>p.FieldName).FirstOrDefault(),
- Sixteen = fieldDatas.Where(p=>p.Sort==16).Select(p=>p.FieldName).FirstOrDefault(),
- Seventeen = fieldDatas.Where(p=>p.Sort==17).Select(p=>p.FieldName).FirstOrDefault(),
- Eighteen = fieldDatas.Where(p=>p.Sort==18).Select(p=>p.FieldName).FirstOrDefault(),
- Nineteen = fieldDatas.Where(p=>p.Sort==19).Select(p=>p.FieldName).FirstOrDefault(),
- Twenty = fieldDatas.Where(p=>p.Sort==20).Select(p=>p.FieldName).FirstOrDefault(),
- TwentyOne = fieldDatas.Where(p=>p.Sort==21).Select(p=>p.FieldName).FirstOrDefault(),
- TwentyTwo = fieldDatas.Where(p=>p.Sort==22).Select(p=>p.FieldName).FirstOrDefault(),
- TwentyThree = fieldDatas.Where(p=>p.Sort==23).Select(p=>p.FieldName).FirstOrDefault(),
- TwentyFour = fieldDatas.Where(p=>p.Sort==24).Select(p=>p.FieldName).FirstOrDefault(),
- TwentyFive = fieldDatas.Where(p=>p.Sort==25).Select(p=>p.FieldName).FirstOrDefault(),
- TwentySix = fieldDatas.Where(p=>p.Sort==26).Select(p=>p.FieldName).FirstOrDefault(),
- TwentySeven = fieldDatas.Where(p=>p.Sort==27).Select(p=>p.FieldName).FirstOrDefault(),
- TwentyEight = fieldDatas.Where(p=>p.Sort==28).Select(p=>p.FieldName).FirstOrDefault(),
- TwentyNine = fieldDatas.Where(p=>p.Sort==29).Select(p=>p.FieldName).FirstOrDefault(),
- Thirty = fieldDatas.Where(p=>p.Sort==30).Select(p=>p.FieldName).FirstOrDefault(),
- ThirtyOne = fieldDatas.Where(p=>p.Sort==31).Select(p=>p.FieldName).FirstOrDefault()
- };
- base.AddExcelProcess("收款排名报表导出", dataResult);
-
- return base.Execute();
-
- }
- #endregion
- }
-}
diff --git a/Reportapi/MyCode.Project.Services/BLL/ReportExport/CollectionTotalReportExport.cs b/Reportapi/MyCode.Project.Services/BLL/ReportExport/CollectionTotalReportExport.cs
deleted file mode 100644
index 2b81aae..0000000
--- a/Reportapi/MyCode.Project.Services/BLL/ReportExport/CollectionTotalReportExport.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-using MyCode.Project.Domain.Message.Request.LxmZHMDReport;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Services.BLL.ReportExport
-{
- public class CollectionTotalReportExport : BaseExport
- {
- #region 初始化
- private readonly IReportService _reportService;
- public CollectionTotalReportExport(IReportService reportService)
- {
- _reportService = reportService;
- }
- #endregion
- #region Execute(执行)
- public override string Execute()
- {
- var pageSearch = base.GetPageSearch(Condition);
-
- var opList = _reportService.GetCollectionTotalReportList(pageSearch, this.CurrentUser);
- var dataResult = new
- {
- op = opList.DataList
- };
- base.AddExcelProcess("收款总报表导出", dataResult);
-
- return base.Execute();
-
- }
- #endregion
- }
-}
diff --git a/Reportapi/MyCode.Project.Services/BLL/ReportExport/GetRptQuYuKanBanForAMingExport.cs b/Reportapi/MyCode.Project.Services/BLL/ReportExport/GetRptQuYuKanBanForAMingExport.cs
deleted file mode 100644
index 728ad73..0000000
--- a/Reportapi/MyCode.Project.Services/BLL/ReportExport/GetRptQuYuKanBanForAMingExport.cs
+++ /dev/null
@@ -1,40 +0,0 @@
-using MyCode.Project.Domain.Message.Request.AMing;
-using MyCode.Project.Domain.Message.Request.LxmZHMDReport;
-using MyCode.Project.Infrastructure.Common;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Services.BLL.ReportExport
-{
- public class GetRptQuYuKanBanForAMingExport : BaseExport
- {
- #region 初始化
- private readonly IReportService _reportService;
- public GetRptQuYuKanBanForAMingExport(IReportService reportService)
- {
- _reportService = reportService;
- }
- #endregion
- #region Execute(执行)
- public override string Execute()
- {
- var pageSearch = JsonHelper.ToObject(Condition.ToString());
-
- var opList = _reportService.GetRptQuYuKanBanForAMing(pageSearch);
-
- var dataResult = new
- {
- op = opList
- };
-
- base.AddExcelProcess("区域看板报表", dataResult);
-
- return base.Execute();
-
- }
- #endregion
- }
-}
diff --git a/Reportapi/MyCode.Project.Services/BLL/ReportExport/GetYangBanBianLaoKeDataExport.cs b/Reportapi/MyCode.Project.Services/BLL/ReportExport/GetYangBanBianLaoKeDataExport.cs
deleted file mode 100644
index 9b4e8cc..0000000
--- a/Reportapi/MyCode.Project.Services/BLL/ReportExport/GetYangBanBianLaoKeDataExport.cs
+++ /dev/null
@@ -1,42 +0,0 @@
-using MyCode.Project.Domain.Message.Request.AMing;
-using MyCode.Project.Domain.Message.Request.LxmZHMDReport;
-using MyCode.Project.Domain.Message.Request.Report;
-using MyCode.Project.Infrastructure.Common;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Services.BLL.ReportExport
-{
- public class GetYangBanBianLaoKeDataExport : BaseExport
- {
- #region 初始化
- private IReport24Service _report24Service;
- public GetYangBanBianLaoKeDataExport(IReport24Service report24Service)
- {
- _report24Service = report24Service;
- }
- #endregion
- #region Execute(执行)
- public override string Execute()
- {
- var pageSearch = base.GetPageSearch(Condition);
-
-
- var opList = _report24Service.GetYangBanBianLaoKeDataPageList(pageSearch, this.CurrentUser);
-
- var dataResult = new
- {
- pro = opList.DataList
- };
-
- base.AddExcelProcess("样板店老客业绩日报", dataResult);
-
- return base.Execute();
-
- }
- #endregion
- }
-}
diff --git a/Reportapi/MyCode.Project.Services/BLL/ReportExport/GetYangBanBianLaoKeMonthDataExport.cs b/Reportapi/MyCode.Project.Services/BLL/ReportExport/GetYangBanBianLaoKeMonthDataExport.cs
deleted file mode 100644
index 7259a11..0000000
--- a/Reportapi/MyCode.Project.Services/BLL/ReportExport/GetYangBanBianLaoKeMonthDataExport.cs
+++ /dev/null
@@ -1,42 +0,0 @@
-using MyCode.Project.Domain.Message.Request.AMing;
-using MyCode.Project.Domain.Message.Request.LxmZHMDReport;
-using MyCode.Project.Domain.Message.Request.Report;
-using MyCode.Project.Infrastructure.Common;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Services.BLL.ReportExport
-{
- public class GetYangBanBianLaoKeMonthDataExport : BaseExport
- {
- #region 初始化
- private IReport24Service _report24Service;
- public GetYangBanBianLaoKeMonthDataExport(IReport24Service report24Service)
- {
- _report24Service = report24Service;
- }
- #endregion
- #region Execute(执行)
- public override string Execute()
- {
- var pageSearch = base.GetPageSearch(Condition);
-
-
- var opList = _report24Service.GetYangBanBianLaoKeMonthDataPageList(pageSearch, this.CurrentUser);
-
- var dataResult = new
- {
- pro = opList.DataList
- };
-
- base.AddExcelProcess("样板店新客业绩月报", dataResult);
-
- return base.Execute();
-
- }
- #endregion
- }
-}
diff --git a/Reportapi/MyCode.Project.Services/BLL/ReportExport/GetYangBanBianXinKeDataExport.cs b/Reportapi/MyCode.Project.Services/BLL/ReportExport/GetYangBanBianXinKeDataExport.cs
deleted file mode 100644
index eab6261..0000000
--- a/Reportapi/MyCode.Project.Services/BLL/ReportExport/GetYangBanBianXinKeDataExport.cs
+++ /dev/null
@@ -1,42 +0,0 @@
-using MyCode.Project.Domain.Message.Request.AMing;
-using MyCode.Project.Domain.Message.Request.LxmZHMDReport;
-using MyCode.Project.Domain.Message.Request.Report;
-using MyCode.Project.Infrastructure.Common;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Services.BLL.ReportExport
-{
- public class GetYangBanBianXinKeDataExport : BaseExport
- {
- #region 初始化
- private IReport24Service _report24Service;
- public GetYangBanBianXinKeDataExport(IReport24Service report24Service)
- {
- _report24Service = report24Service;
- }
- #endregion
- #region Execute(执行)
- public override string Execute()
- {
- var pageSearch = base.GetPageSearch(Condition);
-
-
- var opList = _report24Service.GetYangBanBianXinKeDataPageList(pageSearch, this.CurrentUser);
-
- var dataResult = new
- {
- pro = opList.DataList
- };
-
- base.AddExcelProcess("样板店新客业绩日报", dataResult);
-
- return base.Execute();
-
- }
- #endregion
- }
-}
diff --git a/Reportapi/MyCode.Project.Services/BLL/ReportExport/GetYangBanBianXinKeMonthDataExport.cs b/Reportapi/MyCode.Project.Services/BLL/ReportExport/GetYangBanBianXinKeMonthDataExport.cs
deleted file mode 100644
index 3cecfd1..0000000
--- a/Reportapi/MyCode.Project.Services/BLL/ReportExport/GetYangBanBianXinKeMonthDataExport.cs
+++ /dev/null
@@ -1,42 +0,0 @@
-using MyCode.Project.Domain.Message.Request.AMing;
-using MyCode.Project.Domain.Message.Request.LxmZHMDReport;
-using MyCode.Project.Domain.Message.Request.Report;
-using MyCode.Project.Infrastructure.Common;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Services.BLL.ReportExport
-{
- public class GetYangBanBianXinKeMonthDataExport : BaseExport
- {
- #region 初始化
- private IReport24Service _report24Service;
- public GetYangBanBianXinKeMonthDataExport(IReport24Service report24Service)
- {
- _report24Service = report24Service;
- }
- #endregion
- #region Execute(执行)
- public override string Execute()
- {
- var pageSearch = base.GetPageSearch(Condition);
-
-
- var opList = _report24Service.GetYangBanBianXinKeMonthDataPageList(pageSearch, this.CurrentUser);
-
- var dataResult = new
- {
- pro = opList.DataList
- };
-
- base.AddExcelProcess("样板店新客业绩月报", dataResult);
-
- return base.Execute();
-
- }
- #endregion
- }
-}
diff --git a/Reportapi/MyCode.Project.Services/BLL/ReportExport/LiuKeShenKeGuanKongReportExport.cs b/Reportapi/MyCode.Project.Services/BLL/ReportExport/LiuKeShenKeGuanKongReportExport.cs
deleted file mode 100644
index fa33549..0000000
--- a/Reportapi/MyCode.Project.Services/BLL/ReportExport/LiuKeShenKeGuanKongReportExport.cs
+++ /dev/null
@@ -1,89 +0,0 @@
-using MyCode.Project.Domain.Message.Request.Report24;
-using MyCode.Project.Domain.Message.Response.LxmZHMDReport;
-using MyCode.Project.Infrastructure;
-using MyCode.Project.Infrastructure.Common;
-using MyCode.Project.Infrastructure.Enumeration;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Services.BLL.ReportExport
-{
- public class LiuKeShenKeGuanKongReportExport : BaseExport
- {
- #region 初始化
- private readonly IReport24Service _report24Service;
- public LiuKeShenKeGuanKongReportExport(IReport24Service report24Service)
- {
- _report24Service = report24Service;
- }
- #endregion
-
- #region Execute(执行)
- public override string Execute()
- {
- var pageSearch = base.GetPageSearch(Condition);
-
- var opList = _report24Service.GetLiuKeShenKeGuanKongReportExport(pageSearch, this.CurrentUser);
-
- var resultData = new ReportCalRateResp()
- {
- Total = 0,
- Rate = 0.01m
- };
-
- var result = new Result()
- {
- Data = resultData,
- Code = ResultCode.Success
- };
-
- if (base.ExcelFileType == (int)ExportFileType.Zip)
- {
- //类型为0是报表专用,验证客户端是否在线
- WebSocketBLL.CheckOnline(ReportId, 0);
-
- //开始运算,先发送个进度0%,表明开始
- WebSocketBLL.SendSocketMsg(ReportId, JsonHelper.ToJson(result, false, true));
-
- }
-
- var list = opList.DataList.Select(p => new { p.ShopId, p.ShopName }).ToList().Distinct().ToList();
-
- resultData.Total = list.Count;
-
- var opItem = opList.DataList;
- var dataResult = new
- {
- op = opItem
- };
-
- var fileName = $"{"留客升客管控表"}";
- base.AddExcelProcess(fileName, dataResult);
-
- //list.ForEach(x => {
- // var opItem = opList.DataList.Where(p => p.ShopId == x.ShopId).ToList();
- // var dataResult = new
- // {
- // op = opItem
- // };
-
- // var fileName = $"{"留客升客管控表"}_{x.ShopName}";
- // base.AddExcelProcess(fileName, dataResult);
-
- //});
-
- if (base.ExcelFileType == (int)ExportFileType.Zip)
- {
- resultData.Rate = 0.02m;
- result.Data = resultData;
- WebSocketBLL.SendSocketMsg(ReportId, JsonHelper.ToJson(result, false, true));
-
- }
- return base.Execute();
- }
- #endregion
- }
-}
diff --git a/Reportapi/MyCode.Project.Services/BLL/ReportExport/LiuKeZhuanHuanReportExport.cs b/Reportapi/MyCode.Project.Services/BLL/ReportExport/LiuKeZhuanHuanReportExport.cs
deleted file mode 100644
index c069fbb..0000000
--- a/Reportapi/MyCode.Project.Services/BLL/ReportExport/LiuKeZhuanHuanReportExport.cs
+++ /dev/null
@@ -1,38 +0,0 @@
-using MyCode.Project.Domain.Message.Request.Report24;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Services.BLL.ReportExport
-{
- public class LiuKeZhuanHuanReportExport : BaseExport
- {
- #region 初始化
- private readonly IReport24Service _report24Service;
- public LiuKeZhuanHuanReportExport(IReport24Service report24Service)
- {
- _report24Service = report24Service;
- }
- #endregion
-
- #region Execute(执行)
- public override string Execute()
- {
- var pageSearch = base.GetPageSearch(Condition);
-
- var opList = _report24Service.GetLiuKeZhuanHuanReportPageList(pageSearch,this.CurrentUser);
-
- var dataResult = new
- {
- op = opList.DataList
- };
-
- base.AddExcelProcess("留客转化日报表", dataResult);
-
- return base.Execute();
- }
- #endregion
- }
-}
diff --git a/Reportapi/MyCode.Project.Services/BLL/ReportExport/MemberAccountBookLogExport.cs b/Reportapi/MyCode.Project.Services/BLL/ReportExport/MemberAccountBookLogExport.cs
deleted file mode 100644
index 6976f82..0000000
--- a/Reportapi/MyCode.Project.Services/BLL/ReportExport/MemberAccountBookLogExport.cs
+++ /dev/null
@@ -1,61 +0,0 @@
-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 MemberAccountBookLogExport : BaseExport
- {
- #region 初始化
- private readonly ILxmReport2023Service _reportService;
- public MemberAccountBookLogExport(ILxmReport2023Service reportService)
- {
- _reportService = reportService;
- }
- #endregion
-
- #region Execute(执行)
- public override string Execute()
- {
- //类型为0是报表专用,验证客户端是否在线
- //WebSocketBLL.CheckOnline(ReportId, 0);
- var pageSearch = base.GetPageSearch(Condition);
-
- var proList = _reportService.GetMemberAccountBookLog(pageSearch, this.CurrentUser);
- //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.DataList
- };
- base.AddExcelProcess("会员余额变动明细", dataResult);
- //resultData.Rate = 0.02m;
- //result.Data = resultData;
- //WebSocketBLL.SendSocketMsg(ReportId, JsonHelper.ToJson(result, false, true));
- return base.Execute();
- }
- #endregion
- }
-}
diff --git a/Reportapi/MyCode.Project.Services/BLL/ReportExport/MemberAssetInquiryExport.cs b/Reportapi/MyCode.Project.Services/BLL/ReportExport/MemberAssetInquiryExport.cs
deleted file mode 100644
index 9374a4f..0000000
--- a/Reportapi/MyCode.Project.Services/BLL/ReportExport/MemberAssetInquiryExport.cs
+++ /dev/null
@@ -1,92 +0,0 @@
-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.Cache;
-using MyCode.Project.Infrastructure.Common;
-using MyCode.Project.Infrastructure.Constant;
-using MyCode.Project.Infrastructure.Enumeration;
-using MyCode.Project.Services.IServices;
-
-namespace MyCode.Project.Services.BLL.ReportExport
-{
- public class MemberAssetInquiryExport : BaseExport
- {
- #region 初始化
- private readonly ILxmReport2023Service _reportService;
- private IMyCodeCacheService _myCodeCacheService;
- public MemberAssetInquiryExport(ILxmReport2023Service reportService
- , IMyCodeCacheService myCodeCacheService)
- {
- _reportService = reportService;
- }
- #endregion
-
- #region Execute(执行)
- public override string Execute()
- {
- var req = JsonHelper.ToObject(Condition.ToString());
-
- var resultData = new ReportCalRateResp()
- {
- Total = 0,
- Rate = 0.01m
- };
-
- var result = new Result()
- {
- Data = resultData,
- Code = ResultCode.Success
- };
-
- if (base.ExcelFileType == (int)ExportFileType.Zip)
- {
- //类型为0是报表专用,验证客户端是否在线
- WebSocketBLL.CheckOnline(ReportId, 0);
- //开始运算,先发送个进度0%,表明开始
- WebSocketBLL.SendSocketMsg(ReportId, JsonHelper.ToJson(result, false, true));
- }
-
- var pageSearch = base.GetPageSearch(Condition, 1);
- var list = _reportService.GetMemberAssetInquiry(pageSearch, this.CurrentUser);
-
- resultData.Total = list.TotalCount;
- var fileName = $"会员统计--会员查询";
-
- if (base.ExcelFileType == (int)ExportFileType.Zip)
- {
- resultData.Rate = 0.02m;
- result.Data = resultData;
- WebSocketBLL.SendSocketMsg(ReportId, JsonHelper.ToJson(result, false, true));
-
- }
- pageSearch.Page = 1;
- pageSearch.PageSize = 10000;
- int maxPage = (list.TotalCount+ pageSearch.PageSize-1) / pageSearch.PageSize;
- string zipFile = "";
- string hasDownloadZipCacheKey = CacheKey.HasDownloadZipCacheKey + $@":{ReportId}";
- while (pageSearch.Page <= maxPage)
- {
- list = _reportService.GetMemberAssetInquiry(pageSearch, this.CurrentUser);
- zipFile =base.PageListExecute(list, pageSearch.Page, pageSearch.PageSize, list.TotalCount, fileName, hasDownloadZipCacheKey);
- pageSearch.Page++;
- }
- if (zipFile == "")
- {
- resultData.CurQty = list.TotalCount;
- resultData.Rate = 1;
-
- WebSocketBLL.SendSocketMsg(ReportId, JsonHelper.ToJson(result, false, true));
- //移除正在下载
- _myCodeCacheService.Delete($"{hasDownloadZipCacheKey}");
- }
- return zipFile;
- }
- #endregion
-
- }
-}
diff --git a/Reportapi/MyCode.Project.Services/BLL/ReportExport/MemberOrderExport.cs b/Reportapi/MyCode.Project.Services/BLL/ReportExport/MemberOrderExport.cs
deleted file mode 100644
index 15d9e47..0000000
--- a/Reportapi/MyCode.Project.Services/BLL/ReportExport/MemberOrderExport.cs
+++ /dev/null
@@ -1,61 +0,0 @@
-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 MemberOrderExport : BaseExport
- {
- #region 初始化
- private readonly ILxmReport2023Service _reportService;
- public MemberOrderExport(ILxmReport2023Service reportService)
- {
- _reportService = reportService;
- }
- #endregion
-
- #region Execute(执行)
- public override string Execute()
- {
- //类型为0是报表专用,验证客户端是否在线
- //WebSocketBLL.CheckOnline(ReportId, 0);
- var pageSearch = base.GetPageSearch(Condition);
-
- var proList = _reportService.GetMemberOrderPageListForExcel(pageSearch, this.CurrentUser);
- //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.DataList
- };
- base.AddExcelProcess("会员消费明细", dataResult);
- //resultData.Rate = 0.02m;
- //result.Data = resultData;
- //WebSocketBLL.SendSocketMsg(ReportId, JsonHelper.ToJson(result, false, true));
- return base.Execute();
- }
- #endregion
- }
-}
diff --git a/Reportapi/MyCode.Project.Services/BLL/ReportExport/MemberServiceOrderExport.cs b/Reportapi/MyCode.Project.Services/BLL/ReportExport/MemberServiceOrderExport.cs
deleted file mode 100644
index c46e271..0000000
--- a/Reportapi/MyCode.Project.Services/BLL/ReportExport/MemberServiceOrderExport.cs
+++ /dev/null
@@ -1,61 +0,0 @@
-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 MemberServiceOrderExport : BaseExport
- {
- #region 初始化
- private readonly ILxmReport2023Service _reportService;
- public MemberServiceOrderExport(ILxmReport2023Service reportService)
- {
- _reportService = reportService;
- }
- #endregion
-
- #region Execute(执行)
- public override string Execute()
- {
- //类型为0是报表专用,验证客户端是否在线
- //WebSocketBLL.CheckOnline(ReportId, 0);
- var pageSearch = base.GetPageSearch(Condition);
-
- var proList = _reportService.GetMemberServiceOrderPageList(pageSearch, this.CurrentUser);
- //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.DataList
- };
- base.AddExcelProcess("会员服务明细", dataResult);
- //resultData.Rate = 0.02m;
- //result.Data = resultData;
- //WebSocketBLL.SendSocketMsg(ReportId, JsonHelper.ToJson(result, false, true));
- return base.Execute();
- }
- #endregion
- }
-}
diff --git a/Reportapi/MyCode.Project.Services/BLL/ReportExport/MemberValueReportExport.cs b/Reportapi/MyCode.Project.Services/BLL/ReportExport/MemberValueReportExport.cs
deleted file mode 100644
index 5363699..0000000
--- a/Reportapi/MyCode.Project.Services/BLL/ReportExport/MemberValueReportExport.cs
+++ /dev/null
@@ -1,98 +0,0 @@
-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.Domain.Message.Response.Report2309;
-using MyCode.Project.Infrastructure;
-using MyCode.Project.Infrastructure.Cache;
-using MyCode.Project.Infrastructure.Common;
-using MyCode.Project.Infrastructure.Constant;
-using MyCode.Project.Infrastructure.Enumeration;
-using MyCode.Project.Services.Implementation;
-using MyCode.Project.Services.IServices;
-
-namespace MyCode.Project.Services.BLL.ReportExport
-{
- public class MemberValueReportExport : BaseExport
- {
- #region 初始化
- private readonly ILxmReport2023Service _reportService;
- private IMyCodeCacheService _myCodeCacheService;
- private ILxmReport2309Service _lxmReport2309Service;
-
- public MemberValueReportExport(ILxmReport2023Service reportService
- , IMyCodeCacheService myCodeCacheService
- ,ILxmReport2309Service lxmReport2309Service)
- {
- _reportService = reportService;
- _lxmReport2309Service= lxmReport2309Service;
- }
- #endregion
-
- #region Execute(执行)
- public override string Execute()
- {
- //var req = JsonHelper.ToObject(Condition.ToString());
-
- var resultData = new ReportCalRateResp()
- {
- Total = 0,
- Rate = 0.01m
- };
-
- var result = new Result()
- {
- Data = resultData,
- Code = ResultCode.Success
- };
-
- if (base.ExcelFileType == (int)ExportFileType.Zip)
- {
- //类型为0是报表专用,验证客户端是否在线
- WebSocketBLL.CheckOnline(ReportId, 0);
- //开始运算,先发送个进度0%,表明开始
- WebSocketBLL.SendSocketMsg(ReportId, JsonHelper.ToJson(result, false, true));
- }
-
- var pageSearch = base.GetPageSearch(Condition, 1);
- var list = _lxmReport2309Service.GetMemberValueReportPageList(pageSearch, this.CurrentUser);
-
- resultData.Total = list.TotalCount;
- var fileName = $"会员价值报表";
-
- if (base.ExcelFileType == (int)ExportFileType.Zip)
- {
- resultData.Rate = 0.02m;
- result.Data = resultData;
- WebSocketBLL.SendSocketMsg(ReportId, JsonHelper.ToJson(result, false, true));
-
- }
- pageSearch.Page = 1;
- pageSearch.PageSize = 10000;
- int maxPage = (list.TotalCount+ pageSearch.PageSize-1) / pageSearch.PageSize;
- string zipFile = "";
- string hasDownloadZipCacheKey = CacheKey.HasDownloadZipCacheKey + $@":{ReportId}";
- while (pageSearch.Page <= maxPage)
- {
- list = _lxmReport2309Service.GetMemberValueReportPageList(pageSearch, this.CurrentUser);
- zipFile =base.PageListExecute(list, pageSearch.Page, pageSearch.PageSize, list.TotalCount, fileName, hasDownloadZipCacheKey);
- pageSearch.Page++;
- }
- if (zipFile == "")
- {
- resultData.CurQty = list.TotalCount;
- resultData.Rate = 1;
-
- WebSocketBLL.SendSocketMsg(ReportId, JsonHelper.ToJson(result, false, true));
- //移除正在下载
- _myCodeCacheService.Delete($"{hasDownloadZipCacheKey}");
- }
- return zipFile;
- }
- #endregion
-
- }
-}
diff --git a/Reportapi/MyCode.Project.Services/BLL/ReportExport/NewMemberALLDetailsExport.cs b/Reportapi/MyCode.Project.Services/BLL/ReportExport/NewMemberALLDetailsExport.cs
deleted file mode 100644
index 37bba1d..0000000
--- a/Reportapi/MyCode.Project.Services/BLL/ReportExport/NewMemberALLDetailsExport.cs
+++ /dev/null
@@ -1,268 +0,0 @@
-using MyCode.Project.Domain.Message.Request.BaoDian;
-using MyCode.Project.Domain.Message.Response.BaoDian;
-using MyCode.Project.Domain.Message.Response.LxmZHMDReport;
-using MyCode.Project.Infrastructure;
-using MyCode.Project.Infrastructure.Common;
-using MyCode.Project.Infrastructure.Enumeration;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Services.BLL.ReportExport
-{
- public class NewMemberALLDetailsExport : BaseExport
- {
- #region 初始化
- private readonly IBaoDianService _baoDianService;
- public NewMemberALLDetailsExport(IBaoDianService baoDianService)
- {
- _baoDianService = baoDianService;
- }
- #endregion
- #region Execute(执行)
- public override string Execute()
- {
- var pageSearch = base.GetPageSearch(Condition);
-
- var resultData = new ReportCalRateResp()
- {
- Total = 0,
- Rate = 0.01m
- };
-
- var result = new Result()
- {
- Data = resultData,
- Code = ResultCode.Success
- };
-
- if (base.ExcelFileType == (int)ExportFileType.Zip)
- {
- //类型为0是报表专用,验证客户端是否在线
- WebSocketBLL.CheckOnline(ReportId, 0);
-
- //开始运算,先发送个进度0%,表明开始
- WebSocketBLL.SendSocketMsg(ReportId, JsonHelper.ToJson(result, false, true));
-
- }
-
- var list = _baoDianService.GetNewMemberALLDetailsExport(pageSearch, this.CurrentUser);
-
- resultData.Total = list.Count;
-
- list.ForEach(x => {
-
- List resplist = new List();
- x.DataList.ForEach(k => {
- NewMemberReportDetailsExportResp resp = new NewMemberReportDetailsExportResp();
- resp.AddFromTypeStr = k.AddFromTypeStr;
- int i = 0;
- k.ListAttr.ForEach(t => {
- i++;
- if (i == (int)(DayNumber.One)) { resp.PlanQty1 = t.PlanQty; resp.CompletedQty1 = t.CompletedQty; resp.CompletedPercent1 = t.CompletedPercent; }
- if (i == (int)(DayNumber.Two)) { resp.PlanQty2 = t.PlanQty; resp.CompletedQty2 = t.CompletedQty; resp.CompletedPercent2 = t.CompletedPercent; }
- if (i == (int)(DayNumber.Three)) { resp.PlanQty3 = t.PlanQty; resp.CompletedQty3 = t.CompletedQty; resp.CompletedPercent3 = t.CompletedPercent; }
- if (i == (int)(DayNumber.Four)) { resp.PlanQty4 = t.PlanQty; resp.CompletedQty4 = t.CompletedQty; resp.CompletedPercent4 = t.CompletedPercent; }
- if (i == (int)(DayNumber.Five)) { resp.PlanQty5 = t.PlanQty; resp.CompletedQty5 = t.CompletedQty; resp.CompletedPercent5 = t.CompletedPercent; }
- if (i == (int)(DayNumber.Six)) { resp.PlanQty6 = t.PlanQty; resp.CompletedQty6 = t.CompletedQty; resp.CompletedPercent6 = t.CompletedPercent; }
- if (i == (int)(DayNumber.Seven)) { resp.PlanQty7 = t.PlanQty; resp.CompletedQty7 = t.CompletedQty; resp.CompletedPercent7 = t.CompletedPercent; }
- if (i == (int)(DayNumber.Eight)) { resp.PlanQty8 = t.PlanQty; resp.CompletedQty8 = t.CompletedQty; resp.CompletedPercent8 = t.CompletedPercent; }
- if (i == (int)(DayNumber.Nine)) { resp.PlanQty9 = t.PlanQty; resp.CompletedQty9 = t.CompletedQty; resp.CompletedPercent9 = t.CompletedPercent; }
- if (i == (int)(DayNumber.Ten)) { resp.PlanQty10 = t.PlanQty; resp.CompletedQty10 = t.CompletedQty; resp.CompletedPercent10 = t.CompletedPercent; }
- if (i == (int)(DayNumber.Eleven)) { resp.PlanQty11 = t.PlanQty; resp.CompletedQty11 = t.CompletedQty; resp.CompletedPercent11 = t.CompletedPercent; }
- if (i == (int)(DayNumber.Twelve)) { resp.PlanQty12 = t.PlanQty; resp.CompletedQty12 = t.CompletedQty; resp.CompletedPercent12 = t.CompletedPercent; }
- if (i == (int)(DayNumber.Thirteen)) { resp.PlanQty13 = t.PlanQty; resp.CompletedQty13 = t.CompletedQty; resp.CompletedPercent13 = t.CompletedPercent; }
- if (i == (int)(DayNumber.Fourteen)) { resp.PlanQty14 = t.PlanQty; resp.CompletedQty14 = t.CompletedQty; resp.CompletedPercent14 = t.CompletedPercent; }
- if (i == (int)(DayNumber.Fifteen)) { resp.PlanQty15 = t.PlanQty; resp.CompletedQty15 = t.CompletedQty; resp.CompletedPercent15 = t.CompletedPercent; }
- if (i == (int)(DayNumber.Sixteen)) { resp.PlanQty16 = t.PlanQty; resp.CompletedQty16 = t.CompletedQty; resp.CompletedPercent16 = t.CompletedPercent; }
- if (i == (int)(DayNumber.Seventeen)) { resp.PlanQty17 = t.PlanQty; resp.CompletedQty17 = t.CompletedQty; resp.CompletedPercent17 = t.CompletedPercent; }
- if (i == (int)(DayNumber.Eighteen)) { resp.PlanQty18 = t.PlanQty; resp.CompletedQty18 = t.CompletedQty; resp.CompletedPercent18 = t.CompletedPercent; }
- if (i == (int)(DayNumber.Nineteen)) { resp.PlanQty19 = t.PlanQty; resp.CompletedQty19 = t.CompletedQty; resp.CompletedPercent19 = t.CompletedPercent; }
- if (i == (int)(DayNumber.Twenty)) { resp.PlanQty20 = t.PlanQty; resp.CompletedQty20 = t.CompletedQty; resp.CompletedPercent20 = t.CompletedPercent; }
- if (i == (int)(DayNumber.TwentyOne)) { resp.PlanQty21 = t.PlanQty; resp.CompletedQty21 = t.CompletedQty; resp.CompletedPercent21 = t.CompletedPercent; }
- if (i == (int)(DayNumber.TwentyTwo)) { resp.PlanQty22 = t.PlanQty; resp.CompletedQty22 = t.CompletedQty; resp.CompletedPercent22 = t.CompletedPercent; }
- if (i == (int)(DayNumber.TwentyThree)) { resp.PlanQty23 = t.PlanQty; resp.CompletedQty23 = t.CompletedQty; resp.CompletedPercent23 = t.CompletedPercent; }
- if (i == (int)(DayNumber.TwentyFour)) { resp.PlanQty24 = t.PlanQty; resp.CompletedQty24 = t.CompletedQty; resp.CompletedPercent24 = t.CompletedPercent; }
- if (i == (int)(DayNumber.TwentyFive)) { resp.PlanQty25 = t.PlanQty; resp.CompletedQty25 = t.CompletedQty; resp.CompletedPercent25 = t.CompletedPercent; }
- if (i == (int)(DayNumber.TwentySix)) { resp.PlanQty26 = t.PlanQty; resp.CompletedQty26 = t.CompletedQty; resp.CompletedPercent26 = t.CompletedPercent; }
- if (i == (int)(DayNumber.TwentySeven)) { resp.PlanQty27 = t.PlanQty; resp.CompletedQty27 = t.CompletedQty; resp.CompletedPercent27 = t.CompletedPercent; }
- if (i == (int)(DayNumber.TwentyEight)) { resp.PlanQty28 = t.PlanQty; resp.CompletedQty28 = t.CompletedQty; resp.CompletedPercent28 = t.CompletedPercent; }
- if (i == (int)(DayNumber.TwentyNine)) { resp.PlanQty29 = t.PlanQty; resp.CompletedQty29 = t.CompletedQty; resp.CompletedPercent29 = t.CompletedPercent; }
- if (i == (int)(DayNumber.Thirty)) { resp.PlanQty30 = t.PlanQty; resp.CompletedQty30 = t.CompletedQty; resp.CompletedPercent30 = t.CompletedPercent; }
- });
- resplist.Add(resp);
- });
- var fieldDatas = x.ListHeadField;
- var dataResult = new
- {
- op = resplist,
- Title1 = fieldDatas.Where(p => p.Sort == 1).Select(p => p.FieldName).FirstOrDefault(),
- PlanQty1 = fieldDatas.Where(p => p.Sort == 1).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "计划人数",
- CompletedQty1 = fieldDatas.Where(p => p.Sort == 1).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "实际达成",
- CompletedPercent1 = fieldDatas.Where(p => p.Sort == 1).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "达成率",
-
- Title2 = fieldDatas.Where(p => p.Sort == 2).Select(p => p.FieldName).FirstOrDefault(),
- PlanQty2 = fieldDatas.Where(p => p.Sort == 2).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "计划人数",
- CompletedQty2 = fieldDatas.Where(p => p.Sort == 2).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "实际达成",
- CompletedPercent2 = fieldDatas.Where(p => p.Sort == 2).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "达成率",
-
- Title3 = fieldDatas.Where(p => p.Sort == 3).Select(p => p.FieldName).FirstOrDefault(),
- PlanQty3 = fieldDatas.Where(p => p.Sort == 3).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "计划人数",
- CompletedQty3 = fieldDatas.Where(p => p.Sort == 3).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "实际达成",
- CompletedPercent3 = fieldDatas.Where(p => p.Sort == 3).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "达成率",
-
- Title4 = fieldDatas.Where(p => p.Sort == 4).Select(p => p.FieldName).FirstOrDefault(),
- PlanQty4 = fieldDatas.Where(p => p.Sort == 4).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "计划人数",
- CompletedQty4 = fieldDatas.Where(p => p.Sort == 4).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "实际达成",
- CompletedPercent4 = fieldDatas.Where(p => p.Sort == 4).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "达成率",
-
- Title5 = fieldDatas.Where(p => p.Sort == 5).Select(p => p.FieldName).FirstOrDefault(),
- PlanQty5 = fieldDatas.Where(p => p.Sort == 5).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "计划人数",
- CompletedQty5 = fieldDatas.Where(p => p.Sort == 5).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "实际达成",
- CompletedPercent5 = fieldDatas.Where(p => p.Sort == 5).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "达成率",
-
- Title6 = fieldDatas.Where(p => p.Sort == 6).Select(p => p.FieldName).FirstOrDefault(),
- PlanQty6 = fieldDatas.Where(p => p.Sort == 6).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "计划人数",
- CompletedQty6 = fieldDatas.Where(p => p.Sort == 6).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "实际达成",
- CompletedPercent6 = fieldDatas.Where(p => p.Sort == 6).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "达成率",
-
- Title7 = fieldDatas.Where(p => p.Sort == 7).Select(p => p.FieldName).FirstOrDefault(),
- PlanQty7 = fieldDatas.Where(p => p.Sort == 7).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "计划人数",
- CompletedQty7 = fieldDatas.Where(p => p.Sort == 7).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "实际达成",
- CompletedPercent7 = fieldDatas.Where(p => p.Sort == 7).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "达成率",
-
- Title8 = fieldDatas.Where(p => p.Sort == 8).Select(p => p.FieldName).FirstOrDefault(),
- PlanQty8 = fieldDatas.Where(p => p.Sort == 8).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "计划人数",
- CompletedQty8 = fieldDatas.Where(p => p.Sort == 8).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "实际达成",
- CompletedPercent8 = fieldDatas.Where(p => p.Sort == 8).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "达成率",
-
- Title9 = fieldDatas.Where(p => p.Sort == 9).Select(p => p.FieldName).FirstOrDefault(),
- PlanQty9 = fieldDatas.Where(p => p.Sort == 9).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "计划人数",
- CompletedQty9 = fieldDatas.Where(p => p.Sort == 9).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "实际达成",
- CompletedPercent9 = fieldDatas.Where(p => p.Sort == 9).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "达成率",
-
- Title10 = fieldDatas.Where(p => p.Sort == 10).Select(p => p.FieldName).FirstOrDefault(),
- PlanQty10 = fieldDatas.Where(p => p.Sort == 10).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "计划人数",
- CompletedQty10 = fieldDatas.Where(p => p.Sort == 10).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "实际达成",
- CompletedPercent10 = fieldDatas.Where(p => p.Sort == 10).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "达成率" ,
-
- Title11 = fieldDatas.Where(p => p.Sort == 11).Select(p => p.FieldName).FirstOrDefault(),
- PlanQty11 = fieldDatas.Where(p => p.Sort == 11).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "计划人数",
- CompletedQty11 = fieldDatas.Where(p => p.Sort == 11).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "实际达成",
- CompletedPercent11 = fieldDatas.Where(p => p.Sort == 11).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "达成率",
-
- Title12 = fieldDatas.Where(p => p.Sort == 12).Select(p => p.FieldName).FirstOrDefault(),
- PlanQty12 = fieldDatas.Where(p => p.Sort == 12).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "计划人数",
- CompletedQty12 = fieldDatas.Where(p => p.Sort == 12).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "实际达成",
- CompletedPercent12 = fieldDatas.Where(p => p.Sort == 12).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "达成率",
-
- Title13 = fieldDatas.Where(p => p.Sort == 13).Select(p => p.FieldName).FirstOrDefault(),
- PlanQty13 = fieldDatas.Where(p => p.Sort == 13).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "计划人数",
- CompletedQty13 = fieldDatas.Where(p => p.Sort == 13).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "实际达成",
- CompletedPercent13 = fieldDatas.Where(p => p.Sort == 13).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "达成率",
-
- Title14 = fieldDatas.Where(p => p.Sort == 14).Select(p => p.FieldName).FirstOrDefault(),
- PlanQty14 = fieldDatas.Where(p => p.Sort == 14).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "计划人数",
- CompletedQty14 = fieldDatas.Where(p => p.Sort == 14).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "实际达成",
- CompletedPercent14 = fieldDatas.Where(p => p.Sort == 14).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "达成率",
-
- Title15 = fieldDatas.Where(p => p.Sort == 15).Select(p => p.FieldName).FirstOrDefault(),
- PlanQty15 = fieldDatas.Where(p => p.Sort == 15).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "计划人数",
- CompletedQty15 = fieldDatas.Where(p => p.Sort == 15).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "实际达成",
- CompletedPercent15 = fieldDatas.Where(p => p.Sort == 15).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "达成率",
-
- Title16 = fieldDatas.Where(p => p.Sort == 16).Select(p => p.FieldName).FirstOrDefault(),
- PlanQty16 = fieldDatas.Where(p => p.Sort == 16).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "计划人数",
- CompletedQty16 = fieldDatas.Where(p => p.Sort == 16).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "实际达成",
- CompletedPercent16 = fieldDatas.Where(p => p.Sort == 16).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "达成率",
-
- Title17 = fieldDatas.Where(p => p.Sort == 17).Select(p => p.FieldName).FirstOrDefault(),
- PlanQty17 = fieldDatas.Where(p => p.Sort == 17).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "计划人数",
- CompletedQty17 = fieldDatas.Where(p => p.Sort == 17).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "实际达成",
- CompletedPercent17 = fieldDatas.Where(p => p.Sort == 17).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "达成率",
-
- Title18 = fieldDatas.Where(p => p.Sort == 18).Select(p => p.FieldName).FirstOrDefault(),
- PlanQty18 = fieldDatas.Where(p => p.Sort == 18).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "计划人数",
- CompletedQty18 = fieldDatas.Where(p => p.Sort == 18).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "实际达成",
- CompletedPercent18 = fieldDatas.Where(p => p.Sort == 18).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "达成率",
-
- Title19 = fieldDatas.Where(p => p.Sort == 19).Select(p => p.FieldName).FirstOrDefault(),
- PlanQty19 = fieldDatas.Where(p => p.Sort == 19).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "计划人数",
- CompletedQty19 = fieldDatas.Where(p => p.Sort == 19).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "实际达成",
- CompletedPercent19 = fieldDatas.Where(p => p.Sort == 19).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "达成率",
-
- Title20 = fieldDatas.Where(p => p.Sort == 20).Select(p => p.FieldName).FirstOrDefault(),
- PlanQty20 = fieldDatas.Where(p => p.Sort == 20).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "计划人数",
- CompletedQty20 = fieldDatas.Where(p => p.Sort == 20).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "实际达成",
- CompletedPercent20 = fieldDatas.Where(p => p.Sort == 20).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "达成率",
-
- Title21 = fieldDatas.Where(p => p.Sort == 21).Select(p => p.FieldName).FirstOrDefault(),
- PlanQty21 = fieldDatas.Where(p => p.Sort == 21).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "计划人数",
- CompletedQty21 = fieldDatas.Where(p => p.Sort == 21).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "实际达成",
- CompletedPercent21 = fieldDatas.Where(p => p.Sort == 21).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "达成率",
-
- Title22 = fieldDatas.Where(p => p.Sort == 22).Select(p => p.FieldName).FirstOrDefault(),
- PlanQty22 = fieldDatas.Where(p => p.Sort == 22).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "计划人数",
- CompletedQty22 = fieldDatas.Where(p => p.Sort == 22).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "实际达成",
- CompletedPercent22 = fieldDatas.Where(p => p.Sort == 22).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "达成率",
-
- Title23 = fieldDatas.Where(p => p.Sort == 23).Select(p => p.FieldName).FirstOrDefault(),
- PlanQty23 = fieldDatas.Where(p => p.Sort == 23).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "计划人数",
- CompletedQty23 = fieldDatas.Where(p => p.Sort == 23).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "实际达成",
- CompletedPercent23 = fieldDatas.Where(p => p.Sort == 23).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "达成率",
-
- Title24 = fieldDatas.Where(p => p.Sort == 24).Select(p => p.FieldName).FirstOrDefault(),
- PlanQty24 = fieldDatas.Where(p => p.Sort == 24).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "计划人数",
- CompletedQty24 = fieldDatas.Where(p => p.Sort == 24).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "实际达成",
- CompletedPercent24 = fieldDatas.Where(p => p.Sort == 24).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "达成率",
-
- Title25 = fieldDatas.Where(p => p.Sort == 25).Select(p => p.FieldName).FirstOrDefault(),
- PlanQty25 = fieldDatas.Where(p => p.Sort == 25).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "计划人数",
- CompletedQty25 = fieldDatas.Where(p => p.Sort == 25).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "实际达成",
- CompletedPercent25 = fieldDatas.Where(p => p.Sort == 25).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "达成率",
-
- Title26 = fieldDatas.Where(p => p.Sort == 26).Select(p => p.FieldName).FirstOrDefault(),
- PlanQty26 = fieldDatas.Where(p => p.Sort == 26).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "计划人数",
- CompletedQty26 = fieldDatas.Where(p => p.Sort == 26).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "实际达成",
- CompletedPercent26 = fieldDatas.Where(p => p.Sort == 26).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "达成率",
-
- Title27 = fieldDatas.Where(p => p.Sort == 27).Select(p => p.FieldName).FirstOrDefault(),
- PlanQty27 = fieldDatas.Where(p => p.Sort == 27).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "计划人数",
- CompletedQty27 = fieldDatas.Where(p => p.Sort == 27).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "实际达成",
- CompletedPercent27 = fieldDatas.Where(p => p.Sort == 27).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "达成率",
-
- Title28 = fieldDatas.Where(p => p.Sort == 28).Select(p => p.FieldName).FirstOrDefault(),
- PlanQty28 = fieldDatas.Where(p => p.Sort == 28).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "计划人数",
- CompletedQty28 = fieldDatas.Where(p => p.Sort == 28).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "实际达成",
- CompletedPercent28 = fieldDatas.Where(p => p.Sort == 28).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "达成率",
-
- Title29 = fieldDatas.Where(p => p.Sort == 29).Select(p => p.FieldName).FirstOrDefault(),
- PlanQty29 = fieldDatas.Where(p => p.Sort == 29).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "计划人数",
- CompletedQty29 = fieldDatas.Where(p => p.Sort == 29).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "实际达成",
- CompletedPercent29 = fieldDatas.Where(p => p.Sort == 29).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "达成率",
-
- Title30 = fieldDatas.Where(p => p.Sort == 30).Select(p => p.FieldName).FirstOrDefault(),
- PlanQty30 = fieldDatas.Where(p => p.Sort == 30).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "计划人数",
- CompletedQty30 = fieldDatas.Where(p => p.Sort == 30).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "实际达成",
- CompletedPercent30 = fieldDatas.Where(p => p.Sort == 30).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "达成率"
- };
- var fileName = $"{x.DisPlayMonth}_{x.CustomerName}_{x.Code}_{x.ShopName}";
- base.AddExcelProcess(fileName, dataResult);
-
- });
-
- if (base.ExcelFileType == (int)ExportFileType.Zip)
- {
- resultData.Rate = 0.02m;
- result.Data = resultData;
- WebSocketBLL.SendSocketMsg(ReportId, JsonHelper.ToJson(result, false, true));
-
- }
- return base.Execute();
-
- }
- #endregion
- }
-}
diff --git a/Reportapi/MyCode.Project.Services/BLL/ReportExport/NewMemberReportDetailsExport.cs b/Reportapi/MyCode.Project.Services/BLL/ReportExport/NewMemberReportDetailsExport.cs
deleted file mode 100644
index 703c243..0000000
--- a/Reportapi/MyCode.Project.Services/BLL/ReportExport/NewMemberReportDetailsExport.cs
+++ /dev/null
@@ -1,233 +0,0 @@
-using MyCode.Project.Domain.Message.Request.BaoDian;
-using MyCode.Project.Domain.Message.Response.BaoDian;
-using MyCode.Project.Infrastructure.Common;
-using MyCode.Project.Infrastructure.Enumeration;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Services.BLL.ReportExport
-{
- public class NewMemberReportDetailsExport : BaseExport
- {
- #region 初始化
- private readonly IBaoDianService _baoDianService;
- public NewMemberReportDetailsExport(IBaoDianService baoDianService)
- {
- _baoDianService = baoDianService;
- }
- #endregion
- #region Execute(执行)
- public override string Execute()
- {
- var req = JsonHelper.ToObject(Condition.ToString());
-
- //先获取列表
- var opList = _baoDianService.GetNewMemberDetails(req);
-
- List list = new List();
- opList.DataList.ForEach(x => {
- NewMemberReportDetailsExportResp resp = new NewMemberReportDetailsExportResp();
- resp.AddFromTypeStr = x.AddFromTypeStr;
- int i = 0;
- x.ListAttr.ForEach(t => {
- i++;
- if (i == (int)(DayNumber.One)) { resp.PlanQty1 = t.PlanQty; resp.CompletedQty1 = t.CompletedQty; resp.CompletedPercent1 = t.CompletedPercent; }
- if (i == (int)(DayNumber.Two)) { resp.PlanQty2 = t.PlanQty; resp.CompletedQty2 = t.CompletedQty; resp.CompletedPercent2 = t.CompletedPercent; }
- if (i == (int)(DayNumber.Three)) { resp.PlanQty3 = t.PlanQty; resp.CompletedQty3 = t.CompletedQty; resp.CompletedPercent3 = t.CompletedPercent; }
- if (i == (int)(DayNumber.Four)) { resp.PlanQty4 = t.PlanQty; resp.CompletedQty4 = t.CompletedQty; resp.CompletedPercent4 = t.CompletedPercent; }
- if (i == (int)(DayNumber.Five)) { resp.PlanQty5 = t.PlanQty; resp.CompletedQty5 = t.CompletedQty; resp.CompletedPercent5 = t.CompletedPercent; }
- if (i == (int)(DayNumber.Six)) { resp.PlanQty6 = t.PlanQty; resp.CompletedQty6 = t.CompletedQty; resp.CompletedPercent6 = t.CompletedPercent; }
- if (i == (int)(DayNumber.Seven)) { resp.PlanQty7 = t.PlanQty; resp.CompletedQty7 = t.CompletedQty; resp.CompletedPercent7 = t.CompletedPercent; }
- if (i == (int)(DayNumber.Eight)) { resp.PlanQty8 = t.PlanQty; resp.CompletedQty8 = t.CompletedQty; resp.CompletedPercent8 = t.CompletedPercent; }
- if (i == (int)(DayNumber.Nine)) { resp.PlanQty9 = t.PlanQty; resp.CompletedQty9 = t.CompletedQty; resp.CompletedPercent9 = t.CompletedPercent; }
- if (i == (int)(DayNumber.Ten)) { resp.PlanQty10 = t.PlanQty; resp.CompletedQty10 = t.CompletedQty; resp.CompletedPercent10 = t.CompletedPercent; }
- if (i == (int)(DayNumber.Eleven)) { resp.PlanQty11 = t.PlanQty; resp.CompletedQty11 = t.CompletedQty; resp.CompletedPercent11 = t.CompletedPercent; }
- if (i == (int)(DayNumber.Twelve)) { resp.PlanQty12 = t.PlanQty; resp.CompletedQty12 = t.CompletedQty; resp.CompletedPercent12 = t.CompletedPercent; }
- if (i == (int)(DayNumber.Thirteen)) { resp.PlanQty13 = t.PlanQty; resp.CompletedQty13 = t.CompletedQty; resp.CompletedPercent13 = t.CompletedPercent; }
- if (i == (int)(DayNumber.Fourteen)) { resp.PlanQty14 = t.PlanQty; resp.CompletedQty14 = t.CompletedQty; resp.CompletedPercent14 = t.CompletedPercent; }
- if (i == (int)(DayNumber.Fifteen)) { resp.PlanQty15 = t.PlanQty; resp.CompletedQty15 = t.CompletedQty; resp.CompletedPercent15 = t.CompletedPercent; }
- if (i == (int)(DayNumber.Sixteen)) { resp.PlanQty16 = t.PlanQty; resp.CompletedQty16 = t.CompletedQty; resp.CompletedPercent16 = t.CompletedPercent; }
- if (i == (int)(DayNumber.Seventeen)) { resp.PlanQty17 = t.PlanQty; resp.CompletedQty17 = t.CompletedQty; resp.CompletedPercent17 = t.CompletedPercent; }
- if (i == (int)(DayNumber.Eighteen)) { resp.PlanQty18 = t.PlanQty; resp.CompletedQty18 = t.CompletedQty; resp.CompletedPercent18 = t.CompletedPercent; }
- if (i == (int)(DayNumber.Nineteen)) { resp.PlanQty19 = t.PlanQty; resp.CompletedQty19 = t.CompletedQty; resp.CompletedPercent19 = t.CompletedPercent; }
- if (i == (int)(DayNumber.Twenty)) { resp.PlanQty20 = t.PlanQty; resp.CompletedQty20 = t.CompletedQty; resp.CompletedPercent20 = t.CompletedPercent; }
- if (i == (int)(DayNumber.TwentyOne)) { resp.PlanQty21 = t.PlanQty; resp.CompletedQty21 = t.CompletedQty; resp.CompletedPercent21 = t.CompletedPercent; }
- if (i == (int)(DayNumber.TwentyTwo)) { resp.PlanQty22 = t.PlanQty; resp.CompletedQty22 = t.CompletedQty; resp.CompletedPercent22 = t.CompletedPercent; }
- if (i == (int)(DayNumber.TwentyThree)) { resp.PlanQty23 = t.PlanQty; resp.CompletedQty23 = t.CompletedQty; resp.CompletedPercent23 = t.CompletedPercent; }
- if (i == (int)(DayNumber.TwentyFour)) { resp.PlanQty24 = t.PlanQty; resp.CompletedQty24 = t.CompletedQty; resp.CompletedPercent24 = t.CompletedPercent; }
- if (i == (int)(DayNumber.TwentyFive)) { resp.PlanQty25 = t.PlanQty; resp.CompletedQty25 = t.CompletedQty; resp.CompletedPercent25 = t.CompletedPercent; }
- if (i == (int)(DayNumber.TwentySix)) { resp.PlanQty26 = t.PlanQty; resp.CompletedQty26 = t.CompletedQty; resp.CompletedPercent26 = t.CompletedPercent; }
- if (i == (int)(DayNumber.TwentySeven)) { resp.PlanQty27 = t.PlanQty; resp.CompletedQty27 = t.CompletedQty; resp.CompletedPercent27 = t.CompletedPercent; }
- if (i == (int)(DayNumber.TwentyEight)) { resp.PlanQty28 = t.PlanQty; resp.CompletedQty28 = t.CompletedQty; resp.CompletedPercent28 = t.CompletedPercent; }
- if (i == (int)(DayNumber.TwentyNine)) { resp.PlanQty29 = t.PlanQty; resp.CompletedQty29 = t.CompletedQty; resp.CompletedPercent29 = t.CompletedPercent; }
- if (i == (int)(DayNumber.Thirty)) { resp.PlanQty30 = t.PlanQty; resp.CompletedQty30 = t.CompletedQty; resp.CompletedPercent30 = t.CompletedPercent; }
- });
- list.Add(resp);
- });
- var fieldDatas = opList.ListHeadField;
- var result = new
- {
- op = list,
- Title1 = fieldDatas.Where(p => p.Sort == 1).Select(p => p.FieldName).FirstOrDefault(),
- PlanQty1 = fieldDatas.Where(p => p.Sort == 1).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "计划人数",
- CompletedQty1 = fieldDatas.Where(p => p.Sort == 1).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "实际达成",
- CompletedPercent1 = fieldDatas.Where(p => p.Sort == 1).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "达成率",
-
- Title2 = fieldDatas.Where(p => p.Sort == 2).Select(p => p.FieldName).FirstOrDefault(),
- PlanQty2 = fieldDatas.Where(p => p.Sort == 2).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "计划人数",
- CompletedQty2 = fieldDatas.Where(p => p.Sort == 2).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "实际达成",
- CompletedPercent2 = fieldDatas.Where(p => p.Sort == 2).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "达成率",
-
- Title3 = fieldDatas.Where(p => p.Sort == 3).Select(p => p.FieldName).FirstOrDefault(),
- PlanQty3 = fieldDatas.Where(p => p.Sort == 3).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "计划人数",
- CompletedQty3 = fieldDatas.Where(p => p.Sort == 3).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "实际达成",
- CompletedPercent3 = fieldDatas.Where(p => p.Sort == 3).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "达成率",
-
- Title4 = fieldDatas.Where(p => p.Sort == 4).Select(p => p.FieldName).FirstOrDefault(),
- PlanQty4 = fieldDatas.Where(p => p.Sort == 4).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "计划人数",
- CompletedQty4 = fieldDatas.Where(p => p.Sort == 4).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "实际达成",
- CompletedPercent4 = fieldDatas.Where(p => p.Sort == 4).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "达成率",
-
- Title5 = fieldDatas.Where(p => p.Sort == 5).Select(p => p.FieldName).FirstOrDefault(),
- PlanQty5 = fieldDatas.Where(p => p.Sort == 5).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "计划人数",
- CompletedQty5 = fieldDatas.Where(p => p.Sort == 5).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "实际达成",
- CompletedPercent5 = fieldDatas.Where(p => p.Sort == 5).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "达成率",
-
- Title6 = fieldDatas.Where(p => p.Sort == 6).Select(p => p.FieldName).FirstOrDefault(),
- PlanQty6 = fieldDatas.Where(p => p.Sort == 6).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "计划人数",
- CompletedQty6 = fieldDatas.Where(p => p.Sort == 6).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "实际达成",
- CompletedPercent6 = fieldDatas.Where(p => p.Sort == 6).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "达成率",
-
- Title7 = fieldDatas.Where(p => p.Sort == 7).Select(p => p.FieldName).FirstOrDefault(),
- PlanQty7 = fieldDatas.Where(p => p.Sort == 7).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "计划人数",
- CompletedQty7 = fieldDatas.Where(p => p.Sort == 7).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "实际达成",
- CompletedPercent7 = fieldDatas.Where(p => p.Sort == 7).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "达成率",
-
- Title8 = fieldDatas.Where(p => p.Sort == 8).Select(p => p.FieldName).FirstOrDefault(),
- PlanQty8 = fieldDatas.Where(p => p.Sort == 8).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "计划人数",
- CompletedQty8 = fieldDatas.Where(p => p.Sort == 8).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "实际达成",
- CompletedPercent8 = fieldDatas.Where(p => p.Sort == 8).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "达成率",
-
- Title9 = fieldDatas.Where(p => p.Sort == 9).Select(p => p.FieldName).FirstOrDefault(),
- PlanQty9 = fieldDatas.Where(p => p.Sort == 9).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "计划人数",
- CompletedQty9 = fieldDatas.Where(p => p.Sort == 9).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "实际达成",
- CompletedPercent9 = fieldDatas.Where(p => p.Sort == 9).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "达成率",
-
- Title10 = fieldDatas.Where(p => p.Sort == 10).Select(p => p.FieldName).FirstOrDefault(),
- PlanQty10 = fieldDatas.Where(p => p.Sort == 10).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "计划人数",
- CompletedQty10 = fieldDatas.Where(p => p.Sort == 10).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "实际达成",
- CompletedPercent10 = fieldDatas.Where(p => p.Sort == 10).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "达成率",
-
- Title11 = fieldDatas.Where(p => p.Sort == 11).Select(p => p.FieldName).FirstOrDefault(),
- PlanQty11 = fieldDatas.Where(p => p.Sort == 11).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "计划人数",
- CompletedQty11 = fieldDatas.Where(p => p.Sort == 11).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "实际达成",
- CompletedPercent11 = fieldDatas.Where(p => p.Sort == 11).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "达成率",
-
- Title12 = fieldDatas.Where(p => p.Sort == 12).Select(p => p.FieldName).FirstOrDefault(),
- PlanQty12 = fieldDatas.Where(p => p.Sort == 12).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "计划人数",
- CompletedQty12 = fieldDatas.Where(p => p.Sort == 12).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "实际达成",
- CompletedPercent12 = fieldDatas.Where(p => p.Sort == 12).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "达成率",
-
- Title13 = fieldDatas.Where(p => p.Sort == 13).Select(p => p.FieldName).FirstOrDefault(),
- PlanQty13 = fieldDatas.Where(p => p.Sort == 13).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "计划人数",
- CompletedQty13 = fieldDatas.Where(p => p.Sort == 13).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "实际达成",
- CompletedPercent13 = fieldDatas.Where(p => p.Sort == 13).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "达成率",
-
- Title14 = fieldDatas.Where(p => p.Sort == 14).Select(p => p.FieldName).FirstOrDefault(),
- PlanQty14 = fieldDatas.Where(p => p.Sort == 14).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "计划人数",
- CompletedQty14 = fieldDatas.Where(p => p.Sort == 14).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "实际达成",
- CompletedPercent14 = fieldDatas.Where(p => p.Sort == 14).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "达成率",
-
- Title15 = fieldDatas.Where(p => p.Sort == 15).Select(p => p.FieldName).FirstOrDefault(),
- PlanQty15 = fieldDatas.Where(p => p.Sort == 15).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "计划人数",
- CompletedQty15 = fieldDatas.Where(p => p.Sort == 15).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "实际达成",
- CompletedPercent15 = fieldDatas.Where(p => p.Sort == 15).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "达成率",
-
- Title16 = fieldDatas.Where(p => p.Sort == 16).Select(p => p.FieldName).FirstOrDefault(),
- PlanQty16 = fieldDatas.Where(p => p.Sort == 16).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "计划人数",
- CompletedQty16 = fieldDatas.Where(p => p.Sort == 16).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "实际达成",
- CompletedPercent16 = fieldDatas.Where(p => p.Sort == 16).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "达成率",
-
- Title17 = fieldDatas.Where(p => p.Sort == 17).Select(p => p.FieldName).FirstOrDefault(),
- PlanQty17 = fieldDatas.Where(p => p.Sort == 17).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "计划人数",
- CompletedQty17 = fieldDatas.Where(p => p.Sort == 17).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "实际达成",
- CompletedPercent17 = fieldDatas.Where(p => p.Sort == 17).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "达成率",
-
- Title18 = fieldDatas.Where(p => p.Sort == 18).Select(p => p.FieldName).FirstOrDefault(),
- PlanQty18 = fieldDatas.Where(p => p.Sort == 18).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "计划人数",
- CompletedQty18 = fieldDatas.Where(p => p.Sort == 18).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "实际达成",
- CompletedPercent18 = fieldDatas.Where(p => p.Sort == 18).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "达成率",
-
- Title19 = fieldDatas.Where(p => p.Sort == 19).Select(p => p.FieldName).FirstOrDefault(),
- PlanQty19 = fieldDatas.Where(p => p.Sort == 19).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "计划人数",
- CompletedQty19 = fieldDatas.Where(p => p.Sort == 19).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "实际达成",
- CompletedPercent19 = fieldDatas.Where(p => p.Sort == 19).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "达成率",
-
- Title20 = fieldDatas.Where(p => p.Sort == 20).Select(p => p.FieldName).FirstOrDefault(),
- PlanQty20 = fieldDatas.Where(p => p.Sort == 20).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "计划人数",
- CompletedQty20 = fieldDatas.Where(p => p.Sort == 20).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "实际达成",
- CompletedPercent20 = fieldDatas.Where(p => p.Sort == 20).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "达成率",
-
- Title21 = fieldDatas.Where(p => p.Sort == 21).Select(p => p.FieldName).FirstOrDefault(),
- PlanQty21 = fieldDatas.Where(p => p.Sort == 21).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "计划人数",
- CompletedQty21 = fieldDatas.Where(p => p.Sort == 21).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "实际达成",
- CompletedPercent21 = fieldDatas.Where(p => p.Sort == 21).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "达成率",
-
- Title22 = fieldDatas.Where(p => p.Sort == 22).Select(p => p.FieldName).FirstOrDefault(),
- PlanQty22 = fieldDatas.Where(p => p.Sort == 22).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "计划人数",
- CompletedQty22 = fieldDatas.Where(p => p.Sort == 22).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "实际达成",
- CompletedPercent22 = fieldDatas.Where(p => p.Sort == 22).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "达成率",
-
- Title23 = fieldDatas.Where(p => p.Sort == 23).Select(p => p.FieldName).FirstOrDefault(),
- PlanQty23 = fieldDatas.Where(p => p.Sort == 23).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "计划人数",
- CompletedQty23 = fieldDatas.Where(p => p.Sort == 23).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "实际达成",
- CompletedPercent23 = fieldDatas.Where(p => p.Sort == 23).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "达成率",
-
- Title24 = fieldDatas.Where(p => p.Sort == 24).Select(p => p.FieldName).FirstOrDefault(),
- PlanQty24 = fieldDatas.Where(p => p.Sort == 24).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "计划人数",
- CompletedQty24 = fieldDatas.Where(p => p.Sort == 24).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "实际达成",
- CompletedPercent24 = fieldDatas.Where(p => p.Sort == 24).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "达成率",
-
- Title25 = fieldDatas.Where(p => p.Sort == 25).Select(p => p.FieldName).FirstOrDefault(),
- PlanQty25 = fieldDatas.Where(p => p.Sort == 25).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "计划人数",
- CompletedQty25 = fieldDatas.Where(p => p.Sort == 25).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "实际达成",
- CompletedPercent25 = fieldDatas.Where(p => p.Sort == 25).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "达成率",
-
- Title26 = fieldDatas.Where(p => p.Sort == 26).Select(p => p.FieldName).FirstOrDefault(),
- PlanQty26 = fieldDatas.Where(p => p.Sort == 26).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "计划人数",
- CompletedQty26 = fieldDatas.Where(p => p.Sort == 26).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "实际达成",
- CompletedPercent26 = fieldDatas.Where(p => p.Sort == 26).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "达成率",
-
- Title27 = fieldDatas.Where(p => p.Sort == 27).Select(p => p.FieldName).FirstOrDefault(),
- PlanQty27 = fieldDatas.Where(p => p.Sort == 27).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "计划人数",
- CompletedQty27 = fieldDatas.Where(p => p.Sort == 27).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "实际达成",
- CompletedPercent27 = fieldDatas.Where(p => p.Sort == 27).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "达成率",
-
- Title28 = fieldDatas.Where(p => p.Sort == 28).Select(p => p.FieldName).FirstOrDefault(),
- PlanQty28 = fieldDatas.Where(p => p.Sort == 28).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "计划人数",
- CompletedQty28 = fieldDatas.Where(p => p.Sort == 28).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "实际达成",
- CompletedPercent28 = fieldDatas.Where(p => p.Sort == 28).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "达成率",
-
- Title29 = fieldDatas.Where(p => p.Sort == 29).Select(p => p.FieldName).FirstOrDefault(),
- PlanQty29 = fieldDatas.Where(p => p.Sort == 29).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "计划人数",
- CompletedQty29 = fieldDatas.Where(p => p.Sort == 29).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "实际达成",
- CompletedPercent29 = fieldDatas.Where(p => p.Sort == 29).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "达成率",
-
- Title30 = fieldDatas.Where(p => p.Sort == 30).Select(p => p.FieldName).FirstOrDefault(),
- PlanQty30 = fieldDatas.Where(p => p.Sort == 30).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "计划人数",
- CompletedQty30 = fieldDatas.Where(p => p.Sort == 30).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "实际达成",
- CompletedPercent30 = fieldDatas.Where(p => p.Sort == 30).Select(p => p.FieldName).FirstOrDefault() == null ? "" : "达成率"
-
- };
- base.AddExcelProcess("新客销售计划进度明细", result);
-
- return base.Execute();
-
- }
- #endregion
- }
-}
-
diff --git a/Reportapi/MyCode.Project.Services/BLL/ReportExport/NewMemberReportExport.cs b/Reportapi/MyCode.Project.Services/BLL/ReportExport/NewMemberReportExport.cs
deleted file mode 100644
index f43a1f5..0000000
--- a/Reportapi/MyCode.Project.Services/BLL/ReportExport/NewMemberReportExport.cs
+++ /dev/null
@@ -1,38 +0,0 @@
-using MyCode.Project.Domain.Message.Request.BaoDian;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Services.BLL.ReportExport
-{
- public class NewMemberReportExport : BaseExport
- {
- #region 初始化
- private readonly IBaoDianService _baoDianService;
- public NewMemberReportExport(IBaoDianService baoDianService)
- {
- _baoDianService = baoDianService;
- }
- #endregion
- #region Execute(执行)
- public override string Execute()
- {
- var pageSearch = base.GetPageSearch(Condition);
-
- var opList = _baoDianService.GetNewMemberReport(pageSearch, this.CurrentUser);
-
- var dataResult = new
- {
- op = opList.DataList
- };
-
- base.AddExcelProcess("新客销售计划进度报表导出", dataResult);
-
- return base.Execute();
-
- }
- #endregion
- }
-}
\ No newline at end of file
diff --git a/Reportapi/MyCode.Project.Services/BLL/ReportExport/OldMemberALLDetailsExport.cs b/Reportapi/MyCode.Project.Services/BLL/ReportExport/OldMemberALLDetailsExport.cs
deleted file mode 100644
index caad445..0000000
--- a/Reportapi/MyCode.Project.Services/BLL/ReportExport/OldMemberALLDetailsExport.cs
+++ /dev/null
@@ -1,77 +0,0 @@
-using MyCode.Project.Domain.Message.Request.BaoDian;
-using MyCode.Project.Domain.Message.Response.LxmZHMDReport;
-using MyCode.Project.Infrastructure;
-using MyCode.Project.Infrastructure.Common;
-using MyCode.Project.Infrastructure.Enumeration;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Services.BLL.ReportExport
-{
- public class OldMemberALLDetailsExport : BaseExport
- {
- #region 初始化
- private readonly IBaoDianService _baoDianService;
- public OldMemberALLDetailsExport(IBaoDianService baoDianService)
- {
- _baoDianService = baoDianService;
- }
- #endregion
- #region Execute(执行)
- public override string Execute()
- {
- var pageSearch = base.GetPageSearch(Condition);
-
- var resultData = new ReportCalRateResp()
- {
- Total = 0,
- Rate = 0.01m
- };
-
- var result = new Result()
- {
- Data = resultData,
- Code = ResultCode.Success
- };
-
- if (base.ExcelFileType == (int)ExportFileType.Zip)
- {
- //类型为0是报表专用,验证客户端是否在线
- WebSocketBLL.CheckOnline(ReportId, 0);
-
- //开始运算,先发送个进度0%,表明开始
- WebSocketBLL.SendSocketMsg(ReportId, JsonHelper.ToJson(result, false, true));
-
- }
-
- var list = _baoDianService.GetOldMemberALLDetails(pageSearch, this.CurrentUser);
-
- resultData.Total = list.Count;
-
- list.ForEach(x => {
- var dataResult = new
- {
- op =x.MemberList
- };
- var fileName = $"{x.DisPlayMonth}_{x.CustomerName}_{x.Code}_{x.ShopName}";
- base.AddExcelProcess(fileName, dataResult);
-
- });
-
- if (base.ExcelFileType == (int)ExportFileType.Zip)
- {
- resultData.Rate = 0.02m;
- result.Data = resultData;
- WebSocketBLL.SendSocketMsg(ReportId, JsonHelper.ToJson(result, false, true));
-
- }
- return base.Execute();
-
- }
- #endregion
- }
-}
-
diff --git a/Reportapi/MyCode.Project.Services/BLL/ReportExport/OldMemberAccountBookLogExport.cs b/Reportapi/MyCode.Project.Services/BLL/ReportExport/OldMemberAccountBookLogExport.cs
deleted file mode 100644
index 18ee91b..0000000
--- a/Reportapi/MyCode.Project.Services/BLL/ReportExport/OldMemberAccountBookLogExport.cs
+++ /dev/null
@@ -1,61 +0,0 @@
-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
- }
-}
diff --git a/Reportapi/MyCode.Project.Services/BLL/ReportExport/OldMemberReportDetailsExport.cs b/Reportapi/MyCode.Project.Services/BLL/ReportExport/OldMemberReportDetailsExport.cs
deleted file mode 100644
index d930a3e..0000000
--- a/Reportapi/MyCode.Project.Services/BLL/ReportExport/OldMemberReportDetailsExport.cs
+++ /dev/null
@@ -1,38 +0,0 @@
-using MyCode.Project.Domain.Message.Request.BaoDian;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Services.BLL.ReportExport
-{
- public class OldMemberReportDetailsExport : BaseExport
- {
- #region 初始化
- private readonly IBaoDianService _baoDianService;
- public OldMemberReportDetailsExport(IBaoDianService baoDianService)
- {
- _baoDianService = baoDianService;
- }
- #endregion
- #region Execute(执行)
- public override string Execute()
- {
- var pageSearch = base.GetPageSearch(Condition);
-
- var opList = _baoDianService.GetOldMemberReportDetails(pageSearch, this.CurrentUser);
-
- var dataResult = new
- {
- op = opList.DataList
- };
-
- base.AddExcelProcess("老客复购邀约计划店铺明细报表导出", dataResult);
-
- return base.Execute();
-
- }
- #endregion
- }
-}
\ No newline at end of file
diff --git a/Reportapi/MyCode.Project.Services/BLL/ReportExport/OldMemberReportExport.cs b/Reportapi/MyCode.Project.Services/BLL/ReportExport/OldMemberReportExport.cs
deleted file mode 100644
index 3965ff5..0000000
--- a/Reportapi/MyCode.Project.Services/BLL/ReportExport/OldMemberReportExport.cs
+++ /dev/null
@@ -1,38 +0,0 @@
-using MyCode.Project.Domain.Message.Request.BaoDian;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Services.BLL.ReportExport
-{
- public class OldMemberReportExport : BaseExport
- {
- #region 初始化
- private readonly IBaoDianService _baoDianService;
- public OldMemberReportExport(IBaoDianService baoDianService)
- {
- _baoDianService = baoDianService;
- }
- #endregion
- #region Execute(执行)
- public override string Execute()
- {
- var pageSearch = base.GetPageSearch(Condition);
-
- var opList = _baoDianService.GetOldMemberReport(pageSearch, this.CurrentUser);
-
- var dataResult = new
- {
- op = opList.DataList
- };
-
- base.AddExcelProcess("老客复购邀约计划进度报表导出", dataResult);
-
- return base.Execute();
-
- }
- #endregion
- }
-}
diff --git a/Reportapi/MyCode.Project.Services/BLL/ReportExport/PersonalNewMemberReportExport.cs b/Reportapi/MyCode.Project.Services/BLL/ReportExport/PersonalNewMemberReportExport.cs
deleted file mode 100644
index d6fa259..0000000
--- a/Reportapi/MyCode.Project.Services/BLL/ReportExport/PersonalNewMemberReportExport.cs
+++ /dev/null
@@ -1,38 +0,0 @@
-using MyCode.Project.Domain.Message.Request.BaoDian;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Services.BLL.ReportExport
-{
- public class PersonalNewMemberReportExport : BaseExport
- {
- #region 初始化
- private readonly IBaoDianService _baoDianService;
- public PersonalNewMemberReportExport(IBaoDianService baoDianService)
- {
- _baoDianService = baoDianService;
- }
- #endregion
- #region Execute(执行)
- public override string Execute()
- {
- var pageSearch = base.GetPageSearch(Condition);
-
- var opList = _baoDianService.GetPersonalNewMemberReportExport(pageSearch, this.CurrentUser);
-
- var dataResult = new
- {
- op = opList
- };
-
- base.AddExcelProcess("个人新客销售计划进度报表导出", dataResult);
-
- return base.Execute();
-
- }
- #endregion
- }
-}
diff --git a/Reportapi/MyCode.Project.Services/BLL/ReportExport/PersonalOldMemberReportExport.cs b/Reportapi/MyCode.Project.Services/BLL/ReportExport/PersonalOldMemberReportExport.cs
deleted file mode 100644
index 5baff93..0000000
--- a/Reportapi/MyCode.Project.Services/BLL/ReportExport/PersonalOldMemberReportExport.cs
+++ /dev/null
@@ -1,38 +0,0 @@
-using MyCode.Project.Domain.Message.Request.BaoDian;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Services.BLL.ReportExport
-{
- public class PersonalOldMemberReportExport : BaseExport
- {
- #region 初始化
- private readonly IBaoDianService _baoDianService;
- public PersonalOldMemberReportExport(IBaoDianService baoDianService)
- {
- _baoDianService = baoDianService;
- }
- #endregion
- #region Execute(执行)
- public override string Execute()
- {
- var pageSearch = base.GetPageSearch(Condition);
-
- var opList = _baoDianService.GetPersonalOldMemberReportExport(pageSearch, this.CurrentUser);
-
- var dataResult = new
- {
- op = opList
- };
-
- base.AddExcelProcess("个人老客复购邀约计划进度报表导出", dataResult);
-
- return base.Execute();
-
- }
- #endregion
- }
-}
diff --git a/Reportapi/MyCode.Project.Services/BLL/ReportExport/PersonalProductReportExport.cs b/Reportapi/MyCode.Project.Services/BLL/ReportExport/PersonalProductReportExport.cs
deleted file mode 100644
index e387e47..0000000
--- a/Reportapi/MyCode.Project.Services/BLL/ReportExport/PersonalProductReportExport.cs
+++ /dev/null
@@ -1,38 +0,0 @@
-using MyCode.Project.Domain.Message.Request.BaoDian;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Services.BLL.ReportExport
-{
- public class PersonalProductReportExport : BaseExport
- {
- #region 初始化
- private readonly IBaoDianService _baoDianService;
- public PersonalProductReportExport(IBaoDianService baoDianService)
- {
- _baoDianService = baoDianService;
- }
- #endregion
- #region Execute(执行)
- public override string Execute()
- {
- var pageSearch = base.GetPageSearch(Condition);
-
- var opList = _baoDianService.GetPersonalProductReportExport(pageSearch, this.CurrentUser);
-
- var dataResult = new
- {
- op = opList
- };
-
- base.AddExcelProcess("个人产品销售计划进度报表导出", dataResult);
-
- return base.Execute();
-
- }
- #endregion
- }
-}
diff --git a/Reportapi/MyCode.Project.Services/BLL/ReportExport/ProductItemAnalysisSummaryExport.cs b/Reportapi/MyCode.Project.Services/BLL/ReportExport/ProductItemAnalysisSummaryExport.cs
deleted file mode 100644
index 9da312b..0000000
--- a/Reportapi/MyCode.Project.Services/BLL/ReportExport/ProductItemAnalysisSummaryExport.cs
+++ /dev/null
@@ -1,61 +0,0 @@
-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 ProductItemAnalysisSummaryExport:BaseExport
- {
- #region 初始化
- private readonly IReportService _reportService;
- public ProductItemAnalysisSummaryExport(IReportService reportService)
- {
- _reportService = reportService;
- }
- #endregion
-
- #region Execute(执行)
- public override string Execute()
- {
- //类型为0是报表专用,验证客户端是否在线
- //WebSocketBLL.CheckOnline(ReportId, 0);
- var pageSearch = base.GetPageSearch(Condition);
-
- var proList = _reportService.GetProductItemAnalysisSummary(pageSearch, this.CurrentUser);
- //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.DataList
- };
- base.AddExcelProcess("门店诊断总报表_产品品项分析列表", dataResult);
- //resultData.Rate = 0.02m;
- //result.Data = resultData;
- //WebSocketBLL.SendSocketMsg(ReportId, JsonHelper.ToJson(result, false, true));
- return base.Execute();
- }
- #endregion
- }
-}
diff --git a/Reportapi/MyCode.Project.Services/BLL/ReportExport/RiFuWuTuiJinReportExport.cs b/Reportapi/MyCode.Project.Services/BLL/ReportExport/RiFuWuTuiJinReportExport.cs
deleted file mode 100644
index e604bc6..0000000
--- a/Reportapi/MyCode.Project.Services/BLL/ReportExport/RiFuWuTuiJinReportExport.cs
+++ /dev/null
@@ -1,38 +0,0 @@
-using MyCode.Project.Domain.Message.Request.Report24;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Services.BLL.ReportExport
-{
- public class RiFuWuTuiJinReportExport : BaseExport
- {
- #region 初始化
- private readonly IReport24Service _report24Service;
- public RiFuWuTuiJinReportExport(IReport24Service report24Service)
- {
- _report24Service = report24Service;
- }
- #endregion
-
- #region Execute(执行)
- public override string Execute()
- {
- var pageSearch = base.GetPageSearch(Condition);
-
- var opList = _report24Service.GetRiFuWuTuiJinReportPageList(pageSearch,this.CurrentUser);
-
- var dataResult = new
- {
- op = opList.DataList
- };
-
- base.AddExcelProcess("拓客质量转化表", dataResult);
-
- return base.Execute();
- }
- #endregion
- }
-}
diff --git a/Reportapi/MyCode.Project.Services/BLL/ReportExport/RiFuWuZhuanHuaReportExport.cs b/Reportapi/MyCode.Project.Services/BLL/ReportExport/RiFuWuZhuanHuaReportExport.cs
deleted file mode 100644
index 453fe2b..0000000
--- a/Reportapi/MyCode.Project.Services/BLL/ReportExport/RiFuWuZhuanHuaReportExport.cs
+++ /dev/null
@@ -1,38 +0,0 @@
-using MyCode.Project.Domain.Message.Request.Report24;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Services.BLL.ReportExport
-{
- public class RiFuWuZhuanHuaReportExport : BaseExport
- {
- #region 初始化
- private readonly IReport24Service _report24Service;
- public RiFuWuZhuanHuaReportExport(IReport24Service report24Service)
- {
- _report24Service = report24Service;
- }
- #endregion
-
- #region Execute(执行)
- public override string Execute()
- {
- var pageSearch = base.GetPageSearch(Condition);
-
- var opList = _report24Service.GetRiFuWuZhuanHuaReport2407(pageSearch,this.CurrentUser);
-
- var dataResult = new
- {
- op = opList.DataList
- };
-
- base.AddExcelProcess("拓客质量转化表", dataResult);
-
- return base.Execute();
- }
- #endregion
- }
-}
diff --git a/Reportapi/MyCode.Project.Services/BLL/ReportExport/RpShopJingYingYueBaoExport.cs b/Reportapi/MyCode.Project.Services/BLL/ReportExport/RpShopJingYingYueBaoExport.cs
deleted file mode 100644
index cd1ca4f..0000000
--- a/Reportapi/MyCode.Project.Services/BLL/ReportExport/RpShopJingYingYueBaoExport.cs
+++ /dev/null
@@ -1,62 +0,0 @@
-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.Request.Report;
-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 RpShopJingYingYueBaoExport : BaseExport
- {
- #region 初始化
- private readonly ILxmReport2309Service _reportService;
- public RpShopJingYingYueBaoExport(ILxmReport2309Service reportService)
- {
- _reportService = reportService;
- }
- #endregion
-
- #region Execute(执行)
- public override string Execute()
- {
- //类型为0是报表专用,验证客户端是否在线
- //WebSocketBLL.CheckOnline(ReportId, 0);
- var pageSearch = base.GetPageSearch(Condition);
-
- var opList = _reportService.GetRpShopJingYingYueBaoPageList(pageSearch, this.CurrentUser);
- //var resultData = new ReportCalRateResp()
- //{
- // Total = opList.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
- {
- op =opList.DataList
- };
- base.AddExcelProcess("门店经营月度报表", dataResult);
- //resultData.Rate = 0.02m;
- //result.Data = resultData;
- //WebSocketBLL.SendSocketMsg(ReportId, JsonHelper.ToJson(result, false, true));
- return base.Execute();
- }
- #endregion
- }
-}
diff --git a/Reportapi/MyCode.Project.Services/BLL/ReportExport/SalesNOMemberAmountReportExport.cs b/Reportapi/MyCode.Project.Services/BLL/ReportExport/SalesNOMemberAmountReportExport.cs
deleted file mode 100644
index 35d9e27..0000000
--- a/Reportapi/MyCode.Project.Services/BLL/ReportExport/SalesNOMemberAmountReportExport.cs
+++ /dev/null
@@ -1,40 +0,0 @@
-using MyCode.Project.Domain.Message.Request.LxmZHMDReport;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Services.BLL.ReportExport
-{
- public class SalesNOMemberAmountReportExport:BaseExport
- {
- #region 初始化
- private readonly IReportService _reportService;
- public SalesNOMemberAmountReportExport(IReportService reportService)
- {
- _reportService = reportService;
- }
- #endregion
-
- #region Execute(执行)
- public override string Execute()
- {
- //类型为0是报表专用,验证客户端是否在线
- var pageSearch = base.GetPageSearch(Condition);
-
- var proList = _reportService.GetSalesNOMemberAmountReportList(pageSearch, this.CurrentUser);
-
- //数组形式同一行不能出现不同实体,否则会出错和无效:同行从左往右以第一个 IEnumerableUse 当列表来源 (不支持同列多集合)
- var dataResult = new
- {
- op = proList.DataList
- };
-
- base.AddExcelProcess("零售业绩报表", dataResult);
-
- return base.Execute();
- }
- #endregion
- }
-}
diff --git a/Reportapi/MyCode.Project.Services/BLL/ReportExport/SalesOrderAttributeAnalysisExport.cs b/Reportapi/MyCode.Project.Services/BLL/ReportExport/SalesOrderAttributeAnalysisExport.cs
deleted file mode 100644
index 816b40d..0000000
--- a/Reportapi/MyCode.Project.Services/BLL/ReportExport/SalesOrderAttributeAnalysisExport.cs
+++ /dev/null
@@ -1,150 +0,0 @@
-using Microsoft.Practices.ObjectBuilder2;
-using MyCode.Project.Domain.Message.Request.BaoDian;
-using MyCode.Project.Domain.Message.Request.LxmZHMDReport;
-using MyCode.Project.Domain.Message.Response.Bfy;
-using MyCode.Project.Domain.Message.Response.LxmZHMDReport;
-using MyCode.Project.Infrastructure;
-using MyCode.Project.Infrastructure.Cache;
-using MyCode.Project.Infrastructure.Common;
-using MyCode.Project.Infrastructure.Constant;
-using MyCode.Project.Infrastructure.Enumeration;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Services.BLL.ReportExport
-{
- public class SalesOrderAttributeAnalysisExport : BaseExport
- {
- #region 初始化
- private IReportService _reportService;
- private IMyCodeCacheService _myCodeCacheService;
-
- public SalesOrderAttributeAnalysisExport(IReportService reportService
- ,IMyCodeCacheService myCodeCacheService)
- {
- _reportService = reportService;
- _myCodeCacheService = myCodeCacheService;
- }
- #endregion
- #region Execute(执行)
- public override string Execute()
- {
- var pageSearch = base.GetPageSearch(Condition,1000000,1);
-
- var resultData = new ReportCalRateResp()
- {
- Total = 0,
- Rate = 0.01m
- };
-
- var result = new Result()
- {
- Data = resultData,
- Code = ResultCode.Success
- };
-
- if (base.ExcelFileType == (int)ExportFileType.Zip)
- {
- //类型为0是报表专用,验证客户端是否在线
- WebSocketBLL.CheckOnline(ReportId, 0);
-
- //开始运算,先发送个进度0%,表明开始
- WebSocketBLL.SendSocketMsg(ReportId, JsonHelper.ToJson(result, false, true));
-
- }
-
- var list = _reportService.GetSalesOrderAttributeAnalysis(pageSearch, this.CurrentUser);
-
- resultData.Total = list.DataList.Count;
- var data = list.DataList;
- data = data.OrderBy(t => t.ShopName).ThenBy(t => t.SalesTime).ToList();
-
- int rows = 0;
- string shopName = "";
- Dictionary> keyValuePairs = new Dictionary>();
- int num = 0;
- int numX = 10000;
- int numY = 1;
- string fileName = "";
- data.ForEach(x =>
- {
-
- if (num % numX == 0)
- {
- fileName = $"{num+1}_{numX* numY}";
- numY++;
- }
-
- num++;
- if (keyValuePairs.ContainsKey(fileName))
- {
- keyValuePairs[fileName].Add(x);
- }
- else
- {
- keyValuePairs.Add(fileName, new List { x });
- }
- //base.AddExcelProcess(fileName, dataResult);
-
- });
- keyValuePairs.ForEach(t =>
- {
- var dataResult = new
- {
- op = t.Value
- };
- base.AddExcelProcess(t.Key, dataResult);
- });
- if (base.ExcelFileType == (int)ExportFileType.Zip)
- {
- resultData.Rate = 0.02m;
- result.Data = resultData;
- WebSocketBLL.SendSocketMsg(ReportId, JsonHelper.ToJson(result, false, true));
-
- }
-
- return base.Execute();
-
- //var pageSearch = base.GetPageSearch(Condition, 1);
- //var list = _reportService.GetSalesOrderAttributeAnalysis(pageSearch, this.CurrentUser);
-
- //resultData.Total = list.TotalCount;
- //var fileName = $"销售订单属性分析";
-
- //if (base.ExcelFileType == (int)ExportFileType.Zip)
- //{
- // resultData.Rate = 0.02m;
- // result.Data = resultData;
- // WebSocketBLL.SendSocketMsg(ReportId, JsonHelper.ToJson(result, false, true));
-
- //}
- //pageSearch.Page = 1;
- //pageSearch.PageSize = 100;
- //int maxPage = (list.TotalCount + pageSearch.PageSize - 1) / pageSearch.PageSize;
- //string zipFile = "";
- //string hasDownloadZipCacheKey = CacheKey.HasDownloadZipCacheKey + $@":{ReportId}";
- //while (pageSearch.Page <= maxPage)
- //{
- // list = _reportService.GetSalesOrderAttributeAnalysis(pageSearch, this.CurrentUser);
- // zipFile = base.PageListExecute(list, pageSearch.Page, pageSearch.PageSize, list.TotalCount, fileName, hasDownloadZipCacheKey);
- // pageSearch.Page++;
- //}
- //if (zipFile == "")
- //{
- // resultData.CurQty = list.TotalCount;
- // resultData.Rate = 1;
-
- // WebSocketBLL.SendSocketMsg(ReportId, JsonHelper.ToJson(result, false, true));
- // //移除正在下载
- // _myCodeCacheService.Delete($"{hasDownloadZipCacheKey}" + $@":{ReportId}");
- //}
- //return zipFile;
-
- }
- #endregion
- }
-}
-
diff --git a/Reportapi/MyCode.Project.Services/BLL/ReportExport/ShopAvgReportExport.cs b/Reportapi/MyCode.Project.Services/BLL/ReportExport/ShopAvgReportExport.cs
deleted file mode 100644
index 5ddcc0a..0000000
--- a/Reportapi/MyCode.Project.Services/BLL/ReportExport/ShopAvgReportExport.cs
+++ /dev/null
@@ -1,45 +0,0 @@
-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 ShopAvgReportExport : BaseExport
- {
- #region 初始化
- private readonly IReportService _reportService;
- public ShopAvgReportExport(IReportService reportService)
- {
- _reportService = reportService;
- }
- #endregion
-
- #region Execute(执行)
- public override string Execute()
- {
- //类型为0是报表专用,验证客户端是否在线
- var pageSearch = base.GetPageSearch(Condition);
-
- var proList = _reportService.GetShopAvgReportList(pageSearch, this.CurrentUser);
-
- //数组形式同一行不能出现不同实体,否则会出错和无效:同行从左往右以第一个 IEnumerableUse 当列表来源 (不支持同列多集合)
- var dataResult = new
- {
- op = proList.DataList
- };
-
- base.AddExcelProcess("店均报表", dataResult);
-
- return base.Execute();
- }
- #endregion
- }
-}
diff --git a/Reportapi/MyCode.Project.Services/BLL/ReportExport/ShopConversionFunnelReportExport.cs b/Reportapi/MyCode.Project.Services/BLL/ReportExport/ShopConversionFunnelReportExport.cs
deleted file mode 100644
index beebc4c..0000000
--- a/Reportapi/MyCode.Project.Services/BLL/ReportExport/ShopConversionFunnelReportExport.cs
+++ /dev/null
@@ -1,39 +0,0 @@
-using MyCode.Project.Domain.Message.Request.LxmZHMDReport;
-using MyCode.Project.Domain.Message.Request.Report24;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Services.BLL.ReportExport
-{
- public class ShopConversionFunnelReportExport : BaseExport
- {
- #region 初始化
- private readonly IReport24Service _report24Service;
- public ShopConversionFunnelReportExport(IReport24Service report24Service)
- {
- _report24Service = report24Service;
- }
- #endregion
-
- #region Execute(执行)
- public override string Execute()
- {
- var pageSearch = base.GetPageSearch(Condition);
-
- var opList = _report24Service.GetShopConversionFunnelDataPageList(pageSearch,this.CurrentUser);
-
- var dataResult = new
- {
- op = opList.DataList
- };
-
- base.AddExcelProcess("店铺转化漏斗数据报表", dataResult);
-
- return base.Execute();
- }
- #endregion
- }
-}
diff --git a/Reportapi/MyCode.Project.Services/BLL/ReportExport/ShopDaysPerformanceReportExport.cs b/Reportapi/MyCode.Project.Services/BLL/ReportExport/ShopDaysPerformanceReportExport.cs
deleted file mode 100644
index 41ffea1..0000000
--- a/Reportapi/MyCode.Project.Services/BLL/ReportExport/ShopDaysPerformanceReportExport.cs
+++ /dev/null
@@ -1,38 +0,0 @@
-using MyCode.Project.Domain.Message.Request.LxmZHMDReport;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Services.BLL.ReportExport
-{
- public class ShopDaysPerformanceReportExport : BaseExport
- {
- #region 初始化
- private readonly IReportService _reportService;
- public ShopDaysPerformanceReportExport(IReportService reportService)
- {
- _reportService = reportService;
- }
- #endregion
- #region Execute(执行)
- public override string Execute()
- {
- var pageSearch = base.GetPageSearch(Condition);
-
- var opList = _reportService.GetShopDaysPerformanceReport(pageSearch, this.CurrentUser);
-
- var dataResult = new
- {
- op = opList.DataList
- };
-
- base.AddExcelProcess("店铺日业绩报表导出", dataResult);
-
- return base.Execute();
-
- }
- #endregion
- }
-}
\ No newline at end of file
diff --git a/Reportapi/MyCode.Project.Services/BLL/ReportExport/ShopDiagnoseDataExport.cs b/Reportapi/MyCode.Project.Services/BLL/ReportExport/ShopDiagnoseDataExport.cs
deleted file mode 100644
index 4b266c9..0000000
--- a/Reportapi/MyCode.Project.Services/BLL/ReportExport/ShopDiagnoseDataExport.cs
+++ /dev/null
@@ -1,83 +0,0 @@
-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.Infrastructure.Exceptions;
-using MyCode.Project.Services.IServices;
-
-namespace MyCode.Project.Services.BLL.ReportExport
-{
- ///
- /// 门店诊断的导出,模板导出的方式
- ///
- public class ShopDiagnoseDataExport:BaseExport
- {
- #region 初始化
- private readonly IReportService _reportService;
- public ShopDiagnoseDataExport(IReportService reportService)
- {
- _reportService = reportService;
- }
- #endregion
- #region Execute(执行)
- public override string Execute()
- {
- var req = JsonHelper.ToObject(Condition.ToString());
-
- var resultData = new ReportCalRateResp()
- {
- Total = 0,
- Rate = 0.01m
- };
-
- var result = new Result()
- {
- Data = resultData,
- Code = ResultCode.Success
- };
-
- if (base.ExcelFileType == (int)ExportFileType.Zip)
- {
- //类型为0是报表专用,验证客户端是否在线
- WebSocketBLL.CheckOnline(ReportId, 0);
-
- //开始运算,先发送个进度0%,表明开始
- WebSocketBLL.SendSocketMsg(ReportId, JsonHelper.ToJson(result, false, true));
-
- }
-
- var list = _reportService.GetShopDiagnosisReportExport(req, this.CurrentUser);
-
- resultData.Total = list.Count;
-
- list.ForEach(x => {
- var dataResult = new
- {
- op = new[] { x }
- };
-
- //var result = _memberService.GetAdminMemberPageList(pageSearch, CurrentUser.CompanyId);
- var fileName=$"{x.DisplayTime.ToString("yyMM")}_{x.CustomerName}_{x.Code}_{x.ShopName}";
- base.AddExcelProcess(fileName, dataResult);
-
- });
-
- if (base.ExcelFileType == (int)ExportFileType.Zip)
- {
- resultData.Rate = 0.02m;
- result.Data = resultData;
- WebSocketBLL.SendSocketMsg(ReportId, JsonHelper.ToJson(result, false, true));
-
- }
- return base.Execute();
-
- }
- #endregion
- }
-}
diff --git a/Reportapi/MyCode.Project.Services/BLL/ReportExport/ShopDiagnosisMonthOnMonthComparisonExport.cs b/Reportapi/MyCode.Project.Services/BLL/ReportExport/ShopDiagnosisMonthOnMonthComparisonExport.cs
deleted file mode 100644
index e19a372..0000000
--- a/Reportapi/MyCode.Project.Services/BLL/ReportExport/ShopDiagnosisMonthOnMonthComparisonExport.cs
+++ /dev/null
@@ -1,38 +0,0 @@
-using MyCode.Project.Domain.Message.Request.LxmZHMDReport;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Services.BLL.ReportExport
-{
- public class ShopDiagnosisMonthOnMonthComparisonExport : BaseExport
- {
- #region 初始化
- private readonly IReportService _reportService;
- public ShopDiagnosisMonthOnMonthComparisonExport(IReportService reportService)
- {
- _reportService = reportService;
- }
- #endregion
- #region Execute(执行)
- public override string Execute()
- {
- var pageSearch = base.GetPageSearch(Condition);
-
- var opList = _reportService.GetShopDiagnosisMonthOnMonthComparison(pageSearch, this.CurrentUser);
-
- var dataResult = new
- {
- op = opList.DataList
- };
-
- base.AddExcelProcess("门店诊断环比报表", dataResult);
-
- return base.Execute();
-
- }
- #endregion
- }
-}
diff --git a/Reportapi/MyCode.Project.Services/BLL/ReportExport/ShopDiagnosisYearOnYearComparisonExport.cs b/Reportapi/MyCode.Project.Services/BLL/ReportExport/ShopDiagnosisYearOnYearComparisonExport.cs
deleted file mode 100644
index 30ffeb0..0000000
--- a/Reportapi/MyCode.Project.Services/BLL/ReportExport/ShopDiagnosisYearOnYearComparisonExport.cs
+++ /dev/null
@@ -1,38 +0,0 @@
-using MyCode.Project.Domain.Message.Request.LxmZHMDReport;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Services.BLL.ReportExport
-{
- public class ShopDiagnosisYearOnYearComparisonExport : BaseExport
- {
- #region 初始化
- private readonly IReportService _reportService;
- public ShopDiagnosisYearOnYearComparisonExport(IReportService reportService)
- {
- _reportService = reportService;
- }
- #endregion
- #region Execute(执行)
- public override string Execute()
- {
- var pageSearch = base.GetPageSearch(Condition);
-
- var opList = _reportService.GetShopDiagnosisYearOnYearComparison(pageSearch, this.CurrentUser);
-
- var dataResult = new
- {
- op = opList.DataList
- };
-
- base.AddExcelProcess("门店诊断同比报表", dataResult);
-
- return base.Execute();
-
- }
- #endregion
- }
-}
diff --git a/Reportapi/MyCode.Project.Services/BLL/ReportExport/ShopMonthsPerformanceReportExport.cs b/Reportapi/MyCode.Project.Services/BLL/ReportExport/ShopMonthsPerformanceReportExport.cs
deleted file mode 100644
index f7266a8..0000000
--- a/Reportapi/MyCode.Project.Services/BLL/ReportExport/ShopMonthsPerformanceReportExport.cs
+++ /dev/null
@@ -1,38 +0,0 @@
-using MyCode.Project.Domain.Message.Request.LxmZHMDReport;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Services.BLL.ReportExport
-{
- public class ShopMonthsPerformanceReportExport : BaseExport
- {
- #region 初始化
- private readonly IReportService _reportService;
- public ShopMonthsPerformanceReportExport(IReportService reportService)
- {
- _reportService = reportService;
- }
- #endregion
- #region Execute(执行)
- public override string Execute()
- {
- var pageSearch = base.GetPageSearch(Condition);
-
- var opList = _reportService.GetShopMonthsPerformanceReport(pageSearch, this.CurrentUser);
-
- var dataResult = new
- {
- op = opList.DataList
- };
-
- base.AddExcelProcess("店铺月业绩报表导出", dataResult);
-
- return base.Execute();
-
- }
- #endregion
- }
-}
diff --git a/Reportapi/MyCode.Project.Services/BLL/ReportExport/ShopOperationDataReportExport.cs b/Reportapi/MyCode.Project.Services/BLL/ReportExport/ShopOperationDataReportExport.cs
deleted file mode 100644
index 189c352..0000000
--- a/Reportapi/MyCode.Project.Services/BLL/ReportExport/ShopOperationDataReportExport.cs
+++ /dev/null
@@ -1,38 +0,0 @@
-using MyCode.Project.Domain.Message.Request.LxmZHMDReport;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Services.BLL.ReportExport
-{
- public class ShopOperationDataReportExport : BaseExport
- {
- #region 初始化
- private readonly IReportService _reportService;
- public ShopOperationDataReportExport(IReportService reportService)
- {
- _reportService = reportService;
- }
- #endregion
- #region Execute(执行)
- public override string Execute()
- {
- var pageSearch = base.GetPageSearch(Condition);
-
- var opList = _reportService.GetShopOperationDataReport(pageSearch, this.CurrentUser);
-
- var dataResult = new
- {
- op = opList.DataList
- };
-
- base.AddExcelProcess("店铺运营业绩报表导出", dataResult);
-
- return base.Execute();
-
- }
- #endregion
- }
-}
\ No newline at end of file
diff --git a/Reportapi/MyCode.Project.Services/BLL/ReportExport/ShopTuoLiuSuoShengDataReportExport.cs b/Reportapi/MyCode.Project.Services/BLL/ReportExport/ShopTuoLiuSuoShengDataReportExport.cs
deleted file mode 100644
index 95989ea..0000000
--- a/Reportapi/MyCode.Project.Services/BLL/ReportExport/ShopTuoLiuSuoShengDataReportExport.cs
+++ /dev/null
@@ -1,39 +0,0 @@
-using MyCode.Project.Domain.Message.Request.LxmZHMDReport;
-using MyCode.Project.Domain.Message.Request.Report24;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Services.BLL.ReportExport
-{
- public class ShopTuoLiuSuoShengDataReportExport : BaseExport
- {
- #region 初始化
- private readonly IReport24Service _report24Service;
- public ShopTuoLiuSuoShengDataReportExport(IReport24Service report24Service)
- {
- _report24Service = report24Service;
- }
- #endregion
-
- #region Execute(执行)
- public override string Execute()
- {
- var pageSearch = base.GetPageSearch(Condition);
-
- var opList = _report24Service.GetShopTuoLiuSuoShengDataPageList(pageSearch,this.CurrentUser);
-
- var dataResult = new
- {
- op = opList.DataList
- };
-
- base.AddExcelProcess("店铺--样板店拓留锁升数据统计日报表", dataResult);
-
- return base.Execute();
- }
- #endregion
- }
-}
diff --git a/Reportapi/MyCode.Project.Services/BLL/ReportExport/SingleShopOperateSummaryExport.cs b/Reportapi/MyCode.Project.Services/BLL/ReportExport/SingleShopOperateSummaryExport.cs
deleted file mode 100644
index d30cd64..0000000
--- a/Reportapi/MyCode.Project.Services/BLL/ReportExport/SingleShopOperateSummaryExport.cs
+++ /dev/null
@@ -1,61 +0,0 @@
-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 SingleShopOperateSummaryExport : BaseExport
- {
- #region 初始化
- private readonly IReportService _reportService;
- public SingleShopOperateSummaryExport(IReportService reportService)
- {
- _reportService = reportService;
- }
- #endregion
-
- #region Execute(执行)
- public override string Execute()
- {
- //类型为0是报表专用,验证客户端是否在线
- //WebSocketBLL.CheckOnline(ReportId, 0);
- var pageSearch = base.GetPageSearch(Condition);
-
- var opList = _reportService.GetSingleShopOperateSummary(pageSearch, this.CurrentUser);
- //var resultData = new ReportCalRateResp()
- //{
- // Total = opList.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
- {
- op =opList.DataList
- };
- base.AddExcelProcess("门店诊断总报表_单店运营核心指标", dataResult);
- //resultData.Rate = 0.02m;
- //result.Data = resultData;
- //WebSocketBLL.SendSocketMsg(ReportId, JsonHelper.ToJson(result, false, true));
- return base.Execute();
- }
- #endregion
- }
-}
diff --git a/Reportapi/MyCode.Project.Services/BLL/ReportExport/TuoKeTiYanGuanKongReportExport.cs b/Reportapi/MyCode.Project.Services/BLL/ReportExport/TuoKeTiYanGuanKongReportExport.cs
deleted file mode 100644
index 44890ce..0000000
--- a/Reportapi/MyCode.Project.Services/BLL/ReportExport/TuoKeTiYanGuanKongReportExport.cs
+++ /dev/null
@@ -1,89 +0,0 @@
-using MyCode.Project.Domain.Message.Request.Report24;
-using MyCode.Project.Domain.Message.Response.LxmZHMDReport;
-using MyCode.Project.Infrastructure;
-using MyCode.Project.Infrastructure.Common;
-using MyCode.Project.Infrastructure.Enumeration;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Services.BLL.ReportExport
-{
- public class TuoKeTiYanGuanKongReportExport : BaseExport
- {
- #region 初始化
- private readonly IReport24Service _report24Service;
- public TuoKeTiYanGuanKongReportExport(IReport24Service report24Service)
- {
- _report24Service = report24Service;
- }
- #endregion
-
- #region Execute(执行)
- public override string Execute()
- {
- var pageSearch = base.GetPageSearch(Condition);
-
- var opList = _report24Service.GetTuoKeTiYanGuanKongReportPageList(pageSearch,this.CurrentUser);
-
- var resultData = new ReportCalRateResp()
- {
- Total = 0,
- Rate = 0.01m
- };
-
- var result = new Result()
- {
- Data = resultData,
- Code = ResultCode.Success
- };
-
- if (base.ExcelFileType == (int)ExportFileType.Zip)
- {
- //类型为0是报表专用,验证客户端是否在线
- WebSocketBLL.CheckOnline(ReportId, 0);
-
- //开始运算,先发送个进度0%,表明开始
- WebSocketBLL.SendSocketMsg(ReportId, JsonHelper.ToJson(result, false, true));
-
- }
-
- var list = opList.DataList.Select(p => new { p.ShopId, p.ShopName }).ToList().Distinct().ToList();
-
- resultData.Total = list.Count;
-
- var opItem = opList.DataList;
- var dataResult = new
- {
- op = opItem
- };
-
- var fileName = $"{"拓客卡体验管控表"}";
- base.AddExcelProcess(fileName, dataResult);
-
- //list.ForEach(x => {
- // var opItem=opList.DataList.Where(p => p.ShopId == x.ShopId).ToList();
- // var dataResult = new
- // {
- // op = opItem
- // };
-
- // var fileName = $"{"拓客卡体验管控表"}_{x.ShopName}";
- // base.AddExcelProcess(fileName, dataResult);
-
- //});
-
- if (base.ExcelFileType == (int)ExportFileType.Zip)
- {
- resultData.Rate = 0.02m;
- result.Data = resultData;
- WebSocketBLL.SendSocketMsg(ReportId, JsonHelper.ToJson(result, false, true));
-
- }
- return base.Execute();
- }
- #endregion
- }
-}
diff --git a/Reportapi/MyCode.Project.Services/BLL/ReportExport/TuoLiuSuoShengDataReportExport.cs b/Reportapi/MyCode.Project.Services/BLL/ReportExport/TuoLiuSuoShengDataReportExport.cs
deleted file mode 100644
index a496a8f..0000000
--- a/Reportapi/MyCode.Project.Services/BLL/ReportExport/TuoLiuSuoShengDataReportExport.cs
+++ /dev/null
@@ -1,39 +0,0 @@
-using MyCode.Project.Domain.Message.Request.LxmZHMDReport;
-using MyCode.Project.Domain.Message.Request.Report24;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Services.BLL.ReportExport
-{
- public class TuoLiuSuoShengDataReportExport : BaseExport
- {
- #region 初始化
- private readonly IReport24Service _report24Service;
- public TuoLiuSuoShengDataReportExport(IReport24Service report24Service)
- {
- _report24Service = report24Service;
- }
- #endregion
-
- #region Execute(执行)
- public override string Execute()
- {
- var pageSearch = base.GetPageSearch(Condition);
-
- var opList = _report24Service.GetTuoLiuSuoShengDataPageList(pageSearch,this.CurrentUser);
-
- var dataResult = new
- {
- op = opList.DataList
- };
-
- base.AddExcelProcess("店员--样板店拓留锁升数据统计日报表", dataResult);
-
- return base.Execute();
- }
- #endregion
- }
-}
diff --git a/Reportapi/MyCode.Project.Services/BLL/ReportExport/YangBanDianJianCeExport.cs b/Reportapi/MyCode.Project.Services/BLL/ReportExport/YangBanDianJianCeExport.cs
deleted file mode 100644
index 650adf5..0000000
--- a/Reportapi/MyCode.Project.Services/BLL/ReportExport/YangBanDianJianCeExport.cs
+++ /dev/null
@@ -1,39 +0,0 @@
-using MyCode.Project.Domain.Message.Request.LxmZHMDReport;
-using MyCode.Project.Domain.Message.Request.Report24;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Services.BLL.ReportExport
-{
- public class YangBanDianJianCeExport : BaseExport
- {
- #region 初始化
- private readonly IApiLogService _apiLogService;
- public YangBanDianJianCeExport(IApiLogService apiLogService)
- {
- _apiLogService = apiLogService;
- }
- #endregion
-
- #region Execute(执行)
- public override string Execute()
- {
- var pageSearch = base.GetPageSearch(Condition);
-
- var opList = _apiLogService.GetYangBanDianJianCePageList(pageSearch);
-
- var dataResult = new
- {
- op = opList.DataList
- };
-
- base.AddExcelProcess("样板店打造--数据监测", dataResult);
-
- return base.Execute();
- }
- #endregion
- }
-}
diff --git a/Reportapi/MyCode.Project.Services/BLL/ReportExport/YaoYueDaoDianReportExport.cs b/Reportapi/MyCode.Project.Services/BLL/ReportExport/YaoYueDaoDianReportExport.cs
deleted file mode 100644
index 3adf595..0000000
--- a/Reportapi/MyCode.Project.Services/BLL/ReportExport/YaoYueDaoDianReportExport.cs
+++ /dev/null
@@ -1,38 +0,0 @@
-using MyCode.Project.Domain.Message.Request.Report24;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Services.BLL.ReportExport
-{
- public class YaoYueDaoDianReportExport : BaseExport
- {
- #region 初始化
- private readonly IReport24Service _report24Service;
- public YaoYueDaoDianReportExport(IReport24Service report24Service)
- {
- _report24Service = report24Service;
- }
- #endregion
-
- #region Execute(执行)
- public override string Execute()
- {
- var pageSearch = base.GetPageSearch(Condition);
-
- var opList = _report24Service.GetYaoYueDaoDianReportPageList(pageSearch,this.CurrentUser);
-
- var dataResult = new
- {
- op = opList.DataList
- };
-
- base.AddExcelProcess("邀约及到店报表", dataResult);
-
- return base.Execute();
- }
- #endregion
- }
-}
diff --git a/Reportapi/MyCode.Project.Services/BLL/ServiceBLL.cs b/Reportapi/MyCode.Project.Services/BLL/ServiceBLL.cs
deleted file mode 100644
index 869dc38..0000000
--- a/Reportapi/MyCode.Project.Services/BLL/ServiceBLL.cs
+++ /dev/null
@@ -1,64 +0,0 @@
-using MyCode.Project.Domain.Message.Response.Lxm;
-using MyCode.Project.Infrastructure.Common;
-using MyCode.Project.Repositories.Lxm;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Services.BLL
-{
- ///
- /// 服务
- ///
- public class ServiceBLL
- {
- #region 初始化
- private readonly LxmInfraRepository _lxmInfraRepository;
- public ServiceBLL(LxmInfraRepository lxmInfraRepository)
- {
- _lxmInfraRepository = lxmInfraRepository;
- }
- #endregion
-
- #region GetLxmServiceResp(得到流行美服务)
- ///
- /// 得到服务的明细
- ///
- ///
- ///
- private LxmServiceResp GetLxmServiceResp(Guid serviceId)
- {
- var serviceInfo = _lxmInfraRepository.GetService(serviceId);
-
- if (serviceInfo == null)
- {
- return new LxmServiceResp()
- {
- Name = "服务"
- };
- }
-
- return new LxmServiceResp() { Name = serviceInfo.Name };
- }
- #endregion
-
- #region GetCacheLxmSimpleGoodsResp(得到缓存的SKU信息)
- ///
- /// 得到缓存的SKU信息
- ///
- ///
- ///
- public LxmServiceResp GetCacheLxmServiceResp(Guid serviceId)
- {
- return CacheHelper.GetCacheValue(
-
- $"GetLxmServiceResp-{serviceId}",
- () => { return GetLxmServiceResp(serviceId); },
- 3600
- );
- }
- #endregion
- }
-}
diff --git a/Reportapi/MyCode.Project.Services/BLL/ServicePackageBLL.cs b/Reportapi/MyCode.Project.Services/BLL/ServicePackageBLL.cs
deleted file mode 100644
index cd10110..0000000
--- a/Reportapi/MyCode.Project.Services/BLL/ServicePackageBLL.cs
+++ /dev/null
@@ -1,63 +0,0 @@
-using MyCode.Project.Domain.Message.Response.Lxm;
-using MyCode.Project.Infrastructure.Common;
-using MyCode.Project.Repositories.Lxm;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Services.BLL
-{
- ///
- /// 服务套餐
- ///
- public class ServicePackageBLL
- {
- #region 初始化
- private readonly LxmInfraRepository _lxmInfraRepository;
- public ServicePackageBLL(LxmInfraRepository lxmInfraRepository)
- {
- _lxmInfraRepository = lxmInfraRepository;
- }
- #endregion
-
- #region LxmServicePackageResp(得到流行美服务套餐)
- ///
- /// 得到服务套餐的明细
- ///
- ///
- ///
- private LxmServicePackageResp GetLxmServicePackage(Guid packageId)
- {
- var info = _lxmInfraRepository.GetServicePackage(packageId);
-
- if (info == null)
- {
- return new LxmServicePackageResp()
- {
- Name = "服务套餐"
- };
- }
-
- return new LxmServicePackageResp() { Name = info.Name };
- }
- #endregion
-
- #region GetCacheLxmServicePackage(得到缓存的服务套餐信息)
- ///
- /// 得到缓存的服务套餐信息
- ///
- ///
- ///
- public LxmServicePackageResp GetCacheLxmServicePackage(Guid packageId)
- {
- return CacheHelper.GetCacheValue(
- $"GetLxmServicePackage-{packageId}",
- () => { return GetLxmServicePackage(packageId); },
- 3600
- );
- }
- #endregion
- }
-}
diff --git a/Reportapi/MyCode.Project.Services/BaoDianBLL/CommonPlanCalBLL.cs b/Reportapi/MyCode.Project.Services/BaoDianBLL/CommonPlanCalBLL.cs
deleted file mode 100644
index b20dc9e..0000000
--- a/Reportapi/MyCode.Project.Services/BaoDianBLL/CommonPlanCalBLL.cs
+++ /dev/null
@@ -1,136 +0,0 @@
-using MyCode.Project.Domain.Model;
-using MyCode.Project.Domain.Repositories;
-using MyCode.Project.Infrastructure.Common;
-using MyCode.Project.Infrastructure.Enumeration;
-using MyCode.Project.Infrastructure.Extensions;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Services.BLL
-{
- ///
- /// 宝典公共计算
- ///
- public class CommonPlanCalBLL
- {
- #region 初始化
- ///
- /// 初始化
- ///
- public IRepository _repository;
-
- ///
- /// 单据id
- ///
- public string SheetId
- {
- get;
- set;
- }
-
- ///
- /// 备注字段
- ///
- public string Info
- {
- get;
- set;
- }
-
- ///
- /// 订单
- ///
- public LxmSheet Sheet
- {
- get;
- set;
- }
-
- ///
- /// 版本时间
- ///
- public DateTime VersionTime
- {
- get;
- set;
- }
-
- public CommonPlanCalBLL(IRepository repository)
- {
- _repository = repository;
- }
- #endregion
-
- #region Init(初始化)
- ///
- /// 初始化
- ///
- public void Init(string sheetId)
- {
- this.Sheet = _repository
- .Queryable()
- .Where(p => p.Id == sheetId)
- .First();
-
- this.SheetId = sheetId;
- this.VersionTime = this.Sheet.CreateTime.Value.GetFirstDayOfMonth();
- }
- #endregion
-
- #region GetSourceSimpleOrder(得到退款时的原始订单信息,如果是预售单,则要再取一下得到预售单)
- ///
- /// 得到退款时的原始订单信息,如果是预售单,则要再取一下得到预售单
- ///
- ///
- ///
- public LxmSheet GetSourceSimpleOrder(string sourceOrderId)
- {
- var sourceOrder = _repository.Queryable().Where(p => p.Id == Sheet.SourceOrderId).First();
-
- if (sourceOrder.IsPorderToSorder == 1)
- {
- sourceOrder = _repository.Queryable().Where(p => p.Id == sourceOrder.OrderPreorderId).First();
- }
-
- return sourceOrder;
- }
- #endregion
-
- #region CheckPassed(数据验证)
- ///
- /// 数据验证
- ///
- ///
- ///
- public bool CheckPassed(PlanType planType)
- {
- if (this.Sheet.IsPorderToSorder == 1)
- {
- LogHelper.Info($"{SheetId}是预售单,不参与宝典计划运算");
- return false;
- }
-
- //只对60天内的数据做运算,超过就不运算了
- if ((DateTime.Now - this.Sheet.CreateTime.Value).TotalDays > 60)
- {
- LogHelper.Info($"{SheetId}是60天前的数据,就不再宝典计划运算了");
- return false;
- }
-
- ////如果中间表中已经有该数据了,也不运算
- var existCal = _repository.IsExist(p => p.OrderId == SheetId && p.PlanType == (int)planType);
-
- if (existCal)
- {
- LogHelper.Info($"{SheetId}之前已经运算过,不再运算");
- return false;
- }
-
- return true;
- }
- #endregion
- }
-}
diff --git a/Reportapi/MyCode.Project.Services/BaoDianBLL/NewMemberPlanCalBLL.cs b/Reportapi/MyCode.Project.Services/BaoDianBLL/NewMemberPlanCalBLL.cs
deleted file mode 100644
index facdcae..0000000
--- a/Reportapi/MyCode.Project.Services/BaoDianBLL/NewMemberPlanCalBLL.cs
+++ /dev/null
@@ -1,270 +0,0 @@
-using MyCode.Project.Domain.Message.Response.BaoDian;
-using MyCode.Project.Domain.Model;
-using MyCode.Project.Domain.Repositories;
-using MyCode.Project.Infrastructure.Common;
-using MyCode.Project.Infrastructure.Constant;
-using MyCode.Project.Infrastructure.Enumeration;
-using MyCode.Project.Infrastructure.Extensions;
-using MyCode.Project.Repositories.Common;
-using SqlSugar;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Services.BLL
-{
- public class NewMemberPlanCalBLL:CommonPlanCalBLL
- {
- #region 初始化
- private readonly ILxmNewMemberSalesScheduleRepository _lxmNewMemberSalesScheduleRepository;
- private readonly ILxmSheetItemRepository _lxmSheetItemRepository;
- public NewMemberPlanCalBLL(IRepository repository,
- ILxmNewMemberSalesScheduleRepository lxmNewMemberSalesScheduleRepository,
- ILxmSheetItemRepository lxmSheetItemRepository) :base(repository)
- {
- _lxmNewMemberSalesScheduleRepository = lxmNewMemberSalesScheduleRepository;
- _lxmSheetItemRepository = lxmSheetItemRepository;
- }
- #endregion
-
- #region Run(根据订单id来运算)
- ///
- /// 根据订单id来运算
- ///
- ///
- [TransactionCallHandler]
- public void Run(object objSheetId)
- {
- //初始化
- base.Init(objSheetId.ToString());
-
- //预转销订单不处理
- var checkResult = base.CheckPassed(PlanType.NewMemberSalesPlan);
-
- if (!checkResult) { return; }
-
- //先删掉可以保证该方法不断的被调用计算
- _repository.Delete(p => p.OrderId == SheetId && p.PlanType == (int)PlanType.NewMemberSalesPlan);
-
- //得到该订单中的商品明细
- var sheetItems = _repository.Queryable().Where(p => p.SalesSheetId == SheetId).WithCache(100).ToList();
-
- if (Sheet.Direct == 1)
- {
- //查看当月的该店员新客套餐计划
- var newClerkMemberPlans = _repository
- .Queryable()
- .Where(p => p.Status == 1 && p.VersionTime == VersionTime && p.PlanQty > 0 && p.ShopId == Sheet.ShopId)
- .WhereIF(Sheet.OrderClerkId == null, p => p.ClerkId == null)
- .WhereIF(Sheet.OrderClerkId != null, p => p.ClerkId == Sheet.OrderClerkId)
- .WithCache(3600)
- .ToList();
-
- //没有制定任何的计划
- if (newClerkMemberPlans == null || newClerkMemberPlans.Count == 0) { return; }
-
- var productIds = newClerkMemberPlans.Select(p => p.ProductId.Value).Distinct().ToList();
-
- var planSkusAndServices = _lxmNewMemberSalesScheduleRepository.GetPackageProductOrServiceList(productIds);
-
- //var matchSku = planSkusAndServices.FindAll(p => p.Id == 2311091518159431);
-
- var clerkPlanIds = newClerkMemberPlans.Select(p => p.ProductId).ToList();
-
- //移除没有用到的计划
- planSkusAndServices.RemoveAll(p => !clerkPlanIds.Contains(p.Id));
-
- CalNormalOrder(newClerkMemberPlans, planSkusAndServices, sheetItems);
- }
- else
- {
- CalRefundOrder(sheetItems);
- }
- }
- #endregion
-
- #region CalRefundOrder(如果是退款单)
- ///
- /// 如果是退款单
- ///
- private void CalRefundOrder(List listNorMalSheetItem)
- {
- if (Sheet.SourceOrderId == null)
- {
- LogHelper.Info($"[新客运算]退款单={Sheet.Id}找不到原始订单");
- return;
- }
-
- var sourceOrderId = Sheet.SourceOrderId;
-
- //判断原始销售单是否当月,如果不是当月,则跳出
- var sourceOrder = GetSourceSimpleOrder(Sheet.SourceOrderId);
-
- if (sourceOrder.OrderPreorderId != null) { sourceOrderId = sourceOrder.OrderPreorderId; }
-
- var sheetOrderMonthFirstDay = Sheet.CreateTime.Value.GetFirstDayOfMonth();
-
- if (sourceOrder.CreateTime.Value.GetFirstDayOfMonth() != sheetOrderMonthFirstDay)
- {
- LogHelper.Info($"[新客运算]退款单={Sheet.Id}的原始订单={Sheet.SourceOrderId}非当月,新客计划不运算");
- return;
- }
-
- var sourceItemQty = _repository.Queryable().Where(p => p.SalesSheetId == sourceOrderId).Select(p => SqlFunc.AggregateSum(p.Qty)).First();
-
- var sheetTime = Sheet.CreateTime.Value;
-
- //判断当前是否是全退,如果是全退,则当月的需要写一条反的数据,根据退的商品的数量;
- //先得到当月1号到今天该订单退的情况
- //var refundQty = _lxmSheetItemRepository.GetRefundQty(Sheet.SourceOrderId, sheetOrderMonthFirstDay, Sheet.CreateTime.Value);
- var refundQty = _lxmSheetItemRepository.GetRefundQty(sourceOrderId, sheetOrderMonthFirstDay, Sheet.CreateTime.Value.AddSeconds(1));
-
- //只是部分退而已
- if (sourceItemQty != refundQty)
- {
- LogHelper.Info($"[新客运算]退款单={Sheet.Id}只是部分退,不用写反向数据");
- return;
- }
-
- //全退了,写反向的数据
- var orderPlans = _repository.Queryable()
- .Where(p => p.OrderId == Sheet.SourceOrderId
- && p.OrderTime >= sheetOrderMonthFirstDay
- && p.OrderTime <= Sheet.CreateTime.Value
- && p.PlanType == (int)PlanType.NewMemberSalesPlan)
- .ToList();
-
- orderPlans.RemoveAll(p => ( p.PackageId == (int)PlanProductId.FirstOrderQty || p.PackageId == (int)PlanProductId.NewMemberQty));
-
- if (orderPlans == null || orderPlans.Count == 0) { return; }
-
- var insertOrderPlans = new List();
-
- foreach (var plan in orderPlans)
- {
- var insertOrderPlan = new BdOrderPlan() {
- Id = IdHelper.GetNewId(),
- OrderId = SheetId,
- OrderTime = Sheet.CreateTime.Value,
- PackageId = plan.PackageId,
- PackageName = plan.PackageName,
- PlanId = plan.PlanId,
- PlanType = plan.PlanType,
- Qty = -plan.Qty,
- UpdateTime = DateTime.Now,
- SourceOrderId = sourceOrderId,
- Info = $"原始订单id={Sheet.SourceOrderId}全退导致[新客运算]产生反向流水"
- };
-
- insertOrderPlans.Add(insertOrderPlan);
- }
-
- _repository.Add(insertOrderPlans);
- }
- #endregion
-
- #region CalNormalOrder(计算正常的订单)
- ///
- /// 计算正常的订单
- ///
- ///
- ///
- ///
- private void CalNormalOrder(List listClerkPlan, List listPackage, List listSheetItem)
- {
- var lxmFirstShopOrder = _repository
- .Queryable()
- .Where(p => p.MemberId == Sheet.MemberId && p.ShopId == Sheet.ShopId)
- .OrderBy(p => p.CreateTime)
- .Select(p => new { p.Id })
- .First();
-
- //只要满足一个就符合计划,这里当时正向的,就是不是退款的情况的
- foreach (var clerkPlan in listClerkPlan)
- {
- var orderPlan = new BdOrderPlan()
- {
- Id = IdHelper.GetNewId(),
- OrderId = Sheet.Id,
- OrderTime = Sheet.CreateTime.Value,
- PackageId = clerkPlan.ProductId.Value,
- PackageName = clerkPlan.Name,
- PlanId = clerkPlan.Id,
- PlanType = (int)PlanType.NewMemberSalesPlan,
- Qty = 1,
- UpdateTime = DateTime.Now,
- SourceOrderId = Sheet.Id
-
- };
-
- if (clerkPlan.ProductId == (int)PlanProductId.FirstOrderQty)
- {
- if (Sheet.IsFirstOrder == 1 && clerkPlan.AddFromType == Sheet.FromType)
- {
- orderPlan.Info = "符合[新客计划],首单+来源";
- _repository.Add(orderPlan);
- }
- continue;
- }
-
- //这里新客定义,在宝典里面有所变化,新客指的是在该店铺第一次核销或收银
- if (clerkPlan.ProductId == (int)PlanProductId.NewMemberQty)
- {
- if ((lxmFirstShopOrder == null || Guid.Parse(lxmFirstShopOrder.Id) == Guid.Parse(SheetId)) && clerkPlan.AddFromType == Sheet.FromType)
- {
- orderPlan.Info = "符合[新客计划],新客+来源";
- _repository.Add(orderPlan);
- }
- continue;
- }
-
- //匹配到的计划配置里面的sku
- var IfMatchPlan = IfMatchPlanProductOrService(listPackage, clerkPlan.ProductId.Value, listSheetItem);
-
- if (!IfMatchPlan) { continue; }
-
- //是否匹配来源
- if (!(clerkPlan.AddFromType == Sheet.FromType)) { continue; }
-
- //看看订单明细里面是不是有这个商品
- if (IfMatchPlan)
- {
- orderPlan.Info = Info;
- _repository.Add(orderPlan);
- }
-
- }
- }
- #endregion
-
- #region IfMatchPlanProductOrService(是否匹配计划中的商品)
- ///
- /// 是否匹配计划中的商品
- ///
- ///
- ///
- ///
- private bool IfMatchPlanProductOrService(List listPackage,long packageId, List listSheetItem)
- {
- //匹配到的计划配置里面的sku
- var matchPlanSkus = listPackage.Where(p => p.Id == packageId).ToList();
-
- foreach (var planSku in matchPlanSkus)
- {
- if (listSheetItem.Exists(p => p.ItemId.ToLower() == planSku.ProductOrServiceId.ToLower()))
- {
- Info = $"[新客运算]只要一个商品符合,就符合,skuid={planSku.ProductOrServiceId}在订单明细中存在";
- return true;
- }
- }
-
- Info = "不符合[新客计划],没有一件商品是属于套餐的";
-
- return false;
-
- }
- #endregion
- }
-}
diff --git a/Reportapi/MyCode.Project.Services/BaoDianBLL/OldMemberPlanCalBLL.cs b/Reportapi/MyCode.Project.Services/BaoDianBLL/OldMemberPlanCalBLL.cs
deleted file mode 100644
index 513b729..0000000
--- a/Reportapi/MyCode.Project.Services/BaoDianBLL/OldMemberPlanCalBLL.cs
+++ /dev/null
@@ -1,233 +0,0 @@
-using MyCode.Project.Domain.Message.Response.BaoDian;
-using MyCode.Project.Domain.Model;
-using MyCode.Project.Domain.Repositories;
-using MyCode.Project.Infrastructure.Common;
-using MyCode.Project.Infrastructure.Enumeration;
-using MyCode.Project.Infrastructure.Extensions;
-using MyCode.Project.Repositories;
-using MyCode.Project.Repositories.Common;
-using SqlSugar;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Services.BLL
-{
- ///
- /// 老客销售计划
- ///
- public class OldMemberPlanCalBLL:CommonPlanCalBLL
- {
- #region 初始化
- private readonly ILxmSheetItemRepository _lxmSheetItemRepository;
- private readonly ILxmProductSalesScheduleRepository _lxmProductSalesScheduleRepository;
- private readonly IBdClerkOldMemberSalesPlanRepository _bdClerkOldMemberSalesPlanRepository;
- public OldMemberPlanCalBLL(IRepository repository,
- ILxmSheetItemRepository lxmSheetItemRepository,
- ILxmProductSalesScheduleRepository lxmProductSalesScheduleRepository,
- IBdClerkOldMemberSalesPlanRepository bdClerkOldMemberSalesPlanRepository
- ) :base(repository)
- {
- _repository = repository;
- _lxmSheetItemRepository = lxmSheetItemRepository;
- _lxmProductSalesScheduleRepository = lxmProductSalesScheduleRepository;
- _bdClerkOldMemberSalesPlanRepository = bdClerkOldMemberSalesPlanRepository;
- }
- #endregion
-
- #region Run(根据订单id来运算)
- ///
- /// 根据订单id来运算
- ///
- ///
- [TransactionCallHandler]
- public void Run(object objSheetId)
- {
- //初始化
- base.Init(objSheetId.ToString());
-
- //预转销订单不处理
- var checkResult = base.CheckPassed(PlanType.OldMemberSalesPlan);
-
- if (!checkResult) { return; }
-
- //先删掉可以保证该方法不断的被调用计算
- _repository.Delete(p => p.OrderId == SheetId && p.PlanType == (int)PlanType.OldMemberSalesPlan);
-
- //得到该订单中的商品明细
- var sheetItems = _repository.Queryable().Where(p => p.SalesSheetId == SheetId).WithCache(100).ToList();
-
- //在时间段范围内邀请人来参加活动,里面有某个商品符合就算
- if (Sheet.Direct == 1)
- {
- //查看当月的该用户老客套餐计划
- var oldMemberPlans = _bdClerkOldMemberSalesPlanRepository.GetOldMemberPlanList(Sheet.ShopId, Sheet.MemberId, Sheet.OrderClerkId, VersionTime, Sheet.CreateTime.Value);
-
- if (oldMemberPlans == null || oldMemberPlans.Count == 0)
- {
- LogHelper.Info($"[老客运算]订单={SheetId}没有匹配到任何计划");
- return;
- }
-
- var planSkus = _lxmProductSalesScheduleRepository.GetPackageProductList(oldMemberPlans.Select(p => p.PackageId).ToList(), 1);
-
- CalNormalOrder(oldMemberPlans, planSkus, sheetItems);
- }
- else
- {
- CalRefundOrder(sheetItems);
- }
- }
- #endregion
-
-
- #region CalRefundOrder(如果是退款单)
- ///
- /// 如果是退款单
- ///
- private void CalRefundOrder(List listNorMalSheetItem)
- {
- if (Sheet.SourceOrderId == null)
- {
- LogHelper.Info($"[老客运算]退款单={Sheet.Id}找不到原始订单");
- return;
- }
-
- //判断原始销售单是否当月,如果不是当月,则跳出
- var sourceOrderId = Sheet.SourceOrderId;
-
- //判断原始销售单是否当月,如果不是当月,则跳出
- var sourceOrder = GetSourceSimpleOrder(Sheet.SourceOrderId);
-
- if (sourceOrder.OrderPreorderId != null) { sourceOrderId = sourceOrder.OrderPreorderId; }
-
- var sheetOrderMonthFirstDay = Sheet.CreateTime.Value.GetFirstDayOfMonth();
-
- if (sourceOrder.CreateTime.Value.GetFirstDayOfMonth() != sheetOrderMonthFirstDay)
- {
- LogHelper.Info($"[老客运算]退款单={Sheet.Id}的原始订单={Sheet.SourceOrderId}非当月,老客计划不运算");
- return;
- }
-
- var sourceItemQty = _repository.Queryable().Where(p => p.SalesSheetId == sourceOrderId).Select(p => SqlFunc.AggregateSum(p.Qty)).First();
-
- var sheetTime = Sheet.CreateTime.Value;
-
- //判断当前是否是全退,如果是全退,则当月的需要写一条反的数据,根据退的商品的数量;
- //先得到当月1号到今天该订单退的情况
- //var refundQty = _lxmSheetItemRepository.GetRefundQty(Sheet.SourceOrderId, sheetOrderMonthFirstDay, Sheet.CreateTime.Value);
- var refundQty = _lxmSheetItemRepository.GetRefundQty(sourceOrderId, sheetOrderMonthFirstDay, Sheet.CreateTime.Value.AddSeconds(1));
-
- //只是部分退而已
- if (sourceItemQty != refundQty)
- {
- LogHelper.Info($"[老客运算]退款单={Sheet.Id}只是部分退,不用写反向数据");
- return;
- }
-
- //全退了,写反向的数据
- var orderPlans = _repository.Queryable()
- .Where(p => p.OrderId == Sheet.SourceOrderId && p.OrderTime >= sheetOrderMonthFirstDay && p.OrderTime <= Sheet.CreateTime.Value && p.PlanType == (int)PlanType.OldMemberSalesPlan)
- .ToList();
- if (orderPlans == null || orderPlans.Count == 0) { return; }
-
- var insertOrderPlans = new List();
-
- foreach (var plan in orderPlans)
- {
- var insertOrderPlan = new BdOrderPlan()
- {
- Id = IdHelper.GetNewId(),
- OrderId = SheetId,
- OrderTime = Sheet.CreateTime.Value,
- PackageId = plan.PackageId,
- PackageName = plan.PackageName,
- PlanId = plan.PlanId,
- PlanType = plan.PlanType,
- Qty = -plan.Qty,
- UpdateTime = DateTime.Now,
- SourceOrderId = sourceOrderId,
- SourcePackageId = plan.SourcePackageId,
- Info = $"原始订单id={Sheet.SourceOrderId}全退导致[老客运算]产生反向流水"
- };
-
- insertOrderPlans.Add(insertOrderPlan);
- }
-
- _repository.Add(insertOrderPlans);
- }
- #endregion
-
- #region CalNormalOrder(计算正常的订单)
- ///
- /// 计算正常的订单
- ///
- ///
- ///
- ///
- private void CalNormalOrder(List listClerkPlan,
- List listPackage,
- List listSheetItem)
- {
- //只要满足一个就符合计划,这里当时正向的,就是不是退款的情况的
- foreach (var clerkPlan in listClerkPlan)
- {
-
- //匹配到的计划配置里面的sku
- var IfMatchPlan = IfMatchPlanProductOrService(listPackage, clerkPlan.PackageId, listSheetItem);
-
- var orderPlan = new BdOrderPlan()
- {
- Id = IdHelper.GetNewId(),
- OrderId = Sheet.Id,
- OrderTime = Sheet.CreateTime.Value,
- PackageId = clerkPlan.PackageId,
- PackageName = clerkPlan.PackageName,
- PlanId = clerkPlan.PlanId,
- PlanType = (int)PlanType.OldMemberSalesPlan,
- Qty = 1,
- UpdateTime = DateTime.Now,
- SourcePackageId = clerkPlan.SourcePackageId
- };
-
- //看看订单明细里面是不是有这个商品
- if (IfMatchPlan)
- {
- orderPlan.Info = Info;
- _repository.Add(orderPlan);
- }
-
- }
- }
- #endregion
-
- #region IfMatchPlanProductOrService(是否匹配计划中的商品,需要所有匹配才算)
- ///
- /// 是否匹配计划中的商品,需要所有匹配才算
- ///
- ///
- ///
- ///
- private bool IfMatchPlanProductOrService(List listPackage, long packageId, List listSheetItem)
- {
- //匹配到的计划配置里面的sku
- var matchPlanSkus = listPackage.Where(p => p.Id == packageId).ToList();
-
- foreach (var planSku in matchPlanSkus)
- {
- if (!listSheetItem.Exists(p => p.ItemId.ToLower() == planSku.ProductOrServiceId.ToLower() && p.Qty >= planSku.Qty))
- {
- Info = $"[老客运算]sheetid={SheetId},{planSku.ProductOrServiceName},id={planSku.ProductOrServiceId}在订单明细中不存在或者数量小于套餐的最小数量";
- return false;
- }
- }
-
- Info = "符合[老客计划],所有商品都需要在套餐中存在,且数量要对上";
- return true;
-
- }
- #endregion
- }
-}
diff --git a/Reportapi/MyCode.Project.Services/BaoDianBLL/SalesPlanCalBLL.cs b/Reportapi/MyCode.Project.Services/BaoDianBLL/SalesPlanCalBLL.cs
deleted file mode 100644
index c5b3de7..0000000
--- a/Reportapi/MyCode.Project.Services/BaoDianBLL/SalesPlanCalBLL.cs
+++ /dev/null
@@ -1,392 +0,0 @@
-using MyCode.Project.Domain.Message.Response.BaoDian;
-using MyCode.Project.Domain.Model;
-using MyCode.Project.Domain.Repositories;
-using MyCode.Project.Infrastructure.Common;
-using MyCode.Project.Infrastructure.Constant;
-using MyCode.Project.Infrastructure.Enumeration;
-using MyCode.Project.Infrastructure.Exceptions;
-using MyCode.Project.Infrastructure.Extensions;
-using MyCode.Project.Repositories.Common;
-using SqlSugar;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Services.BLL
-{
- public class SalesPlanCalBLL : CommonPlanCalBLL
- {
- #region 初始化
- private readonly ILxmProductSalesScheduleRepository _lxmProductSalesScheduleRepository;
- private readonly ILxmSheetItemRepository _lxmSheetItemRepository;
- private readonly IAnsyDataProcessService _ansyDataProcessService;
- private readonly IBdOrderSalesPlanSkuRepository _bdOrderSalesPlanSkuRepository;
- private int OrderNum = 1;
- public SalesPlanCalBLL(IRepository repository,
- ILxmProductSalesScheduleRepository lxmProductSalesScheduleRepository,
- ILxmSheetItemRepository lxmSheetItemRepository,
- IAnsyDataProcessService ansyDataProcessService,
- IBdOrderSalesPlanSkuRepository bdOrderSalesPlanSkuRepository
- ) :base(repository)
- {
- _repository = repository;
- _lxmProductSalesScheduleRepository = lxmProductSalesScheduleRepository;
- _lxmSheetItemRepository = lxmSheetItemRepository;
- _ansyDataProcessService = ansyDataProcessService;
- _bdOrderSalesPlanSkuRepository = bdOrderSalesPlanSkuRepository;
- }
- #endregion
-
- #region Run(根据订单id来运算)
- ///
- /// 根据订单id来运算
- ///
- ///
- [TransactionCallHandler]
- public void Run(object objSheetId)
- {
- //初始化
- base.Init(objSheetId.ToString());
-
- var checkResult = base.CheckPassed(PlanType.ProductSalesPlan);
-
- if (!checkResult) { return; }
-
- //先删掉可以保证该方法不断的被调用计算
- _repository.Delete(p => p.OrderId == SheetId && p.PlanType == (int)PlanType.ProductSalesPlan);
-
- //查看当月的该店员的产品销售计划tId && p.PlanType == (int)PlanType.ProductSalesPlan);
- //_repository.Delete(p => p.Ord
-
-
- //得到该订单中的商品明细6
- var sheetItems = _repository.Queryable().Where(p => p.SalesSheetId == SheetId).WithCache(100).ToList();
-
- if (Sheet.Direct == 1)
- {
- var clerkSalesPlans = _repository
- .Queryable((cPlan, pPlan) => new object[] {
- JoinType.Left,cPlan.ProductId == pPlan.Id
- })
- .Where((cPlan, pPlan) => cPlan.Status == 1 && cPlan.VersionTime == VersionTime && cPlan.PlanTotalAmount > 0)
- .WhereIF(Sheet.OrderClerkId == null, (cPlan, pPlan) => cPlan.ClerkId == null)
- .WhereIF(Sheet.OrderClerkId != null, (cPlan, pPlan) => cPlan.ClerkId == Sheet.OrderClerkId)
- .Select((cPlan, pPlan) => new ClerkProductSalesPlanResp { PlanId = cPlan.Id, PackageId = SqlFunc.ToInt64(cPlan.ProductId), PackageName = cPlan.Name, TotalPrice = pPlan.TotalPrice, SourcePackageId = pPlan.PackageId })
- .WithCache(3600)
- .ToList();
-
- if (clerkSalesPlans == null || clerkSalesPlans.Count == 0) { return; }
-
- clerkSalesPlans = clerkSalesPlans.OrderByDescending(p => p.TotalPrice).ToList();
-
- var planSkus = _lxmProductSalesScheduleRepository.GetPackageProductList(clerkSalesPlans.Select(p => p.PackageId).ToList());
-
- CalNormalOrder(clerkSalesPlans, planSkus, sheetItems);
- }
- else
- {
- CalRefundOrder(sheetItems);
- }
- }
- #endregion
-
- #region AddPlanSku(写入计划SKU里面)
- ///
- /// 写入计划SKU里面
- ///
- private void AddPlanSku(List listItem,long packageId,long sourcePackageId,long planId)
- {
- if (listItem.IsEmpty()) { return; }
-
- var addList = new List();
-
- foreach (var item in listItem)
- {
- var temp = new BdOrderSalesPlanSku()
- {
- Id = IdHelper.GetNewId(),
- Qty = item.TotalQty,
- OrderId = Sheet.Id,
- OrderTime = Sheet.CreateTime.Value,
- PlanId = planId,
- PackageId = packageId,
- SkuId = item.SkuId,
- UpdateTime = DateTime.Now,
- UnitPrice = item.UnitPrice,
- OrderNum = OrderNum,
- SourceOrderId = Sheet.Id,
- SourcePackageId = sourcePackageId
- };
-
- addList.Add(temp);
-
- OrderNum = OrderNum + 1;
- }
-
- _repository.Add(addList);
- }
- #endregion
-
- #region CalNormalOrder(计算正常的订单)
- ///
- /// 计算正常的订单
- ///
- ///
- ///
- ///
- private void CalNormalOrder(List listClerkPlan,
- List listPackage,
- List listSheetItem)
- {
- var cal = false;
-
- //只统计商品和服务
- listSheetItem.RemoveAll(p => p.ItemType != 0 && p.ItemType != 1);
-
- var notIncludeCaiZhuan = listClerkPlan.Where(p => p.PackageId != (int)PlanProductId.ColorProduct && p.PackageId != (int)PlanProductId.HairProduct).ToList();
-
- //所有都符合才能凑成一个,且这个本身有数量;
- foreach (var clerkPlan in notIncludeCaiZhuan)
- {
- var orderPlan = new BdOrderPlan()
- {
- Id = IdHelper.GetNewId(),
- OrderId = Sheet.Id,
- OrderTime = Sheet.CreateTime.Value,
- PackageId = clerkPlan.PackageId,
- PackageName = clerkPlan.PackageName,
- PlanId = clerkPlan.PlanId,
- PlanType = (int)PlanType.ProductSalesPlan,
- UpdateTime = DateTime.Now,
- SourcePackageId = clerkPlan.SourcePackageId,
- SourceOrderId = Sheet.Id
- };
-
- //得到数量+金额,每次匹配到一个SKU就减少下数量
- var matchQtyAndAmount = MatchPlanQty(listPackage, clerkPlan.PackageId, listSheetItem);
-
- if (matchQtyAndAmount == null || matchQtyAndAmount.Qty == 0) { continue; }
-
- orderPlan.Qty = matchQtyAndAmount.Qty;
- orderPlan.Amount = matchQtyAndAmount.Amount;
-
- orderPlan.Info = "符合[销售计划],商品或服务数需要相应减少且有跨月退款问题";
- _repository.Add(orderPlan);
-
- AddPlanSku(matchQtyAndAmount.Sku,clerkPlan.PackageId,clerkPlan.SourcePackageId,clerkPlan.PlanId);
-
- cal = true;
- }
-
- var listColorAndHairClerkPlan = listClerkPlan.Where(p => (p.PackageId == (int)PlanProductId.ColorProduct || p.PackageId == (int)PlanProductId.HairProduct)).ToList();
-
- var calOther = false;
-
- if (listColorAndHairClerkPlan != null && listColorAndHairClerkPlan.Count > 0)
- {
- CalColorAndHairProduct(listColorAndHairClerkPlan, listSheetItem,out calOther);
-
- //算完了其它类型,把数量改为0
- if (calOther) { cal = true; }
- }
-
- }
- #endregion
-
- #region CalColorAndHairProduct(处理彩妆和发饰)
- ///
- /// 处理彩妆和发饰
- ///
- private void CalColorAndHairProduct(List listClerkPlan,
- List listSheetItem,
- out bool calOther)
- {
- calOther = false;
-
- if (listSheetItem == null || listSheetItem.Count == 0) { return; }
- if (listClerkPlan == null || listClerkPlan.Count == 0) { return; }
-
- //彩妆和发饰,数量为0,计算金额就好;
- foreach (var clerkPlan in listClerkPlan)
- {
- var orderPlan = new BdOrderPlan()
- {
- Id = IdHelper.GetNewId(),
- OrderId = Sheet.Id,
- OrderTime = Sheet.CreateTime.Value,
- PackageId = clerkPlan.PackageId,
- PackageName = clerkPlan.PackageName,
- PlanId = clerkPlan.PlanId,
- PlanType = (int)PlanType.ProductSalesPlan,
- UpdateTime = DateTime.Now,
- Qty = 0
- };
-
- //彩妆和发饰
- if (clerkPlan.PackageId == (int)PlanProductId.ColorProduct || clerkPlan.PackageId == (int)PlanProductId.HairProduct)
- {
- var categoryId = Const.CosmeticsTopCategoryId;
-
- if (clerkPlan.PackageId == (int)PlanProductId.HairProduct) { categoryId = Const.HairOrnamentsTopCategoryId; }
-
- var colorProducts = listSheetItem.Where(p => p.TopCategoryId == categoryId.ToLower() && p.Qty > 0 && p.InBlanceUnitPrice >0).ToList();
- if (colorProducts == null || colorProducts.Count == 0) { continue; }
- orderPlan.Amount = colorProducts.Sum(p => p.InBlanceUnitPrice * p.Qty);
- _repository.Add(orderPlan);
- calOther = true;
- listSheetItem.RemoveAll(p => (colorProducts.Select(it => it.Id)).Contains(p.Id));
- }
- }
-
- }
- #endregion
-
- #region MatchPlanQty(匹配计划中的套餐多少套)
- ///
- /// 匹配计划中的套餐可以多少套
- ///
- ///
- ///
- ///
- private MatchPlanQtyResp MatchPlanQty(List listPackage,
- long packageId,
- List listSheetItem)
- {
- //匹配到的计划配置里面的sku
- var matchPlanSkus = listPackage.Where(p => p.Id == packageId).ToList();
-
- if (matchPlanSkus.IsEmpty()) { return null; }
-
- foreach (var planSku in matchPlanSkus)
- {
- //先判断是否套餐的所有商品在里面都有
- if (!listSheetItem.Exists(p => p.ItemId.ToLower() == planSku.ProductOrServiceId.ToLower() && p.Qty >= planSku.Qty))
- {
- return null;
- }
- }
-
- //默认只能一套
- var listMatchQty = new List();
-
- //符合套餐,看看可以得到多少套
- for (int i = 0; i < matchPlanSkus.Count; i++)
- {
- var matchProduct = listSheetItem.Find(p => p.ItemId.ToLower() == matchPlanSkus[i].ProductOrServiceId.ToLower());
-
- // 上面已经匹配,这里不可能为null,只关心可以得到多少
- var tempQty = matchProduct.Qty / matchPlanSkus[i].Qty;
- listMatchQty.Add(tempQty);
- }
-
- var matchQty = listMatchQty.Min(p => p);
- var amount = 0m;
-
- var listMatchItem = new List();
-
- //按这个数量移除
- for (int i = 0; i < matchPlanSkus.Count; i++)
- {
- var matchProduct = listSheetItem.Find(p => p.ItemId.ToLower() == matchPlanSkus[i].ProductOrServiceId.ToLower());
- amount = amount + Math.Round(matchProduct.InBlanceUnitPrice * matchQty,2,MidpointRounding.AwayFromZero);
-
- var matchItem = new ItemQtiyUnitPriceResp()
- {
- TotalQty = matchPlanSkus[i].Qty * matchQty,
- SkuId = matchProduct.ItemId,
- UnitPrice = matchProduct.InBlanceUnitPrice
- };
-
- listMatchItem.Add(matchItem);
-
- //订单明细这里
- matchProduct.Qty = matchProduct.Qty - matchQty;
- }
-
- return new MatchPlanQtyResp { Qty = matchQty,Amount = amount, Sku = listMatchItem };
-
- }
- #endregion
-
- #region CalRefundOrder(如果是退款单)
- ///
- /// 如果是退款单
- ///
- private void CalRefundOrder(List listSheetItem)
- {
-
- //这个月如果产生了或者上个月产生了,则
- if (Sheet.SourceOrderId == null)
- {
- LogHelper.Info($"[销售运算]退款单={Sheet.Id}找不到原始订单");
- return;
- }
-
- var sourceOrderId = Sheet.SourceOrderId;
-
- //判断原始销售单是否上个月
- var sourceOrder = GetSourceSimpleOrder(Sheet.SourceOrderId);
- if (sourceOrder.OrderPreorderId != null) { sourceOrderId = sourceOrder.OrderPreorderId; }
-
- //订单上个月开始时间,因为销售计划只需要计算从上个月开始就行
- var sheetOrderLastMonthFirstDay = Sheet.CreateTime.Value.AddMonths(-1).GetFirstDayOfMonth();
- if (sourceOrder.CreateTime < sheetOrderLastMonthFirstDay) { return; }
-
- //如果不是全退,则不用处理
- var sourceQty = _repository.Queryable().Where(p => p.SalesSheetId == sourceOrderId).Select(p => SqlFunc.AggregateSum(p.Qty)).First();
-
- var refundQty = _lxmSheetItemRepository.GetRefundQty(sourceOrderId, sheetOrderLastMonthFirstDay, Sheet.CreateTime.Value.AddSeconds(1));
-
- if (sourceQty != refundQty) { return; }
-
- var clerkSalesPlans = _repository
- .Queryable((cPlan, pPlan) => new object[] {
- JoinType.Left,cPlan.ProductId == pPlan.Id
- })
- .Where((cPlan, pPlan) => cPlan.Status == 1 && cPlan.VersionTime == VersionTime && cPlan.PlanTotalAmount > 0)
- .WhereIF(Sheet.OrderClerkId == null, (cPlan, pPlan) => cPlan.ClerkId == null)
- .WhereIF(Sheet.OrderClerkId != null, (cPlan, pPlan) => cPlan.ClerkId == sourceOrder.OrderClerkId)
- .Select((cPlan, pPlan) => new ClerkProductSalesPlanResp { PlanId = cPlan.Id, PackageId = SqlFunc.ToInt64(cPlan.ProductId), PackageName = cPlan.Name, TotalPrice = pPlan.TotalPrice, SourcePackageId = pPlan.PackageId })
- .WithCache(3600)
- .ToList();
-
- if (clerkSalesPlans == null || clerkSalesPlans.Count == 0) { return; }
-
- var listClerkPlan = clerkSalesPlans.OrderByDescending(p => p.TotalPrice).ToList();
-
- //店员的销售计划id
- var clerkPackageIds = listClerkPlan.Select(p => p.SourcePackageId).Distinct().ToList();
-
- //只能在这些店员有的计划上扣
- var planSkus = _repository.Queryable().Where(p => p.OrderId == sourceOrderId && p.PlanType == (int)PlanType.ProductSalesPlan && (p.Qty > 0 || p.Amount > 0)).ToList();
-
- if (planSkus == null || planSkus.Count == 0)
- {
- LogHelper.Info($"退款单id={Sheet.Id}当前店员在上个月和这个月没有产生对应的销售计划");
- return;
- }
-
- foreach (var planSku in planSkus)
- {
- //当前店员如果有这个计划,则可以扣减
- var clerkPlan = listClerkPlan.Find(p => p.SourcePackageId == planSku.SourcePackageId);
- if (clerkPlan == null) { continue; }
-
- planSku.Qty = -planSku.Qty;
- planSku.OrderId = SheetId;
- planSku.PlanId = clerkPlan.PlanId;
- planSku.PackageId = clerkPlan.PackageId;
- planSku.OrderTime = Sheet.CreateTime.Value;
- planSku.SourceOrderId = sourceOrderId;
- planSku.UpdateTime = DateTime.Now;
- planSku.Amount = -planSku.Amount;
- planSku.Id = IdHelper.GetNewId();
- planSku.Info = "[销售计划]全额退导致的反向流水";
- _repository.Add(planSku);
- }
- }
- #endregion
- }
-}
diff --git a/Reportapi/MyCode.Project.Services/IServices/IApiLogService.cs b/Reportapi/MyCode.Project.Services/IServices/IApiLogService.cs
index 4caaeb1..ab747a9 100644
--- a/Reportapi/MyCode.Project.Services/IServices/IApiLogService.cs
+++ b/Reportapi/MyCode.Project.Services/IServices/IApiLogService.cs
@@ -1,19 +1,4 @@
-using MyCode.Project.Domain.Message.Act.Common;
-using MyCode.Project.Domain.Message.Request.LxmZHMDReport;
-using MyCode.Project.Domain.Message.Response.Bfy;
-using MyCode.Project.Domain.Message.Response.Common;
-using MyCode.Project.Domain.Message.Response.LxmZHMDReport;
-using MyCode.Project.Domain.Message.Response.User;
-using MyCode.Project.Domain.Model;
-using MyCode.Project.Infrastructure.Common;
-using System;
-using System.Collections.Generic;
-using System.Data;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace MyCode.Project.Services
+namespace MyCode.Project.Services
{
public interface IApiLogService
{
diff --git a/Reportapi/MyCode.Project.Services/IServices/IItemListService.cs b/Reportapi/MyCode.Project.Services/IServices/IItemListService.cs
index 236f098..a1fda4f 100644
--- a/Reportapi/MyCode.Project.Services/IServices/IItemListService.cs
+++ b/Reportapi/MyCode.Project.Services/IServices/IItemListService.cs
@@ -1,17 +1,5 @@
-using MyCode.Project.Domain.Message.Act.Common;
-using MyCode.Project.Domain.Message.Request.LxmZHMDReport;
-using MyCode.Project.Domain.Message.Response.Bfy;
-using MyCode.Project.Domain.Message.Response.Common;
-using MyCode.Project.Domain.Message.Response.LxmZHMDReport;
-using MyCode.Project.Domain.Message.Response.User;
-using MyCode.Project.Domain.Model;
-using MyCode.Project.Infrastructure.Common;
-using System;
+using MyCode.Project.Domain.Message.Response.Common;
using System.Collections.Generic;
-using System.Data;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
namespace MyCode.Project.Services
{
diff --git a/Reportapi/MyCode.Project.Services/IServices/IReportService.cs b/Reportapi/MyCode.Project.Services/IServices/IReportService.cs
index 627d97c..539ab21 100644
--- a/Reportapi/MyCode.Project.Services/IServices/IReportService.cs
+++ b/Reportapi/MyCode.Project.Services/IServices/IReportService.cs
@@ -1,18 +1,4 @@
using MyCode.Project.Domain.Message.Act.Common;
-using MyCode.Project.Domain.Message.Request.AMing;
-using MyCode.Project.Domain.Message.Request.LxmZHMDReport;
-using MyCode.Project.Domain.Message.Response.AMing;
-using MyCode.Project.Domain.Message.Response.Bfy;
-using MyCode.Project.Domain.Message.Response.LxmZHMDReport;
-using MyCode.Project.Domain.Message.Response.User;
-using MyCode.Project.Domain.Model;
-using MyCode.Project.Infrastructure.Common;
-using System;
-using System.Collections.Generic;
-using System.Data;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
namespace MyCode.Project.Services
{
diff --git a/Reportapi/MyCode.Project.Services/Implementation/JackYunService.cs b/Reportapi/MyCode.Project.Services/Implementation/JackYunService.cs
index 8e5ef89..e0544e9 100644
--- a/Reportapi/MyCode.Project.Services/Implementation/JackYunService.cs
+++ b/Reportapi/MyCode.Project.Services/Implementation/JackYunService.cs
@@ -1,4 +1,5 @@
-using MyCode.Project.Infrastructure.Common;
+using MyCode.Project.Domain.Message.Request.JackYun;
+using MyCode.Project.Infrastructure.Common;
using MyCode.Project.Infrastructure.JackYun;
using System;
@@ -65,8 +66,8 @@ namespace MyCode.Project.Services.Implementation
requestBizData.sourceTradeNos = "10,026,635,314";
requestBizData.shopIds = new long[] { 378761130654261100, 378761130654261100 };
- JackyunResponse response = this.clientService.call(EnumAttribute.GetAttribute(ApiEnum.TRADEFULLINFOGET).Value, "", requestBizData);
- Console.Out.WriteLine("订单查询接口响应信息=" + JsonUtils.ToJson(response));
+ //JackyunResponse response = Call(EnumAttribute.GetAttribute(ApiEnum.TRADEFULLINFOGET).Value, "", requestBizData);
+ //Console.Out.WriteLine("订单查询接口响应信息=" + JsonUtils.ToJson(response));
}
#endregion
diff --git a/Reportapi/MyCode.Project.Services/Implementation/ReportService.cs b/Reportapi/MyCode.Project.Services/Implementation/ReportService.cs
index 0c5e975..8686126 100644
--- a/Reportapi/MyCode.Project.Services/Implementation/ReportService.cs
+++ b/Reportapi/MyCode.Project.Services/Implementation/ReportService.cs
@@ -1,37 +1,8 @@
-using MyCode.Project.Domain.Config;
-using MyCode.Project.Domain.Message.Act.Common;
-using MyCode.Project.Domain.Message.Request;
-using MyCode.Project.Domain.Message.Request.Bfy;
-using MyCode.Project.Domain.Message.Request.LxmZHMDReport;
-using MyCode.Project.Domain.Message.Response.Common;
-using MyCode.Project.Domain.Message.Response.LxmZHMDReport;
-using MyCode.Project.Domain.Message.Response.User;
-using MyCode.Project.Domain.Model;
+using MyCode.Project.Domain.Message.Act.Common;
using MyCode.Project.Domain.Repositories;
using MyCode.Project.Infrastructure.Common;
-using MyCode.Project.Infrastructure.Constant;
-using MyCode.Project.Infrastructure.Enumeration;
-using MyCode.Project.Infrastructure.Extensions;
using MyCode.Project.OutSideService;
-using MyCode.Project.Repositories;
-using MyCode.Project.Repositories.Common;
-using MyCode.Project.Services.BLL;
using MyCode.Project.Services.BLL.ReportExport;
-using SqlSugar;
-using System;
-using System.Collections.Generic;
-using System.Data;
-using System.IO;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using MyCode.Project.Infrastructure.Exceptions;
-using MyCode.Project.Domain.Message.Response.Bfy;
-using MyCode.Project.Infrastructure;
-using System.Web.UI.WebControls;
-using System.Collections;
-using MyCode.Project.Domain.Message.Response.AMing;
-using MyCode.Project.Domain.Message.Request.AMing;
namespace MyCode.Project.Services.Implementation
{
diff --git a/Reportapi/MyCode.Project.WebApi/Areas/Admin/Controllers/LxmZHMDReportController.cs b/Reportapi/MyCode.Project.WebApi/Areas/Admin/Controllers/LxmZHMDReportController.cs
index 3a5f0c0..eb78834 100644
--- a/Reportapi/MyCode.Project.WebApi/Areas/Admin/Controllers/LxmZHMDReportController.cs
+++ b/Reportapi/MyCode.Project.WebApi/Areas/Admin/Controllers/LxmZHMDReportController.cs
@@ -1,30 +1,14 @@
using MyCode.Project.Domain.Message.Act.Common;
-using MyCode.Project.Domain.Message.Request.LxmZHMDReport;
-using MyCode.Project.Domain.Message.Response.LxmZHMDReport;
-using MyCode.Project.Infrastructure.Common;
-using MyCode.Project.Infrastructure.Exceptions;
-using MyCode.Project.WebApi.App_Filter;
-using MyCode.Project.WebApi.Controllers;
-using System;
-using System.Collections.Generic;
-using System.IO;
-using System.Linq;
-using System.Net;
-using System.Net.Http;
-using System.Net.Http.Headers;
-using System.Web.Http;
-using MyCode.Project.Services.BLL.ReportExport;
-using MyCode.Project.Infrastructure.Enumeration;
using MyCode.Project.Infrastructure.Cache;
+using MyCode.Project.Infrastructure.Common;
using MyCode.Project.Infrastructure.Constant;
+using MyCode.Project.Infrastructure.Enumeration;
+using MyCode.Project.Infrastructure.Exceptions;
using MyCode.Project.Services;
-using MyCode.Project.Domain.Model;
-using MyCode.Project.Domain.Config;
-using MyCode.Project.Domain.Message.Response.User;
-using MyCode.Project.Domain.Message.Response.Common;
-using MyCode.Project.Infrastructure.Exports;
-using MyCode.Project.Domain.Message.Response.Bfy;
-using MyCode.Project.Domain.Message.Response.AMing;
+using MyCode.Project.WebApi.App_Filter;
+using System;
+using System.IO;
+using System.Web.Http;
namespace MyCode.Project.WebApi.Areas.Admin.Controllers
{
@@ -85,109 +69,11 @@ namespace MyCode.Project.WebApi.Areas.Admin.Controllers
//ZIP导出
#region ZIP导出(没有特殊处理的方法,不包含旧的ZIP导出)
- if (act.ReportType == (int)ReportType.TuoKeTiYanGuanKongReportExport){return ZIPExportXls(ansyAct);}
- if (act.ReportType == (int)ReportType.LiuKeShenKeGuanKongReportExport) { return ZIPExportXls(ansyAct); }
- if (act.ReportType == (int)ReportType.OldMemberALLDetailsExport||act.ReportType==(int)ReportType.NewMemberALLDetailsExport)
- {
- return ZIPExportXls(ansyAct);
- }
+
+
#endregion
#region ZIP导出(单独写的方法后续不动)
- //销售订单属性分析导出ZIP
- if (act.ReportType == (int)ReportType.SalesOrderAttributeAnalysisExport)
- {
- string hasDownloadZipCacheKey = CacheKey.HasDownloadZipCacheKey + $@":{act.ReportType}";
- var existDowing = _myCodeCacheServie.Exists(hasDownloadZipCacheKey);
-
- if (existDowing) { throw new BaseException("当前有人正在导出该报表,为了保障性能,请1分钟后再导出"); }
-
- //下载的标识
- _myCodeCacheServie.Set($"{hasDownloadZipCacheKey}", 1, new TimeSpan(0, 1, 0));
-
- //有这个才需要继续执行导出,没有的话,说明是去消息了
- _myCodeCacheServie.Set($"{CacheKey.ReportZipFileCacheKey}{reportId}", "", new TimeSpan(1, 0, 0));
-
- _queueProcessService.AddQueue("ReportExportAnsy", DateTime.Now.AddHours(1), ansyAct);
-
- return reportId;
- }
-
- //店铺的报表才使用这个
- if (act.ReportType == (int)ReportType.ShopDiagnoseDataExport)
- {
- var existDowing = _myCodeCacheServie.Exists(CacheKey.HasDownloadZipCacheKey);
-
- if (existDowing) { throw new BaseException("当前有人正在导出该报表,为了保障性能,请1分钟后再导出"); }
-
- //下载的标识
- _myCodeCacheServie.Set($"{CacheKey.HasDownloadZipCacheKey}", 1, new TimeSpan(0, 1, 0));
-
- //有这个才需要继续执行导出,没有的话,说明是去消息了
- _myCodeCacheServie.Set($"{CacheKey.ReportZipFileCacheKey}{reportId}", "", new TimeSpan(1, 0, 0));
-
- _queueProcessService.AddQueue("ReportExportAnsy", DateTime.Now.AddHours(1), ansyAct);
-
- return reportId;
- }
-
- //多个店铺产品销售计划进度详情明细的报表
- if (act.ReportType == (int)ReportType.BdShopMonthProductSalesPlanDetailExport)
- {
- string hasDownloadZipCacheKey = CacheKey.HasDownloadZipCacheKey + $@":{reportId}";
- var existDowing = _myCodeCacheServie.Exists(hasDownloadZipCacheKey);
-
- if (existDowing) { throw new BaseException("当前有人正在导出该报表,为了保障性能,请1分钟后再导出"); }
-
- //下载的标识
- _myCodeCacheServie.Set(hasDownloadZipCacheKey, 1, new TimeSpan(0, 1, 0));
-
- //有这个才需要继续执行导出,没有的话,说明是去消息了
- _myCodeCacheServie.Set($"{CacheKey.ReportZipFileCacheKey}{reportId}", "", new TimeSpan(1, 0, 0));
-
- _queueProcessService.AddQueue("ReportExportAnsy", DateTime.Now.AddHours(1), ansyAct);
-
- return reportId;
- }
-
-
-
- //会员数据-->会员查询
- if (act.ReportType == (int)ReportType.MemberAssetInquiryExport)
- {
- string hasDownloadZipCacheKey = CacheKey.HasDownloadZipCacheKey + $@":{reportId}";
- var existDowing = _myCodeCacheServie.Exists(hasDownloadZipCacheKey);
-
- if (existDowing) { throw new BaseException("当前有人正在导出该报表,为了保障性能,请1分钟后再导出"); }
-
- //下载的标识
- _myCodeCacheServie.Set(hasDownloadZipCacheKey, 1, new TimeSpan(0, 1, 0));
-
- //有这个才需要继续执行导出,没有的话,说明是去消息了
- _myCodeCacheServie.Set($"{CacheKey.ReportZipFileCacheKey}{reportId}", "", new TimeSpan(1, 0, 0));
-
- _queueProcessService.AddQueue("ReportExportAnsy", DateTime.Now.AddHours(1), ansyAct);
-
- return reportId;
- }
-
- //会员价值报表
- if (act.ReportType == (int)ReportType.MemberValueReportExport)
- {
- string hasDownloadZipCacheKey = CacheKey.HasDownloadZipCacheKey + $@":{reportId}";
- var existDowing = _myCodeCacheServie.Exists(hasDownloadZipCacheKey);
-
- if (existDowing) { throw new BaseException("当前有人正在导出该报表,为了保障性能,请1分钟后再导出"); }
-
- //下载的标识
- _myCodeCacheServie.Set(hasDownloadZipCacheKey, 1, new TimeSpan(1, 0, 0));
-
- //有这个才需要继续执行导出,没有的话,说明是去消息了
- _myCodeCacheServie.Set($"{CacheKey.ReportZipFileCacheKey}{reportId}", "", new TimeSpan(1, 0, 0));
-
- _queueProcessService.AddQueue