From 4e54ae39c612c2995e3592121327fa79ded539a9 Mon Sep 17 00:00:00 2001 From: wayne <wayne8692wayne8692@gmail.com> Date: 星期五, 19 十一月 2021 14:18:14 +0800 Subject: [PATCH] Merge branch 'build' --- pamapi/src/main/java/com/pollex/pam/service/ConsultantService.java | 38 +++++++++++++++++--------------------- 1 files changed, 17 insertions(+), 21 deletions(-) diff --git a/pamapi/src/main/java/com/pollex/pam/service/ConsultantService.java b/pamapi/src/main/java/com/pollex/pam/service/ConsultantService.java index e36e0cf..3dbcbd9 100644 --- a/pamapi/src/main/java/com/pollex/pam/service/ConsultantService.java +++ b/pamapi/src/main/java/com/pollex/pam/service/ConsultantService.java @@ -13,6 +13,7 @@ import com.pollex.pam.web.rest.errors.ConsultantNotFoundException; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @@ -24,28 +25,23 @@ private static final Logger log = LoggerFactory.getLogger(ConsultantService.class); - final ConsultantRepository consultantRepository; - final CustomerFavoriteConsultantRepository customerFavoriteConsultantRepository; - final ConsultantMapper consultantMapper; - final AppointmentService appointmentService; - final AppointmentCustomerViewRepository appointmentCustomerViewRepository; - final AppointmentCustomerViewMapper appointmentCustomerViewMapper; + @Autowired + ConsultantRepository consultantRepository; - public ConsultantService( - ConsultantRepository consultantRepository, - CustomerFavoriteConsultantRepository customerFavoriteConsultantRepository, - ConsultantMapper consultantMapper, - AppointmentService appointmentService, - AppointmentCustomerViewRepository appointmentCustomerViewRepository, - AppointmentCustomerViewMapper appointmentCustomerViewMapper - ) { - this.consultantRepository = consultantRepository; - this.customerFavoriteConsultantRepository = customerFavoriteConsultantRepository; - this.consultantMapper = consultantMapper; - this.appointmentService = appointmentService; - this.appointmentCustomerViewRepository = appointmentCustomerViewRepository; - this.appointmentCustomerViewMapper = appointmentCustomerViewMapper; - } + @Autowired + CustomerFavoriteConsultantRepository customerFavoriteConsultantRepository; + + @Autowired + ConsultantMapper consultantMapper; + + @Autowired + AppointmentService appointmentService; + + @Autowired + AppointmentCustomerViewRepository appointmentCustomerViewRepository; + + @Autowired + AppointmentCustomerViewMapper appointmentCustomerViewMapper; public List<ConsultantDTO> getMyConsultantList() { Long userId = SecurityUtils.getCustomerId(); -- Gitblit v1.8.0