|  | @@ -13,6 +13,7 @@ import com.usky.fire.mapper.PatrolInspectionContentMapper;
 | 
	
		
			
				|  |  |  import com.usky.fire.service.PatrolInspectionContentOptionService;
 | 
	
		
			
				|  |  |  import com.usky.fire.service.PatrolInspectionContentService;
 | 
	
		
			
				|  |  |  import com.usky.fire.service.PatrolInspectionSiteContentService;
 | 
	
		
			
				|  |  | +import com.usky.fire.service.util.OnlineMethod;
 | 
	
		
			
				|  |  |  import com.usky.fire.service.vo.PatrolInspectionContentExportVo;
 | 
	
		
			
				|  |  |  import com.usky.fire.service.vo.PatrolInspectionContentVo;
 | 
	
		
			
				|  |  |  import com.usky.system.model.LoginUser;
 | 
	
	
		
			
				|  | @@ -163,9 +164,14 @@ public class PatrolInspectionContentServiceImpl extends AbstractCrudService<Patr
 | 
	
		
			
				|  |  |          if (id != 0 && id != null) {
 | 
	
		
			
				|  |  |              queryWrapper.eq(PatrolInspectionContent::getId, id);
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  | +        Integer total = this.count(queryWrapper);
 | 
	
		
			
				|  |  |          queryWrapper.orderByDesc(PatrolInspectionContent::getId);
 | 
	
		
			
				|  |  | +        if (pageNum != null && pageNum != 0 && pageSize != null && pageSize != 0) {
 | 
	
		
			
				|  |  | +            Integer startFate = OnlineMethod.getStartFate(pageNum, pageSize);
 | 
	
		
			
				|  |  | +            queryWrapper.last("limit " + startFate + ","+pageSize);
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  |          List<PatrolInspectionContent> patrolInspectionContentList = this.list(queryWrapper);
 | 
	
		
			
				|  |  | -        List<PatrolInspectionContentVo> list = new ArrayList<>();
 | 
	
		
			
				|  |  | +//        List<PatrolInspectionContentVo> list = new ArrayList<>();
 | 
	
		
			
				|  |  |          List<PatrolInspectionContentVo> patrolInspectionContentVoList = new ArrayList<>();
 | 
	
		
			
				|  |  |          if (patrolInspectionContentList.size() > 0) {
 | 
	
		
			
				|  |  |              List<Integer> idList = new ArrayList<>();
 | 
	
	
		
			
				|  | @@ -197,10 +203,10 @@ public class PatrolInspectionContentServiceImpl extends AbstractCrudService<Patr
 | 
	
		
			
				|  |  |                  patrolInspectionContentVo.setContentOptionList(contentOptionListOne);
 | 
	
		
			
				|  |  |                  patrolInspectionContentVoList.add(patrolInspectionContentVo);
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  | -            list = patrolInspectionContentVoList.stream().skip((pageNum - 1) * pageSize).limit(pageSize).collect(Collectors.toList());
 | 
	
		
			
				|  |  | +//            list = patrolInspectionContentVoList.stream().skip((pageNum - 1) * pageSize).limit(pageSize).collect(Collectors.toList());
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  | -        return new CommonPage<>(list, patrolInspectionContentVoList.size(), pageSize, pageNum);
 | 
	
		
			
				|  |  | +        return new CommonPage<>(patrolInspectionContentVoList, total, pageSize, pageNum);
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  
 |