|
@@ -1,14 +1,14 @@
|
|
|
package cn.iocoder.yudao.module.pms.dal.mysql.qhse.danger;
|
|
package cn.iocoder.yudao.module.pms.dal.mysql.qhse.danger;
|
|
|
|
|
|
|
|
-import java.util.*;
|
|
|
|
|
-
|
|
|
|
|
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
|
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
|
|
-import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX;
|
|
|
|
|
import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
|
|
import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
|
|
|
|
|
+import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX;
|
|
|
import cn.iocoder.yudao.module.pms.controller.admin.qhse.danger.vo.IotDangerSourcePageReqVO;
|
|
import cn.iocoder.yudao.module.pms.controller.admin.qhse.danger.vo.IotDangerSourcePageReqVO;
|
|
|
import cn.iocoder.yudao.module.pms.dal.dataobject.qhse.danger.IotDangerSourceDO;
|
|
import cn.iocoder.yudao.module.pms.dal.dataobject.qhse.danger.IotDangerSourceDO;
|
|
|
import org.apache.ibatis.annotations.Mapper;
|
|
import org.apache.ibatis.annotations.Mapper;
|
|
|
|
|
|
|
|
|
|
+import java.util.Set;
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 危险源 Mapper
|
|
* 危险源 Mapper
|
|
|
*
|
|
*
|
|
@@ -17,7 +17,7 @@ import org.apache.ibatis.annotations.Mapper;
|
|
|
@Mapper
|
|
@Mapper
|
|
|
public interface IotDangerSourceMapper extends BaseMapperX<IotDangerSourceDO> {
|
|
public interface IotDangerSourceMapper extends BaseMapperX<IotDangerSourceDO> {
|
|
|
|
|
|
|
|
- default PageResult<IotDangerSourceDO> selectPage(IotDangerSourcePageReqVO reqVO) {
|
|
|
|
|
|
|
+ default PageResult<IotDangerSourceDO> selectPage(IotDangerSourcePageReqVO reqVO, Set<Long> ids) {
|
|
|
return selectPage(reqVO, new LambdaQueryWrapperX<IotDangerSourceDO>()
|
|
return selectPage(reqVO, new LambdaQueryWrapperX<IotDangerSourceDO>()
|
|
|
.eqIfPresent(IotDangerSourceDO::getRegion, reqVO.getRegion())
|
|
.eqIfPresent(IotDangerSourceDO::getRegion, reqVO.getRegion())
|
|
|
.eqIfPresent(IotDangerSourceDO::getElementDescription, reqVO.getElementDescription())
|
|
.eqIfPresent(IotDangerSourceDO::getElementDescription, reqVO.getElementDescription())
|
|
@@ -27,6 +27,7 @@ public interface IotDangerSourceMapper extends BaseMapperX<IotDangerSourceDO> {
|
|
|
.eqIfPresent(IotDangerSourceDO::getEvalFxz, reqVO.getEvalFxz())
|
|
.eqIfPresent(IotDangerSourceDO::getEvalFxz, reqVO.getEvalFxz())
|
|
|
.eqIfPresent(IotDangerSourceDO::getRiskGrade, reqVO.getRiskGrade())
|
|
.eqIfPresent(IotDangerSourceDO::getRiskGrade, reqVO.getRiskGrade())
|
|
|
.eqIfPresent(IotDangerSourceDO::getControlMethod, reqVO.getControlMethod())
|
|
.eqIfPresent(IotDangerSourceDO::getControlMethod, reqVO.getControlMethod())
|
|
|
|
|
+ .inIfPresent(IotDangerSourceDO::getDeptId, ids)
|
|
|
.eqIfPresent(IotDangerSourceDO::getRemark, reqVO.getRemark())
|
|
.eqIfPresent(IotDangerSourceDO::getRemark, reqVO.getRemark())
|
|
|
.betweenIfPresent(IotDangerSourceDO::getCreateTime, reqVO.getCreateTime())
|
|
.betweenIfPresent(IotDangerSourceDO::getCreateTime, reqVO.getCreateTime())
|
|
|
.orderByDesc(IotDangerSourceDO::getId));
|
|
.orderByDesc(IotDangerSourceDO::getId));
|