From 6552d77334bdd5dce05b6a293ac70827f27ec603 Mon Sep 17 00:00:00 2001 From: wayne <wayne8692wayne8692@gmail.com> Date: 星期三, 16 三月 2022 12:27:58 +0800 Subject: [PATCH] [update] [todo 136817] 移除填寫滿意度通知API --- pamapi/src/main/java/com/pollex/pam/web/rest/ConsultantResource.java | 13 ------------- 1 files changed, 0 insertions(+), 13 deletions(-) diff --git a/pamapi/src/main/java/com/pollex/pam/web/rest/ConsultantResource.java b/pamapi/src/main/java/com/pollex/pam/web/rest/ConsultantResource.java index 5a3cc86..7c8bc6f 100644 --- a/pamapi/src/main/java/com/pollex/pam/web/rest/ConsultantResource.java +++ b/pamapi/src/main/java/com/pollex/pam/web/rest/ConsultantResource.java @@ -1,7 +1,6 @@ package com.pollex.pam.web.rest; import com.pollex.pam.business.aop.logging.audit.AuditLoggingInject; -import com.pollex.pam.business.domain.Appointment; import com.pollex.pam.business.domain.Consultant; import com.pollex.pam.business.security.SecurityUtils; import com.pollex.pam.business.service.AppointmentService; @@ -18,7 +17,6 @@ import java.io.InputStream; import java.util.List; -import static com.pollex.pam.business.aop.logging.audit.AuditLoggingType.CONSULTANT_SEND_FILL_SATISFACTION_NOTICE; import static com.pollex.pam.business.aop.logging.audit.AuditLoggingType.EDIT_CONSULTANT_DATA; @RestController @@ -118,16 +116,5 @@ } Consultant editResult = consultantService.editConsultant(editDTO); return new ResponseEntity<>(editResult, HttpStatus.OK); - } - - @AuditLoggingInject(type = CONSULTANT_SEND_FILL_SATISFACTION_NOTICE) - @PostMapping("/sendSatisfactionToClient/{appointmentId}") - public ResponseEntity<Void> sendSatisfactionToClient(@PathVariable Long appointmentId) { - Appointment appointment = appointmentService.findById(appointmentId); - if(!appointment.getAgentNo().equals(SecurityUtils.getAgentNo())) { - throw new IllegalAccessError(); - } - consultantService.sendSatisfactionToClient(appointment); - return ResponseEntity.noContent().build(); } } -- Gitblit v1.8.0