|
|
@ -146,7 +146,6 @@ public class ConferenceService {
|
|
|
|
conference.setTitle(conferenceDto.getTitle());
|
|
|
|
conference.setTitle(conferenceDto.getTitle());
|
|
|
|
conference.setDescription(conferenceDto.getDescription());
|
|
|
|
conference.setDescription(conferenceDto.getDescription());
|
|
|
|
conference.setUrl(conferenceDto.getUrl());
|
|
|
|
conference.setUrl(conferenceDto.getUrl());
|
|
|
|
Integer pingCount = conferenceDto.getPing() - conference.getPing(); // for notification
|
|
|
|
|
|
|
|
conference.setPing(conference.getPing());
|
|
|
|
conference.setPing(conference.getPing());
|
|
|
|
conference.setBeginDate(conferenceDto.getBeginDate());
|
|
|
|
conference.setBeginDate(conferenceDto.getBeginDate());
|
|
|
|
conference.setEndDate(conferenceDto.getEndDate());
|
|
|
|
conference.setEndDate(conferenceDto.getEndDate());
|
|
|
@ -180,9 +179,10 @@ public class ConferenceService {
|
|
|
|
return conferenceRepository.findAllActive(new Date());
|
|
|
|
return conferenceRepository.findAllActive(new Date());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Transactional
|
|
|
|
public void ping(ConferenceDto conferenceDto) throws IOException {
|
|
|
|
public void ping(ConferenceDto conferenceDto) throws IOException {
|
|
|
|
pingService.addPing(findOne(conferenceDto.getId()));
|
|
|
|
pingService.addPing(findOne(conferenceDto.getId()));
|
|
|
|
// conferenceDto.setPing(conferenceDto.getPing() + 1);
|
|
|
|
conferenceRepository.updatePingConference(conferenceDto.getId());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public Conference findOne(Integer conferenceId) {
|
|
|
|
public Conference findOne(Integer conferenceId) {
|
|
|
|