|
|
@ -32,7 +32,7 @@ public class TrainServiceImpl extends ServiceImpl<TrainMapper, TrainEntity> impl |
|
|
|
LambdaQueryWrapper<TrainEntity> wrapper = new LambdaQueryWrapper(); |
|
|
|
LambdaQueryWrapper<TrainEntity> wrapper = new LambdaQueryWrapper(); |
|
|
|
wrapper.orderByDesc(TrainEntity::getCreateTime); |
|
|
|
wrapper.orderByDesc(TrainEntity::getCreateTime); |
|
|
|
if(StringUtil.isNotBlank(params.getStationId())){ |
|
|
|
if(StringUtil.isNotBlank(params.getStationId())){ |
|
|
|
wrapper.eq(TrainEntity::getStationId,params.getStartTime()); |
|
|
|
wrapper.eq(TrainEntity::getStationId,params.getStationId()); |
|
|
|
} |
|
|
|
} |
|
|
|
if(StringUtil.isNotBlank(params.getStartTime())){ |
|
|
|
if(StringUtil.isNotBlank(params.getStartTime())){ |
|
|
|
wrapper.ge(TrainEntity::getTrainStartTime,params.getStartTime() + " 00:00:00"); |
|
|
|
wrapper.ge(TrainEntity::getTrainStartTime,params.getStartTime() + " 00:00:00"); |
|
|
@ -40,6 +40,9 @@ public class TrainServiceImpl extends ServiceImpl<TrainMapper, TrainEntity> impl |
|
|
|
if(StringUtil.isNotBlank(params.getEndTime())){ |
|
|
|
if(StringUtil.isNotBlank(params.getEndTime())){ |
|
|
|
wrapper.le(TrainEntity::getTrainStartTime,params.getEndTime() + " 23:59:59"); |
|
|
|
wrapper.le(TrainEntity::getTrainStartTime,params.getEndTime() + " 23:59:59"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if(StringUtil.isNotBlank(params.getSpeakerName())){ |
|
|
|
|
|
|
|
wrapper.like(TrainEntity::getSpeakerName,params.getSpeakerName()); |
|
|
|
|
|
|
|
} |
|
|
|
return super.page(page,wrapper); |
|
|
|
return super.page(page,wrapper); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|