| | |
| | | import org.springframework.context.ApplicationContext; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.util.CollectionUtils; |
| | | import org.springframework.util.StringUtils; |
| | | |
| | | import java.time.LocalDateTime; |
| | | import java.util.*; |
| | |
| | | if(sysLive.getEndTime().isBefore(LocalDateTime.now())){ |
| | | sysLive.setLiveStatus(3); |
| | | } |
| | | // 查看是否包含该值 |
| | | boolean memberInSet = redisCache.isMemberInSet(Constants.LIVE_APPOINTMENT_PUSH + sysLive.getId(), query.getAppUserId()); |
| | | sysLive.setAppointmentStatus(memberInSet ? 2 : 1); |
| | | if(StringUtils.hasLength(query.getAppUserId())){ |
| | | // 查看是否包含该值 |
| | | boolean memberInSet = redisCache.isMemberInSet(Constants.LIVE_APPOINTMENT_PUSH + sysLive.getId(), query.getAppUserId()); |
| | | sysLive.setAppointmentStatus(memberInSet ? 2 : 1); |
| | | }else { |
| | | sysLive.setAppointmentStatus(1); |
| | | } |
| | | } |
| | | pageInfo.setRecords(list); |
| | | return pageInfo; |