保誠-保戶業務員媒合平台
wayne
2022-02-24 14cce37a73c17683517414687bf76be18b7ee819
pamapi/src/main/java/com/pollex/pam/service/ConsultantService.java
@@ -236,7 +236,9 @@
            if(!isConsultantInList) {
                CustomerFavoriteConsultant customerFavoriteConsultant = new CustomerFavoriteConsultant();
                customerFavoriteConsultant.setCreatedDate(addConsultantData.getCreatedTime());
                Optional<Instant> createdTime = Optional.ofNullable(addConsultantData.getCreatedTime());
                customerFavoriteConsultant.setCreatedDate(createdTime.orElse(Instant.now()));
                customerFavoriteConsultant.setConsultant(consultant);
                customerFavoriteConsultant.setCustomerId(userId);