From 74e563da7fa6886449fd2be5933e2d4ca5c85f48 Mon Sep 17 00:00:00 2001
From: jack <jack.su@pollex.com.tw>
Date: 星期二, 12 九月 2023 11:25:52 +0800
Subject: [PATCH] [UPDATE] 解決弱點Se: Incorrect definition of Serializable class [UPDATE] 解決弱點Information exposure to log file [UPDATE] 解決弱點Use of hard-coded password

---
 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