Commit d81f3aea authored by 吴春's avatar 吴春

提交代码

parent b416ba21
......@@ -487,15 +487,8 @@ namespace Mall.Module.MarketingCenter
try
{
DateTime nowTime = Convert.ToDateTime(item.CreateDate + " 00:00:00");
var userIdList = item.UserIds.Split(",").Distinct().ToArray();
foreach (var itemUserId in userIdList)
{
int orderNum = allOrderList.Where(x => x.UserId.ToString() == itemUserId && x.CreateDate < nowTime).Count();
if (orderNum > 1)
{
item.RepurchaseNum += 1;
}
}
item.RepurchaseNum = allOrderList.Where(x => x.CreateDate < nowTime).Select(x => x.UserId).Distinct().Count();
}
catch (Exception)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment