|  | @@ -17,7 +17,6 @@ import org.springframework.stereotype.Service;
 | 
											
												
													
														|  |  import java.time.format.DateTimeFormatter;
 |  |  import java.time.format.DateTimeFormatter;
 | 
											
												
													
														|  |  import java.util.ArrayList;
 |  |  import java.util.ArrayList;
 | 
											
												
													
														|  |  import java.util.List;
 |  |  import java.util.List;
 | 
											
												
													
														|  | -import java.util.stream.Collectors;
 |  | 
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  /**
 |  |  /**
 | 
											
												
													
														|  |   * <p>
 |  |   * <p>
 | 
											
										
											
												
													
														|  | @@ -51,6 +50,7 @@ public class PatrolInspectionRecordServiceImpl extends AbstractCrudService<Patro
 | 
											
												
													
														|  |      @Autowired
 |  |      @Autowired
 | 
											
												
													
														|  |      private PlanSiteSonService planSiteSonService;
 |  |      private PlanSiteSonService planSiteSonService;
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | 
 |  | +    @Override
 | 
											
												
													
														|  |      public CommonPage<PatrolInspectionRecord> patrolInspectionRecordLsit(String areaName, String siteName, String name,
 |  |      public CommonPage<PatrolInspectionRecord> patrolInspectionRecordLsit(String areaName, String siteName, String name,
 | 
											
												
													
														|  |                                                                           Integer planType, String startDateTime, String endDateTime,
 |  |                                                                           Integer planType, String startDateTime, String endDateTime,
 | 
											
												
													
														|  |                                                                           Integer pageNum, Integer pageSize) {
 |  |                                                                           Integer pageNum, Integer pageSize) {
 | 
											
										
											
												
													
														|  | @@ -84,7 +84,7 @@ public class PatrolInspectionRecordServiceImpl extends AbstractCrudService<Patro
 | 
											
												
													
														|  |          queryWrapper.orderByDesc(PatrolInspectionRecord::getId);
 |  |          queryWrapper.orderByDesc(PatrolInspectionRecord::getId);
 | 
											
												
													
														|  |          if (pageNum != null && pageNum != 0 && pageSize != null && pageSize != 0) {
 |  |          if (pageNum != null && pageNum != 0 && pageSize != null && pageSize != 0) {
 | 
											
												
													
														|  |              Integer startFate = OnlineMethod.getStartFate(pageNum, pageSize);
 |  |              Integer startFate = OnlineMethod.getStartFate(pageNum, pageSize);
 | 
											
												
													
														|  | -            queryWrapper.last("limit " + startFate + ","+pageSize);
 |  | 
 | 
											
												
													
														|  | 
 |  | +            queryWrapper.last("limit " + startFate + "," + pageSize);
 | 
											
												
													
														|  |          }
 |  |          }
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |          List<PatrolInspectionRecord> patrolInspectionRecordList = this.list(queryWrapper);
 |  |          List<PatrolInspectionRecord> patrolInspectionRecordList = this.list(queryWrapper);
 | 
											
										
											
												
													
														|  | @@ -98,6 +98,7 @@ public class PatrolInspectionRecordServiceImpl extends AbstractCrudService<Patro
 | 
											
												
													
														|  |  //        queryWrapper.eq(PatrolInspectionRecord::getTenantId, SecurityUtils.getTenantId());
 |  |  //        queryWrapper.eq(PatrolInspectionRecord::getTenantId, SecurityUtils.getTenantId());
 | 
											
												
													
														|  |  //    }
 |  |  //    }
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | 
 |  | +    @Override
 | 
											
												
													
														|  |      public List<PatrolInspectionRecordVo> patrolInspectionRecordDetails(Integer id) {
 |  |      public List<PatrolInspectionRecordVo> patrolInspectionRecordDetails(Integer id) {
 | 
											
												
													
														|  |          //记录查询
 |  |          //记录查询
 | 
											
												
													
														|  |          LambdaQueryWrapper<PatrolInspectionRecord> queryWrapper = Wrappers.lambdaQuery();
 |  |          LambdaQueryWrapper<PatrolInspectionRecord> queryWrapper = Wrappers.lambdaQuery();
 | 
											
										
											
												
													
														|  | @@ -313,8 +314,8 @@ public class PatrolInspectionRecordServiceImpl extends AbstractCrudService<Patro
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |      @Override
 |  |      @Override
 | 
											
												
													
														|  |      public List<PatrolInspectionRecordExportVo> recordLsitExport(String areaName, String siteName, String name,
 |  |      public List<PatrolInspectionRecordExportVo> recordLsitExport(String areaName, String siteName, String name,
 | 
											
												
													
														|  | -                                                               Integer planType, String startDateTime,
 |  | 
 | 
											
												
													
														|  | -                                                               String endDateTime) {
 |  | 
 | 
											
												
													
														|  | 
 |  | +                                                                 Integer planType, String startDateTime,
 | 
											
												
													
														|  | 
 |  | +                                                                 String endDateTime) {
 | 
											
												
													
														|  |          DateTimeFormatter df = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
 |  |          DateTimeFormatter df = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
 | 
											
												
													
														|  |          LoginUser loginUser = SecurityUtils.getLoginUser();
 |  |          LoginUser loginUser = SecurityUtils.getLoginUser();
 | 
											
												
													
														|  |          String userType = null;
 |  |          String userType = null;
 |