xiaoyi
4 天以前 c9d4ba37c1f681b12e24014013fa9a28734bad42
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
31
package cn.iocoder.yudao.module.mes.dal.mysql.pro.alternativeplan;
 
import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX;
import cn.iocoder.yudao.module.mes.controller.admin.pro.alternativeplan.vo.MesProAlternativePlanPageReqVO;
import cn.iocoder.yudao.module.mes.dal.dataobject.pro.alternativeplan.MesProAlternativePlanDO;
import org.apache.ibatis.annotations.Mapper;
 
/**
 * MES 作业替代方案 Mapper
 *
 * @author xiaoyi
 */
@Mapper
public interface MesProAlternativePlanMapper extends BaseMapperX<MesProAlternativePlanDO> {
 
    default MesProAlternativePlanDO selectByCode(String code) {
        return selectOne(MesProAlternativePlanDO::getCode, code);
    }
 
    default PageResult<MesProAlternativePlanDO> selectPage(MesProAlternativePlanPageReqVO reqVO) {
        return selectPage(reqVO, new LambdaQueryWrapperX<MesProAlternativePlanDO>()
                .likeIfPresent(MesProAlternativePlanDO::getCode, reqVO.getCode())
                .likeIfPresent(MesProAlternativePlanDO::getName, reqVO.getName())
                .eqIfPresent(MesProAlternativePlanDO::getMainProcessId, reqVO.getMainProcessId())
                .eqIfPresent(MesProAlternativePlanDO::getStatus, reqVO.getStatus())
                .orderByDesc(MesProAlternativePlanDO::getId));
    }
 
}