修改成单数据不正确的问题

This commit is contained in:
MerCry 2026-03-13 00:31:45 +08:00
parent 43ec404567
commit 130089bf61
1 changed files with 6 additions and 1 deletions

View File

@ -430,7 +430,11 @@ import java.util.concurrent.atomic.AtomicInteger;
int pageNum = 1;
LambdaQueryWrapper<CustomerExportData> wrapper = new LambdaQueryWrapper<>();
wrapper.eq(CustomerExportData::getCorpId, corpId)
.eq(CustomerExportData::getAddDate, targetDate);
.and(w -> w.eq(CustomerExportData::getAddDate, targetDate)
.or()
.eq(CustomerExportData::getFinishDate, targetDate));
;
while (true) {
Page<CustomerExportData> page = new Page<>(pageNum, pageSize);
@ -500,6 +504,7 @@ import java.util.concurrent.atomic.AtomicInteger;
pageNum++;
}
//
// 3. 从累加器生成最终结果
return generateDepartmentStatisticsResults(corpId,accumulator, targetDate);
}