Commit ad0097c1 authored by 吴春's avatar 吴春

订单推送

parent 74684693
...@@ -1154,7 +1154,7 @@ namespace REBORN.Module.SellModule ...@@ -1154,7 +1154,7 @@ namespace REBORN.Module.SellModule
#region 推送企微机器人消息 #region 推送企微机器人消息
var dictModel = dictvalueRepository.GetList(new RB_Dictvalue_Extend() { RB_Group_id = demodel.GroupId, DictKey = "Client_OrderPush_Url" }).FirstOrDefault(); var dictModel = dictvalueRepository.GetList(new RB_Dictvalue_Extend() { RB_Group_id = demodel.GroupId, DictKey = "Client_OrderPush_Url" }).FirstOrDefault();
if (dictModel != null) if (dictModel != null && userInfo.SimpleEasy == 0)
{ {
string url = dictModel.Content; string url = dictModel.Content;
var postdata = new var postdata = new
...@@ -3461,7 +3461,7 @@ namespace REBORN.Module.SellModule ...@@ -3461,7 +3461,7 @@ namespace REBORN.Module.SellModule
Id = 0, Id = 0,
OrderId = 0, OrderId = 0,
TicketName = product.TicketName, TicketName = product.TicketName,
Unit_Price = demodel.PeopleNum==0? demodel.Money: Math.Round(demodel.Money / (demodel?.PeopleNum ?? 1),2), Unit_Price = demodel.PeopleNum == 0 ? demodel.Money : Math.Round(demodel.Money / (demodel?.PeopleNum ?? 1), 2),
Num = demodel.PeopleNum, Num = demodel.PeopleNum,
Money = demodel.Money, Money = demodel.Money,
CurrencyId = 1, CurrencyId = 1,
...@@ -3518,7 +3518,7 @@ namespace REBORN.Module.SellModule ...@@ -3518,7 +3518,7 @@ namespace REBORN.Module.SellModule
#region 推送企微机器人消息 #region 推送企微机器人消息
var dictModel = dictvalueRepository.GetList(new RB_Dictvalue_Extend() { RB_Group_id = demodel.GroupId, DictKey = "Client_OrderPush_Url" }).FirstOrDefault(); var dictModel = dictvalueRepository.GetList(new RB_Dictvalue_Extend() { RB_Group_id = demodel.GroupId, DictKey = "Client_OrderPush_Url" }).FirstOrDefault();
if (dictModel != null && demodel.GroupId == 2) if (dictModel != null && demodel.GroupId == 2 && userInfo.SimpleEasy == 0)
{ {
string url = dictModel.Content; string url = dictModel.Content;
var postdata = new var postdata = new
......
...@@ -6759,7 +6759,7 @@ namespace REBORN.Module.SellModule ...@@ -6759,7 +6759,7 @@ namespace REBORN.Module.SellModule
coupon_AllotRepository.DBSession.Commit(); coupon_AllotRepository.DBSession.Commit();
//自动更新候补订单 //自动更新候补订单
updaeTravelOrderWaitingRepository.UpdateOrderWaitingRepository(tmodel, null); updaeTravelOrderWaitingRepository.UpdateOrderWaitingRepository(tmodel, null);
if (isAddorder) if (isAddorder&& userInfo.SimpleEasy == 0)
{ {
//推送消息到企业微信 //推送消息到企业微信
//新增订单,推送消息 //新增订单,推送消息
...@@ -5251,7 +5251,7 @@ namespace REBORN.Services.DMCService ...@@ -5251,7 +5251,7 @@ namespace REBORN.Services.DMCService
model.OrderSource = model.OrderSource ?? OrderSourceEnum.Internal; model.OrderSource = model.OrderSource ?? OrderSourceEnum.Internal;
flag = visaModule.SetVisaOrder_V2(model, VisaProductModel, tempModel, IsUpdateTCNum, supplierModel, appointOPList, orderGuestList, updateCouponAllotIds); flag = visaModule.SetVisaOrder_V2(model, VisaProductModel, tempModel, IsUpdateTCNum, supplierModel, appointOPList, orderGuestList, updateCouponAllotIds);
} }
if (flag && isAddOrder) if (flag && isAddOrder && userInfo.SimpleEasy == 0)
{ {
//新增订单,推送消息 //新增订单,推送消息
Dictionary<string, string> dic = new Dictionary<string, string>(); Dictionary<string, string> dic = new Dictionary<string, string>();
......
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