Browse Source

Merge branch 'master' of http://dev.ccwin-in.com:3000/BoXu.Zheng/BeiJinSettleAccount

master
wanggang 1 year ago
parent
commit
9782b227c9
  1. 13
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/appsettings.json
  2. 1
      code/src/Modules/SettleAccount/src/SettleAccount.Application/Bases/BA_SERVICE.cs
  3. 8
      code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/INVOICE_SERVICE.cs
  4. 5
      code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/Syncs/PendingDeductionService.cs
  5. 12
      code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/Managers/INV_MNG.cs

13
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/appsettings.json

@ -74,13 +74,22 @@
} }
}, },
"AuthServer": { "AuthServer": {
"Authority": "http://dev.ccwin-in.com:16082", //"Authority": "http://dev.ccwin-in.com:10580",
"Authority": "http://localhost:44378",
"ClientId": "basic-web", "ClientId": "basic-web",
"ClientSecret": "1q2w3e*" "ClientSecret": "1q2w3e*"
}, },
//"AuthServer": {
// "Authority": "http://dev.ccwin-in.com:16082",
// "ClientId": "basic-web",
// "ClientSecret": "1q2w3e*"
//},
"Redis": { "Redis": {
"Configuration": "127.0.0.1" "Configuration": "127.0.0.1"
}, },

1
code/src/Modules/SettleAccount/src/SettleAccount.Application/Bases/BA_SERVICE.cs

@ -178,7 +178,6 @@ namespace Win.Sfs.SettleAccount.Bases
bj.LU = itm.LU; bj.LU = itm.LU;
bj.PartCode = itm.PartCode; bj.PartCode = itm.PartCode;
bj.PRICE = itm.PRICE; bj.PRICE = itm.PRICE;
bj.InvGroupNum = itm.InvGroupNum; bj.InvGroupNum = itm.InvGroupNum;
bj.DeliveryNumber = itm.ExtraProperties["DeliveryIndexNumber"].ToSqlValue(); bj.DeliveryNumber = itm.ExtraProperties["DeliveryIndexNumber"].ToSqlValue();

8
code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/INVOICE_SERVICE.cs

@ -1,4 +1,4 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using System.Linq; using System.Linq;
@ -189,9 +189,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ
else if (invs.FirstOrDefault().BusinessType == EnumBusinessType.BeiJian) else if (invs.FirstOrDefault().BusinessType == EnumBusinessType.BeiJian)
{ {
var B = await _wRepository.GetListByFilterAsync(input.Filters, input.Sorting, int.MaxValue, input.SkipCount).ConfigureAwait(false); var B = await _wRepository.GetListByFilterAsync(input.Filters, input.Sorting, int.MaxValue, input.SkipCount).ConfigureAwait(false);
B.OrderBy(p => p.LineCode); B.OrderBy(p => p.LineCode);
List<INVOICE_WAIT_DETAIL_BJ_DTO> BMap = new List<INVOICE_WAIT_DETAIL_BJ_DTO>(); List<INVOICE_WAIT_DETAIL_BJ_DTO> BMap = new List<INVOICE_WAIT_DETAIL_BJ_DTO>();
foreach (var itm in B) foreach (var itm in B)
{ {
@ -201,7 +199,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ
bj.PRICE = itm.PRICE; bj.PRICE = itm.PRICE;
bj.InvbillNum = itm.InvbillNum; bj.InvbillNum = itm.InvbillNum;
bj.InvGroupNum = itm.InvGroupNum; bj.InvGroupNum = itm.InvGroupNum;
bj.DeliveryNumber =itm.ExtraProperties["DeliveryIndexNumber"].ToSqlValue(); bj.DeliveryIndexNumber =itm.ExtraProperties["DeliveryIndexNumber"].ToSqlValue();
bj.Qty = itm.Qty; bj.Qty = itm.Qty;
bj.PRICE = itm.PRICE; bj.PRICE = itm.PRICE;
bj.Amt = Math.Round(itm.PRICE * itm.Qty, 2); bj.Amt = Math.Round(itm.PRICE * itm.Qty, 2);
@ -209,6 +207,8 @@ namespace Win.Sfs.SettleAccount.Entities.BQ
bj.VendorCode = itm.ExtraProperties["VendorCode"].ToSqlValue();//供应商代码 bj.VendorCode = itm.ExtraProperties["VendorCode"].ToSqlValue();//供应商代码
bj.VendorName = itm.ExtraProperties["VendorName"].ToSqlValue();//供应商名称 bj.VendorName = itm.ExtraProperties["VendorName"].ToSqlValue();//供应商名称
bj.DeliveryNumber = itm.ExtraProperties["DeliveryNumber"].ToSqlValue();//交货号; bj.DeliveryNumber = itm.ExtraProperties["DeliveryNumber"].ToSqlValue();//交货号;
bj.BeginDate=itm.BeginDate;
bj.EndDate = itm.EndDate;
//bj.DeliveryNumber = itm.GetProperty("DeliveryNumber", "");//交货号 //bj.DeliveryNumber = itm.GetProperty("DeliveryNumber", "");//交货号
//bj.InvbillNum = itm.GetProperty("InvoiceNumber", "");//发票号 //bj.InvbillNum = itm.GetProperty("InvoiceNumber", "");//发票号

5
code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/Syncs/PendingDeductionService.cs

@ -1,4 +1,4 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using EFCore.BulkExtensions; using EFCore.BulkExtensions;
@ -151,6 +151,9 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Syncs
} }
Sync(detailist, EnumDeliverBjBmpBillType.JIT直供件, email, isout == "out" ? true : false); Sync(detailist, EnumDeliverBjBmpBillType.JIT直供件, email, isout == "out" ? true : false);
} }
return id.ToString(); return id.ToString();
} }
//public List<T> GetPagedData<T>(List<T> dataList, int pageNumber, int pageSize) //public List<T> GetPagedData<T>(List<T> dataList, int pageNumber, int pageSize)

12
code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/Managers/INV_MNG.cs

@ -1403,7 +1403,6 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Managers
); );
string site = dtos.Where(p => !string.IsNullOrEmpty(p.Site)).FirstOrDefault().Site; string site = dtos.Where(p => !string.IsNullOrEmpty(p.Site)).FirstOrDefault().Site;
string clientCode = string.Empty; string clientCode = string.Empty;
switch (site) switch (site)
{ {
case "1040": case "1040":
@ -1434,7 +1433,6 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Managers
await _repository.DbContext.BulkInsertAsync(invlist).ConfigureAwait(false); await _repository.DbContext.BulkInsertAsync(invlist).ConfigureAwait(false);
await _repository.DbContext.BulkInsertAsync(groupList).ConfigureAwait(false); await _repository.DbContext.BulkInsertAsync(groupList).ConfigureAwait(false);
await _repository.DbContext.BulkInsertAsync(detailList).ConfigureAwait(false); await _repository.DbContext.BulkInsertAsync(detailList).ConfigureAwait(false);
if (adjlist.Count > 0) if (adjlist.Count > 0)
{ {
await _repository.DbContext.BulkUpdateAsync(adjlist).ConfigureAwait(false); await _repository.DbContext.BulkUpdateAsync(adjlist).ConfigureAwait(false);
@ -1673,7 +1671,6 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Managers
{ {
detailList.AddRange(_entityDetailList); detailList.AddRange(_entityDetailList);
} }
if (p_first == true) if (p_first == true)
{ {
var notsettle = _nothbpoRepository.Where(p => p.SettleBillNum == p_InvGroupNum);//一次开票时查找不可结数据,追加需求 var notsettle = _nothbpoRepository.Where(p => p.SettleBillNum == p_InvGroupNum);//一次开票时查找不可结数据,追加需求
@ -2206,10 +2203,8 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Managers
groupList.AddRange(mapList); groupList.AddRange(mapList);
} }
List<INVOICE_WAIT_DETAIL> _entityDetailList = new List<INVOICE_WAIT_DETAIL>(); List<INVOICE_WAIT_DETAIL> _entityDetailList = new List<INVOICE_WAIT_DETAIL>();
foreach (var detail in query.ToList()) foreach (var detail in query.ToList())
{ {
var entity = new INVOICE_WAIT_DETAIL( var entity = new INVOICE_WAIT_DETAIL(
guid: GuidGenerator.Create(), guid: GuidGenerator.Create(),
version: p_version, version: p_version,
@ -2226,13 +2221,12 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Managers
endDate: detail.EndDate, endDate: detail.EndDate,
partcode: detail.PartCode); partcode: detail.PartCode);
entity.LineCode = detail.LineCode; entity.LineCode = detail.LineCode;
entity.SetProperty("DeliveryNumber", detail.DeliveryIndexNumber);//交货号 entity.SetProperty("DeliveryNumber", detail.DeliveryNumber);//交货号
entity.SetProperty("VendorCode", detail.VendorCode);//供应商代码 entity.SetProperty("VendorCode", detail.VendorCode);//供应商代码
entity.SetProperty("VendorName", detail.VendorName);//供应商名称 entity.SetProperty("VendorName", detail.VendorName);//供应商名称
entity.SetProperty("PurchaseOrderNumber", "");//采购订单号 entity.SetProperty("PurchaseOrderNumber", "");//采购订单号
entity.SetProperty("DeliveryIndexNumber", "");//交付索引号 entity.SetProperty("DeliveryIndexNumber", detail.DeliveryIndexNumber);//交付索引号
entity.SetProperty("PartName", "");//零件名称 entity.SetProperty("PartName", detail.PartName);//零件名称
_entityDetailList.Add(entity); _entityDetailList.Add(entity);
} }
if (_entityDetailList.Count > 0) if (_entityDetailList.Count > 0)

Loading…
Cancel
Save