|
|
@@ -87,7 +87,8 @@ public class TurbineInfoDayServiceImpl extends ServiceImpl<TurbineInfoDayMapper,
|
|
|
public List<TurbineInfoDay> getTurbineMonthList(String windpowerstationId, LocalDate startDate, LocalDate endDate) {
|
|
|
QueryWrapper<TurbineInfoDay> qw = new QueryWrapper<>();
|
|
|
qw.eq("station_id", windpowerstationId)
|
|
|
- .between("record_date", startDate, endDate)
|
|
|
+ .ge("record_date", startDate)
|
|
|
+ .lt("record_date", endDate)
|
|
|
.groupBy("turbine_id",
|
|
|
"to_char(record_date, 'yyyy-MM')" )
|
|
|
.orderByAsc("turbine_id")
|