优化店铺优化功能
This commit is contained in:
1 parent
b5d8818485
commit
5e0a54a8ba
3 files changed
+39
-25
No files matched your search
@@ -799,7 +799,11 @@ namespace TemuKJD.WXForms.ShopForms
|
||||
{
|
||||
var shopRow = dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ParseToString() == shop.ShopId);
|
||||
if (shopRow != null)
|
||||
shopRow.Cells["colMessage"].Value = "获取物流时效失败" + error;
|
||||
{
|
||||
shopRow.Cells["colMessage"].Value = "获取揽收时效失败" + error;
|
||||
//if(error.Contains("\"code\":2") && error.Contains("[194,62,3,176,14,1]"))
|
||||
// shopRow.Cells["colMessage"].Value = "店铺无评分";
|
||||
}
|
||||
}));
|
||||
}
|
||||
return;
|
||||
@@ -868,14 +872,21 @@ namespace TemuKJD.WXForms.ShopForms
|
||||
orderWayBill.shopId = shop.ShopId;
|
||||
orderWayBill.shopName = shop.ShopAccount;
|
||||
|
||||
// 24小时揽收率截至第二天
|
||||
if (is24 && BaseClass.StampToDateTime(orderWayBill.realPickupTime.ParseToInt()).Date <= BaseClass.StampToDateTime(orderWayBill.payTime.ParseToInt()).Date.AddDays(1))
|
||||
continue;
|
||||
// 48小时揽收率按48小时算
|
||||
if (!is24 && BaseClass.StampToDateTime(orderWayBill.realPickupTime.ParseToInt()) <= BaseClass.StampToDateTime(orderWayBill.payTime.ParseToInt()).AddDays(2))
|
||||
continue;
|
||||
if (!orderWayBill.realPickupTime.ParseToInt().IsNullOrZero())
|
||||
{
|
||||
// 24小时揽收率截至第二天
|
||||
if (is24 && BaseClass.StampToDateTime(orderWayBill.realPickupTime.ParseToInt()).Date <= BaseClass.StampToDateTime(orderWayBill.payTime.ParseToInt()).Date.AddDays(1))
|
||||
continue;
|
||||
// 48小时揽收率按48小时算
|
||||
if (!is24 && BaseClass.StampToDateTime(orderWayBill.realPickupTime.ParseToInt()) <= BaseClass.StampToDateTime(orderWayBill.payTime.ParseToInt()).AddDays(2))
|
||||
continue;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
lstWxOptimizeOrderWayBillInfo.Add(orderWayBill);
|
||||
}
|
||||
|
||||
lstWxOptimizeOrderWayBillInfo.Add(orderWayBill);
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
var rowIndex = this.dgvData3.Rows.Add(
|
||||
@@ -893,9 +904,8 @@ namespace TemuKJD.WXForms.ShopForms
|
||||
orderWayBill.orderInfo.orderId + "\r\n" + orderWayBill.waybillId,
|
||||
orderWayBill.delivery.deliveryName,
|
||||
BaseClass.StampToDateTime(orderWayBill.payTime.ParseToInt()).ToString("yyyy-MM-dd HH:mm:ss"),
|
||||
BaseClass.StampToDateTime(orderWayBill.realPickupTime.ParseToInt()).ToString("yyyy-MM-dd HH:mm:ss"),
|
||||
(BaseClass.StampToDateTime(orderWayBill.realPickupTime.ParseToInt()) -
|
||||
BaseClass.StampToDateTime(orderWayBill.payTime.ParseToInt())).TotalHours.ToString("f2") + "小时" + "\r\n[" + (is24 ? "次日" : "48小时") + "]"
|
||||
orderWayBill.realPickupTime.ParseToInt().IsNullOrZero() ? "" : BaseClass.StampToDateTime(orderWayBill.realPickupTime.ParseToInt()).ToString("yyyy-MM-dd HH:mm:ss"),
|
||||
(orderWayBill.pickupDuration.ParseToInt().IsNullOrZero() ? "" : (new TimeSpan(orderWayBill.pickupDuration.ParseToLong()).TotalHours.ToString("f2") + "小时" + "\r\n")) + "[" + (is24 ? "次日" : "48小时") + "]"
|
||||
);
|
||||
|
||||
dgvData3.Rows[rowIndex].Height = 60;
|
||||
@@ -943,7 +953,11 @@ namespace TemuKJD.WXForms.ShopForms
|
||||
{
|
||||
var shopRow = dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ParseToString() == shop.ShopId);
|
||||
if (shopRow != null)
|
||||
shopRow.Cells["colMessage"].Value = "获取物流时效失败" + error;
|
||||
{
|
||||
shopRow.Cells["colMessage"].Value = "获取配送时效失败" + error;
|
||||
//if(error.Contains("\"code\":2") && error.Contains("[194,62,3,176,14,1]"))
|
||||
// shopRow.Cells["colMessage"].Value = "店铺无评分";
|
||||
}
|
||||
}));
|
||||
}
|
||||
return;
|
||||
@@ -1000,7 +1014,7 @@ namespace TemuKJD.WXForms.ShopForms
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
this.pictureBox4.Visible = true;
|
||||
this.statusBar.lblTaskStatus.Text = "正在查询揽收不达标,店铺:" + shop.ShopAccount + " " + page + "/" + totalPage;
|
||||
this.statusBar.lblTaskStatus.Text = "正在查询配送不达标,店铺:" + shop.ShopAccount + " " + page + "/" + totalPage;
|
||||
}));
|
||||
foreach (JObject refundOrderObj in wayBillObjs["list"])
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user