|
@@ -68,7 +68,7 @@ public class HandleBusinessServiceImpl implements HandleBusinessService{
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public HashMap<Object, Object> findByIds(Long businessId, Integer currentPage, Integer pageSize) {
|
|
|
+ public HashMap<Object, Object> findByIds(Long businessId, Integer currentPage, Integer pageSize,String windowNum) {
|
|
|
HashMap<Object, Object> map = new HashMap<>();
|
|
|
HandleBusiness handleBusiness = handleBusinessDao.findById(businessId);
|
|
|
List<HandleDept> handleDepts = handleDeptDao.findById(handleBusiness.getId());
|
|
@@ -77,9 +77,9 @@ public class HandleBusinessServiceImpl implements HandleBusinessService{
|
|
|
int total = 0;
|
|
|
for (HandleDept handleDept : handleDepts) {
|
|
|
long deptId = handleDept.getId();
|
|
|
- List<HandleMatters> handleMattersList = handleMattersDao.findById(deptId);
|
|
|
+ List<HandleMatters> handleMattersList = handleMattersDao.findByDeptIdAndWindowNum(deptId,windowNum);
|
|
|
allHandleMatters.addAll(handleMattersList);
|
|
|
- total += handleMattersDao.queryCount(deptId);
|
|
|
+ total += handleMattersDao.queryCount(deptId,windowNum);
|
|
|
}
|
|
|
// 计算分页参数
|
|
|
int offset = (currentPage - 1) * pageSize;
|
|
@@ -109,9 +109,9 @@ public class HandleBusinessServiceImpl implements HandleBusinessService{
|
|
|
List<HandleDept> handleDepts = handleDeptDao.findById(handleBusiness.getId());
|
|
|
ArrayList<Object> handleMatter = new ArrayList<>();
|
|
|
for (HandleDept handleDept : handleDepts) {
|
|
|
- List<HandleMatters> HandleMatters = handleMattersDao.findByIdByKey(handleDept.getId(), query.getKeyword());
|
|
|
+ List<HandleMatters> HandleMatters = handleMattersDao.findByIdByKey(handleDept.getId(), query.getKeyword(),query.getWindowNum());
|
|
|
handleMatter.addAll(HandleMatters);
|
|
|
- total += handleMattersDao.findByIdByKeyCount(handleDept.getId(), query.getKeyword());
|
|
|
+ total += handleMattersDao.findByIdByKeyCount(handleDept.getId(), query.getKeyword(), query.getWindowNum());
|
|
|
}
|
|
|
|
|
|
// 计算分页参数
|