提交 | 用户 | 时间
|
7fd198
|
1 |
package com.iailab.module.model.mcs.sche.dao; |
潘 |
2 |
|
bbc1ee
|
3 |
import com.iailab.framework.common.pojo.PageResult; |
7fd198
|
4 |
import com.iailab.framework.mybatis.core.mapper.BaseMapperX; |
bbc1ee
|
5 |
import com.iailab.framework.mybatis.core.query.LambdaQueryWrapperX; |
7fd198
|
6 |
import com.iailab.module.model.mcs.sche.entity.StScheduleModelEntity; |
bbc1ee
|
7 |
import com.iailab.module.model.mcs.sche.vo.StScheduleModelPageReqVO; |
7fd198
|
8 |
import org.apache.ibatis.annotations.Mapper; |
潘 |
9 |
|
|
10 |
/** |
|
11 |
* @author PanZhibao |
|
12 |
* @date 2021年07月19日 17:56 |
|
13 |
*/ |
|
14 |
@Mapper |
|
15 |
public interface StScheduleModelDao extends BaseMapperX<StScheduleModelEntity> { |
|
16 |
|
bbc1ee
|
17 |
default PageResult<StScheduleModelEntity> selectPage(StScheduleModelPageReqVO reqVO) { |
潘 |
18 |
return selectPage(reqVO, new LambdaQueryWrapperX<StScheduleModelEntity>() |
|
19 |
.likeIfPresent(StScheduleModelEntity::getModelCode, reqVO.getModelCode()) |
|
20 |
.likeIfPresent(StScheduleModelEntity::getModelName, reqVO.getModelName()) |
|
21 |
.orderByDesc(StScheduleModelEntity::getCreateTime)); |
|
22 |
} |
7fd198
|
23 |
} |