|
@ -180,7 +180,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Syncs |
|
|
// }
|
|
|
// }
|
|
|
// return pageCount;
|
|
|
// return pageCount;
|
|
|
//}
|
|
|
//}
|
|
|
|
|
|
[UnitOfWork(false)] |
|
|
public void Sync<T>(List<T> p_ls, EnumDeliverBjBmpBillType bussinessType, string p_email, bool flag = true) where T : PD_BASE, new() |
|
|
public void Sync<T>(List<T> p_ls, EnumDeliverBjBmpBillType bussinessType, string p_email, bool flag = true) where T : PD_BASE, new() |
|
|
{ |
|
|
{ |
|
|
var query = from itm in p_ls |
|
|
var query = from itm in p_ls |
|
@ -285,16 +285,16 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Syncs |
|
|
{ |
|
|
{ |
|
|
if (flag == true) |
|
|
if (flag == true) |
|
|
{ |
|
|
{ |
|
|
foreach (var item in bbacList) |
|
|
foreach (var item in hbpoList) |
|
|
{ |
|
|
{ |
|
|
item.State = SettleBillState.已扣减; |
|
|
item.State = SettleBillState.已扣减; |
|
|
} |
|
|
} |
|
|
foreach (var item in bbacinvList) |
|
|
foreach (var item in hbpoinvList) |
|
|
{ |
|
|
{ |
|
|
item.State = SettleBillState.已扣减; |
|
|
item.State = SettleBillState.已扣减; |
|
|
} |
|
|
} |
|
|
_dbcontext.BulkUpdate(bbacList); |
|
|
_dbcontext.BulkUpdate(hbpoList); |
|
|
_dbcontext.BulkUpdate(bbacinvList); |
|
|
_dbcontext.BulkUpdate(hbpoinvList); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
else |
|
|
else |
|
|