期末结存未算上追保账户

This commit is contained in:
吴方海
2025-04-21 16:19:19 +08:00
parent 1a0b25fe04
commit 3ecd0a2357
2 changed files with 6 additions and 2 deletions
@@ -20,8 +20,12 @@ namespace YLErp.Modules.EodModule.SettlementModule
public void Execute()
{
var settleDate = _context.SettleDate;
var clienIds = _context.Request.ClientIds;
var swapFlowList = DbContext.swap_flow.Where(x=>x.OccurTime==settleDate&&x.DataState==(int)SwapFlowDateStateEnum.);
if (clienIds != null && clienIds.Any())
{
swapFlowList = swapFlowList.Where(x => clienIds.Contains(x.ClientId ?? 0));
}
if (swapFlowList.Any())
{
_context.RaiseError(Step, $"{settleDate:yyyy-MM-dd}有未簿记的流水未处理");