|
@@ -128,9 +128,10 @@ public interface IotRyDailyReportMapper extends BaseMapperX<IotRyDailyReportDO>
|
|
if (reportDate == null) {
|
|
if (reportDate == null) {
|
|
return BigDecimal.ZERO;
|
|
return BigDecimal.ZERO;
|
|
}
|
|
}
|
|
-
|
|
|
|
- int year = reportDate.getYear();
|
|
|
|
- int month = reportDate.getMonthValue();
|
|
|
|
|
|
+ // 获取 reportDate 的前一天日期
|
|
|
|
+ LocalDateTime previousDay = reportDate.minusDays(1);
|
|
|
|
+ int year = previousDay.getYear();
|
|
|
|
+ int month = previousDay.getMonthValue();
|
|
|
|
|
|
List<IotRyDailyReportDO> list = selectList(new LambdaQueryWrapperX<IotRyDailyReportDO>()
|
|
List<IotRyDailyReportDO> list = selectList(new LambdaQueryWrapperX<IotRyDailyReportDO>()
|
|
.eq(ObjUtil.isNotNull(deptId), IotRyDailyReportDO::getDeptId, deptId)
|
|
.eq(ObjUtil.isNotNull(deptId), IotRyDailyReportDO::getDeptId, deptId)
|
|
@@ -154,8 +155,9 @@ public interface IotRyDailyReportMapper extends BaseMapperX<IotRyDailyReportDO>
|
|
if (reportDate == null) {
|
|
if (reportDate == null) {
|
|
return BigDecimal.ZERO;
|
|
return BigDecimal.ZERO;
|
|
}
|
|
}
|
|
-
|
|
|
|
- int year = reportDate.getYear();
|
|
|
|
|
|
+ // 获取 reportDate 的前一天日期
|
|
|
|
+ LocalDateTime previousDay = reportDate.minusDays(1);
|
|
|
|
+ int year = previousDay.getYear();
|
|
|
|
|
|
List<IotRyDailyReportDO> list = selectList(new LambdaQueryWrapperX<IotRyDailyReportDO>()
|
|
List<IotRyDailyReportDO> list = selectList(new LambdaQueryWrapperX<IotRyDailyReportDO>()
|
|
.eq(ObjUtil.isNotNull(deptId), IotRyDailyReportDO::getDeptId, deptId)
|
|
.eq(ObjUtil.isNotNull(deptId), IotRyDailyReportDO::getDeptId, deptId)
|