|
|
@@ -1,6 +1,6 @@
|
|
|
package com.mokamrp.privates.service.pangu.impl;
|
|
|
|
|
|
-import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
+import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
import com.mokamrp.privates.entity.ResHandle;
|
|
|
import com.mokamrp.privates.entity.pangu.FosterwxCashAccountScheduleHandle;
|
|
|
@@ -36,11 +36,20 @@ public class FosterwxCashAccountScheduleServiceImpl extends ServiceImpl<Fosterwx
|
|
|
public ResHandle<List<FosterwxCashAccountSchedule>> getList(FosterwxCashAccountScheduleHandle handle) {
|
|
|
Integer pagesize = handle.getPageSize();
|
|
|
Integer page = handle.getPage();
|
|
|
- Page<FosterwxCashAccountSchedule> pageObj = new Page<FosterwxCashAccountSchedule>(page, pagesize);
|
|
|
- List<FosterwxCashAccountSchedule> list = fosterwxCashAccountScheduleMapper.getList(pageObj);
|
|
|
+ LambdaQueryWrapper<FosterwxCashAccountSchedule> fosterwxCashAccountScheduleLambdaQueryWrapper = new LambdaQueryWrapper<>();
|
|
|
+ // 任务模板
|
|
|
+ fosterwxCashAccountScheduleLambdaQueryWrapper.eq(FosterwxCashAccountSchedule::getTemplateId, handle.getTemplateId());
|
|
|
+ // 创建人
|
|
|
+ fosterwxCashAccountScheduleLambdaQueryWrapper.eq(FosterwxCashAccountSchedule::getCreateUid, handle.getCreateUid());
|
|
|
+ // 账号组别
|
|
|
+ fosterwxCashAccountScheduleLambdaQueryWrapper.eq(FosterwxCashAccountSchedule::getGroupId, handle.getGroupId());
|
|
|
+ // 获取总件数
|
|
|
+ Long maxCount = Long.valueOf(fosterwxCashAccountScheduleMapper.selectCount(fosterwxCashAccountScheduleLambdaQueryWrapper));
|
|
|
+
|
|
|
+ List<FosterwxCashAccountSchedule> list = fosterwxCashAccountScheduleMapper.getList(fosterwxCashAccountScheduleLambdaQueryWrapper);
|
|
|
ResHandle<List<FosterwxCashAccountSchedule>> res = new ResHandle<>();
|
|
|
res.setList(list);
|
|
|
- res.setTotal(pageObj.getTotal());
|
|
|
+ res.setTotal(maxCount);
|
|
|
return res;
|
|
|
}
|
|
|
|