feat: 관리자 - 위원회관리> 진행현황 관리> 자세히 보기 - back-end
parent
e358d5acaa
commit
92b2b44d6e
|
|
@ -88,5 +88,43 @@ public class AdminCommitteeController extends BaseController {
|
|||
return resultVO;
|
||||
}
|
||||
|
||||
@Operation(
|
||||
summary = "'진행현황 관리' 페이지에서 코드명 눌렀을 때 보여질 상세 페이지 불러오는 API",
|
||||
description = "관리자 단에서 '위원회관리' > '진행현황 관리' 페이지에서 코드명 눌렀을 때 보여질 상세 페이지 목록 불러오는 API",
|
||||
tags = {"AdminCommitteeController"}
|
||||
)
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(responseCode = "200", description = "조회 성공")
|
||||
})
|
||||
@GetMapping(value = "/progress-status/{drftSeq}")
|
||||
public ResultVO getCommitteeProgressStatusDetail(
|
||||
HttpServletRequest request,
|
||||
@AuthenticationPrincipal LoginVO user,
|
||||
@PathVariable("drftSeq") Long drftSeq
|
||||
)
|
||||
throws Exception {
|
||||
|
||||
ResultVO resultVO = new ResultVO();
|
||||
|
||||
try {
|
||||
resultVO = adminCommitteeProgressStatusService.getCommitteeProgressStatusDetail(resultVO, request, user, drftSeq);
|
||||
} catch (Exception e) {
|
||||
resultVO.setResultCode(ResponseCode.FAILED.getCode());
|
||||
resultVO.setResultMessage(e.getMessage());
|
||||
}
|
||||
|
||||
|
||||
System.out.println(
|
||||
"\n--------------------------------------------------------------\n" +
|
||||
request.getRequestURI() + " OUT:" +
|
||||
"\n--------------------------------------------------------------\n" +
|
||||
"resultVO.toString():" + "\n" +
|
||||
resultVO.toString() + "\n" +
|
||||
"\n--------------------------------------------------------------\n"
|
||||
);
|
||||
|
||||
return resultVO;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -11,8 +11,9 @@ import javax.servlet.http.HttpServletRequest;
|
|||
public interface AdminCommitteeProgressStatusService {
|
||||
public ResultVO createCommitteeProgressStatus(ResultVO resultVO, HttpServletRequest request, LoginVO user, CreateCommitteeCodeManagementVO createCommitteeCodeManagementVO) throws Exception;
|
||||
public ResultVO getCommitteeProgressStatus(ResultVO resultVO, HttpServletRequest request, LoginVO user, Pageable pageable) throws Exception;
|
||||
public ResultVO setCommitteeProgressStatus(ResultVO resultVO, HttpServletRequest request, LoginVO user, SetCommitteeCodeManagementVO setCommitteeCodeManagementVO, Long cmtSeq) throws Exception;
|
||||
public ResultVO deleteCommitteeProgressStatus(ResultVO resultVO, HttpServletRequest request, LoginVO user, Long cmtSeq) throws Exception;
|
||||
public ResultVO setCommitteeProgressStatus(ResultVO resultVO, HttpServletRequest request, LoginVO user, SetCommitteeCodeManagementVO setCommitteeCodeManagementVO, Long drftSeq) throws Exception;
|
||||
public ResultVO deleteCommitteeProgressStatus(ResultVO resultVO, HttpServletRequest request, LoginVO user, Long drftSeq) throws Exception;
|
||||
|
||||
public ResultVO getCommitteeProgressStatusDetail(ResultVO resultVO, HttpServletRequest request, LoginVO user, Long drftSeq) throws Exception;
|
||||
|
||||
}
|
||||
|
|
@ -221,4 +221,28 @@ public class AdminCommitteeProgressStatusServiceImpl extends EgovAbstractService
|
|||
return resultVO;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ResultVO getCommitteeProgressStatusDetail(ResultVO resultVO, HttpServletRequest request, LoginVO user, Long drftSeq) throws Exception {
|
||||
System.out.println(
|
||||
"\n--------------------------------------------------------------\n" +
|
||||
request.getRequestURI() + " IN:" +
|
||||
"\n--------------------------------------------------------------\n" +
|
||||
"user.getEmail():" + "\n" +
|
||||
user.getEmail() + "\n" +
|
||||
"drftSeq:" + "\n" +
|
||||
drftSeq + "\n" +
|
||||
"\n--------------------------------------------------------------\n"
|
||||
);
|
||||
|
||||
Map<String, Object> item = tnCmtDraftRepository.getCommitteeProgressStatusDetail(drftSeq);
|
||||
Map<String, Object> dto = new HashMap<String, Object>();
|
||||
|
||||
dto.put("item", item);
|
||||
resultVO.setResult(dto);
|
||||
resultVO.setResultCode(ResponseCode.SUCCESS.getCode());
|
||||
resultVO.setResultMessage(ResponseCode.SUCCESS.getMessage());
|
||||
|
||||
return resultVO;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -208,5 +208,78 @@ public interface TnCmtDraftRepository extends JpaRepository<TnCmtDraft, Long> {
|
|||
@Param("offset") Integer offset
|
||||
);
|
||||
|
||||
@Query(value =
|
||||
"select " +
|
||||
" tcd.drft_seq as \"seq\", " +
|
||||
" tcd.doc_info_seq as \"categoryId\", " +
|
||||
" tcd.drft_dt as \"drftDatetime\", " +
|
||||
" tcd.drft_title as \"title\", " +
|
||||
" null as \"drftCharger\", " +
|
||||
" null as \"drftChargerEmail\", " +
|
||||
" null as \"drftChargerPhone\", " +
|
||||
" null as \"drftStatCode\", " +
|
||||
" tcd.drft_type_cd as \"drftTypeCode\", " +
|
||||
" tcd.cmt_seq as \"orgId\", " +
|
||||
" null as \"startDatetime\", " +
|
||||
" null as \"endDatetime\", " +
|
||||
" null as \"closeDatetime\", " +
|
||||
" tcd.frst_crt_dt as \"createDate\", " +
|
||||
" tcd.last_chg_dt as \"updateDate\", " +
|
||||
" null as \"createUserId\", " +
|
||||
" null as \"updateUserId\", " +
|
||||
" case when UPPER(tcd.use_yn) = 'Y' then 'N' else 'Y' end as \"delYn\", " +
|
||||
" tcd.drft_summery as \"drftSummery\", " +
|
||||
" tcd.drft_confe_charger as \"drftConfeCharger\", " +
|
||||
" tcd.drft_confe_pw as \"drftConfePw\", " +
|
||||
" tcd.drft_confe_room as \"drftConfeRoom\", " +
|
||||
" null as \"drftMeasurePlanFileSeq\", " +
|
||||
" null as \"drftMeasureResultFileSeq\", " +
|
||||
" null as \"drftMeasurePlanFileName\", " +
|
||||
" null as \"drftMeasureResultFileName\", " +
|
||||
" null as \"drftMeasurePreDataFileName\", " +
|
||||
" null as \"drftMeasurePreDataFileSeq\", " +
|
||||
" null as \"drftMeasurePreFormFileName\", " +
|
||||
" null as \"drftMeasurePreFormFileSeq\", " +
|
||||
" null as \"drftMeasurePartnerFileName\", " +
|
||||
" null as \"drftMeasurePartnerFileSeq\", " +
|
||||
" null as \"drftProcess\", " +
|
||||
" ( " +
|
||||
" select tci.item_nm " +
|
||||
" from tc_code_item tci " +
|
||||
" where tci.item_cd = tcd.drft_type_cd " +
|
||||
" limit 1 offset 0 " +
|
||||
" ) as \"drftTypeNm\", " +
|
||||
" concat(tdi.kcsc_cd, ' ', tdi.doc_nm) as \"categoryNm\", " +
|
||||
" tco.cmt_nm as \"orgNm\", " +
|
||||
" ( " +
|
||||
" select tci.item_nm " +
|
||||
" from tc_code_item tci " +
|
||||
" where tci.item_cd = tcd.drft_stat_cd " +
|
||||
" limit 1 offset 0 " +
|
||||
" ) as \"drftStatNm\", " +
|
||||
" null as \"categoryInfo\", " +
|
||||
" null as \"orgType\", " +
|
||||
" null as \"upOrgId\", " +
|
||||
" null as \"orgList\", " +
|
||||
" null as \"orgList1\", " +
|
||||
" null as \"orgList2\", " +
|
||||
" null as \"orgList3\", " +
|
||||
" null as \"depthOrgId\", " +
|
||||
" null as \"depthOrgId1\", " +
|
||||
" null as \"depthOrgId2\", " +
|
||||
" null as \"depthOrgId3\", " +
|
||||
" tdi.kcsc_cd as \"standardCode\", " +
|
||||
" to_char(tcd.frst_crt_dt, 'yyyy-mm-dd') as \"regDate\" " +
|
||||
"from tn_cmt_draft tcd " +
|
||||
"left join tn_document_info tdi on tcd.doc_info_seq = tdi.doc_info_seq " +
|
||||
"left join tn_document_group tdg on tdi.group_seq = tdg.group_seq " +
|
||||
"left join tn_cmt_org tco on tcd.cmt_seq = tco.cmt_seq " +
|
||||
"where tcd.drft_seq = :drftSeq " +
|
||||
"order by tcd.drft_seq desc ",
|
||||
nativeQuery = true)
|
||||
Map<String, Object> getCommitteeProgressStatusDetail(
|
||||
@Param("drftSeq") Long drftSeq
|
||||
);
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue