|
@@ -1,11 +1,13 @@
|
|
|
package com.smcic.api.conference.service.impl;
|
|
|
|
|
|
import com.smcic.api.conference.entity.ConferenceAgenda;
|
|
|
+import com.smcic.api.conference.entity.ConferenceAgendaDetail;
|
|
|
import com.smcic.api.conference.mapper.ConferenceAgendaMapper;
|
|
|
import com.smcic.api.conference.service.IConferenceAgendaService;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
+import javax.annotation.Resource;
|
|
|
import java.util.List;
|
|
|
|
|
|
/**
|
|
@@ -18,8 +20,16 @@ import java.util.List;
|
|
|
*/
|
|
|
@Service
|
|
|
public class ConferenceAgendaServiceImpl extends ServiceImpl<ConferenceAgendaMapper, ConferenceAgenda> implements IConferenceAgendaService {
|
|
|
+ @Resource
|
|
|
+ private ConferenceAgendaDetailServiceImpl conferenceAgendaDetailService;
|
|
|
|
|
|
public List<ConferenceAgenda> listByCid(Long id){
|
|
|
return lambdaQuery().eq(ConferenceAgenda::getConferenceId, id).orderByAsc(ConferenceAgenda::getAgendaTime).list();
|
|
|
}
|
|
|
+
|
|
|
+ public ConferenceAgenda info(Long id){
|
|
|
+ ConferenceAgenda conferenceAgenda = getById(id);
|
|
|
+ conferenceAgenda.setDetails(conferenceAgendaDetailService.lambdaQuery().eq(ConferenceAgendaDetail::getAgendaId, id).list());
|
|
|
+ return conferenceAgenda;
|
|
|
+ }
|
|
|
}
|