增加项目,分层
This commit is contained in:
1 parent
6e995a5bdb
commit
0a3e5af6a9
234 files changed
+26994
-1
No files matched your search
@@ -0,0 +1,35 @@
|
||||
using MAX.Core.Commons;
|
||||
using Store.Product.Publish;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace LittleCow.ProductModule.ExecActions
|
||||
{
|
||||
/// <summary>
|
||||
/// 检测价格
|
||||
/// </summary>
|
||||
public class CheckPrice : PublishStep
|
||||
{
|
||||
public override string Description => "检测价格";
|
||||
|
||||
protected override Task ExecuteProvider(PublishContextBase context, CancellationToken token)
|
||||
{
|
||||
return Task.CompletedTask;
|
||||
////过滤上传商品价格
|
||||
//if (context.Parameters.IsFilterPrice.IsOpened)
|
||||
//{
|
||||
// decimal PriceStart = context.Parameters.IsFilterPrice.Value.Item1;
|
||||
// decimal PriceEnd = context.Parameters.IsFilterPrice.Value.Item2;
|
||||
// if (context.Product.Price <= PriceStart || context.Product.Price >= PriceEnd)
|
||||
// {
|
||||
// //result.Msg = "上传商品价格不符合条件,成功过滤";
|
||||
// //result.NextStep = Emums.UpResultStatus.Return;
|
||||
// }
|
||||
//}
|
||||
//return result;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user