Commit 1845717a authored by liudong1993's avatar liudong1993
parents 4f6bac82 2b566d61
...@@ -61,5 +61,13 @@ namespace REBORN.Model.Entity.Finance ...@@ -61,5 +61,13 @@ namespace REBORN.Model.Entity.Finance
/// 申请人 /// 申请人
/// </summary> /// </summary>
public int? CreateBy { get; set; } public int? CreateBy { get; set; }
/// <summary>
/// 集团
/// </summary>
public int? RB_Group_Id
{
get;
set;
}
} }
} }
...@@ -87,7 +87,7 @@ namespace REBORN.Module.DMCModule ...@@ -87,7 +87,7 @@ namespace REBORN.Module.DMCModule
item.CustomerName = item.InvoiceApplyList.FirstOrDefault()?.CompanyName ?? ""; item.CustomerName = item.InvoiceApplyList.FirstOrDefault()?.CompanyName ?? "";
} }
} }
if(list.Where(x => x.Type == 0).Any()) if (list.Where(x => x.Type == 0).Any())
{ {
string orderIds = string.Join(",", list.Where(x => x.Type == 0).Select(x => x.OrderId)); string orderIds = string.Join(",", list.Where(x => x.Type == 0).Select(x => x.OrderId));
var invoiceApplyList = GetInvoiceApplyList(new RB_Travel_InvoiceApply_Extend { QOrderIds = orderIds, InvoiceApplyType = model.InvoiceApplyType }); var invoiceApplyList = GetInvoiceApplyList(new RB_Travel_InvoiceApply_Extend { QOrderIds = orderIds, InvoiceApplyType = model.InvoiceApplyType });
...@@ -203,7 +203,8 @@ namespace REBORN.Module.DMCModule ...@@ -203,7 +203,8 @@ namespace REBORN.Module.DMCModule
Address = model.Address, Address = model.Address,
CompanyPhone = model.CompanyPhone, CompanyPhone = model.CompanyPhone,
OpeningBank = model.OpeningBank, OpeningBank = model.OpeningBank,
BankNo = model.BankNo BankNo = model.BankNo,
RB_Group_Id = model.RB_Group_Id,
}; };
if (model.CustomerInvoiceId == 0) if (model.CustomerInvoiceId == 0)
{ {
......
...@@ -30,6 +30,10 @@ namespace REBORN.Repository.Finance ...@@ -30,6 +30,10 @@ namespace REBORN.Repository.Finance
{ {
where += string.Format(" AND A." + nameof(RB_Customer_Invoice.CreateBy) + "={0}", model.CreateBy); where += string.Format(" AND A." + nameof(RB_Customer_Invoice.CreateBy) + "={0}", model.CreateBy);
} }
if ((model?.RB_Group_Id ?? 0) > 0)
{
where += string.Format(" AND A." + nameof(RB_Customer_Invoice.RB_Group_Id) + "={0}", model.RB_Group_Id);
}
if (model.CustomerID > 0) if (model.CustomerID > 0)
{ {
where += string.Format(" AND A." + nameof(RB_Customer_Invoice.CustomerID) + "={0}", model.CustomerID); where += string.Format(" AND A." + nameof(RB_Customer_Invoice.CustomerID) + "={0}", model.CustomerID);
......
...@@ -1034,6 +1034,7 @@ namespace REBORN.Services.DMCService ...@@ -1034,6 +1034,7 @@ namespace REBORN.Services.DMCService
} }
// //
// JsonConvert.DeserializeObject<Model.Entity.Finance.RB_Customer_Invoice>(request.msg.ToString()); // JsonConvert.DeserializeObject<Model.Entity.Finance.RB_Customer_Invoice>(request.msg.ToString());
model.RB_Group_Id = userInfo.RB_Group_id;
List<Model.Entity.Finance.RB_Customer_Invoice> customerInfoList = module.GetCustomerInvoiceList(model); List<Model.Entity.Finance.RB_Customer_Invoice> customerInfoList = module.GetCustomerInvoiceList(model);
return ApiResult.Success("获取成功", customerInfoList); return ApiResult.Success("获取成功", customerInfoList);
} }
......
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