결재원복복
This commit is contained in:
@@ -370,4 +370,47 @@ public class ApprovalController {
|
||||
return "/ajax/ajaxResult";
|
||||
}
|
||||
|
||||
/**
|
||||
* Amaranth10 전자결재 SSO URL 생성 (B방식 - 팝업 직접 오픈)
|
||||
* 업무 리스트에서 결재상신 버튼 클릭 시 호출
|
||||
* @param request
|
||||
* @param paramMap targetType, targetObjId, approvalTitle, outProcessCode, formId
|
||||
* @return fullUrl이 포함된 JSON
|
||||
*/
|
||||
@RequestMapping("/approval/getAmaranthSsoUrl.do")
|
||||
public String getAmaranthSsoUrl(HttpServletRequest request, @RequestParam Map<String, Object> paramMap)throws Exception{
|
||||
String jsonResult = approvalService.getAmaranthSsoUrl(request, paramMap);
|
||||
request.setAttribute("RESULT", jsonResult);
|
||||
return "/ajax/ajaxResult";
|
||||
}
|
||||
|
||||
/**
|
||||
* Amaranth10 전자결재 콜백 API
|
||||
* 결재 이벤트(상신/진행/종결/반려/삭제 등) 발생 시 Amaranth10에서 호출
|
||||
* 결재연동설정의 상신~삭제 URL에 이 엔드포인트를 등록
|
||||
* @param request
|
||||
* @param paramMap processId, approkey, docId, docSts, userId, formId, docTitle 등
|
||||
* @return SUCCESS 응답 JSON
|
||||
*/
|
||||
@RequestMapping("/approval/amaranthApprovalCallback.do")
|
||||
public String amaranthApprovalCallback(HttpServletRequest request, @RequestParam Map<String, Object> paramMap)throws Exception{
|
||||
String jsonResult = approvalService.handleAmaranthApprovalCallback(paramMap);
|
||||
request.setAttribute("RESULT", jsonResult);
|
||||
return "/ajax/ajaxResult";
|
||||
}
|
||||
|
||||
/**
|
||||
* Amaranth10 전자결재 본문 조회 API (결재작성 시 호출)
|
||||
* 결재연동설정의 결재작성 URL에 이 엔드포인트를 등록
|
||||
* @param request
|
||||
* @param paramMap approkey, formId, docId, userId, empSeq 등
|
||||
* @return 제목/본문 JSON
|
||||
*/
|
||||
@RequestMapping("/approval/amaranthApprovalContents.do")
|
||||
public String amaranthApprovalContents(HttpServletRequest request, @RequestParam Map<String, Object> paramMap)throws Exception{
|
||||
String jsonResult = approvalService.getAmaranthApprovalContents(paramMap);
|
||||
request.setAttribute("RESULT", jsonResult);
|
||||
return "/ajax/ajaxResult";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user