选煤厂生产管理平台后台代码
dongyukun
2024-12-10 3f07ab2e03e501ae55d1d1b0d031daf50c8e13e5
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
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<CoalWashCurvesEntity> {
 
    default PageResult<CoalWashCurvesEntity> selectPage(WashCurvesPageReqVO reqVO) {
        return selectPage(reqVO, new LambdaQueryWrapperX<CoalWashCurvesEntity>()
                .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())
        );
    }
}