From a97b38655411a84660037a9014d309657316c467 Mon Sep 17 00:00:00 2001
From: 潘志宝 <979469083@qq.com>
Date: 星期四, 26 九月 2024 14:41:18 +0800
Subject: [PATCH] 预测项列表

---
 iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/service/impl/MmPredictItemServiceImpl.java |   22 ++++++++--------------
 1 files changed, 8 insertions(+), 14 deletions(-)

diff --git a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/service/impl/MmPredictItemServiceImpl.java b/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/service/impl/MmPredictItemServiceImpl.java
index e8fc098..d229a5a 100644
--- a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/service/impl/MmPredictItemServiceImpl.java
+++ b/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/service/impl/MmPredictItemServiceImpl.java
@@ -1,6 +1,7 @@
 package com.iailab.module.model.mcs.pre.service.impl;
 
 import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.baomidou.mybatisplus.core.metadata.IPage;
 import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
 import com.iailab.framework.common.pojo.PageResult;
 import com.iailab.framework.common.util.object.BeanUtils;
@@ -12,6 +13,7 @@
 import com.iailab.module.model.mcs.pre.service.MmPredictItemService;
 import com.iailab.module.model.mcs.pre.service.MmSequenceNumService;
 import com.iailab.module.model.mcs.pre.vo.MmPredictItemPageReqVO;
+import com.iailab.module.model.mcs.pre.vo.MmPredictItemRespVO;
 import com.iailab.module.model.mdk.vo.ItemVO;
 import com.iailab.module.model.mdk.vo.MergeItemVO;
 import org.apache.commons.lang3.StringUtils;
@@ -56,23 +58,15 @@
     private MmPredictItemDao mmPredictItemDao;
 
     @Override
-    public PageResult<MmPredictItemEntity> queryPage(MmPredictItemPageReqVO reqVO) {
-        return mmPredictItemDao.selectPage(reqVO);
+    public PageResult<MmPredictItemRespVO> queryPage(MmPredictItemPageReqVO reqVO) {
+        IPage<MmPredictItemRespVO> page = mmPredictItemDao.selectPage(reqVO);
+
+        return  new PageResult<MmPredictItemRespVO>(page.getRecords(), page.getTotal());
     }
 
-//    @Override
-//    public void add(MmPredictItemEntity mmPredictItemEntity) {
-//        mmPredictItemDao.insert(mmPredictItemEntity);
-//    }
-
-//    @Override
-//    public void update(MmPredictItemEntity mmPredictItemEntity) {
-//        mmPredictItemDao.updateById(mmPredictItemEntity);
-//    }
-
     @Override
-    public List<MmPredictItemEntity> list() {
-        return mmPredictItemDao.selectList(new QueryWrapper<>());
+    public List<MmPredictItemRespVO> list(Map<String, Object> params) {
+        return mmPredictItemDao.queryList(params);
     }
 
     @Override

--
Gitblit v1.9.3