2025-09-26 11:02 강사관리 엑셀다운로드 오류 수정
This commit is contained in:
parent
9536c76214
commit
de768dd5c2
@ -1101,25 +1101,35 @@
|
|||||||
WHEN vid.POST IS NOT NULL THEN '(' || vid.POST || ')'
|
WHEN vid.POST IS NOT NULL THEN '(' || vid.POST || ')'
|
||||||
ELSE ''
|
ELSE ''
|
||||||
END || vid.ADDR || ' ' || vid.ADDR_DETAIL AS addr /* 주소 */
|
END || vid.ADDR || ' ' || vid.ADDR_DETAIL AS addr /* 주소 */
|
||||||
, aaa.yNowEduCnt
|
, aaa."yNowEduCnt"
|
||||||
, aaa.yNowMoneEduCnt
|
, aaa."yNowMoneEduCnt"
|
||||||
, aaa.yNowMtwoEduCnt
|
, aaa."yNowMtwoEduCnt"
|
||||||
, aaa.yNowMthreeEduCnt
|
, aaa."yNowMthreeEduCnt"
|
||||||
, aaa.yNowMfourEduCnt
|
, aaa."yNowMfourEduCnt"
|
||||||
, ddd.yNowStsfc
|
, ddd."yNowStsfc"
|
||||||
, ddd.yNowMoneStsfc
|
, ddd."yNowMoneStsfc"
|
||||||
, ddd.yNowMtwoStsfc
|
, ddd."yNowMtwoStsfc"
|
||||||
, ddd.yNowMthreeStsfc
|
, ddd."yNowMthreeStsfc"
|
||||||
, ddd.yNowMfourStsfc
|
, ddd."yNowMfourStsfc"
|
||||||
FROM
|
FROM
|
||||||
ve_instr_detail vid
|
ve_instr_detail vid
|
||||||
LEFT JOIN (
|
LEFT JOIN (
|
||||||
SELECT aa.cc
|
SELECT aa.cc
|
||||||
|
|
||||||
|
, SUM(CASE WHEN aa.bb = EXTRACT(YEAR FROM CURRENT_DATE)::text THEN aa.aa ELSE 0 END) AS "yNowEduCnt"
|
||||||
|
, SUM(CASE WHEN aa.bb = (EXTRACT(YEAR FROM CURRENT_DATE) - 1)::text THEN aa.aa ELSE 0 END) AS "yNowMoneEduCnt"
|
||||||
|
, SUM(CASE WHEN aa.bb = (EXTRACT(YEAR FROM CURRENT_DATE) - 2)::text THEN aa.aa ELSE 0 END) AS "yNowMtwoEduCnt"
|
||||||
|
, SUM(CASE WHEN aa.bb = (EXTRACT(YEAR FROM CURRENT_DATE) - 3)::text THEN aa.aa ELSE 0 END) AS "yNowMthreeEduCnt"
|
||||||
|
, SUM(CASE WHEN aa.bb = (EXTRACT(YEAR FROM CURRENT_DATE) - 4)::text THEN aa.aa ELSE 0 END) AS "yNowMfourEduCnt"
|
||||||
|
|
||||||
|
/*
|
||||||
, sum(decode(aa.bb,to_char(NOW(),'YYYY'),aa.aa,0)) AS yNowEduCnt
|
, sum(decode(aa.bb,to_char(NOW(),'YYYY'),aa.aa,0)) AS yNowEduCnt
|
||||||
, sum(decode(aa.bb,to_char(NOW(),'YYYY')-1,aa.aa,0)) AS yNowMoneEduCnt
|
, sum(decode(aa.bb,to_char(NOW(),'YYYY')-1,aa.aa,0)) AS yNowMoneEduCnt
|
||||||
, sum(decode(aa.bb,to_char(NOW(),'YYYY')-2,aa.aa,0)) AS yNowMtwoEduCnt
|
, sum(decode(aa.bb,to_char(NOW(),'YYYY')-2,aa.aa,0)) AS yNowMtwoEduCnt
|
||||||
, sum(decode(aa.bb,to_char(NOW(),'YYYY')-3,aa.aa,0)) AS yNowMthreeEduCnt
|
, sum(decode(aa.bb,to_char(NOW(),'YYYY')-3,aa.aa,0)) AS yNowMthreeEduCnt
|
||||||
, sum(decode(aa.bb,to_char(NOW(),'YYYY')-4,aa.aa,0)) AS yNowMfourEduCnt
|
, sum(decode(aa.bb,to_char(NOW(),'YYYY')-4,aa.aa,0)) AS yNowMfourEduCnt
|
||||||
|
*/
|
||||||
|
|
||||||
FROM (
|
FROM (
|
||||||
SELECT
|
SELECT
|
||||||
COUNT(EC.edu_chasi_ord) AS AA
|
COUNT(EC.edu_chasi_ord) AS AA
|
||||||
@ -1145,14 +1155,56 @@
|
|||||||
LEFT JOIN (
|
LEFT JOIN (
|
||||||
SELECT
|
SELECT
|
||||||
COUNT(*)
|
COUNT(*)
|
||||||
, ccc.userId
|
, ccc."userId"
|
||||||
|
|
||||||
|
, ROUND(SUM(CASE WHEN ccc.eduHopeDt = EXTRACT(YEAR FROM CURRENT_DATE)::text THEN ccc.ave ELSE 0 END)::numeric / COUNT(*), 1) AS "yNowStsfc"
|
||||||
|
, ROUND(SUM(CASE WHEN ccc.eduHopeDt = (EXTRACT(YEAR FROM CURRENT_DATE) - 1)::text THEN ccc.ave ELSE 0 END)::numeric / COUNT(*), 1) AS "yNowMoneStsfc"
|
||||||
|
, ROUND(SUM(CASE WHEN ccc.eduHopeDt = (EXTRACT(YEAR FROM CURRENT_DATE) - 2)::text THEN ccc.ave ELSE 0 END)::numeric / COUNT(*), 1) AS "yNowMtwoStsfc"
|
||||||
|
, ROUND(SUM(CASE WHEN ccc.eduHopeDt = (EXTRACT(YEAR FROM CURRENT_DATE) - 3)::text THEN ccc.ave ELSE 0 END)::numeric / COUNT(*), 1) AS "yNowMthreeStsfc"
|
||||||
|
, ROUND(SUM(CASE WHEN ccc.eduHopeDt = (EXTRACT(YEAR FROM CURRENT_DATE) - 4)::text THEN ccc.ave ELSE 0 END)::numeric / COUNT(*), 1) AS "yNowMfourStsfc"
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
, TRUNC(sum(decode(ccc.eduHopeDt, to_char(NOW(), 'YYYY'), ccc.ave, 0))/ COUNT(*), 1) AS yNowStsfc
|
, TRUNC(sum(decode(ccc.eduHopeDt, to_char(NOW(), 'YYYY'), ccc.ave, 0))/ COUNT(*), 1) AS yNowStsfc
|
||||||
, TRUNC(sum(decode(ccc.eduHopeDt,to_char(NOW(),'YYYY')-1,ccc.ave,0))/COUNT(*), 1) AS yNowMoneStsfc
|
, TRUNC(sum(decode(ccc.eduHopeDt,to_char(NOW(),'YYYY')-1,ccc.ave,0))/COUNT(*), 1) AS yNowMoneStsfc
|
||||||
, TRUNC(sum(decode(ccc.eduHopeDt,to_char(NOW(),'YYYY')-2,ccc.ave,0))/COUNT(*), 1) AS yNowMtwoStsfc
|
, TRUNC(sum(decode(ccc.eduHopeDt,to_char(NOW(),'YYYY')-2,ccc.ave,0))/COUNT(*), 1) AS yNowMtwoStsfc
|
||||||
, TRUNC(sum(decode(ccc.eduHopeDt,to_char(NOW(),'YYYY')-3,ccc.ave,0))/COUNT(*), 1) AS yNowMthreeStsfc
|
, TRUNC(sum(decode(ccc.eduHopeDt,to_char(NOW(),'YYYY')-3,ccc.ave,0))/COUNT(*), 1) AS yNowMthreeStsfc
|
||||||
, TRUNC(sum(decode(ccc.eduHopeDt,to_char(NOW(),'YYYY')-4,ccc.ave,0))/COUNT(*), 1) AS yNowMfourStsfc
|
, TRUNC(sum(decode(ccc.eduHopeDt,to_char(NOW(),'YYYY')-4,ccc.ave,0))/COUNT(*), 1) AS yNowMfourStsfc
|
||||||
|
*/
|
||||||
FROM
|
FROM
|
||||||
(
|
(
|
||||||
|
|
||||||
|
SELECT
|
||||||
|
COUNT(*) AS cnt,
|
||||||
|
ECI.USER_ID AS "userId",
|
||||||
|
SUBSTRING(CA.EDU_HOPE_DT FROM 1 FOR 4) AS eduHopeDt,
|
||||||
|
(
|
||||||
|
/*
|
||||||
|
SUM(aa.VERY_SATISFIED) * 100 +
|
||||||
|
SUM(aa.SATISFIED) * 80 +
|
||||||
|
SUM(aa.NEITHER) * 60 +
|
||||||
|
SUM(aa.DISSATISFIED) * 40 +
|
||||||
|
SUM(aa.VERY_DISSATISFIED) * 20
|
||||||
|
*/
|
||||||
|
|
||||||
|
SUM(CAST(aa.VERY_SATISFIED AS integer)) * 100 +
|
||||||
|
SUM(CAST(aa.SATISFIED AS integer)) * 80 +
|
||||||
|
SUM(CAST(aa.NEITHER AS integer)) * 60 +
|
||||||
|
SUM(CAST(aa.DISSATISFIED AS integer)) * 40 +
|
||||||
|
SUM(CAST(aa.VERY_DISSATISFIED AS integer)) * 20
|
||||||
|
|
||||||
|
)::float /
|
||||||
|
NULLIF(SUM(
|
||||||
|
|
||||||
|
CAST(aa.VERY_SATISFIED AS integer) + CAST(aa.SATISFIED AS integer) + CAST(aa.NEITHER AS integer) + CAST(aa.DISSATISFIED AS integer) + CAST(aa.VERY_DISSATISFIED AS integer)
|
||||||
|
|
||||||
|
/*
|
||||||
|
aa.VERY_SATISFIED + aa.SATISFIED + aa.NEITHER + aa.DISSATISFIED + aa.VERY_DISSATISFIED
|
||||||
|
*/
|
||||||
|
), 0) AS ave
|
||||||
|
FROM lettnqestnrrsltDetail aa
|
||||||
|
|
||||||
|
/*
|
||||||
SELECT
|
SELECT
|
||||||
count(*)
|
count(*)
|
||||||
, aa.EDU_CHASI_ORD
|
, aa.EDU_CHASI_ORD
|
||||||
@ -1163,6 +1215,7 @@
|
|||||||
/ (SUM(aa.VERY_SATISFIED) + SUM(aa.SATISFIED) + SUM(aa.NEITHER) + SUM(aa.DISSATISFIED) + SUM(aa.VERY_DISSATISFIED)) AS ave
|
/ (SUM(aa.VERY_SATISFIED) + SUM(aa.SATISFIED) + SUM(aa.NEITHER) + SUM(aa.DISSATISFIED) + SUM(aa.VERY_DISSATISFIED)) AS ave
|
||||||
from
|
from
|
||||||
lettnqestnrrsltDetail aa
|
lettnqestnrrsltDetail aa
|
||||||
|
*/
|
||||||
JOIN
|
JOIN
|
||||||
ve_edu_chasi_instr_asgnm ECI
|
ve_edu_chasi_instr_asgnm ECI
|
||||||
ON aa.EDU_CHASI_ORD =ECI.EDU_CHASI_ORD
|
ON aa.EDU_CHASI_ORD =ECI.EDU_CHASI_ORD
|
||||||
@ -1175,11 +1228,11 @@
|
|||||||
ECI.USER_ID
|
ECI.USER_ID
|
||||||
, aa.EDU_CHASI_ORD
|
, aa.EDU_CHASI_ORD
|
||||||
, aa.EDU_APLCT_ORD
|
, aa.EDU_APLCT_ORD
|
||||||
, SUBSTRING(CA.EDU_HOPE_DT, 0, 4)
|
, SUBSTRING(CA.EDU_HOPE_DT from 1 for 4)
|
||||||
) ccc
|
) ccc
|
||||||
GROUP BY ccc.userId
|
GROUP BY ccc."userId"
|
||||||
) ddd
|
) ddd
|
||||||
ON ddd.userId = vid.USER_ID
|
ON ddd."userId" = vid.USER_ID
|
||||||
WHERE vid.USE_YN ='Y'
|
WHERE vid.USE_YN ='Y'
|
||||||
and vid.INSTR_DIV =#instrDiv#
|
and vid.INSTR_DIV =#instrDiv#
|
||||||
AND vid.USER_ID IN
|
AND vid.USER_ID IN
|
||||||
|
|||||||
@ -333,7 +333,7 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="btn_right">
|
<div class="btn_right">
|
||||||
<button type="button" class="btn_type06" onclick="fncCmpltCrtfc(); return false;">강사선택출력</button>
|
<!-- <button type="button" class="btn_type06" onclick="fncCmpltCrtfc(); return false;">강사선택출력</button> -->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@ -352,7 +352,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<c:if test="${not empty listMerge }">
|
<c:if test="${not empty listMerge and false}">
|
||||||
<div class="tb_tit01">
|
<div class="tb_tit01">
|
||||||
<p>하위 병합 대상자</p>
|
<p>하위 병합 대상자</p>
|
||||||
</div>
|
</div>
|
||||||
@ -451,7 +451,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</c:if>
|
</c:if>
|
||||||
|
|
||||||
<c:if test="${not empty listTopMerge }">
|
<c:if test="${not empty listTopMerge and false}">
|
||||||
<div class="tb_tit01">
|
<div class="tb_tit01">
|
||||||
<p>상위 중복자</p>
|
<p>상위 중복자</p>
|
||||||
</div>
|
</div>
|
||||||
@ -551,7 +551,7 @@
|
|||||||
</c:if>
|
</c:if>
|
||||||
|
|
||||||
|
|
||||||
<c:if test="${empty info.prcsAplctPrdOrdCmplt }">
|
<c:if test="${empty info.prcsAplctPrdOrdCmplt and false}">
|
||||||
|
|
||||||
|
|
||||||
<div class="tb_tit01">
|
<div class="tb_tit01">
|
||||||
|
|||||||
@ -333,7 +333,7 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="btn_right">
|
<div class="btn_right">
|
||||||
<button type="button" class="btn_type06" onclick="fncCmpltCrtfc(); return false;">강사선택출력</button>
|
<!-- <button type="button" class="btn_type06" onclick="fncCmpltCrtfc(); return false;">강사선택출력</button> -->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@ -352,7 +352,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<c:if test="${not empty listMerge }">
|
<c:if test="${not empty listMerge and false}">
|
||||||
<div class="tb_tit01">
|
<div class="tb_tit01">
|
||||||
<p>하위 병합 대상자</p>
|
<p>하위 병합 대상자</p>
|
||||||
</div>
|
</div>
|
||||||
@ -451,7 +451,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</c:if>
|
</c:if>
|
||||||
|
|
||||||
<c:if test="${not empty listTopMerge }">
|
<c:if test="${not empty listTopMerge and false}">
|
||||||
<div class="tb_tit01">
|
<div class="tb_tit01">
|
||||||
<p>상위 중복자</p>
|
<p>상위 중복자</p>
|
||||||
</div>
|
</div>
|
||||||
@ -551,7 +551,7 @@
|
|||||||
</c:if>
|
</c:if>
|
||||||
|
|
||||||
|
|
||||||
<c:if test="${empty info.prcsAplctPrdOrdCmplt }">
|
<c:if test="${empty info.prcsAplctPrdOrdCmplt and false}">
|
||||||
|
|
||||||
|
|
||||||
<div class="tb_tit01">
|
<div class="tb_tit01">
|
||||||
|
|||||||
@ -333,7 +333,7 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="btn_right">
|
<div class="btn_right">
|
||||||
<button type="button" class="btn_type06" onclick="fncCmpltCrtfc(); return false;">강사선택출력</button>
|
<!-- <button type="button" class="btn_type06" onclick="fncCmpltCrtfc(); return false;">강사선택출력</button> -->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user