台站不选择情况下传值修改
This commit is contained in:
parent
9b747338d7
commit
7ad22f79a1
|
@ -62,11 +62,12 @@ public class AutoServiceImpl extends ServiceImpl<GardsAnalysesAutoMapper, GardsA
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
String endDate = DateUtils.formatDate(endTime, "yyyy-MM-dd") + " 23:59:59";
|
String endDate = DateUtils.formatDate(endTime, "yyyy-MM-dd") + " 23:59:59";
|
||||||
|
List<Integer> stationIdList;
|
||||||
if (Objects.isNull(stationIds)){
|
if (Objects.isNull(stationIds)){
|
||||||
result.error500("台站所选id不能为空");
|
stationIdList = new LinkedList<>();
|
||||||
return result;
|
}else {
|
||||||
|
stationIdList = Arrays.asList(stationIds);
|
||||||
}
|
}
|
||||||
List<Integer> stationIdList = Arrays.asList(stationIds);
|
|
||||||
Page<GardsSampleData> page = new Page(queryRequest.getPageNo(), queryRequest.getPageSize());
|
Page<GardsSampleData> page = new Page(queryRequest.getPageNo(), queryRequest.getPageSize());
|
||||||
Page<GardsSampleData> sampleDataPage = gardsSampleDataWebMapper.findAutoPage(startDate, endDate, stationIdList, page);
|
Page<GardsSampleData> sampleDataPage = gardsSampleDataWebMapper.findAutoPage(startDate, endDate, stationIdList, page);
|
||||||
sampleDataPage.getRecords().forEach(item->{
|
sampleDataPage.getRecords().forEach(item->{
|
||||||
|
|
|
@ -60,11 +60,12 @@ public class ReviewedServiceImpl extends ServiceImpl<GardsAnalysesManMapper, Gar
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
String endDate = DateUtils.formatDate(endTime, "yyyy-MM-dd") + " 23:59:59";
|
String endDate = DateUtils.formatDate(endTime, "yyyy-MM-dd") + " 23:59:59";
|
||||||
|
List<Integer> stationIdList;
|
||||||
if (Objects.isNull(stationIds)){
|
if (Objects.isNull(stationIds)){
|
||||||
result.error500("台站所选id不能为空");
|
stationIdList = new LinkedList<>();
|
||||||
return result;
|
}else {
|
||||||
|
stationIdList = Arrays.asList(stationIds);
|
||||||
}
|
}
|
||||||
List<Integer> stationIdList = Arrays.asList(stationIds);
|
|
||||||
Page<GardsSampleData> page = new Page(queryRequest.getPageNo(), queryRequest.getPageSize());
|
Page<GardsSampleData> page = new Page(queryRequest.getPageNo(), queryRequest.getPageSize());
|
||||||
Page<GardsSampleData> sampleDataPage = gardsSampleDataWebMapper.findReviewedPage(startDate, endDate, stationIdList, page);
|
Page<GardsSampleData> sampleDataPage = gardsSampleDataWebMapper.findReviewedPage(startDate, endDate, stationIdList, page);
|
||||||
sampleDataPage.getRecords().forEach(item->{
|
sampleDataPage.getRecords().forEach(item->{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user