选煤厂生产管理平台后台代码
Jay
6 天以前 8d3ff63ab144ad6b48015b01196bc901944a48f9
提交 | 用户 | 时间
8d3ff6 1 package com.iailab.module.pms.coalquality.modules.plan.dao;
J 2
3
4 import com.iailab.framework.common.pojo.PageResult;
5 import com.iailab.framework.mybatis.core.mapper.BaseMapperX;
6 import com.iailab.framework.mybatis.core.query.LambdaQueryWrapperX;
7 import com.iailab.module.pms.coalquality.modules.plan.entity.QualityPlanEntity;
8 import com.iailab.module.pms.coalquality.modules.plan.vo.PlanMonthPageReqVO;
9 import org.apache.commons.lang3.StringUtils;
10 import org.apache.ibatis.annotations.Mapper;
11
12 /**
13  * 质量计划
14  *
15  * @author PanZhibao
16  * @Description
17  * @createTime 2023年02月04日 14:36:00
18  */
19 @Mapper
20 public interface QualityPlanDao extends BaseMapperX<QualityPlanEntity> {
21
22     default PageResult<QualityPlanEntity> selectPage(PlanMonthPageReqVO reqVO) {
23         return selectPage(reqVO, new LambdaQueryWrapperX<QualityPlanEntity>()
24                 .like(StringUtils.isNotBlank(reqVO.getCode()), QualityPlanEntity::getCode, reqVO.getCode())
25                 .eq(StringUtils.isNotBlank(reqVO.getPlanType()), QualityPlanEntity::getPlanType, reqVO.getPlanType())
26                 .eq(StringUtils.isNotBlank(reqVO.getCoalType()), QualityPlanEntity::getCoalType, reqVO.getCoalType())
27                 .eq(StringUtils.isNotBlank(reqVO.getSj()), QualityPlanEntity::getSj, reqVO.getSj())
28         );
29     }
30 }