保誠-保戶業務員媒合平台
pamapi/src/main/java/com/pollex/pam/service/ConsultantService.java
@@ -61,9 +61,6 @@
    AppointmentService appointmentService;
    @Autowired
    LoginRecordService loginRecordService;
    @Autowired
    AppointmentCustomerViewMapper appointmentCustomerViewMapper;
    @Autowired
@@ -225,12 +222,7 @@
    public ConsultantDetailDTO getConsultantDetail(String agentNo) {
        Consultant consultant = consultantRepository.findOneByAgentNo(agentNo).orElseThrow(ConsultantNotFoundException::new);
        ConsultantDetailDTO consultantDetailDTO = consultantMapper.toDetailDto(consultant);
        loginRecordService.findLatestLoginRecord(agentNo, LoginResult.SUCCESS)
                .ifPresent(loginRecord -> consultantDetailDTO.setLatestLoginTime(loginRecord.getLoginDate()));
        return consultantDetailDTO;
        return consultantMapper.toDetailDto(consultant);
    }
    @Transactional