fix: 폐기보고 통계 상세 목록 추가 완료

dev
Jonguk. Lim 4 months ago
parent 355603c9f5
commit 7b8a70b0f2

@ -19,15 +19,15 @@
, IF(tpi.prtm_se_nm = '비마약류', 1, 0) AS 비마약류 , IF(tpi.prtm_se_nm = '비마약류', 1, 0) AS 비마약류
, IF(tpi.prtm_se_nm = '일반관리대상', 1, 0) AS 일반관리대상 , IF(tpi.prtm_se_nm = '일반관리대상', 1, 0) AS 일반관리대상
, IF(tpi.prtm_se_nm = '중점관리대상', 1, 0) AS 중점관리대상 , IF(tpi.prtm_se_nm = '중점관리대상', 1, 0) AS 중점관리대상
, IF(tpi.nrcd_se_nm = '대마', tdmd.dsuse_qy, '0') AS 대마qy , IF(tpi.nrcd_se_nm = '대마', tdmd.dsuse_qy, '0') AS 대마Qy
, IF(tpi.nrcd_se_nm = '마약', tdmd.dsuse_qy, '0') AS 마약qy , IF(tpi.nrcd_se_nm = '마약', tdmd.dsuse_qy, '0') AS 마약Qy
, IF(tpi.nrcd_se_nm = '한외마약', tdmd.dsuse_qy, '0') AS 한외마약qy , IF(tpi.nrcd_se_nm = '한외마약', tdmd.dsuse_qy, '0') AS 한외마약Qy
, IF(tpi.nrcd_se_nm = '향정', tdmd.dsuse_qy, '0') AS 향정qy , IF(tpi.nrcd_se_nm = '향정', tdmd.dsuse_qy, '0') AS 향정Qy
, IF(tpi.nrcd_se_nm = '향정제외', tdmd.dsuse_qy, '0') AS 향정제외qy , IF(tpi.nrcd_se_nm = '향정제외', tdmd.dsuse_qy, '0') AS 향정제외Qy
, IF(tpi.nrcd_se_nm IS NULL, tdmd.dsuse_qy, '0') AS 기타qy , IF(tpi.nrcd_se_nm IS NULL, tdmd.dsuse_qy, '0') AS 기타Qy
, IF(tpi.prtm_se_nm = '비마약류', tdmd.dsuse_qy, 0) AS 비마약류qy , IF(tpi.prtm_se_nm = '비마약류', tdmd.dsuse_qy, 0) AS 비마약류Qy
, IF(tpi.prtm_se_nm = '일반관리대상', tdmd.dsuse_qy, 0) AS 일반관리대상qy , IF(tpi.prtm_se_nm = '일반관리대상', tdmd.dsuse_qy, 0) AS 일반관리대상Qy
, IF(tpi.prtm_se_nm = '중점관리대상', tdmd.dsuse_qy, 0) AS 중점관리대상qy , IF(tpi.prtm_se_nm = '중점관리대상', tdmd.dsuse_qy, 0) AS 중점관리대상Qy
FROM tb_dsuse_mgt tdm FROM tb_dsuse_mgt tdm
JOIN tb_dsuse_mgt_dtl tdmd ON tdm.dscdmng_id = tdmd.dscdmng_id JOIN tb_dsuse_mgt_dtl tdmd ON tdm.dscdmng_id = tdmd.dscdmng_id
JOIN tb_prduct_info tpi ON tdmd.prduct_cd = tpi.prduct_cd JOIN tb_prduct_info tpi ON tdmd.prduct_cd = tpi.prduct_cd
@ -61,15 +61,15 @@
, SUM(tgt.비마약류) AS 비마약류 , SUM(tgt.비마약류) AS 비마약류
, SUM(tgt.일반관리대상) AS 일반관리대상 , SUM(tgt.일반관리대상) AS 일반관리대상
, SUM(tgt.중점관리대상) AS 중점관리대상 , SUM(tgt.중점관리대상) AS 중점관리대상
, SUM(tgt.대마qy) AS 대마qy , SUM(tgt.대마Qy) AS 대마Qy
, SUM(tgt.마약qy) AS 마약qy , SUM(tgt.마약Qy) AS 마약Qy
, SUM(tgt.한외마약qy) AS 한외마약qy , SUM(tgt.한외마약Qy) AS 한외마약Qy
, SUM(tgt.향정qy) AS 향정qy , SUM(tgt.향정Qy) AS 향정Qy
, SUM(tgt.향정제외qy) AS 향정제외qy , SUM(tgt.향정제외Qy) AS 향정제외Qy
, SUM(tgt.기타qy) AS 기타qy , SUM(tgt.기타Qy) AS 기타Qy
, SUM(tgt.비마약류qy) AS 비마약류qy , SUM(tgt.비마약류Qy) AS 비마약류Qy
, SUM(tgt.일반관리대상qy) AS 일반관리대상qy , SUM(tgt.일반관리대상Qy) AS 일반관리대상Qy
, SUM(tgt.중점관리대상qy) AS 중점관리대상qy , SUM(tgt.중점관리대상Qy) AS 중점관리대상Qy
FROM tgt FROM tgt
GROUP BY tgt.dept_cd GROUP BY tgt.dept_cd
UNION ALL UNION ALL
@ -85,15 +85,15 @@
, SUM(tgt.비마약류) AS 비마약류 , SUM(tgt.비마약류) AS 비마약류
, SUM(tgt.일반관리대상) AS 일반관리대상 , SUM(tgt.일반관리대상) AS 일반관리대상
, SUM(tgt.중점관리대상) AS 중점관리대상 , SUM(tgt.중점관리대상) AS 중점관리대상
, SUM(tgt.대마qy) AS 대마qy , SUM(tgt.대마Qy) AS 대마Qy
, SUM(tgt.마약qy) AS 마약qy , SUM(tgt.마약Qy) AS 마약Qy
, SUM(tgt.한외마약qy) AS 한외마약qy , SUM(tgt.한외마약Qy) AS 한외마약Qy
, SUM(tgt.향정qy) AS 향정qy , SUM(tgt.향정Qy) AS 향정Qy
, SUM(tgt.향정제외qy) AS 향정제외qy , SUM(tgt.향정제외Qy) AS 향정제외Qy
, SUM(tgt.기타qy) AS 기타qy , SUM(tgt.기타Qy) AS 기타Qy
, SUM(tgt.비마약류qy) AS 비마약류qy , SUM(tgt.비마약류Qy) AS 비마약류Qy
, SUM(tgt.일반관리대상qy) AS 일반관리대상qy , SUM(tgt.일반관리대상Qy) AS 일반관리대상Qy
, SUM(tgt.중점관리대상qy) AS 중점관리대상qy , SUM(tgt.중점관리대상Qy) AS 중점관리대상Qy
FROM tgt FROM tgt
) T ) T
LEFT JOIN tb_dept td LEFT JOIN tb_dept td

@ -146,6 +146,18 @@
, dataGetter: obj => obj.${infoPrefix}List , dataGetter: obj => obj.${infoPrefix}List
, appendData: true , appendData: true
, infoSize: "xl" , infoSize: "xl"
, formats: {
receiptCnt: numberFormat
, receiptQy: numberFormat
, rsltCnt: numberFormat
, rsltQy: numberFormat
, mappingCnt: numberFormat
, mappingQy: numberFormat
, cpltCnt: numberFormat
, cpltQy: numberFormat
, dsuseCnt: numberFormat
, dsuseQy: numberFormat
}
}); });
// $P.control 설정 // $P.control 설정
$P.control.defaultFetchSize = FETCH_XXS; // 1 페이지당 조회되는 자료 건수 index.jsp에서 확인 FETCH_XS = 30 $P.control.defaultFetchSize = FETCH_XXS; // 1 페이지당 조회되는 자료 건수 index.jsp에서 확인 FETCH_XS = 30

@ -150,6 +150,24 @@
, dataGetter: obj => obj.${infoPrefix}List , dataGetter: obj => obj.${infoPrefix}List
, appendData: true , appendData: true
, infoSize: "xl" , infoSize: "xl"
, formats: {
마약류취급의료업: numberFormat
, 마약류취급의료업Qy: numberFormat
, 마약류소매업: numberFormat
, 마약류소매업Qy: numberFormat
, 마약류도매업: numberFormat
, 마약류도매업Qy: numberFormat
, 마약류제조업: numberFormat
, 마약류제조업Qy: numberFormat
, 마약류수출입업: numberFormat
, 마약류수출입업Qy: numberFormat
, 마약류원료사용: numberFormat
, 마약류원료사용Qy: numberFormat
, 마약류취급학술연구: numberFormat
, 마약류취급학술연구Qy: numberFormat
, dsuseCnt: numberFormat
, dsuseQy: numberFormat
}
}); });
// $P.control 설정 // $P.control 설정
$P.control.defaultFetchSize = FETCH_XXS; // 1 페이지당 조회되는 자료 건수 index.jsp에서 확인 FETCH_XS = 30 $P.control.defaultFetchSize = FETCH_XXS; // 1 페이지당 조회되는 자료 건수 index.jsp에서 확인 FETCH_XS = 30

@ -145,6 +145,16 @@
, appendData: true , appendData: true
, infoSize: "xl" , infoSize: "xl"
, formats: { , formats: {
receiptCnt: numberFormat
, receiptQy: numberFormat
, rsltCnt: numberFormat
, rsltQy: numberFormat
, mappingCnt: numberFormat
, mappingQy: numberFormat
, cpltCnt: numberFormat
, cpltQy: numberFormat
, dsuseCnt: numberFormat
, dsuseQy: numberFormat
} }
}); });
// $P.control 설정 // $P.control 설정

@ -94,15 +94,15 @@
<template id="${infoPrefix}Row--${pageName}"> <template id="${infoPrefix}Row--${pageName}">
<tr data-key="{dept_cd}" class="{fw-bold-if-total}"> <tr data-key="{dept_cd}" class="{fw-bold-if-total}">
<td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{dept_nm}</td> <td class="cmn text-center" onclick="{onclick}" ondblclick="{ondblclick}">{dept_nm}</td>
<td class="text-end text-blue" onclick="{onclick}" ondblclick="{ondblclick}" data-div="NrcdSeNm" data-val="대마">{대마} / {대마qy}</td> <td class="text-end text-blue" onclick="{onclick}" ondblclick="{ondblclick}" data-div="NrcdSeNm" data-val="대마">{대마} / {대마Qy}</td>
<td class="text-end text-blue" onclick="{onclick}" ondblclick="{ondblclick}" data-div="NrcdSeNm" data-val="마약">{마약} / {마약qy}</td> <td class="text-end text-blue" onclick="{onclick}" ondblclick="{ondblclick}" data-div="NrcdSeNm" data-val="마약">{마약} / {마약Qy}</td>
<td class="text-end text-blue" onclick="{onclick}" ondblclick="{ondblclick}" data-div="NrcdSeNm" data-val="한외마약">{한외마약} / {한외마약qy}</td> <td class="text-end text-blue" onclick="{onclick}" ondblclick="{ondblclick}" data-div="NrcdSeNm" data-val="한외마약">{한외마약} / {한외마약Qy}</td>
<td class="text-end text-blue" onclick="{onclick}" ondblclick="{ondblclick}" data-div="NrcdSeNm" data-val="향정">{향정} / {향정qy}</td> <td class="text-end text-blue" onclick="{onclick}" ondblclick="{ondblclick}" data-div="NrcdSeNm" data-val="향정">{향정} / {향정Qy}</td>
<td class="text-end text-blue" onclick="{onclick}" ondblclick="{ondblclick}" data-div="NrcdSeNm" data-val="향정제외">{향정제외} / {향정제외qy}</td> <td class="text-end text-blue" onclick="{onclick}" ondblclick="{ondblclick}" data-div="NrcdSeNm" data-val="향정제외">{향정제외} / {향정제외Qy}</td>
<td class="text-end text-blue" onclick="{onclick}" ondblclick="{ondblclick}" data-div="NrcdSeNm" data-val="기타">{기타} / {기타qy}</td> <td class="text-end text-blue" onclick="{onclick}" ondblclick="{ondblclick}" data-div="NrcdSeNm" data-val="기타">{기타} / {기타Qy}</td>
<td class="text-end text-blue" onclick="{onclick}" ondblclick="{ondblclick}" data-div="prtmSeNm" data-val="비마약류">{비마약류} / {비마약류qy}</td> <td class="text-end text-blue" onclick="{onclick}" ondblclick="{ondblclick}" data-div="prtmSeNm" data-val="비마약류">{비마약류} / {비마약류Qy}</td>
<td class="text-end text-blue" onclick="{onclick}" ondblclick="{ondblclick}" data-div="prtmSeNm" data-val="일반관리대상">{일반관리대상} / {일반관리대상qy}</td> <td class="text-end text-blue" onclick="{onclick}" ondblclick="{ondblclick}" data-div="prtmSeNm" data-val="일반관리대상">{일반관리대상} / {일반관리대상Qy}</td>
<td class="text-end text-blue" onclick="{onclick}" ondblclick="{ondblclick}" data-div="prtmSeNm" data-val="중점관리대상">{중점관리대상} / {중점관리대상qy}</td> <td class="text-end text-blue" onclick="{onclick}" ondblclick="{ondblclick}" data-div="prtmSeNm" data-val="중점관리대상">{중점관리대상} / {중점관리대상Qy}</td>
<td class="text-end text-blue" onclick="{onclick}" ondblclick="{ondblclick}" data-div="" data-val="dsuseCnt">{dsuseCnt}</td> <td class="text-end text-blue" onclick="{onclick}" ondblclick="{ondblclick}" data-div="" data-val="dsuseCnt">{dsuseCnt}</td>
<td class="text-end text-blue" onclick="{onclick}" ondblclick="{ondblclick}" data-div="" data-val="dsuseQy">{dsuseQy}</td> <td class="text-end text-blue" onclick="{onclick}" ondblclick="{ondblclick}" data-div="" data-val="dsuseQy">{dsuseQy}</td>
</tr> </tr>
@ -157,8 +157,26 @@
, appendData: true , appendData: true
, infoSize: "xl" , infoSize: "xl"
, formats: { , formats: {
마약향정계: numberFormat 대마: numberFormat
, 마약향정계Qy: numberFormat , 대마Qy: numberFormat
, 마약: numberFormat
, 마약Qy: numberFormat
, 한외마약: numberFormat
, 한외마약Qy: numberFormat
, 향정: numberFormat
, 향정Qy: numberFormat
, 향정제외: numberFormat
, 향정제외Qy: numberFormat
, 기타: numberFormat
, 기타Qy: numberFormat
, 비마약류: numberFormat
, 비마약류Qy: numberFormat
, 일반관리대상: numberFormat
, 일반관리대상Qy: numberFormat
, 중점관리대상: numberFormat
, 중점관리대상Qy: numberFormat
, dsuseCnt: numberFormat
, dsuseQy: numberFormat
} }
}); });
// $P.control 설정 // $P.control 설정

Loading…
Cancel
Save