2024-03-05 17:51 만족도 및 엑셀 다운로드 수정
This commit is contained in:
parent
4bbc0a4b1e
commit
966890d2a6
@ -5,6 +5,7 @@ public class VEEduSatisfactionExcelVO {
|
|||||||
//강사만족도 전용
|
//강사만족도 전용
|
||||||
private String eduHopeDt; //교육희망일
|
private String eduHopeDt; //교육희망일
|
||||||
private String scholInsttNm; //학교기관이름
|
private String scholInsttNm; //학교기관이름
|
||||||
|
private String insttNm; //단체이름
|
||||||
private String instrNm; //강사 이름
|
private String instrNm; //강사 이름
|
||||||
private String valss; //배점
|
private String valss; //배점
|
||||||
|
|
||||||
@ -216,5 +217,13 @@ public class VEEduSatisfactionExcelVO {
|
|||||||
public void setVeryDisSatisfied(String veryDisSatisfied) {
|
public void setVeryDisSatisfied(String veryDisSatisfied) {
|
||||||
this.veryDisSatisfied = veryDisSatisfied;
|
this.veryDisSatisfied = veryDisSatisfied;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getInsttNm() {
|
||||||
|
return insttNm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setInsttNm(String insttNm) {
|
||||||
|
this.insttNm = insttNm;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -41,6 +41,7 @@ import kcc.ve.cmm.VeConstants;
|
|||||||
import kcc.ve.cmm.VeInstrFeeMng;
|
import kcc.ve.cmm.VeInstrFeeMng;
|
||||||
import kcc.ve.instr.tngrVisitEdu.asgnmInfo.service.VEAsgnmMIXService;
|
import kcc.ve.instr.tngrVisitEdu.asgnmInfo.service.VEAsgnmMIXService;
|
||||||
import kcc.ve.instr.tngrVisitEdu.asgnmInfo.service.VEEduPnltyService;
|
import kcc.ve.instr.tngrVisitEdu.asgnmInfo.service.VEEduPnltyService;
|
||||||
|
import kcc.ve.instr.tngrVisitEdu.asgnmInfo.service.VEEduSatisfactionExcelVO;
|
||||||
import kcc.ve.instr.tngrVisitEdu.asgnmInfo.service.VEInstrAsgnmVO;
|
import kcc.ve.instr.tngrVisitEdu.asgnmInfo.service.VEInstrAsgnmVO;
|
||||||
import kcc.ve.instr.tngrVisitEdu.asgnmInfo.service.VEInstrFeeAcmdtVO;
|
import kcc.ve.instr.tngrVisitEdu.asgnmInfo.service.VEInstrFeeAcmdtVO;
|
||||||
import kcc.ve.instr.tngrVisitEdu.asgnmInfo.service.VEInstrFeeService;
|
import kcc.ve.instr.tngrVisitEdu.asgnmInfo.service.VEInstrFeeService;
|
||||||
@ -848,6 +849,68 @@ public class EduRsltMngAdultController {
|
|||||||
return modelAndView;
|
return modelAndView;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//강사만족도 excel download
|
||||||
|
@SuppressWarnings("rawtypes")
|
||||||
|
@RequestMapping(value = "eduRsltSatisfaction202401ExcelDownLoad.do")
|
||||||
|
public ModelAndView eduRsltSatisfaction202401ExcelDownLoad(@ModelAttribute("vEEduAplctVO") VEEduAplctVO vEEduAplctVO, ModelMap model) throws Exception {
|
||||||
|
|
||||||
|
try {
|
||||||
|
// 요청, 반려건
|
||||||
|
vEEduAplctVO.setSearchNotStatusArr(new String[]{"60"});
|
||||||
|
// 청소년
|
||||||
|
vEEduAplctVO.setLctrDivCd(VeConstants.LCTR_DIV_CD_20); //성인교육
|
||||||
|
vEEduAplctVO.setMode(VeConstants.MODE_EXCEL);
|
||||||
|
vEEduAplctVO.setSiteId("20"); //20-성인,10-청소년
|
||||||
|
vEEduAplctVO.setSiteIdCd("10"); //신청자 설문
|
||||||
|
vEEduAplctVO.setInstrDiv("20"); //20-성인강사
|
||||||
|
vEEduAplctVO.setOrderByQuery(" AA.eduHopeDt ASC, AA.insttNm ASC, cc.qestn_sn ASC ");
|
||||||
|
|
||||||
|
List<VEEduSatisfactionExcelVO> list = vEEduMIXService.selectSatisfaction202401ExcelList(vEEduAplctVO);
|
||||||
|
|
||||||
|
// 복호화
|
||||||
|
list = egovCryptoUtil.decryptVEEduSatisfactionExcelVOList(list);
|
||||||
|
|
||||||
|
System.out.println("out-list-2");
|
||||||
|
|
||||||
|
|
||||||
|
List<Object> excelData = new ArrayList<>();
|
||||||
|
excelData.addAll(list);
|
||||||
|
|
||||||
|
|
||||||
|
// 세팅값
|
||||||
|
String title = "성인 찾아가는 저작권 교육 강사만족도";
|
||||||
|
int[] width = {
|
||||||
|
4000, 4000, 4000, 4000, 4000
|
||||||
|
, 4000, 4000, 4000, 4000, 4000
|
||||||
|
}; // 너비
|
||||||
|
|
||||||
|
//33개 항목
|
||||||
|
String[] header = {
|
||||||
|
"교육일자", "기관(단체)명", "강사명", "순번", "질문"
|
||||||
|
, "매우만족", "만족", "보통", "불만족", "매우불만족"
|
||||||
|
};
|
||||||
|
|
||||||
|
String[] order = {
|
||||||
|
"EduHopeDt", "InsttNm", "InstrNm", "QestnSn", "QestnCn"
|
||||||
|
, "VerySatisfied", "Satisfied", "Neither", "DisSatisfied", "VeryDisSatisfied"
|
||||||
|
};
|
||||||
|
|
||||||
|
// 호출
|
||||||
|
SXSSFWorkbook workbook = ExcelUtil.makeSimpleFruitExcelWorkbook(excelData , header, order, width, title);
|
||||||
|
model.addAttribute("locale", Locale.KOREA);
|
||||||
|
model.addAttribute("workbook", workbook);
|
||||||
|
model.addAttribute("workbookName", title);
|
||||||
|
|
||||||
|
}catch(Exception ep) {
|
||||||
|
ep.getStackTrace();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
ModelAndView modelAndView = new ModelAndView();
|
||||||
|
modelAndView.setViewName("excelDownloadView");
|
||||||
|
modelAndView.addObject(model);
|
||||||
|
return modelAndView;
|
||||||
|
}
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
|
|||||||
@ -446,13 +446,14 @@ public class OprtnAplctMngController {
|
|||||||
excelData.addAll(list);
|
excelData.addAll(list);
|
||||||
// 세팅값
|
// 세팅값
|
||||||
String title = "저작권 체험교실 운영 신청 접수 목록";
|
String title = "저작권 체험교실 운영 신청 접수 목록";
|
||||||
int[] width = {1500, 2000, 2000, 4000, 4000, 4000, 4000, 4000, 2000, 10000
|
int[] width = {1500, 4000, 2000, 2000, 4000, 4000, 4000, 4000, 4000, 2000, 10000
|
||||||
, 3000, 3000, 4000, 4000, 4000, 4000, 4000, 4000, 8000
|
, 3000, 3000, 4000, 4000, 4000, 4000, 4000, 4000, 8000
|
||||||
, 4000, 3000, 4000
|
, 4000, 3000, 4000
|
||||||
}; // 너비
|
}; // 너비
|
||||||
|
|
||||||
String[] header = {
|
String[] header = {
|
||||||
"구분"
|
"구분"
|
||||||
|
,"신청일"
|
||||||
,"지역"
|
,"지역"
|
||||||
,"학교급"
|
,"학교급"
|
||||||
,"학교명"
|
,"학교명"
|
||||||
@ -482,6 +483,7 @@ String[] header = {
|
|||||||
|
|
||||||
String[] order = {
|
String[] order = {
|
||||||
"EduAplctOrd"
|
"EduAplctOrd"
|
||||||
|
,"SbmtPnttm"
|
||||||
,"EduSlctAreaCd"
|
,"EduSlctAreaCd"
|
||||||
,"ScholDivCd"
|
,"ScholDivCd"
|
||||||
,"ScholInsttNm"
|
,"ScholInsttNm"
|
||||||
|
|||||||
@ -6238,6 +6238,7 @@
|
|||||||
/* 임시.*NOT_SQL_LOG.* VEEduMIXDAO.selectOprtnExcelList */
|
/* 임시.*NOT_SQL_LOG.* VEEduMIXDAO.selectOprtnExcelList */
|
||||||
SELECT
|
SELECT
|
||||||
COUNT(1) OVER() AS totCnt
|
COUNT(1) OVER() AS totCnt
|
||||||
|
, TO_CHAR(A.sbmt_pnttm, 'YYYY.MM.DD') AS sbmtPnttm
|
||||||
, ROW_NUMBER() OVER(ORDER BY A.EDU_APLCT_ORD DESC) AS eduAplctOrd
|
, ROW_NUMBER() OVER(ORDER BY A.EDU_APLCT_ORD DESC) AS eduAplctOrd
|
||||||
, A.EDU_SLCT_AREA_CD AS eduSlctAreaCd
|
, A.EDU_SLCT_AREA_CD AS eduSlctAreaCd
|
||||||
, A.SCHOL_DIV_CD AS scholDivCd
|
, A.SCHOL_DIV_CD AS scholDivCd
|
||||||
@ -7368,7 +7369,29 @@ VALUES
|
|||||||
|
|
||||||
FROM LETTNQESTNRINFO a
|
FROM LETTNQESTNRINFO a
|
||||||
, LETTNQUSTNRQESITM b
|
, LETTNQUSTNRQESITM b
|
||||||
LEFT OUTER join LETTNQESTNRRSLTDetail c
|
LEFT OUTER join (
|
||||||
|
|
||||||
|
SELECT c02.*
|
||||||
|
FROM (
|
||||||
|
SELECT
|
||||||
|
c00.qustnr_tmplat_id
|
||||||
|
, c00.qestnr_id
|
||||||
|
, c00.qustnr_qesitm_id
|
||||||
|
, max(c00.qustnr_rslt_id) AS qustnr_rslt_id
|
||||||
|
FROM
|
||||||
|
LETTNQESTNRRSLTDetail c00
|
||||||
|
GROUP BY
|
||||||
|
c00.qustnr_tmplat_id
|
||||||
|
, c00.qestnr_id
|
||||||
|
, c00.qustnr_qesitm_id
|
||||||
|
)c01
|
||||||
|
, LETTNQESTNRRSLTDetail c02
|
||||||
|
WHERE c01.qustnr_tmplat_id=c02.qustnr_tmplat_id
|
||||||
|
AND c01.qestnr_id=c02.qestnr_id
|
||||||
|
AND c01.qustnr_qesitm_id=c02.qustnr_qesitm_id
|
||||||
|
AND c01.qustnr_rslt_id=c02.qustnr_rslt_id
|
||||||
|
|
||||||
|
) c
|
||||||
on(
|
on(
|
||||||
b.QUSTNR_TMPLAT_ID =c.QUSTNR_TMPLAT_ID
|
b.QUSTNR_TMPLAT_ID =c.QUSTNR_TMPLAT_ID
|
||||||
AND b.QESTNR_ID =c.QESTNR_ID
|
AND b.QESTNR_ID =c.QESTNR_ID
|
||||||
|
|||||||
@ -379,6 +379,12 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function fncSatisfaction202401ExcelDownLoad(){
|
||||||
|
var listForm = document.listForm ;
|
||||||
|
listForm.action = "<c:url value='/kccadr/oprtn/adultVisitEdu/eduRsltSatisfaction202401ExcelDownLoad.do'/>";
|
||||||
|
listForm.submit();
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
<title>신청관리</title>
|
<title>신청관리</title>
|
||||||
</head>
|
</head>
|
||||||
@ -564,6 +570,8 @@
|
|||||||
<div class="btn_left">
|
<div class="btn_left">
|
||||||
<!-- <button type="button" class="btn_type06">결과보고다운로드</button> -->
|
<!-- <button type="button" class="btn_type06">결과보고다운로드</button> -->
|
||||||
<button type="button" class="btn_type04">지급내역다운로드</button>
|
<button type="button" class="btn_type04">지급내역다운로드</button>
|
||||||
|
<br/><br/><button type="button" class="btn_type06" onclick="fncSatisfaction202401ExcelDownLoad();return false;">강사만족도다운로드</button>
|
||||||
|
(*교육일자 조건만 지원)
|
||||||
</div>
|
</div>
|
||||||
<div class="btn_center">
|
<div class="btn_center">
|
||||||
<!-- <button type="button" class="btn_type04" onclick="fncSndSms();return false;">결과보고제출요청</button> -->
|
<!-- <button type="button" class="btn_type04" onclick="fncSndSms();return false;">결과보고제출요청</button> -->
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user