|
|
@ -3,6 +3,7 @@ package com.hnac.hzims.safeproduct.train.service.impl; |
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
|
|
|
|
|
|
|
import com.hnac.hzims.safeproduct.train.entity.TrainEntity; |
|
|
|
import com.hnac.hzims.safeproduct.train.entity.ViolationEntity; |
|
|
|
import com.hnac.hzims.safeproduct.train.entity.ViolationEntity; |
|
|
|
import com.hnac.hzims.safeproduct.train.mapper.ViolationMapper; |
|
|
|
import com.hnac.hzims.safeproduct.train.mapper.ViolationMapper; |
|
|
|
import com.hnac.hzims.safeproduct.train.service.IViolationService; |
|
|
|
import com.hnac.hzims.safeproduct.train.service.IViolationService; |
|
|
@ -33,10 +34,10 @@ public class ViolationServiceImpl extends ServiceImpl<ViolationMapper, Violation |
|
|
|
wrapper.eq(ViolationEntity::getStationId,params.getStationId()); |
|
|
|
wrapper.eq(ViolationEntity::getStationId,params.getStationId()); |
|
|
|
} |
|
|
|
} |
|
|
|
if(StringUtil.isNotBlank(params.getStartTime())){ |
|
|
|
if(StringUtil.isNotBlank(params.getStartTime())){ |
|
|
|
wrapper.ge(ViolationEntity::getDiscoverTime,params.getStartTime()); |
|
|
|
wrapper.ge(ViolationEntity::getDiscoverTime,params.getStartTime() + " 00:00:00"); |
|
|
|
} |
|
|
|
} |
|
|
|
if(StringUtil.isNotBlank(params.getEndTime())){ |
|
|
|
if(StringUtil.isNotBlank(params.getEndTime())){ |
|
|
|
wrapper.le(ViolationEntity::getDiscoverTime,params.getEndTime()); |
|
|
|
wrapper.le(ViolationEntity::getDiscoverTime,params.getEndTime() + " 23:59:59"); |
|
|
|
} |
|
|
|
} |
|
|
|
if(ObjectUtil.isNotEmpty(params.getViolationLevel())){ |
|
|
|
if(ObjectUtil.isNotEmpty(params.getViolationLevel())){ |
|
|
|
wrapper.eq(ViolationEntity::getViolationLevel,params.getViolationLevel()); |
|
|
|
wrapper.eq(ViolationEntity::getViolationLevel,params.getViolationLevel()); |
|
|
|