|
@@ -1,8 +1,9 @@
|
|
|
package com.mokamrp.privates.service.pangu.impl;
|
|
package com.mokamrp.privates.service.pangu.impl;
|
|
|
|
|
|
|
|
|
|
+import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
-import com.mokamrp.privates.entity.PostBasePageHandle;
|
|
|
|
|
|
|
+import com.mokamrp.privates.entity.pangu.FosterwxFlowListHandle;
|
|
|
import com.mokamrp.privates.mapper.pangu.FosterwxFlowListMapper;
|
|
import com.mokamrp.privates.mapper.pangu.FosterwxFlowListMapper;
|
|
|
import com.mokamrp.privates.mapper.pangu.pojo.FosterwxFlowList;
|
|
import com.mokamrp.privates.mapper.pangu.pojo.FosterwxFlowList;
|
|
|
import com.mokamrp.privates.service.pangu.FosterwxFlowListService;
|
|
import com.mokamrp.privates.service.pangu.FosterwxFlowListService;
|
|
@@ -10,7 +11,6 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
|
|
import java.util.HashMap;
|
|
import java.util.HashMap;
|
|
|
-import java.util.List;
|
|
|
|
|
import java.util.Map;
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -32,13 +32,16 @@ public class FosterwxFlowListServiceImpl extends ServiceImpl<FosterwxFlowListMap
|
|
|
* @param handle
|
|
* @param handle
|
|
|
* @return
|
|
* @return
|
|
|
*/
|
|
*/
|
|
|
- public Map<String, Object> getList(PostBasePageHandle handle) {
|
|
|
|
|
- Integer pagesize = handle.getPagesize();
|
|
|
|
|
|
|
+ @Override
|
|
|
|
|
+ public Map<String, Object> getList(FosterwxFlowListHandle handle) {
|
|
|
|
|
+ Integer pageSizeize = handle.getPageSize();
|
|
|
Integer page = handle.getPage();
|
|
Integer page = handle.getPage();
|
|
|
- Page<FosterwxFlowList> pageObj = new Page<FosterwxFlowList>(page, pagesize);
|
|
|
|
|
- List<FosterwxFlowList> list = fosterwxFlowListMapper.getList(pageObj);
|
|
|
|
|
|
|
+ Page<FosterwxFlowList> pageObj = new Page<FosterwxFlowList>(page, pageSizeize);
|
|
|
|
|
+ LambdaQueryWrapper<FosterwxFlowList> fosterwxFlowListLambdaQueryWrapper = new LambdaQueryWrapper<>();
|
|
|
|
|
+ fosterwxFlowListLambdaQueryWrapper.eq(FosterwxFlowList::getPoolId, handle.getPoolIndex());
|
|
|
|
|
+ pageObj = fosterwxFlowListMapper.selectPage(pageObj, fosterwxFlowListLambdaQueryWrapper);
|
|
|
Map<String, Object> resMap = new HashMap<String, Object>();
|
|
Map<String, Object> resMap = new HashMap<String, Object>();
|
|
|
- resMap.put("list", list);
|
|
|
|
|
|
|
+ resMap.put("list", pageObj.getRecords());
|
|
|
resMap.put("total", pageObj.getTotal());
|
|
resMap.put("total", pageObj.getTotal());
|
|
|
return resMap;
|
|
return resMap;
|
|
|
}
|
|
}
|