|
@@ -175,6 +175,7 @@ namespace ZhonTai.Admin.Services.DiTuiAPI
|
|
|
public async Task<PageOutput<ProjectCountPageOutput>> ProjectCountPageAsync(PageInput<ProjectCountPageInput> input)
|
|
|
{
|
|
|
var ProjectId = input.Filter?.ProjectId;
|
|
|
+ var Date = input.Filter?.Date;
|
|
|
if(ProjectId == null)
|
|
|
{
|
|
|
ProjectId = 0;
|
|
@@ -205,7 +206,7 @@ namespace ZhonTai.Admin.Services.DiTuiAPI
|
|
|
|
|
|
//settleCounts.Add(new SettleCount("电商首购A级", "200/300单", "200元"));
|
|
|
//settleCounts.Add(new SettleCount("电商首购A级", "200/300单", "200元"));
|
|
|
- list.Add(new ProjectCountPageOutput((long)(ProjectId != 0 ? ProjectId : 416237348180038), "2023-05-02", settleCounts));
|
|
|
+ list.Add(new ProjectCountPageOutput((long)(ProjectId != 0 ? ProjectId : 416237348180038), "2023-05-02","", settleCounts));
|
|
|
|
|
|
List<SettleCount> settleCounts1 = new List<SettleCount>();
|
|
|
settleCounts1.Add(new SettleCount("电商首购A级", "200/300单", "200元"));
|
|
@@ -215,7 +216,35 @@ namespace ZhonTai.Admin.Services.DiTuiAPI
|
|
|
|
|
|
//settleCounts.Add(new SettleCount("电商首购A级", "200/300单", "200元"));
|
|
|
//settleCounts.Add(new SettleCount("电商首购A级", "200/300单", "200元"));
|
|
|
- list.Add(new ProjectCountPageOutput((long)(ProjectId != 0 ? ProjectId : 416237348180038), "2023-05-01", settleCounts1));
|
|
|
+ list.Add(new ProjectCountPageOutput((long)(ProjectId != 0 ? ProjectId : 416237348180038), "2023-05-01","", settleCounts1));
|
|
|
+
|
|
|
+ // 项目日统计数据
|
|
|
+ List<ProjectCountPageOutput> listDay = new List<ProjectCountPageOutput>();
|
|
|
+ List<SettleCount> settleCountsDay = new List<SettleCount>();
|
|
|
+ settleCountsDay.Add(new SettleCount("电商首购A级", "200/300单", "200元"));
|
|
|
+ settleCountsDay.Add(new SettleCount("电商首购B级", "201/300单", "201元"));
|
|
|
+ settleCountsDay.Add(new SettleCount("电商首购C级", "202/300单", "202元"));
|
|
|
+ settleCountsDay.Add(new SettleCount("今日汇总", "603/900单", "603元"));
|
|
|
+
|
|
|
+ //settleCounts.Add(new SettleCount("电商首购A级", "200/300单", "200元"));
|
|
|
+ //settleCounts.Add(new SettleCount("电商首购A级", "200/300单", "200元"));
|
|
|
+ listDay.Add(new ProjectCountPageOutput((long)(ProjectId != 0 ? ProjectId : 416237348180038), !string.IsNullOrEmpty(Date)? Date :"2023-05-02", "中捷乐淘", settleCountsDay));
|
|
|
+
|
|
|
+ List<SettleCount> settleCountsDay1 = new List<SettleCount>();
|
|
|
+ settleCountsDay1.Add(new SettleCount("电商首购A级", "200/300单", "200元"));
|
|
|
+ settleCountsDay1.Add(new SettleCount("电商首购B级", "199/300单", "199元"));
|
|
|
+ settleCountsDay1.Add(new SettleCount("电商首购C级", "198/300单", "198元"));
|
|
|
+ settleCountsDay1.Add(new SettleCount("今日汇总", "597/900单", "597元"));
|
|
|
+
|
|
|
+ //settleCounts.Add(new SettleCount("电商首购A级", "200/300单", "200元"));
|
|
|
+ //settleCounts.Add(new SettleCount("电商首购A级", "200/300单", "200元"));
|
|
|
+ listDay.Add(new ProjectCountPageOutput((long)(ProjectId != 0 ? ProjectId : 416237348180038), !string.IsNullOrEmpty(Date) ? Date : "2023-05-02", "suzhou柿集", settleCountsDay1));
|
|
|
+
|
|
|
+ if(!string.IsNullOrEmpty(Date))
|
|
|
+ {
|
|
|
+ list = listDay;
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
var total = list.Count;
|
|
|
|
|
@@ -291,6 +320,69 @@ namespace ZhonTai.Admin.Services.DiTuiAPI
|
|
|
}
|
|
|
|
|
|
|
|
|
+ /// <summary>
|
|
|
+ /// 推广码每日统计
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="input"></param>
|
|
|
+ /// <returns></returns>
|
|
|
+ [HttpGet]
|
|
|
+ public async Task<PageOutput<ProjectCountPageOutput>> QrcodeCountPageAsync(PageInput<QrcodeCountPageInput> input)
|
|
|
+ {
|
|
|
+ var Id = input.Filter?.Id;
|
|
|
+ if (Id == null)
|
|
|
+ {
|
|
|
+ Id = 0;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ //var list = _ProjectLinkRepository.Select.DisableGlobalFilter(FilterNames.Tenant)
|
|
|
+ // .WhereIf(ProjectId.HasValue && ProjectId.Value > 0, a => a.ProjectId == ProjectId)
|
|
|
+ // .WhereIf(Salesman.NotNull(), a => a.Salesman.Contains(Salesman))
|
|
|
+ // .WhereIf(SalesmanPhone.NotNull(), a => a.SalesmanPhone.Contains(SalesmanPhone))
|
|
|
+ //.Count(out var total)
|
|
|
+ //.Page(input.CurrentPage, input.PageSize)
|
|
|
+ //.ToList(m => new ProjectQrcodePageOutput()
|
|
|
+ //{
|
|
|
+ // Id = m.Id,
|
|
|
+ // Salesman = m.Salesman,
|
|
|
+ // UseTime = m.UseTime,
|
|
|
+ // QrcodeUrl = m.QrcodeUrl,
|
|
|
+ // QueryUrl = m.QueryUrl
|
|
|
+ //});
|
|
|
+
|
|
|
+ List<ProjectCountPageOutput> list = new List<ProjectCountPageOutput>();
|
|
|
+ List<SettleCount> settleCounts = new List<SettleCount>();
|
|
|
+ settleCounts.Add(new SettleCount("电商首购A级", "200/300单", "200元"));
|
|
|
+ settleCounts.Add(new SettleCount("电商首购B级", "201/300单", "201元"));
|
|
|
+ settleCounts.Add(new SettleCount("电商首购C级", "202/300单", "202元"));
|
|
|
+ settleCounts.Add(new SettleCount("今日汇总", "603/900单", "603元"));
|
|
|
+
|
|
|
+ //settleCounts.Add(new SettleCount("电商首购A级", "200/300单", "200元"));
|
|
|
+ //settleCounts.Add(new SettleCount("电商首购A级", "200/300单", "200元"));
|
|
|
+ list.Add(new ProjectCountPageOutput((long)(Id != 0 ? Id : 416237348180038), "2023-05-02", "", settleCounts));
|
|
|
+
|
|
|
+ List<SettleCount> settleCounts1 = new List<SettleCount>();
|
|
|
+ settleCounts1.Add(new SettleCount("电商首购A级", "200/300单", "200元"));
|
|
|
+ settleCounts1.Add(new SettleCount("电商首购B级", "199/300单", "199元"));
|
|
|
+ settleCounts1.Add(new SettleCount("电商首购C级", "198/300单", "198元"));
|
|
|
+ settleCounts1.Add(new SettleCount("今日汇总", "597/900单", "597元"));
|
|
|
+
|
|
|
+ //settleCounts.Add(new SettleCount("电商首购A级", "200/300单", "200元"));
|
|
|
+ //settleCounts.Add(new SettleCount("电商首购A级", "200/300单", "200元"));
|
|
|
+ list.Add(new ProjectCountPageOutput((long)(Id != 0 ? Id : 416237348180038), "2023-05-01", "", settleCounts1));
|
|
|
+
|
|
|
+ var total = list.Count;
|
|
|
+
|
|
|
+
|
|
|
+ var data = new PageOutput<ProjectCountPageOutput>()
|
|
|
+ {
|
|
|
+ List = list,
|
|
|
+ Total = total
|
|
|
+ };
|
|
|
+
|
|
|
+ return data;
|
|
|
+ }
|
|
|
+
|
|
|
/// <summary>
|
|
|
/// 判断字符串是否是手机号
|
|
|
/// </summary>
|