From bbc1eeba9c29032add5175f2739782fd204de715 Mon Sep 17 00:00:00 2001
From: 潘志宝 <979469083@qq.com>
Date: 星期一, 09 九月 2024 11:20:38 +0800
Subject: [PATCH] model 配置文件

---
 iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/sche/dao/StScheduleModelDao.java |   22 +++++++++-------------
 1 files changed, 9 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..3e7b847 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,13 +1,11 @@
 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.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
@@ -16,12 +14,10 @@
 @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