|
@@ -8,6 +8,8 @@ import cn.iocoder.yudao.module.pms.dal.dataobject.qhse.accident.IotAccidentRepor
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
import org.apache.ibatis.annotations.Mapper;
|
|
import org.apache.ibatis.annotations.Mapper;
|
|
|
|
|
|
|
|
|
|
+import java.util.Set;
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* QHSE事故上报 Mapper
|
|
* QHSE事故上报 Mapper
|
|
|
*
|
|
*
|
|
@@ -16,13 +18,13 @@ import org.apache.ibatis.annotations.Mapper;
|
|
|
@Mapper
|
|
@Mapper
|
|
|
public interface IotAccidentReportMapper extends BaseMapperX<IotAccidentReportDO> {
|
|
public interface IotAccidentReportMapper extends BaseMapperX<IotAccidentReportDO> {
|
|
|
|
|
|
|
|
- default PageResult<IotAccidentReportDO> selectPage(IotAccidentReportPageReqVO reqVO) {
|
|
|
|
|
|
|
+ default PageResult<IotAccidentReportDO> selectPage(IotAccidentReportPageReqVO reqVO, Set<Long> ids) {
|
|
|
LambdaQueryWrapperX<IotAccidentReportDO> queryWrapperX = new LambdaQueryWrapperX<IotAccidentReportDO>()
|
|
LambdaQueryWrapperX<IotAccidentReportDO> queryWrapperX = new LambdaQueryWrapperX<IotAccidentReportDO>()
|
|
|
.betweenIfPresent(IotAccidentReportDO::getActualTime, reqVO.getActualTime())
|
|
.betweenIfPresent(IotAccidentReportDO::getActualTime, reqVO.getActualTime())
|
|
|
.eqIfPresent(IotAccidentReportDO::getAccidentGrade, reqVO.getAccidentGrade())
|
|
.eqIfPresent(IotAccidentReportDO::getAccidentGrade, reqVO.getAccidentGrade())
|
|
|
.eqIfPresent(IotAccidentReportDO::getAccidentType, reqVO.getAccidentType())
|
|
.eqIfPresent(IotAccidentReportDO::getAccidentType, reqVO.getAccidentType())
|
|
|
.eqIfPresent(IotAccidentReportDO::getAccidentAddress, reqVO.getAccidentAddress())
|
|
.eqIfPresent(IotAccidentReportDO::getAccidentAddress, reqVO.getAccidentAddress())
|
|
|
- .eqIfPresent(IotAccidentReportDO::getDeptId, reqVO.getDeptId())
|
|
|
|
|
|
|
+ .inIfPresent(IotAccidentReportDO::getDeptId, ids)
|
|
|
.likeIfPresent(IotAccidentReportDO::getDeptName, reqVO.getDeptName())
|
|
.likeIfPresent(IotAccidentReportDO::getDeptName, reqVO.getDeptName())
|
|
|
.eqIfPresent(IotAccidentReportDO::getDutyPerson, reqVO.getDutyPerson())
|
|
.eqIfPresent(IotAccidentReportDO::getDutyPerson, reqVO.getDutyPerson())
|
|
|
.eqIfPresent(IotAccidentReportDO::getLossSituation, reqVO.getLossSituation())
|
|
.eqIfPresent(IotAccidentReportDO::getLossSituation, reqVO.getLossSituation())
|