Commit 9a8a9ef6 authored by liudong1993's avatar liudong1993

结算页面 无上级返佣提示

parent 2c16fce5
...@@ -216,7 +216,7 @@ namespace Mall.Model.Entity.User ...@@ -216,7 +216,7 @@ namespace Mall.Model.Entity.User
/// </summary> /// </summary>
public int? IsEnableFXGrade { get; set; } public int? IsEnableFXGrade { get; set; }
/// <summary> /// <summary>
/// 是否启用无上级返佣 /// 是否启用无上级返佣 1是 2否
/// </summary> /// </summary>
public int? IsEnableNoSuperiorFY { get; set; } public int? IsEnableNoSuperiorFY { get; set; }
} }
......
...@@ -2048,6 +2048,17 @@ namespace Mall.Module.Product ...@@ -2048,6 +2048,17 @@ namespace Mall.Module.Product
} }
} }
#region 提示无上级不返佣
bool PromptNoSuperiorFY = false;
var disbaseModel = distributor_BasicsRepository.GetList(new RB_Distributor_Basics_Extend() { TenantId = demodel.TenantId, MallBaseId = demodel.MallBaseId }).FirstOrDefault();
if ((disbaseModel?.IsEnableFXGrade ?? 2) == 1 && (disbaseModel?.IsEnableNoSuperiorFY ?? 1) == 2) {
if ((umodel.SuperiorId ?? 0) == 0) {
PromptNoSuperiorFY = true;
}
}
#endregion
mch_list.Add(new mch_list.Add(new
{ {
mch = new mch = new
...@@ -2059,6 +2070,7 @@ namespace Mall.Module.Product ...@@ -2059,6 +2070,7 @@ namespace Mall.Module.Product
pinkageList = PinkageList, pinkageList = PinkageList,
express_price = TotalExpress, express_price = TotalExpress,
remark = "", remark = "",
promptNoSuperiorFY = PromptNoSuperiorFY,
//order_form_data= [], //order_form_data= [],
total_goods_price = TotalGoodsSellMoney, total_goods_price = TotalGoodsSellMoney,
total_goods_original_price = TotalGoodsOriginalMoney, total_goods_original_price = TotalGoodsOriginalMoney,
......
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