package com.iailab.module.pms.coalquality.modules.analysis.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.analysis.entity.CoalWashCurvesEntity; import com.iailab.module.pms.coalquality.modules.analysis.vo.WashCurvesPageReqVO; import org.apache.commons.lang3.StringUtils; import org.apache.ibatis.annotations.Mapper; /** * @author PanZhibao * @Description * @createTime 2023年01月16日 15:54:00 */ @Mapper public interface CoalWashCurvesDao extends BaseMapperX { default PageResult selectPage(WashCurvesPageReqVO reqVO) { return selectPage(reqVO, new LambdaQueryWrapperX() .like(StringUtils.isNotBlank(reqVO.getCode()), CoalWashCurvesEntity::getCode, reqVO.getCode()) .eq(StringUtils.isNotBlank(reqVO.getMz()), CoalWashCurvesEntity::getMz, reqVO.getMz()) .ge(StringUtils.isNotBlank(reqVO.getStartTime()), CoalWashCurvesEntity::getSyrq, reqVO.getStartTime()) .le(StringUtils.isNotBlank(reqVO.getEndTime()), CoalWashCurvesEntity::getSyrq, reqVO.getEndTime()) ); } }