package com.iailab.module.pms.coalquality.modules.detection.dao; import com.iailab.framework.common.pojo.PageResult; import com.iailab.framework.mybatis.core.mapper.BaseMapperX; import com.iailab.framework.mybatis.core.query.LambdaQueryWrapperX; import com.iailab.module.pms.coalquality.modules.detection.entity.QualityDetectionEntity; import com.iailab.module.pms.coalquality.modules.detection.vo.DetectionPageReqVO; import org.apache.commons.lang3.StringUtils; import org.apache.ibatis.annotations.Mapper; /** * 煤质检测 * * @author PanZhibao * @Description * @createTime 2023年02月07日 13:12:00 */ @Mapper public interface QualityDetectionDao extends BaseMapperX { default PageResult selectPage(DetectionPageReqVO reqVO) { return selectPage(reqVO, new LambdaQueryWrapperX() .like(StringUtils.isNotBlank(reqVO.getCode()), QualityDetectionEntity::getCode, reqVO.getCode()) .eq(StringUtils.isNotBlank(reqVO.getType()), QualityDetectionEntity::getType, reqVO.getType()) .eq(StringUtils.isNotBlank(reqVO.getRq()), QualityDetectionEntity::getRq, reqVO.getRq()) .eq(StringUtils.isNotBlank(reqVO.getBc()), QualityDetectionEntity::getBc, reqVO.getBc()) ); } }