| | |
| | | @Service |
| | | public class ConsultantService { |
| | | |
| | | private final static Logger log = LoggerFactory.getLogger(ConsultantService.class); |
| | | private static final Logger log = LoggerFactory.getLogger(ConsultantService.class); |
| | | |
| | | private final ConsultantRepository consultantRepository; |
| | | private final CustomFavoriteConsultantRepository customFavoriteConsultantRepository; |
| | |
| | | } |
| | | |
| | | public List<ConsultantDTO> strictQueryConsultant(StrictQueryConsultantParam param) { |
| | | |
| | | |
| | | return Collections.emptyList(); |
| | | return consultantRepository.findAll(ConsultantQuerySpec.getStrictQuerySpec(param)) |
| | | .stream() |
| | | .map(consultantMapper::toDto) |
| | | .collect(Collectors.toList()); |
| | | } |
| | | |
| | | public List<ConsultantDTO> fastQueryConsultant(FastQueryConsultantParam param) { |
| | |
| | | customFavoriteConsultantRepository.save(customFavoriteConsultant); |
| | | } |
| | | else { |
| | | log.info("The consultant is in custom favorite list!"); |
| | | log.info("The consultant is in custom favorite list! customId = {}, consultant AgentNo = {}", user.getId(), consultant.getAgentNo()); |
| | | } |
| | | }); |
| | | |