package com.iailab.module.pms.coalquality.modules.plan.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.plan.entity.QualityPlanEntity; import com.iailab.module.pms.coalquality.modules.plan.vo.PlanMonthPageReqVO; import org.apache.commons.lang3.StringUtils; import org.apache.ibatis.annotations.Mapper; /** * 质量计划 * * @author PanZhibao * @Description * @createTime 2023年02月04日 14:36:00 */ @Mapper public interface QualityPlanDao extends BaseMapperX { default PageResult selectPage(PlanMonthPageReqVO reqVO) { return selectPage(reqVO, new LambdaQueryWrapperX() .like(StringUtils.isNotBlank(reqVO.getCode()), QualityPlanEntity::getCode, reqVO.getCode()) .eq(StringUtils.isNotBlank(reqVO.getPlanType()), QualityPlanEntity::getPlanType, reqVO.getPlanType()) .eq(StringUtils.isNotBlank(reqVO.getCoalType()), QualityPlanEntity::getCoalType, reqVO.getCoalType()) .eq(StringUtils.isNotBlank(reqVO.getSj()), QualityPlanEntity::getSj, reqVO.getSj()) ); } }