Commit 2edeb5eb authored by liudong1993's avatar liudong1993

1

parent f75e6ce6
This diff is collapsed.
...@@ -214,7 +214,7 @@ namespace REBORN.Repository.Dmc ...@@ -214,7 +214,7 @@ namespace REBORN.Repository.Dmc
{ {
StringBuilder builder = new StringBuilder(); StringBuilder builder = new StringBuilder();
builder.AppendFormat(@" builder.AppendFormat(@"
SELECT g.Status,g.SurName,g.`Name`,g.Tel,g.PassportNo,g.IdCard,g.PassportExpiry,g.PassportIssued,g.OrderId,g.TCID,g.Id,g.passportNo,g.mobilePhone,g.Sex,g.Birthday,g.ApplyStatus,g.VisaManageStatus,g.IsBed,g.VisaType,IFNULL(g.TicketOutType,0) AS TicketOutType SELECT g.Status,g.SurName,g.`Name`,g.Tel,g.PassportNo,g.IdCard,g.PassportExpiry,g.PassportIssued,g.OrderId,g.TCID,g.Id,g.passportNo,g.mobilePhone,g.Sex,g.Birthday,g.ApplyStatus,g.VisaManageStatus,g.IsBed,g.VisaType,IFNULL(g.TicketOutType,0) AS TicketOutType,g.Remarks
FROM RB_Travel_Guest g FROM RB_Travel_Guest g
WHERE 1=1 WHERE 1=1
"); ");
......
...@@ -3909,7 +3909,7 @@ namespace REBORN.Services.DMCService ...@@ -3909,7 +3909,7 @@ namespace REBORN.Services.DMCService
}), }),
ZaiTu = x.PlatformMoney, ZaiTu = x.PlatformMoney,
DueInMoney = ((x.TotalPrice ?? 0) - (x.Income ?? 0) + (x.RefundMoney ?? 0) - (x.PlatformTax ?? 0) - (x.DiscountMoney ?? 0) - (x.PlatformMoney)).ToString("#0.00"), DueInMoney = ((x.TotalPrice ?? 0) - (x.Income ?? 0) + (x.RefundMoney ?? 0) - (x.PlatformTax ?? 0) - (x.DiscountMoney ?? 0) - (x.PlatformMoney)).ToString("#0.00"),
GuestList = x.GuestList.Select(subItem => new { GuestId = subItem.Id, Tel = subItem?.Tel ?? "", IdCard = subItem?.IdCard ?? "", PassportNo = subItem?.PassportNo ?? "", PassportExpiry = StringHelper.FormatDate(subItem.PassportExpiry), PassportIssued = StringHelper.FormatDate(subItem.PassportIssued), Birthday = StringHelper.FormatDate(subItem.Birthday), subItem.IsApplyPhoto, subItem.OrderId, userName = subItem.SurName + subItem.Name, SexStr = subItem.Sex == 1 ? "男" : subItem.Sex == 2 ? "女" : "保密", Age = subItem.Birthday.HasValue ? System.DateTime.Now.Year - subItem.Birthday.Value.Year : 0, subItem.MobilePhone, subItem.VisaType, subItem.TicketOutType, subItem.TicketOutTypeStr, subItem.ProtocolId, subItem.DisclaimerId }), GuestList = x.GuestList.Select(subItem => new { GuestId = subItem.Id, subItem?.Remarks, Tel = subItem?.Tel ?? "", IdCard = subItem?.IdCard ?? "", PassportNo = subItem?.PassportNo ?? "", PassportExpiry = StringHelper.FormatDate(subItem.PassportExpiry), PassportIssued = StringHelper.FormatDate(subItem.PassportIssued), Birthday = StringHelper.FormatDate(subItem.Birthday), subItem.IsApplyPhoto, subItem.OrderId, userName = subItem.SurName + subItem.Name, SexStr = subItem.Sex == 1 ? "男" : subItem.Sex == 2 ? "女" : "保密", Age = subItem.Birthday.HasValue ? System.DateTime.Now.Year - subItem.Birthday.Value.Year : 0, subItem.MobilePhone, subItem.VisaType, subItem.TicketOutType, subItem.TicketOutTypeStr, subItem.ProtocolId, subItem.DisclaimerId }),
VisaPlanIdStr = string.Join(",", x.GuestList.Where(y => (y.VisaPlanId ?? 0) > 0).Select(y => (y.VisaPlanId ?? 0)).Distinct().ToList()), VisaPlanIdStr = string.Join(",", x.GuestList.Where(y => (y.VisaPlanId ?? 0) > 0).Select(y => (y.VisaPlanId ?? 0)).Distinct().ToList()),
x.IsFinish, x.IsFinish,
FinishTime = x.FinishTime.HasValue ? x.FinishTime.Value.ToString("yyyy-MM-dd") : "", FinishTime = x.FinishTime.HasValue ? x.FinishTime.Value.ToString("yyyy-MM-dd") : "",
...@@ -5541,7 +5541,7 @@ namespace REBORN.Services.DMCService ...@@ -5541,7 +5541,7 @@ namespace REBORN.Services.DMCService
y.ApplyMoney, y.ApplyMoney,
y.InvoiceApplyState y.InvoiceApplyState
}), }),
GuestList = x.GuestList.Select(subItem => new { GuestId = subItem.Id, Tel = subItem?.Tel ?? "", IdCard = subItem?.IdCard ?? "", PassportNo = subItem?.PassportNo ?? "", PassportExpiry = StringHelper.FormatDate(subItem.PassportExpiry), PassportIssued = StringHelper.FormatDate(subItem.PassportIssued), Birthday = StringHelper.FormatDate(subItem.Birthday), subItem.IsApplyPhoto, subItem.OrderId, userName = subItem.SurName + subItem.Name, SexStr = subItem.Sex == 1 ? "男" : subItem.Sex == 2 ? "女" : "保密", Age = subItem.Birthday.HasValue ? System.DateTime.Now.Year - subItem.Birthday.Value.Year : 0, subItem.MobilePhone, subItem.VisaType, subItem.TicketOutType, subItem.TicketOutTypeStr, subItem.ProtocolId, subItem.DisclaimerId }), GuestList = x.GuestList.Select(subItem => new { GuestId = subItem.Id, subItem?.Remarks, Tel = subItem?.Tel ?? "", IdCard = subItem?.IdCard ?? "", PassportNo = subItem?.PassportNo ?? "", PassportExpiry = StringHelper.FormatDate(subItem.PassportExpiry), PassportIssued = StringHelper.FormatDate(subItem.PassportIssued), Birthday = StringHelper.FormatDate(subItem.Birthday), subItem.IsApplyPhoto, subItem.OrderId, userName = subItem.SurName + subItem.Name, SexStr = subItem.Sex == 1 ? "男" : subItem.Sex == 2 ? "女" : "保密", Age = subItem.Birthday.HasValue ? System.DateTime.Now.Year - subItem.Birthday.Value.Year : 0, subItem.MobilePhone, subItem.VisaType, subItem.TicketOutType, subItem.TicketOutTypeStr, subItem.ProtocolId, subItem.DisclaimerId }),
x.FinalPriceTips, x.FinalPriceTips,
x.Meet, x.Meet,
x.OtherContractList, x.OtherContractList,
...@@ -5680,7 +5680,7 @@ namespace REBORN.Services.DMCService ...@@ -5680,7 +5680,7 @@ namespace REBORN.Services.DMCService
x.ExpressFeeNum, x.ExpressFeeNum,
x.ServiceFeeNum, x.ServiceFeeNum,
x.IsChargeLossOrders, x.IsChargeLossOrders,
GuestList = x.GuestList.Select(subItem => new { GuestId = subItem.Id, Tel = subItem?.Tel ?? "", IdCard = subItem?.IdCard ?? "", PassportNo = subItem?.PassportNo ?? "", PassportExpiry = StringHelper.FormatDate(subItem.PassportExpiry), PassportIssued = StringHelper.FormatDate(subItem.PassportIssued), Birthday = StringHelper.FormatDate(subItem.Birthday), subItem.IsApplyPhoto, subItem.OrderId, userName = subItem.SurName + subItem.Name, SexStr = subItem.Sex == 1 ? "男" : subItem.Sex == 2 ? "女" : "保密", Age = subItem.Birthday.HasValue ? System.DateTime.Now.Year - subItem.Birthday.Value.Year : 0, subItem.MobilePhone, subItem.VisaType, subItem.TicketOutType, subItem.TicketOutTypeStr, subItem.ProtocolId, subItem.DisclaimerId }), GuestList = x.GuestList.Select(subItem => new { GuestId = subItem.Id, subItem?.Remarks, Tel = subItem?.Tel ?? "", IdCard = subItem?.IdCard ?? "", PassportNo = subItem?.PassportNo ?? "", PassportExpiry = StringHelper.FormatDate(subItem.PassportExpiry), PassportIssued = StringHelper.FormatDate(subItem.PassportIssued), Birthday = StringHelper.FormatDate(subItem.Birthday), subItem.IsApplyPhoto, subItem.OrderId, userName = subItem.SurName + subItem.Name, SexStr = subItem.Sex == 1 ? "男" : subItem.Sex == 2 ? "女" : "保密", Age = subItem.Birthday.HasValue ? System.DateTime.Now.Year - subItem.Birthday.Value.Year : 0, subItem.MobilePhone, subItem.VisaType, subItem.TicketOutType, subItem.TicketOutTypeStr, subItem.ProtocolId, subItem.DisclaimerId }),
x.FinalPriceTips, x.FinalPriceTips,
x.Meet, x.Meet,
x.OtherContractList, x.OtherContractList,
......
...@@ -11725,7 +11725,7 @@ namespace REBORN.Services.SellService ...@@ -11725,7 +11725,7 @@ namespace REBORN.Services.SellService
y.ApplyMoney, y.ApplyMoney,
y.InvoiceApplyState y.InvoiceApplyState
}), }),
GuestList = x.GuestList.Select(subItem => new { GuestId = subItem.Id, Tel = subItem?.Tel ?? "", IdCard = subItem?.IdCard ?? "", PassportNo = subItem?.PassportNo ?? "", PassportExpiry = StringHelper.FormatDate(subItem.PassportExpiry), PassportIssued = StringHelper.FormatDate(subItem.PassportIssued), Birthday = StringHelper.FormatDate(subItem.Birthday), subItem.IsApplyPhoto, subItem.OrderId, userName = subItem.SurName + subItem.Name, SexStr = subItem.Sex == 1 ? "男" : subItem.Sex == 2 ? "女" : "保密", Age = subItem.Birthday.HasValue ? System.DateTime.Now.Year - subItem.Birthday.Value.Year : 0, subItem.MobilePhone, subItem.VisaType, subItem.TicketOutType, subItem.TicketOutTypeStr, subItem.ProtocolId, subItem.DisclaimerId }), GuestList = x.GuestList.Select(subItem => new { GuestId = subItem.Id, subItem?.Remarks, Tel = subItem?.Tel ?? "", IdCard = subItem?.IdCard ?? "", PassportNo = subItem?.PassportNo ?? "", PassportExpiry = StringHelper.FormatDate(subItem.PassportExpiry), PassportIssued = StringHelper.FormatDate(subItem.PassportIssued), Birthday = StringHelper.FormatDate(subItem.Birthday), subItem.IsApplyPhoto, subItem.OrderId, userName = subItem.SurName + subItem.Name, SexStr = subItem.Sex == 1 ? "男" : subItem.Sex == 2 ? "女" : "保密", Age = subItem.Birthday.HasValue ? System.DateTime.Now.Year - subItem.Birthday.Value.Year : 0, subItem.MobilePhone, subItem.VisaType, subItem.TicketOutType, subItem.TicketOutTypeStr, subItem.ProtocolId, subItem.DisclaimerId }),
IsShowDisclaimer = (x?.GuestList?.Where(z => z.DisclaimerId > 0).Count() == x?.GuestList?.Count()) ? 0 : 1, IsShowDisclaimer = (x?.GuestList?.Where(z => z.DisclaimerId > 0).Count() == x?.GuestList?.Count()) ? 0 : 1,
CancelGuestList = x.CancelGuestList.Select(subItem => new { GuestId = subItem.Id, subItem.IsApplyPhoto, subItem.OrderId, userName = subItem.SurName + subItem.Name, subItem.PassportNo, SexStr = subItem.Sex == 1 ? "男" : subItem.Sex == 2 ? "女" : "保密", Age = subItem.Birthday.HasValue ? System.DateTime.Now.Year - subItem.Birthday.Value.Year : 0, subItem.MobilePhone, subItem.TicketOutType, subItem.TicketOutTypeStr, subItem.ProtocolId, subItem.DisclaimerId }), CancelGuestList = x.CancelGuestList.Select(subItem => new { GuestId = subItem.Id, subItem.IsApplyPhoto, subItem.OrderId, userName = subItem.SurName + subItem.Name, subItem.PassportNo, SexStr = subItem.Sex == 1 ? "男" : subItem.Sex == 2 ? "女" : "保密", Age = subItem.Birthday.HasValue ? System.DateTime.Now.Year - subItem.Birthday.Value.Year : 0, subItem.MobilePhone, subItem.TicketOutType, subItem.TicketOutTypeStr, subItem.ProtocolId, subItem.DisclaimerId }),
PhotoNum = x.PhotoNum ?? 0, PhotoNum = x.PhotoNum ?? 0,
......
...@@ -5030,20 +5030,20 @@ namespace REBORN.Services.SellService ...@@ -5030,20 +5030,20 @@ namespace REBORN.Services.SellService
{ {
return ApiResult.ParamIsNull("团信息不存在,请核实后再试"); return ApiResult.ParamIsNull("团信息不存在,请核实后再试");
} }
if (TravelModel.StartDate <= DateTime.Now) //if (TravelModel.StartDate <= DateTime.Now)
{ //{
return ApiResult.ParamIsNull("团已出发,不能取消订单"); // return ApiResult.ParamIsNull("团已出发,不能取消订单");
} //}
int oldGuestNum = sellOrderModule.GetTravelOrderGuestNumModule((orderModel?.TCID ?? 0)); //int oldGuestNum = sellOrderModule.GetTravelOrderGuestNumModule((orderModel?.TCID ?? 0));//画途 暂时不要
bool flag = sellOrderModule.RemoveOrder(ID, userInfo); bool flag = sellOrderModule.RemoveOrder(ID, userInfo);
if (flag) if (flag)
{ {
// SendSignalr(0, TravelModel.StartDate); // SendSignalr(0, TravelModel.StartDate);
int newGuestNum = sellOrderModule.GetTravelOrderGuestNumModule((orderModel?.TCID ?? 0)); //int newGuestNum = sellOrderModule.GetTravelOrderGuestNumModule((orderModel?.TCID ?? 0));//画途 暂时不要
if (oldGuestNum != newGuestNum) //if (oldGuestNum != newGuestNum)
{ //{
sellOrderModule.PushOrderNumChangeMessageModule((orderModel?.TCID ?? 0), oldGuestNum, newGuestNum); // sellOrderModule.PushOrderNumChangeMessageModule((orderModel?.TCID ?? 0), oldGuestNum, newGuestNum);
} //}
return ApiResult.Success(); return ApiResult.Success();
} }
else else
......
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