代发管理 爆款数据更新曝光量 店铺统计优化 增加反向物流考核功能
This commit is contained in:
1 parent
ad325eaec5
commit
ef35522b6a
42 files changed
+7102
-908
No files matched your search
@@ -3,6 +3,7 @@ using AllBase.Extension;
|
||||
using AllBase.Helper;
|
||||
using AllBase.Model.Config;
|
||||
using AllBase.Model.Result;
|
||||
using AllBase.Model.Result.WXResult;
|
||||
using NaiBa.Util.Extension;
|
||||
using NaiBa.Util.Winform.Extension;
|
||||
using System;
|
||||
@@ -158,6 +159,7 @@ namespace TemuKJD.WXForms.ShopForms
|
||||
{
|
||||
row.Cells["colOnSaleProductNumber"].Value = ""; // 商品数量
|
||||
row.Cells["colScore"].Value = ""; // 店铺体验分
|
||||
row.Cells["colScoreChange"].Value = ""; // 较昨日变化
|
||||
row.Cells["colPayCnt"].Value = ""; // 今日订单
|
||||
row.Cells["colPayCnt7"].Value = ""; // 7日订单
|
||||
row.Cells["colPayCnt30"].Value = ""; // 30日订单
|
||||
@@ -274,6 +276,12 @@ namespace TemuKJD.WXForms.ShopForms
|
||||
var subUserNames = shopEntity.SubUserName.Split(',').Where(su => !string.IsNullOrEmpty(su));
|
||||
var subUsers = WXSubAccountShopEditForm.lstAllSubAccount.Where(su => subUserNames.Contains(su.user_name));
|
||||
|
||||
decimal? scoreChange = null;
|
||||
if (statistics.scoreRetInfo?.dsrScore?.valueList?.Count > 1)
|
||||
scoreChange = statistics.scoreRetInfo?.dsrScore?.valueList[0].value - statistics.scoreRetInfo?.dsrScore?.valueList[1].value; // 较昨日变化
|
||||
//string scoreChangeStr = scoreChange == null ? "" : scoreChange.Value.ToString("+0.00;−0.00");
|
||||
string scoreChangeStr = scoreChange == null ? "" : scoreChange.Value.ToString("+0.00;-0.00");
|
||||
|
||||
if (row == null)
|
||||
{
|
||||
int rowId = this.dgvShop.Rows.Add(
|
||||
@@ -288,6 +296,7 @@ namespace TemuKJD.WXForms.ShopForms
|
||||
string.Join(",", subUsers.Select(s => s.nick_name)),
|
||||
statistics.ProdCount.ParseToNullableInt(), // 在售商品
|
||||
statistics.curScoreValue.ParseToNullableDecimal(), // 店铺体验分
|
||||
scoreChange, // 较昨日变化
|
||||
statistics.WxShopSaleInfoToday.pay_order_cnt, // 今日订单
|
||||
statistics.WxShopSaleInfo1Day.pay_order_cnt, // 昨日订单
|
||||
statistics.WxShopSaleInfo7Day.pay_order_cnt, // 7日订单
|
||||
@@ -332,6 +341,7 @@ namespace TemuKJD.WXForms.ShopForms
|
||||
row.Cells["colSubUser"].Value = string.Join(",", subUsers.Select(s => s.nick_name));
|
||||
row.Cells["colOnSaleProductNumber"].Value = statistics.ProdCount.ParseToNullableInt(); // 商品数量
|
||||
row.Cells["colScore"].Value = statistics.curScoreValue.ParseToNullableDecimal(); // 店铺体验分
|
||||
row.Cells["colScoreChange"].Value = scoreChange; // 较昨日变化
|
||||
row.Cells["colPayCnt"].Value = statistics.WxShopSaleInfoToday.pay_order_cnt; // 今日订单
|
||||
row.Cells["colPayCnt1"].Value = statistics.WxShopSaleInfo1Day.pay_order_cnt; // 昨日订单
|
||||
row.Cells["colPayCnt7"].Value = statistics.WxShopSaleInfo7Day.pay_order_cnt; // 7日订单
|
||||
@@ -354,6 +364,14 @@ namespace TemuKJD.WXForms.ShopForms
|
||||
row.Cells["colDepositBalance"].Value = statistics.WxShopAmount.DepositBalance * 0.01m; ; // 保证金
|
||||
|
||||
}
|
||||
|
||||
row.Cells["colScore"].Style.ForeColor = DefaultForeColor;
|
||||
if (statistics.scoreRetInfo?.dsrScore?.level == 3)
|
||||
row.Cells["colScore"].Style.ForeColor = Color.DarkGreen; // Color.Green;
|
||||
if (statistics.scoreRetInfo?.dsrScore?.level == 2)
|
||||
row.Cells["colScore"].Style.ForeColor = Color.ForestGreen; // Color.MediumSeaGreen;
|
||||
if (statistics.scoreRetInfo?.dsrScore?.level == 1)
|
||||
row.Cells["colScore"].Style.ForeColor = Color.Red;
|
||||
}
|
||||
|
||||
private void GetShopStatistics(ShopLoginInfo shop, WxShopSaleStatisticsGroup statistics)
|
||||
@@ -371,6 +389,7 @@ namespace TemuKJD.WXForms.ShopForms
|
||||
if (shopScoreRst.Contains("\"code\":0"))
|
||||
{
|
||||
statistics.curScoreValue = BaseRegex.GetDecimalJson(ref shopScoreRst, "curValue");
|
||||
statistics.scoreRetInfo = JsonHelper.DeserializeJsonToObject<DSRShopScoreRetInfo>(JsonHelper.JObjectParse(shopScoreRst)["dsrScoreRet"].ParseToString());
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -764,9 +783,9 @@ namespace TemuKJD.WXForms.ShopForms
|
||||
statistics.WxShopSaleInfo1Day.LastRefreshDate = DateTime.MinValue;
|
||||
statistics.WxShopSaleInfo7Day.LastRefreshDate = DateTime.MinValue;
|
||||
statistics.WxShopSaleInfo30Day.LastRefreshDate = DateTime.MinValue;
|
||||
statistics.lastRefreshDate = DateTime.MinValue;
|
||||
}
|
||||
//this.lstSubOrderInfo.RemoveAll(o => o.supplierId.ParseToString() == shop.ShopId);
|
||||
|
||||
}
|
||||
|
||||
this.pbLoading.Visible = true;
|
||||
|
||||
Reference in new issue
Block a user