优化客服统计功能

This commit is contained in:
wule committed 2026-02-05 19:32:45 +08:00
1 parent a2a6719a99
commit 4fd8d9cc17
17 files changed
+1218 -471

No files matched your search

@@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AllBase.Model.Config
{
public class WxShopAfterSaleInfo
{
public string ShopId { get; set; }
public int? AfterSaleCount { get; set; }
public DateTime RefreshTime { get; set; }
}
}
@@ -0,0 +1,56 @@
using NaiBa.Util.Extension;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AllBase.Model.Config
{
public class WxShopKfStatistics
{
public string ShopId { get; set; }
//public List
/// <summary>
/// 咨询用户数
/// </summary>
public int? user_cnt { get; set; }
/// <summary>
/// 咨询会话数
/// </summary>
public int? sesseion_cnt { get; set; }
/// <summary>
/// 不回复率
/// </summary>
public decimal? service_noreply_ratio { get; set; }
public decimal? service_reply_ratio { get { return 1m - service_noreply_ratio; } }
/// <summary>
/// 回复数量 不准
/// </summary>
public int? replyUserCount { get { return user_cnt - (user_cnt * service_noreply_ratio + 0.1m).ParseToInt(); } }
//cardResp {
// ...
// objects {
// tableValueLine [
// {
// "columnValue": [
// 1769011200, // 开始时间
// "3", // 咨询用户数
// "5", // 咨询会话数
// "0.5", // 3分钟人工回复率
// "4429", // 平均回复时长
// "0.333333", // 不回复率
// "1" // 用户满意率
// ]
// }
// ]
// }
//}
}
}
@@ -0,0 +1,108 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AllBase.Model.Config
{
public class WxShopMainStatisticsInfo
{
public int? code { get; set; } // 0,
/// <summary>
/// 待发货
/// </summary>
public MainStatisticsInfoRet orderNumRet { get; set; }
/// <summary>
/// 物流异常
/// </summary>
public MainStatisticsInfoRet waybillErrorRet { get; set; }
/// <summary>
/// 售后
/// </summary>
public MainStatisticsInfoRet aftersaleAllRet { get; set; }
/// <summary>
/// 服务保障
/// </summary>
public MainStatisticsInfoRet guaranteeRet { get; set; }
/// <summary>
/// 店铺预警
/// </summary>
public MainStatisticsInfoRet prewarnRet { get; set; }
/// <summary>
/// 店铺违规
/// </summary>
public MainStatisticsInfoRet punishRet { get; set; }
/// <summary>
/// 工单
/// </summary>
public MainStatisticsInfoRet mchUndealRet { get; set; }
}
public class MainStatisticsInfoRet
{
//orderNumRet-pendingShipNum待发货 waybillErrorRet物流异常 aftersaleAllRet售后 guaranteeRet服务保障 prewarnRet店铺预警 punishRet店铺违规 mchUndealRet工单
public int? code { get; set; } // 0
public int? totalNum { get; set; } // 0
public int? pendingNum { get; set; } // 1
public int? pendingShipNum { get; set; } // 1
public int? waitStatusCount { get; set; } // 0
public int? num
{
get
{
if (totalNum != null)
return totalNum;
if (pendingNum != null)
return pendingNum;
if (pendingShipNum != null)
return pendingShipNum;
if (waitStatusCount != null)
return waitStatusCount;
return null;
}
}
}
public class WxShopSaleStatisticsGroup
{
public DateTime LastRefreshDate { get; set; }
public WxShopSaleStatisticsInfo WxShopSaleInfoToday { get; set; }
public WxShopSaleStatisticsInfo WxShopSaleInfo7Day { get; set; }
public WxShopSaleStatisticsInfo WxShopSaleInfo30Day { get; set; }
}
public class WxShopSaleStatisticsInfo
{
/// <summary>
/// 成交金额
/// </summary>
public string pay_gmv { get; set; } // "118574",
public string pay_gmv_tb { get; set; } // "",
public string pay_gmv_ind { get; set; } // "0.461936",
/// <summary>
/// 成交人数
/// </summary>
public string pay_uv { get; set; } // "47",
public string pay_uv_tb { get; set; } // "",
public string pay_uv_ind { get; set; } // "0.583592",
/// <summary>
/// 成交订单数
/// </summary>
public string pay_order_cnt { get; set; } // "50",
public string pay_order_cnt_tb { get; set; } // "",
public string pay_order_cnt_ind { get; set; } // "0.57901",
/// <summary>
/// 成交退款金额
/// </summary>
public string pay_refund_gmv { get; set; } // "6272",
public string pay_refund_gmv_tb { get; set; } // "",
public string pay_refund_gmv_ind { get; set; } // "0.411973",
/// <summary>
/// 商品点击人数
/// </summary>
public string product_click_uv { get; set; } // "368",
public string product_click_uv_tb { get; set; } // "",
public string product_click_uv_ind { get; set; } // "0.56263"
}
}
+1 -1
View File
@@ -199,7 +199,7 @@ namespace AllBase.Model.Result
public string RefreshToken { get; set; } = "";
public string AppKey { get; set; } = "";
public DateTime ExpiresTime { get; set; }
public DateTime AddTime { get; set; }
public DateTime AddTime { get; set; } = DateTime.MinValue;
public string ApiAuthStatus { get; set; } = "未授权";
}