台站不选择情况下传值修改

This commit is contained in:
qiaoqinzheng 2023-07-26 11:00:19 +08:00
parent 9b747338d7
commit 7ad22f79a1
2 changed files with 8 additions and 6 deletions

View File

@ -62,11 +62,12 @@ public class AutoServiceImpl extends ServiceImpl<GardsAnalysesAutoMapper, GardsA
return result;
}
String endDate = DateUtils.formatDate(endTime, "yyyy-MM-dd") + " 23:59:59";
List<Integer> stationIdList;
if (Objects.isNull(stationIds)){
result.error500("台站所选id不能为空");
return result;
stationIdList = new LinkedList<>();
}else {
stationIdList = Arrays.asList(stationIds);
}
List<Integer> stationIdList = Arrays.asList(stationIds);
Page<GardsSampleData> page = new Page(queryRequest.getPageNo(), queryRequest.getPageSize());
Page<GardsSampleData> sampleDataPage = gardsSampleDataWebMapper.findAutoPage(startDate, endDate, stationIdList, page);
sampleDataPage.getRecords().forEach(item->{

View File

@ -60,11 +60,12 @@ public class ReviewedServiceImpl extends ServiceImpl<GardsAnalysesManMapper, Gar
return result;
}
String endDate = DateUtils.formatDate(endTime, "yyyy-MM-dd") + " 23:59:59";
List<Integer> stationIdList;
if (Objects.isNull(stationIds)){
result.error500("台站所选id不能为空");
return result;
stationIdList = new LinkedList<>();
}else {
stationIdList = Arrays.asList(stationIds);
}
List<Integer> stationIdList = Arrays.asList(stationIds);
Page<GardsSampleData> page = new Page(queryRequest.getPageNo(), queryRequest.getPageSize());
Page<GardsSampleData> sampleDataPage = gardsSampleDataWebMapper.findReviewedPage(startDate, endDate, stationIdList, page);
sampleDataPage.getRecords().forEach(item->{