Browse Source

更新版本

master
zhaoxinyu 10 months ago
parent
commit
63ecbc48b3
  1. 31
      code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/Syncs/MakeCanSettlementService.cs

31
code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/Syncs/MakeCanSettlementService.cs

@ -288,7 +288,6 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Syncs
}
_dbcontext.BulkUpdate(flaglist);//插入可结明细
}
var jis1 = p_list.Where(p => p.Site == "104T").ToList();
if (jis1.Count > 0)
{
@ -333,7 +332,6 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Syncs
entity.State = SettleBillState.;
entity.SettleBillNum = string.Empty;
entity.Site = "104T";
entity.BusinessType =(businesstype== "JisHBPO")?EnumBusinessType.JisHBPO:EnumBusinessType.MaiDanJianHBPO ;
billList.Add(entity);
notlist.AddRange(hbpo_not_list);
@ -372,18 +370,15 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Syncs
_dbcontext.BulkDelete(p_list);//删除不可结数据
_dbcontext.BulkInsert(billDetails);//插入可结明细
_dbcontext.BulkInsert(billList);//插入可结主表
var flaglist = _dbcontext.Set<BBAC_NOT_SA_DETAIL>().Where(p => p.IsReturn == true).ToList();
foreach (var flag in flaglist)
{
flag.IsReturn = false;
}
_dbcontext.BulkUpdate(flaglist);//插入可结明细
transaction.Commit();
}
var flaglist = _dbcontext.Set<BBAC_NOT_SA_DETAIL>().Where(p => p.IsReturn == true).ToList();
foreach (var flag in flaglist)
{
flag.IsReturn = false;
}
_dbcontext.BulkUpdate(flaglist);//插入可结明细
transaction.Commit();
}
catch (Exception)
{
@ -394,9 +389,6 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Syncs
}
if (issucess == true)
{
var result = from a in _dbcontext.Set<BBAC_SA_DETAIL>()
join b in _dbcontext.Set<BBAC_CAN_SA_DETAIL>() on new { a.KeyCode, a.BusinessType } equals new { b.KeyCode, b.BusinessType }
where a.Price == 0
@ -413,13 +405,6 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Syncs
_dbcontext.BulkUpdate(salist);//更新结算数据
}
}
return id.ToString();
}

Loading…
Cancel
Save