Commit 7a9c9cf0 by 杨卫

fix:自测bug修复,如果提交数为null,则返回0

1 parent 96ad32be
......@@ -273,10 +273,10 @@ public class DigitalManagementStaffRecordService {
.map(entry -> {
Integer currMonthSubmitCount = Optional.ofNullable(uuidMapCurrentMonthSubmitCount.get(entry.getKey()))
.map(SubmitCountDTO::getSubmitCount)
.orElse(null);
.orElse(0);
Integer currWeeklySubmitCount = Optional.ofNullable(uuidMapCurrentWeekSubmitCount.get(entry.getKey()))
.map(SubmitCountDTO::getSubmitCount)
.orElse(null);
.orElse(0);
Date recentlySubmitDate = Optional.ofNullable(uuidMapRecentlySubmitDate.get(entry.getKey()))
.map(SubmitCountDTO::getRecentlySubmitDate)
.orElse(null);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!