选煤厂生产管理平台后台代码
Jay
2024-12-10 7e21bc617f3444c5a3b26ed88ea9ea7765e44d34
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
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.QualityMediumEntity;
import com.iailab.module.pms.coalquality.modules.detection.vo.MediumPageReqVO;
import org.apache.commons.lang3.StringUtils;
import org.apache.ibatis.annotations.Mapper;
 
/**
 * @author PanZhibao
 * @Description
 * @createTime 2023年02月07日 17:20:00
 */
@Mapper
public interface QualityMediumDao extends BaseMapperX<QualityMediumEntity> {
 
    default PageResult<QualityMediumEntity> selectPage(MediumPageReqVO reqVO) {
        return selectPage(reqVO, new LambdaQueryWrapperX<QualityMediumEntity>()
                .eq(StringUtils.isNotBlank(reqVO.getRq()), QualityMediumEntity::getRq, reqVO.getRq())
        );
    }
}