diff --git a/CoreCms.Net.Repository/Good/CoreCmsGoodsRepository.cs b/CoreCms.Net.Repository/Good/CoreCmsGoodsRepository.cs index ea310fe..4887c7c 100644 --- a/CoreCms.Net.Repository/Good/CoreCmsGoodsRepository.cs +++ b/CoreCms.Net.Repository/Good/CoreCmsGoodsRepository.cs @@ -874,7 +874,6 @@ namespace CoreCms.Net.Repository }) .MergeTable() .OrderBy(p => p.createTime, OrderByType.Desc) - .WithCache(60 * 60) .ToListAsync(); } else diff --git a/CoreCms.Net.Web.Admin/Controllers/Com/ToolsController.cs b/CoreCms.Net.Web.Admin/Controllers/Com/ToolsController.cs index bcfc898..8d19f5c 100644 --- a/CoreCms.Net.Web.Admin/Controllers/Com/ToolsController.cs +++ b/CoreCms.Net.Web.Admin/Controllers/Com/ToolsController.cs @@ -1799,16 +1799,13 @@ namespace CoreCms.Net.Web.Admin.Controllers { var jm = new AdminUiCallBack(); //待支付 - var unpaidCount = await _orderServices.GetCountAsync(p => - p.status == (int)GlobalEnumVars.OrderStatus.Normal && - p.payStatus == (int)GlobalEnumVars.OrderPayStatus.No && - p.shipStatus == (int)GlobalEnumVars.ShipStatus.Yes); + var paymentWhere = _orderServices.GetReverseStatus((int)GlobalEnumVars.OrderAllStatusType.ALL_PENDING_PAYMENT); + var unpaidCount = await _orderServices.GetCountAsync(paymentWhere); + //待发货 - var unshipCount = await _orderServices.GetCountAsync(p => - p.status == (int)GlobalEnumVars.OrderStatus.Normal && - p.payStatus == (int)GlobalEnumVars.OrderPayStatus.No && - (p.shipStatus == (int)GlobalEnumVars.ShipStatus.Yes || p.shipStatus == (int)GlobalEnumVars.ShipStatus.No)); + var deliveredWhere = _orderServices.GetReverseStatus((int)GlobalEnumVars.OrderAllStatusType.ALL_PENDING_DELIVERY); + var unshipCount = await _orderServices.GetCountAsync(deliveredWhere); //待售后 var aftersalesCount = await _aftersalesServices.GetCountAsync(p => p.status == (int)GlobalEnumVars.BillAftersalesStatus.WaitAudit); @@ -1830,8 +1827,6 @@ namespace CoreCms.Net.Web.Admin.Controllers goodsStaticsTotalWarn }; - - return jm; } diff --git a/CoreCms.Net.Web.Admin/wwwroot/views/good/goodscomment/edit.html b/CoreCms.Net.Web.Admin/wwwroot/views/good/goodscomment/edit.html index bc06fa3..285b5bf 100644 --- a/CoreCms.Net.Web.Admin/wwwroot/views/good/goodscomment/edit.html +++ b/CoreCms.Net.Web.Admin/wwwroot/views/good/goodscomment/edit.html @@ -22,7 +22,7 @@ - {{ d.params.data.nickName || '' }} 【{{ d.params.data.mobile || '' }}】 + {{ d.params.data.nickName || '' }} 【{{ d.params.data.mobile || '' }}】 diff --git a/CoreCms.Net.Web.Admin/wwwroot/views/promotion/promotion/conditioncreate.html b/CoreCms.Net.Web.Admin/wwwroot/views/promotion/promotion/conditioncreate.html index b7dc784..ed2aac4 100644 --- a/CoreCms.Net.Web.Admin/wwwroot/views/promotion/promotion/conditioncreate.html +++ b/CoreCms.Net.Web.Admin/wwwroot/views/promotion/promotion/conditioncreate.html @@ -150,7 +150,6 @@