|
|
@@ -1548,9 +1548,9 @@ public class IotRdDailyReportServiceImpl implements IotRdDailyReportService {
|
|
|
public List<IotRdDailyReportPolylineVO> polylineStatistics(IotRdDailyReportPageReqVO pageReqVO) {
|
|
|
List<IotRdDailyReportPolylineVO> result = new ArrayList<>();
|
|
|
// 查询折线趋势图必须 传递时间参数
|
|
|
- if (ObjUtil.isEmpty(pageReqVO.getCreateTime())) {
|
|
|
+ /* if (ObjUtil.isEmpty(pageReqVO.getCreateTime())) {
|
|
|
throw exception(IOT_DAILY_REPORT_TIME_NOT_EXISTS);
|
|
|
- }
|
|
|
+ } */
|
|
|
Set<Long> ids = new HashSet<>();
|
|
|
if (Objects.nonNull(pageReqVO.getDeptId())) {
|
|
|
ids = deptService.getChildDeptIdListFromCache(pageReqVO.getDeptId());
|
|
|
@@ -1770,7 +1770,7 @@ public class IotRdDailyReportServiceImpl implements IotRdDailyReportService {
|
|
|
// 新增:日期字符串集合
|
|
|
List<String> dateRangeList = new ArrayList<>();
|
|
|
|
|
|
- if (createTimes.length >= 2) {
|
|
|
+ if (ObjUtil.isNotEmpty(createTimes) && createTimes.length >= 2) {
|
|
|
LocalDate startDate = createTimes[0].toLocalDate();
|
|
|
LocalDate endDate = createTimes[1].toLocalDate();
|
|
|
// 生成从起始日期到结束日期的所有日期
|