禅道#631、#700修复

This commit is contained in:
gaoqr
2024-12-02 14:41:41 +08:00
parent 050994caea
commit 9da90ea735
3 changed files with 57 additions and 3 deletions
@@ -704,7 +704,7 @@ public class OrderStatisticsServiceImpl implements OrderStatisticsService {
startDate = ObjectUtil.clone(reqVO.getCreateTime()[1]);
endDate = ObjectUtil.clone(reqVO.getCreateTime()[0]);
}
LocalDate first = startDate;
LocalDate first = startDate;
LocalDate end = endDate;
switch (OrderStatisticsUnit.fromValue(unit)) {
case QUARTER -> {
@@ -719,6 +719,9 @@ public class OrderStatisticsServiceImpl implements OrderStatisticsService {
first = startDate.with(TemporalAdjusters.previousOrSame(java.time.DayOfWeek.MONDAY));
end = endDate.with(TemporalAdjusters.nextOrSame(java.time.DayOfWeek.SUNDAY));
}
default -> {
return;
}
}
reqVO.setCreateTime(new LocalDate[]{first, end});
}
@@ -806,7 +809,7 @@ public class OrderStatisticsServiceImpl implements OrderStatisticsService {
newDateStrBuffer.append("").append(dateSplit[2]).append("");
break;
case DAY:
newDateStrBuffer.append(dateSplit[2]);
newDateStrBuffer.append(dateSplit[2]).append("");
break;
default:
}