| | |
| | | import com.pollex.pam.domain.AppointmentCustomerView; |
| | | import com.pollex.pam.domain.Consultant; |
| | | import com.pollex.pam.domain.CustomerFavoriteConsultant; |
| | | import com.pollex.pam.enums.AppointmentStatusEnum; |
| | | import com.pollex.pam.enums.ContactStatusEnum; |
| | | import com.pollex.pam.enums.LoginResult; |
| | | import com.pollex.pam.repository.ConsultantRepository; |
| | |
| | | |
| | | @Autowired |
| | | SatisfactionService satisfactionService; |
| | | |
| | | |
| | | @Autowired |
| | | ConsultantDTOMapper consultantDTOMapper; |
| | | |
| | | |
| | | @Autowired |
| | | ApplicationProperties applicationProperty; |
| | | |
| | |
| | | customerFavoriteConsultantRepository.saveAll(notViewRelation); |
| | | } |
| | | |
| | | public Consultant findByAgentNo(String agentNo) { |
| | | return consultantRepository.findOneByAgentNo(agentNo).get(); |
| | | } |
| | | |
| | | public Consultant editConsultant(ConsultantEditDTO editDTO) { |
| | | Consultant consultant = consultantRepository.findOneByAgentNo(editDTO.getAgentNo()) |
| | | .orElseThrow(ConsultantNotFoundException::new); |