台站不选择情况下传值修改
This commit is contained in:
parent
9b747338d7
commit
7ad22f79a1
|
@ -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->{
|
||||
|
|
|
@ -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->{
|
||||
|
|
Loading…
Reference in New Issue
Block a user