选煤厂生产管理平台后台代码
Jay
6 天以前 8d3ff63ab144ad6b48015b01196bc901944a48f9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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<QualityPlanEntity> {
 
    default PageResult<QualityPlanEntity> selectPage(PlanMonthPageReqVO reqVO) {
        return selectPage(reqVO, new LambdaQueryWrapperX<QualityPlanEntity>()
                .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())
        );
    }
}