保誠-保戶業務員媒合平台
Jack
2021-11-10 61a592ba01d2ddb29b5c75df83ed0ffae288bf46
pamapi/src/main/java/com/pollex/pam/web/rest/ConsultantResource.java
@@ -48,9 +48,15 @@
        return new ResponseEntity<>(queryResult, HttpStatus.OK);
    }
    @GetMapping("/{agentNo}")
    public ResponseEntity<ConsultantDetailDTO> getConsultantDetail(@PathVariable String agentNo) {
    @GetMapping("/detail")
    public ResponseEntity<ConsultantDetailDTO> getConsultantDetail(@RequestParam("agentNo") String agentNo) {
        ConsultantDetailDTO result = consultantService.getConsultantDetail(agentNo);
        return new ResponseEntity<>(result, HttpStatus.OK);
    }
    @GetMapping("/getMyAppointment")
    public List<AppointmentCustomerViewDTO> getMyAppointment() {
       return consultantService.getMyAppointment();
    }
}