zj
2025-06-30 414555cfbb72c02ebc07ca164a7ff0d0f592de13
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
<%@ page language="java" pageEncoding="utf-8" isELIgnored="false"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<jsp:useBean id="security" class="security.web.BaseSecurityAction" scope="page" />
 
<%@ include file="include/pagetop.jsp"%>
 
<!DOCTYPE html>
<html>
 
<head>
<%@ include file="include/head.jsp"%>
</head>
 
<body>
 
    <%@ include file="include/loading.jsp"%>
 
    <!-- //////////////////////////////////////////////////////////////////////////// -->
    <!-- START CONTENT -->
    <div class="ifr-dody">
 
        <!-- //////////////////////////////////////////////////////////////////////////// -->
        <!-- START CONTAINER -->
        <div class="ifr-con">
            <h3>综合查询</h3>
            <c:if test="${security.isRolesAccessible('ROLE_ROOT,ROLE_ADMIN')}">
            <div class="col-md-12 col-lg-12">
                <h4>今日数据统计(00:00-24:00)</h4>
                <ul class="topstats clearfix">
 
                    <li class="arrow"></li>
                    <li class="col-xs-6 col-lg-2">
                        <span class="title"><i class="fa fa-jpy"></i>USDT账户余额</span>
                        <h3 class="color-up"> <fmt:formatNumber value="${statistics.sum_usdt_amount}" pattern="#0.00" /> </h3>
                    </li>
 
                    <li class="col-xs-6 col-lg-2">
                        <span class="title"><i class="fa fa-clock-o"></i>充值金额</span>
                        <h3> <fmt:formatNumber value="${statistics.recharge}" /> </h3>
                    </li>
 
                    <li class="col-xs-6 col-lg-2">
                        <span class="title"><i class="fa fa-clock-o"></i>提现金额</span>
                        <h3> <fmt:formatNumber value="${statistics.withdraw}" /> </h3>
                    </li>
 
                    <li class="col-xs-6 col-lg-2">
                        <span class="title"><i class="fa fa-clock-o"></i>充提差额</span>
                        <h3> <fmt:formatNumber value="${statistics.balance_amount}" /> </h3>
                    </li>
 
                    <li class="col-xs-6 col-lg-2">
                        <span class="title"><i class="fa fa-line-chart"></i>收益</span> 
                        <c:if test="${statistics.totle_income >= 0}">
                            <h3 class="color-up"> <fmt:formatNumber value="${statistics.totle_income}" pattern="#0.00" /> </h3>
                        </c:if> 
                        <c:if test="${statistics.totle_income < 0}">
                            <h3 class="color-down"> <fmt:formatNumber value="${statistics.totle_income}" pattern="#0.00" /> </h3>
                        </c:if>
                    </li>
 
                    <li class="col-xs-6 col-lg-2">
                        <span class="title"><i class="fa fa-group"></i>总用户数/今日新增/今日充值人数</span>
                        <h3> <span>${statistics.all_user_count}/${statistics.today_user_count}/${statistics.today_recharge_user_count}</span> </h3>
                    </li>
                    
                </ul>
            </div>
            </c:if>
 
            <c:if test="${security.isRolesAccessible('ROLE_ROOT,ROLE_ADMIN')
                         || security.isResourceListAccessible('OP_EXCHANGE_RECHARGE_CHECK,OP_EXCHANGE_RECHARGE_OPERATE,OP_EXCHANGE_WITHDRAW_CHECK,OP_EXCHANGE_WITHDRAW_OPERATE,OP_USER_KYC_CHECK,OP_USER_KYC_OPERATE,OP_USER_KYC_HIGH_LEVEL_CHECK,OP_USER_KYC_HIGH_LEVEL_OPERATE')}">
                                 
                <div class="col-md-12">
                    <h4>待处理提醒</h4>
                    <ul class="panel quick-menu clearfix">
                                        
                        <c:if test="${security.isRolesAccessible('ROLE_ROOT,ROLE_ADMIN')
                                 || security.isResourceAccessible('OP_EXCHANGE_RECHARGE_CHECK')
                                 || security.isResourceAccessible('OP_EXCHANGE_RECHARGE_OPERATE')}">
                                 
                            <li class="col-sm-3">
                                <a href="<%=basePath%>normal/adminRechargeBlockchainOrderAction!list.action">
                                    <i class="fa fa-qrcode"></i> 充值订单 
                                    <span class="recharge_blockchain_order_untreated_cout badge label-danger" style="display: none">0</span>
                                </a>
                            </li>
                            
                        </c:if>
                        
                        <c:if test="${security.isRolesAccessible('ROLE_ROOT,ROLE_ADMIN')
                                 || security.isResourceAccessible('OP_EXCHANGE_WITHDRAW_CHECK')
                                 || security.isResourceAccessible('OP_EXCHANGE_WITHDRAW_OPERATE')}">
                                 
                            <li class="col-sm-3">
                                <a href="<%=basePath%>normal/adminWithdrawAction!list.action">
                                    <i class="fa fa-credit-card"></i> 提现订单 
                                    <span class="withdraw_order_untreated_cout badge label-danger" style="display: none">0</span>
                                </a>
                            </li>
                            
                        </c:if>
                        
                        <c:if test="${security.isRolesAccessible('ROLE_ROOT,ROLE_ADMIN')
                                 || security.isResourceAccessible('OP_USER_KYC_CHECK')
                                 || security.isResourceAccessible('OP_USER_KYC_OPERATE')}">
                                 
                            <li class="col-sm-3">
                                <a href="<%=basePath%>normal/adminKycAction!list.action"> 
                                    <i class="fa fa-star-o"></i> 用户基础认证 
                                    <span class="kyc_untreated_cout badge label-danger" style="display: none">0</span>
                                </a>
                            </li>
                            
                        </c:if>
                        
                        <c:if test="${security.isRolesAccessible('ROLE_ROOT,ROLE_ADMIN')
                                 || security.isResourceAccessible('OP_USER_KYC_HIGH_LEVEL_CHECK')
                                 || security.isResourceAccessible('OP_USER_KYC_HIGH_LEVEL_OPERATE')}">
                                 
                            <li class="col-sm-3">
                                <a href="<%=basePath%>normal/adminKycHighLevelAction!list.action">
                                    <i class="fa fa-star"></i> 用户高级认证 
                                    <span class="kyc_high_level_untreated_cout badge label-danger" style="display: none">0</span>
                                </a>
                            </li>
                            
                        </c:if>
                        
                    </ul>
                </div>
                
            </c:if>
 
        </div>
        <!-- END CONTAINER -->
        <!-- //////////////////////////////////////////////////////////////////////////// -->
 
        <%@ include file="include/footer.jsp"%>
 
    </div>
    <!-- End Content -->
    <!-- //////////////////////////////////////////////////////////////////////////// -->
 
    <%@ include file="include/js.jsp"%>
    
    <script type="text/javascript">
 
        setInterval(function() {
            var data = {};
            goSumTipsAjaxUrl('<%=basePath%>normal/adminTipAction!getTips.action', data);
        }, 5000);
        
        function goSumTipsAjaxUrl(targetUrl, data) {
            $.ajax({
                url : targetUrl,
                data : data,
                type : 'get',
                dataType : "json",
                success : function(data) {
                    var temp = data;
                    initTipCountHandle();
                    // 遍历tip
                    if (temp.tipList.length > 0) {
                        temp.tipList.forEach(function(ele) {
                            countHandle($(ele.tip_dom_name), ele.tip_content_sum);
                        });
                    }
                }
            });
        }
        
        function initTipCountHandle() {
            // 业务
//             countHandle($(".automonitor_approve_order_untreated_cout"), 0);
//             countHandle($(".automonitor_threshold_order_untreated_cout"), 0);
//             countHandle($(".contract_order_untreated_cout"), 0);
//             countHandle($(".futures_order_untreated_cout"), 0);
//             countHandle($(".automonitor_pledge_galaxy_order_untreated_cout"), 0);
            // 用户
            countHandle($(".kyc_untreated_cout"), 0);
            countHandle($(".kyc_high_level_untreated_cout"), 0);
//             countHandle($(".user_safeword_apply_untreated_cout"), 0);
            // 财务
//             countHandle($(".automonitor_withdraw_order_untreated_cout"),0);
            countHandle($(".withdraw_order_untreated_cout"), 0);
            countHandle($(".recharge_blockchain_order_untreated_cout"), 0);
        }
        
        function countHandle(ele, count) {
//             if (ele == ".kyc_untreated_cout" 
//                 || ele == ".kyc_high_level_untreated_cout" 
//                 || ele == ".withdraw_order_untreated_cout" 
//                 || ele == ".recharge_blockchain_order_untreated_cout") {
                if (count == 0 || isNaN(count)) {
                    $(ele).hide();
                } else {
                    $(ele).show();
                    $(ele).html(count)
                }
//             }
        }
    
    </script>
 
</body>
 
</html>