이준호 전자조정시스템 고도화 커밋
- 결재 반려 시 반려자 이름 노출 추가
This commit is contained in:
parent
8473461a23
commit
66cb466c70
@ -123,5 +123,7 @@ public interface ApmService {
|
|||||||
void updtRpplPopPastAjax(RpplVO rpplVO);
|
void updtRpplPopPastAjax(RpplVO rpplVO);
|
||||||
|
|
||||||
Map<String, Object> findByResPonDentDIdAndFileList(RpplVO rpplVO);
|
Map<String, Object> findByResPonDentDIdAndFileList(RpplVO rpplVO);
|
||||||
|
|
||||||
|
String selectSbmtRejectApproval(String param) throws Exception;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -231,5 +231,9 @@ public class ApmDAO extends EgovAbstractDAO {
|
|||||||
public RpplVO findByResPonDentDId(RpplVO rpplVO) {
|
public RpplVO findByResPonDentDId(RpplVO rpplVO) {
|
||||||
return (RpplVO) select("Apm.findByResPonDentDId", rpplVO);
|
return (RpplVO) select("Apm.findByResPonDentDId", rpplVO);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String selectSbmtRejectApproval(String param) throws Exception {
|
||||||
|
return (String) select("apmDAO.selectSbmtRejectApproval", param);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -640,6 +640,13 @@ public class ApmServiceImpl implements ApmService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String selectSbmtRejectApproval(String param) throws Exception {
|
||||||
|
return apmDAO.selectSbmtRejectApproval(param);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @methodName : rpplDataEncrypt
|
* @methodName : rpplDataEncrypt
|
||||||
* @author : 이호영
|
* @author : 이호영
|
||||||
|
|||||||
@ -543,6 +543,27 @@ public class ApmController {
|
|||||||
//진행상태가 결재요청상태 일때 결재결재선 중 결재 진행중인 사람 불러오기
|
//진행상태가 결재요청상태 일때 결재결재선 중 결재 진행중인 사람 불러오기
|
||||||
model.addAttribute("sbmtStatus",apmService.selectSbmtIngStatus(cmmVO.getAdrSeq()));
|
model.addAttribute("sbmtStatus",apmService.selectSbmtIngStatus(cmmVO.getAdrSeq()));
|
||||||
|
|
||||||
|
//결재 반려 시 결재 상세에서 반려한 사람 표시
|
||||||
|
String result = apmService.selectSbmtRejectApproval(cmmVO.getAdrSeq());
|
||||||
|
String userNm = "";
|
||||||
|
|
||||||
|
if(result != null) {
|
||||||
|
/*
|
||||||
|
* splitResult[0] -> uniqueId
|
||||||
|
* splitResult[1] -> userNm
|
||||||
|
* splitResult[2] -> userTy
|
||||||
|
* */
|
||||||
|
String[] splitResult = result.split("§");
|
||||||
|
userNm = splitResult[1];
|
||||||
|
if("mem".equals(splitResult[2])) {
|
||||||
|
userNm = egovCryptoUtil.decrypt(splitResult[1]) + " 조정부장";
|
||||||
|
}else {
|
||||||
|
userNm = userNm + " 관리자";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
model.addAttribute("rejectApproval", userNm);
|
||||||
|
|
||||||
/*//adr_mgr_detail 첨부파일 불러오기
|
/*//adr_mgr_detail 첨부파일 불러오기
|
||||||
FileVO fileVO = new FileVO();
|
FileVO fileVO = new FileVO();
|
||||||
|
|
||||||
|
|||||||
@ -1301,5 +1301,32 @@
|
|||||||
|
|
||||||
</update>
|
</update>
|
||||||
|
|
||||||
|
<select id="apmDAO.selectSbmtRejectApproval" parameterClass="string" resultClass="string">
|
||||||
|
|
||||||
|
SELECT CONCAT(DECODE(T1.sbmt_yn1, 'N', T1.sbmt_id1, DECODE(T1.sbmt_yn2, 'N', T1.sbmt_id2, DECODE(T1.sbmt_yn3, 'N', T1.sbmt_id3))), '§' ,T3.userNm, '§', T3.userTy) AS rejectApproval
|
||||||
|
FROM adr_sbmt_mgr T1
|
||||||
|
LEFT OUTER JOIN adr_mgr_master T2
|
||||||
|
ON T1.adr_seq = T2.adr_seq
|
||||||
|
LEFT OUTER JOIN
|
||||||
|
(SELECT a.esntl_id AS esntlId,
|
||||||
|
a.user_nm AS userNm,
|
||||||
|
'admin' AS userTy
|
||||||
|
FROM lettnemplyrinfo a
|
||||||
|
|
||||||
|
UNION ALL
|
||||||
|
|
||||||
|
SELECT b.mem_seq AS esntlId,
|
||||||
|
b.mem_name AS userNm,
|
||||||
|
'mem' AS userTy
|
||||||
|
FROM adr_mem_mgr b
|
||||||
|
)
|
||||||
|
T3
|
||||||
|
ON T1.sbmt_id1 = T3.esntlId OR T1.sbmt_id2 = T3.esntlId OR T1.sbmt_id3 = T3.esntlId
|
||||||
|
WHERE T1.adr_seq = #param#
|
||||||
|
AND T1.sbmt_ty LIKE LEFT(T2.stat_cd, 4) + '%'
|
||||||
|
AND DECODE(T1.sbmt_yn1, 'N', T1.sbmt_id1, DECODE(T1.sbmt_yn2, 'N', T1.sbmt_id2, DECODE(T1.sbmt_yn3, 'N', T1.sbmt_id3))) = T3.esntlId
|
||||||
|
|
||||||
|
</select>
|
||||||
|
|
||||||
</sqlMap>
|
</sqlMap>
|
||||||
|
|
||||||
|
|||||||
@ -2041,6 +2041,9 @@ $(document).ready(function(){
|
|||||||
<c:if test="${not empty sbmtStatus}">
|
<c:if test="${not empty sbmtStatus}">
|
||||||
(<kc:code codeId="CC041" code="${sbmtStatus}"/> 결재 대기 중)
|
(<kc:code codeId="CC041" code="${sbmtStatus}"/> 결재 대기 중)
|
||||||
</c:if>
|
</c:if>
|
||||||
|
<c:if test="${not empty rejectApproval}">
|
||||||
|
(<c:out value="${rejectApproval}"/> 반려)
|
||||||
|
</c:if>
|
||||||
</p>
|
</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user