Commit 2b566d61 authored by 吴春's avatar 吴春

1

parent b50ccb98
......@@ -61,5 +61,13 @@ namespace REBORN.Model.Entity.Finance
/// 申请人
/// </summary>
public int? CreateBy { get; set; }
/// <summary>
/// 集团
/// </summary>
public int? RB_Group_Id
{
get;
set;
}
}
}
......@@ -87,7 +87,7 @@ namespace REBORN.Module.DMCModule
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));
var invoiceApplyList = GetInvoiceApplyList(new RB_Travel_InvoiceApply_Extend { QOrderIds = orderIds, InvoiceApplyType = model.InvoiceApplyType });
......@@ -203,7 +203,8 @@ namespace REBORN.Module.DMCModule
Address = model.Address,
CompanyPhone = model.CompanyPhone,
OpeningBank = model.OpeningBank,
BankNo = model.BankNo
BankNo = model.BankNo,
RB_Group_Id = model.RB_Group_Id,
};
if (model.CustomerInvoiceId == 0)
{
......
......@@ -30,6 +30,10 @@ namespace REBORN.Repository.Finance
{
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)
{
where += string.Format(" AND A." + nameof(RB_Customer_Invoice.CustomerID) + "={0}", model.CustomerID);
......
......@@ -1034,6 +1034,7 @@ namespace REBORN.Services.DMCService
}
//
// 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);
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