mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2026-03-22 17:37:20 +08:00
【修复】修复商品下架或者删除后,我的足迹统计数据不准确的问题。
This commit is contained in:
@@ -72,7 +72,7 @@ namespace CoreCms.Net.Services
|
|||||||
var productModel = await _dal.QueryByClauseAsync(p => p.id == id);
|
var productModel = await _dal.QueryByClauseAsync(p => p.id == id);
|
||||||
if (productModel == null) return null;
|
if (productModel == null) return null;
|
||||||
//获取商品信息
|
//获取商品信息
|
||||||
var goods = await goodsServices.QueryByIdAsync(productModel.goodsId);
|
var goods = await goodsServices.QueryByClauseAsync(p => p.id == productModel.goodsId && p.isDel == false && p.isMarketable == true);
|
||||||
if (goods == null) return null;
|
if (goods == null) return null;
|
||||||
//DTO映射
|
//DTO映射
|
||||||
productModel.bn = goods.bn;
|
productModel.bn = goods.bn;
|
||||||
|
|||||||
Reference in New Issue
Block a user