From 5f653cd83425db29ccf514e9fd966a90c7eeab32 Mon Sep 17 00:00:00 2001 From: dongyukun <1208714201@qq.com> Date: 星期四, 02 一月 2025 13:47:45 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/sche/dao/StScheduleModelDao.java | 24 +++++++++++------------- 1 files changed, 11 insertions(+), 13 deletions(-) diff --git a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/sche/dao/StScheduleModelDao.java b/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/sche/dao/StScheduleModelDao.java index c6ad125..2185aff 100644 --- a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/sche/dao/StScheduleModelDao.java +++ b/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/sche/dao/StScheduleModelDao.java @@ -1,27 +1,25 @@ package com.iailab.module.model.mcs.sche.dao; -import com.baomidou.mybatisplus.core.metadata.IPage; +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.framework.tenant.core.db.dynamic.TenantDS; import com.iailab.module.model.mcs.sche.entity.StScheduleModelEntity; -import com.iailab.module.model.mcs.sche.vo.StScheduleModelRespVO; +import com.iailab.module.model.mcs.sche.vo.StScheduleModelPageReqVO; import org.apache.ibatis.annotations.Mapper; -import org.apache.ibatis.annotations.Param; - -import java.util.Map; /** * @author PanZhibao * @date 2021年07月19日 17:56 */ +@TenantDS @Mapper public interface StScheduleModelDao extends BaseMapperX<StScheduleModelEntity> { - /** - * 查询列表 - * - * @param page - * @param params - * @return - */ - IPage<StScheduleModelRespVO> getPageList(IPage<StScheduleModelEntity> page, @Param("params") Map<String, Object> params); + default PageResult<StScheduleModelEntity> selectPage(StScheduleModelPageReqVO reqVO) { + return selectPage(reqVO, new LambdaQueryWrapperX<StScheduleModelEntity>() + .likeIfPresent(StScheduleModelEntity::getModelCode, reqVO.getModelCode()) + .likeIfPresent(StScheduleModelEntity::getModelName, reqVO.getModelName()) + .orderByDesc(StScheduleModelEntity::getCreateTime)); + } } -- Gitblit v1.9.3