Sfoglia il codice sorgente

오픈 api 통계 수정

huiwon.seo 4 anni fa
parent
commit
ef7426c60c

+ 34 - 9
src/main/webapp/WEB-INF/jsp/api/monitor/chart.jsp

@@ -211,7 +211,7 @@ function getExcel(){
                                                 </td>
                                             </tr>
                                             <tr>
-                                                <th>등록일</th>
+                                                <th>기간</th>
                                                 <td>
                                                     <div class="row">
                                                         <div class="col-lg-5 col-sm-5">
@@ -245,19 +245,44 @@ function getExcel(){
                         <div class="col-12">
                             <div class="card">
                                 <div class="card-body">
-                                    <div class="row mb-3">
-                                        <div class="col-6">
-<!--                                             전체 : -->
-                                            <fmt:formatNumber value="${total}" pattern="#,###" />
-                                        </div>
+                                    <div class="row mb-3 border-bottom pb-3">
+                                        <div class="col-6"></div>
                                         <div class="col-6 text-right">
                                             <button class="btn btn-success" data-toggle="modal" data-target="#excelDownMemo">Excel 다운로드</button>
-                                            <c:if test="${role._CREATE eq 'Y'}">
-                                                <button class="btn btn-primary" onclick="location.href='./new';">생활치료센터 신규 등록</button>
-                                            </c:if>
                                         </div>
                                     </div>
                                     
+                                    <h4 class="mt-4">※ 총계</h4>
+                                    <div class="table-responsive">
+                                        <table class="table table-striped text-center">
+                                            <colgroup>
+                                                <col style="width:20%;">
+                                                <col style="">
+                                            </colgroup>
+                                            <tbody>
+                                                <tr>
+                                                    <th>오픈 API 병원 건수</th>
+                                                    <td class="text-left">
+                                                        <fmt:formatNumber value="${state.total}" pattern="#,###" />
+                                                    </td>
+                                                </tr>
+                                                <tr>
+                                                    <th>오픈 API 호출 횟수</th>
+                                                    <td class="text-left">
+                                                        <fmt:formatNumber value="${state.apiCount}" pattern="#,###" />
+                                                    </td>
+                                                </tr>
+                                                <tr>
+                                                    <th>오픈 API 호출 건수</th>
+                                                    <td class="text-left">
+                                                        <fmt:formatNumber value="${state.numberOfCase}" pattern="#,###" />
+                                                    </td>
+                                                </tr>
+                                            </tbody>
+                                        </table>
+                                    </div>
+                                    
+                                    <h4 class="mt-5">※ 일별 통계</h4>
                                     <div id="chart-data" style="display:none;">
                                         <ul>
                                             <c:forEach var="c" items="${chart}">

+ 3 - 69
src/main/webapp/WEB-INF/jsp/api/monitor/state.jsp

@@ -181,77 +181,11 @@ function getExcel(){
                                         </div>
                                         <div class="col-6 text-right">
                                             <button class="btn btn-success" data-toggle="modal" data-target="#excelDownMemo">Excel 다운로드</button>
-                                            <c:if test="${role._CREATE eq 'Y'}">
-                                                <button class="btn btn-primary" onclick="location.href='./new';">생활치료센터 신규 등록</button>
-                                            </c:if>
-                                        </div>
-                                    </div>
-                                    <div class="table-responsive">
-                                        <table class="table table-striped text-center">
-                                            <colgroup>
-                                                <col style=" width: 5%; ">
-                                                <col style=" width: 14%; ">
-                                                <col style=" width: 6%; ">
-                                                <col style=" width: 12%; ">
-                                                <col style=" width: 8%; ">
-                                                <col style=" width: 8%; ">
-                                            </colgroup>
-                                            <thead>
-                                                <tr>
-                                                    <th rowspan="2">번호</th>
-                                                    <th rowspan="2">생활치료센터</th>
-                                                    <th rowspan="2">지역</th>
-                                                    <th rowspan="2">협력병원</th>
-                                                    <th rowspan="2">API 호출 횟수</th>
-                                                    <th rowspan="2">API 호출 건수</th>
-                                                </tr>
-                                            </thead>
-                                            <tbody>
-                                                <c:choose>
-                                                    <c:when test="${total > 0}">
-                                                        <c:forEach var="l" items="${item}" varStatus="lStatus">
-                                                            <c:set var="viewLink" value="./info?centerCode=${l.centerCode}" />
-                                                            <c:set var="pageNum" value="${ ( total - lStatus.index ) - ( (page - 1) * pageSize ) }" />
-                                                            
-                                                            <tr>
-                                                                <td><fmt:formatNumber value="${pageNum}" pattern="#,###" /></td>
-                                                                <td>
-                                                                    <c:out value="${l.centerName}" />
-                                                                </td>
-                                                                <td><c:out value="${l.locationName}" /></td>
-                                                                <td><c:out value="${l.cooperativeName}" /></td>
-                                                                <td><c:out value="${l.apiCount}"/></td>
-                                                                <td><c:out value="${l.numberOfCase}"/></td>
-                                                            </tr>
-                                                        </c:forEach>
-                                                    </c:when>
-                                                    <c:otherwise>
-                                                        <tr>
-                                                            <td colspan="13">오픈API 통계 정보가 없습니다.</td>
-                                                        </tr>
-                                                    </c:otherwise>
-                                                </c:choose>
-                                            </tbody>
-                                        </table>
-                                    </div>
-                                    <div class="row mt-5">
-                                        <div class="col-12 col-lg-6 mb-2">
-                                        </div>
-                                        <div class="col-12 col-lg-6 mb-2">
-                                            <jsp:include page="${data._INCLUDE}/paging.jsp" flush="true">
-                                                <jsp:param name="firstPageNo" value="${paging.firstPageNo}" />
-                                                <jsp:param name="prevPageNo"  value="${paging.prevPageNo}" />
-                                                <jsp:param name="startPageNo" value="${paging.startPageNo}" />
-                                                <jsp:param name="pageNo"      value="${paging.pageNo}" />
-                                                <jsp:param name="endPageNo"   value="${paging.endPageNo}" />
-                                                <jsp:param name="nextPageNo"  value="${paging.nextPageNo}" />
-                                                <jsp:param name="finalPageNo" value="${paging.finalPageNo}" />
-                                                <jsp:param name="preFix"      value="${paging.preFix}" />
-                                                <jsp:param name="url"         value="${paging.url}" />
-                                                <jsp:param name="total"       value="${paging.totalCount}" />
-                                            </jsp:include>
                                         </div>
                                     </div>
+                                    
+                                    
+                                    
                                 </div>
                             </div>
                         </div>