| | |
| | | List<RecordAppoint> recordAppoints = couPayClient.obtainStudentClassDetailsData(courseRest); |
| | | if (recordAppoints.size() > 0) { |
| | | if (ToolUtil.isNotEmpty(appointStatus) && appointStatus != 0) { |
| | | if (appointStatus ==2){ |
| | | recordAppoints = recordAppoints.stream() |
| | | .filter(record -> record.getStatus().equals(3)) |
| | | .collect(Collectors.toList()); |
| | | }else if (appointStatus ==3){ |
| | | recordAppoints = recordAppoints.stream() |
| | | .filter(record -> record.getStatus().equals(4)) |
| | | .collect(Collectors.toList()); |
| | | } |
| | | else { |
| | | |
| | | recordAppoints = recordAppoints.stream() |
| | | .filter(record -> record.getStatus().equals(appointStatus)) |
| | | .collect(Collectors.toList()); |
| | | } |
| | | } |
| | | if (ToolUtil.isNotEmpty(search)) { |
| | | recordAppoints = recordAppoints.stream() |
| | |
| | | .filter(record -> { |
| | | try { |
| | | SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm"); |
| | | Date time = sdf.parse(record.getTimeFrame().substring(11)); |
| | | String substring = record.getTimeFrame().substring(11); |
| | | Date time = sdf.parse(substring); |
| | | return !time.before(lastWeekStartDate) && !time.after(lastOfDate); |
| | | } catch (ParseException e) { |
| | | return false; |