Parcourir la source

集安DEMO,代码上传

wang_xy il y a 2 ans
Parent
commit
8eb7ef7a65

+ 33 - 33
src/main/java/com/jeeplus/modules/web/IndexController.java

@@ -184,39 +184,39 @@ public class IndexController extends BaseController {
         List<EduLinks> linksList = eduLinksService.findPage(page, eduLinks).getList();
         model.addAttribute("linksList", linksList);
 
-        //注册人数统计
-        String sql = "select * from ( " +
-                "select count(*) as sums ,'宁江区' as area from sys_user where office_id like '1001%'  union all " +
-                "select count(*) as sums ,'前郭县' as area from sys_user where office_id like '1003%'   union all " +
-                "select count(*) as sums ,'乾安县' as area from sys_user where office_id like '1005%'   union all " +
-                "select count(*) as sums ,'扶余市' as area from sys_user where office_id like '1002%'   union all " +
-                "select count(*) as sums ,'长岭县' as area from sys_user where office_id like '1004%'  ) t " +
-                "order by t.sums desc ";
-
-        List<Map<String, Object>> countList = userMapper.execSelectSql(sql);
-        model.addAttribute("registerCount", countList);
-
-        //学习时长排行
-        sql = "select IFNULL(sums,0) as sums,area from (" +
-                " select sum(floor(record/60)) as sums,'宁江区' as area  from edu_study_record  where  office_id like '1001%' " +
-                " union all select sum(floor(record/60)) as sums,'前郭县' as area  from edu_study_record  where  office_id like '1003%'  " +
-                " union all select sum(floor(record/60)) as sums,'乾安县' as area  from edu_study_record  where  office_id like '1005%'  " +
-                " union all select sum(floor(record/60)) as sums,'扶余市' as area  from edu_study_record  where  office_id like '1002%'  " +
-                " union all select sum(floor(record/60)) as sums,'长岭县' as area  from edu_study_record  where  office_id like '1004%' " +
-                ") t order by t.sums desc";
-        List<Map<String, Object>> timeList = userMapper.execSelectSql(sql);
-        model.addAttribute("timeCount", timeList);
-
-        //学习分数排行
-        sql = "select IFNULL(sums,0)  as sums,area from ( " +
-                " select sum(score) as sums,'宁江区' as area  from edu_study_record  where office_id like '1001%' " +
-                " union all select sum(score)  as sums,'前郭县' as area  from edu_study_record where office_id like '1003%'  " +
-                " union all select sum(score)  as sums,'乾安县' as area  from edu_study_record where office_id like '1005%'  " +
-                " union all select sum(score)  as sums,'扶余市' as area  from edu_study_record where office_id like '1002%' " +
-                " union all select sum(score)  as sums,'长岭县' as area  from edu_study_record where office_id like '1004%' " +
-                ") t order by t.sums desc ";
-        List<Map<String, Object>> scoreList = userMapper.execSelectSql(sql);
-        model.addAttribute("scoreCount", scoreList);
+//        //注册人数统计
+//        String sql = "select * from ( " +
+//                "select count(*) as sums ,'宁江区' as area from sys_user where office_id like '1001%'  union all " +
+//                "select count(*) as sums ,'前郭县' as area from sys_user where office_id like '1003%'   union all " +
+//                "select count(*) as sums ,'乾安县' as area from sys_user where office_id like '1005%'   union all " +
+//                "select count(*) as sums ,'扶余市' as area from sys_user where office_id like '1002%'   union all " +
+//                "select count(*) as sums ,'长岭县' as area from sys_user where office_id like '1004%'  ) t " +
+//                "order by t.sums desc ";
+//
+//        List<Map<String, Object>> countList = userMapper.execSelectSql(sql);
+//        model.addAttribute("registerCount", countList);
+//
+//        //学习时长排行
+//        sql = "select IFNULL(sums,0) as sums,area from (" +
+//                " select sum(floor(record/60)) as sums,'宁江区' as area  from edu_study_record  where  office_id like '1001%' " +
+//                " union all select sum(floor(record/60)) as sums,'前郭县' as area  from edu_study_record  where  office_id like '1003%'  " +
+//                " union all select sum(floor(record/60)) as sums,'乾安县' as area  from edu_study_record  where  office_id like '1005%'  " +
+//                " union all select sum(floor(record/60)) as sums,'扶余市' as area  from edu_study_record  where  office_id like '1002%'  " +
+//                " union all select sum(floor(record/60)) as sums,'长岭县' as area  from edu_study_record  where  office_id like '1004%' " +
+//                ") t order by t.sums desc";
+//        List<Map<String, Object>> timeList = userMapper.execSelectSql(sql);
+//        model.addAttribute("timeCount", timeList);
+//
+//        //学习分数排行
+//        sql = "select IFNULL(sums,0)  as sums,area from ( " +
+//                " select sum(score) as sums,'宁江区' as area  from edu_study_record  where office_id like '1001%' " +
+//                " union all select sum(score)  as sums,'前郭县' as area  from edu_study_record where office_id like '1003%'  " +
+//                " union all select sum(score)  as sums,'乾安县' as area  from edu_study_record where office_id like '1005%'  " +
+//                " union all select sum(score)  as sums,'扶余市' as area  from edu_study_record where office_id like '1002%' " +
+//                " union all select sum(score)  as sums,'长岭县' as area  from edu_study_record where office_id like '1004%' " +
+//                ") t order by t.sums desc ";
+//        List<Map<String, Object>> scoreList = userMapper.execSelectSql(sql);
+//        model.addAttribute("scoreCount", scoreList);
 
         //右下角图片链接
         eduLinks.setTypes("2");

+ 2 - 2
src/main/resources/j2cache/j2cache.properties

@@ -88,9 +88,9 @@ redis.cluster_name = j2cache
 redis.namespace =
 
 ## connection 127.0.0.1
-redis.hosts = 127.0.0.1:6379
+redis.hosts = 127.0.0.1:16379
 redis.timeout = 2000
-redis.password =
+redis.password = edyj123456
 redis.database = 6
 
 ## redis pool properties

+ 0 - 1
src/main/resources/properties/jeeplus.properties

@@ -8,7 +8,6 @@ jdbc.driver=com.mysql.jdbc.Driver
 jdbc.url=jdbc:mysql://117.78.49.164:53306/leader_db_product?useUnicode=true&characterEncoding=utf-8
 jdbc.username=yanshi
 jdbc.password=yanshi123456
-#jdbc.password=root
 jdbc.testSql=SELECT 'x'
 jdbc.dual =
 

+ 3 - 3
src/main/webapp/WEB-INF/web.xml

@@ -5,7 +5,7 @@
     <param-name>contextConfigLocation</param-name>
     <param-value>classpath:spring/spring-context*.xml</param-value>
   </context-param>
-  <!-- 加载Log4J 配置文件  -->  
+  <!-- 加载Log4J 配置文件  -->
   <!-- webAppRootKey:值缺省为webapp.root,当tomcat下部署多个应用时(每个都用到了log4j),
 		每个应用的web.xml中都要配置该参数,该参数与Log4j.xml文件中的${webapp.root}
 		否则每个应用的webAppRootKey值都相同,就会引起冲突-->
@@ -80,7 +80,7 @@
     <servlet-name>springServlet</servlet-name>
     <url-pattern>/</url-pattern>
   </servlet-mapping>
-  
+
   <servlet>
     <servlet-name>DruidStatView</servlet-name>
     <servlet-class>com.alibaba.druid.support.http.StatViewServlet</servlet-class>
@@ -121,4 +121,4 @@
     <error-code>404</error-code>
     <location>/webpage/error/404.jsp</location>
   </error-page>
-</web-app>
+</web-app>

BIN
src/main/webapp/static/web/img/index_07.png


BIN
src/main/webapp/static/web/img/index_50.png


BIN
src/main/webapp/static/web/img/index_50.png-----


+ 13 - 13
src/main/webapp/webpage/modules/sys/login/sysLogin.jsp

@@ -24,7 +24,7 @@
 						errorLabelContainer: "#messageBox",
 						errorPlacement: function(error, element) {
 							error.appendTo($("#loginError").parent());
-						} 
+						}
 					});
 				});
 				// 如果在框架或在对话框中,则弹出提示并跳转到首页
@@ -33,14 +33,14 @@
 					top.location = "${ctx}";
 				}
 		</script>
-	
+
 	</head>
 
-	
+
 	<body>
-		
 
-		<div class="login-page">
+
+		<div class="login-page" style="display: none;">
 		<div class="row">
 			<div class="col-md-4 col-lg-4 col-md-offset-4 col-lg-offset-4">
 				<img  class="img-circle" src="${ctxStatic}/common/images/flat-avatar.png" class="user-avatar" />
@@ -49,11 +49,11 @@
 				<form id="loginForm" role="form" action="${ctx}/login" method="post">
 					<div class="form-content">
 						<div class="form-group">
-							<input type="text" id="username" name="username" class="form-control input-underline input-lg required"  placeholder="用户名">
+							<input type="text" value="sydjys" id="username" name="username" class="form-control input-underline input-lg required"  placeholder="用户名">
 						</div>
 
 						<div class="form-group">
-							<input type="password" id="password" name="password"  class="form-control input-underline input-lg required" placeholder="密码">
+							<input type="password" value="sydj2139070 " id="password" name="password"  class="form-control input-underline input-lg required" placeholder="密码">
 						</div>
 						<c:if test="${isValidateCodeLogin}">
 						<div class="form-group  text-muted">
@@ -69,18 +69,18 @@
 					<input type="submit" class="btn btn-white btn-outline btn-lg btn-rounded"  value="登录">
 					&nbsp;
 				</form>
-			</div>			
+			</div>
 		</div>
 	</div>
-	
+
 	<script>
 
-		
+
 $(function(){
 		$('.theme-picker').click(function() {
 			changeTheme($(this).attr('data-theme'));
-		}); 	
-	
+		});
+    $("#dl").click();
 });
 
 function changeTheme(theme) {
@@ -117,4 +117,4 @@ li.color-picker i {
 }
 </style>
 </body>
-</html>
+</html>

+ 1 - 1
src/main/webapp/webpage/modules/web/footer.jsp

@@ -10,7 +10,7 @@
         <a href="${ctxF}/videonews?typeId=1">榜样风采</a>&nbsp;&nbsp;|&nbsp;
         <a href="${ctxF}/videonews?typeId=2">远教直播</a>
     </div>
-    <div class="footer_bottom">中国共产党内松原市委员会组织部主办&nbsp;松原市党员教育中心承办
+    <div class="footer_bottom">中国共产党内集安市委员会组织部主办&nbsp;集安市党员教育中心承办
         <p>备案:吉ICP备00000号&nbsp;0438-000000</p>
     </div>
 </div>

+ 48 - 41
src/main/webapp/webpage/modules/web/index.jsp

@@ -294,9 +294,9 @@
 </div>
 <div class="new w">
     <div class="ad1 ">
-        <a href="http://47.94.164.55:8080/talent/talent_web" target="_blank">
-            <img src="${ctxStaticWeb}/images/rc_index_18.jpg" width="1200" height="82"  alt=""/>
-        </a>
+        <%--<a href="http://47.94.164.55:8080/talent/talent_web" target="_blank">--%>
+            <%--<img src="${ctxStaticWeb}/images/rc_index_18.jpg" width="1200" height="82"  alt=""/>--%>
+        <%--</a>--%>
     </div>
 </div>
 <!--最新视频-->
@@ -388,7 +388,7 @@
 </div>
 <div class="new w">
     <div class="ztzl">
-        <h2><a  href="${ctxF}/columnNews">更多</a></h2>videonews
+        <h2><a  href="${ctxF}/columnNews">更多</a></h2>
         <ul>
             <c:forEach items="${columnList}" var="obj" begin="0" end="2" >
             <li>
@@ -479,52 +479,59 @@
                             <li class="hui">
                                 <a href="javascript:void(0);" class="a2">学习时长排行&nbsp;</a>
                             </li>
-                           <%-- <li class="hui">
-                                <a href="javascript:void(0);" class="a3">学习分数排行</a>
-                            </li>--%>
                         </ul>
                     </div>
                     <div class="core_showcase_cont2" id="itme3">
 
                         <ul class=" phang">
-                            <c:forEach items="${registerCount}" var="obj"  varStatus="status">
-                                <c:if test="${status.index==0}">
-                                    <li><i class="red">01</i><strong>${obj.area}</strong><span >${obj.sums}人</span></li>
-                                </c:if>
-                                <c:if test="${status.index==1}">
-                                    <li><i class="yellow">02</i><strong>${obj.area}</strong><span >${obj.sums}人</span></li>
-                                </c:if>
-                                <c:if test="${status.index==2}">
-                                    <li><i class="yellow_l">03</i><strong>${obj.area}</strong><span >${obj.sums}人</span></li>
-                                </c:if>
-                                <c:if test="${status.index==3}">
-                                    <li><i class="grey">04</i><strong>${obj.area}</strong><span >${obj.sums}人</span></li>
-                                </c:if>
-                                <c:if test="${status.index==4}">
-                                    <li><i class="grey">05</i><strong>${obj.area}</strong><span >${obj.sums}人</span></li>
-                                </c:if>
-                            </c:forEach>
+                            <%--<c:forEach items="${registerCount}" var="obj"  varStatus="status">--%>
+                                <%--<c:if test="${status.index==0}">--%>
+                                    <%--<li><i class="red">01</i><strong>${obj.area}</strong><span >${obj.sums}人</span></li>--%>
+                                <%--</c:if>--%>
+                                <%--<c:if test="${status.index==1}">--%>
+                                    <%--<li><i class="yellow">02</i><strong>${obj.area}</strong><span >${obj.sums}人</span></li>--%>
+                                <%--</c:if>--%>
+                                <%--<c:if test="${status.index==2}">--%>
+                                    <%--<li><i class="yellow_l">03</i><strong>${obj.area}</strong><span >${obj.sums}人</span></li>--%>
+                                <%--</c:if>--%>
+                                <%--<c:if test="${status.index==3}">--%>
+                                    <%--<li><i class="grey">04</i><strong>${obj.area}</strong><span >${obj.sums}人</span></li>--%>
+                                <%--</c:if>--%>
+                                <%--<c:if test="${status.index==4}">--%>
+                                    <%--<li><i class="grey">05</i><strong>${obj.area}</strong><span >${obj.sums}人</span></li>--%>
+                                <%--</c:if>--%>
+                            <%--</c:forEach>--%>
+                                <li><i class="red">01</i><strong>集安市</strong><span >576人</span></li>
+                                <li><i class="yellow">02</i><strong>云峰湖旅游度假区</strong><span >512人</span></li>
+                                <li><i class="yellow_l">03</i><strong>大路镇</strong><span >388人</span></li>
+                                <li><i class="grey">04</i><strong>财源镇</strong><span >292人</span></li>
+                                <li><i class="grey">05</i><strong>头道镇</strong><span >168人</span></li>
                         </ul>
                     </div>
                     <div class="core_showcase_cont2" id="itme4" style="display: none;">
                         <ul class=" phang">
-                            <c:forEach items="${timeCount}" var="obj"  varStatus="status">
-                                <c:if test="${status.index==0}">
-                                    <li><i class="red">01</i><strong>${obj.area}</strong><span >${obj.sums}分钟</span></li>
-                                </c:if>
-                                <c:if test="${status.index==1}">
-                                    <li><i class="yellow">02</i><strong>${obj.area}</strong><span >${obj.sums}分钟</span></li>
-                                </c:if>
-                                <c:if test="${status.index==2}">
-                                    <li><i class="yellow_l">03</i><strong>${obj.area}</strong><span >${obj.sums}分钟</span></li>
-                                </c:if>
-                                <c:if test="${status.index==3}">
-                                    <li><i class="grey">04</i><strong>${obj.area}</strong><span >${obj.sums}分钟</span></li>
-                                </c:if>
-                                <c:if test="${status.index==4}">
-                                    <li><i class="grey">05</i><strong>${obj.area}</strong><span >${obj.sums}分钟</span></li>
-                                </c:if>
-                            </c:forEach>
+                            <%--<c:forEach items="${timeCount}" var="obj"  varStatus="status">--%>
+                                <%--<c:if test="${status.index==0}">--%>
+                                    <%--<li><i class="red">01</i><strong>${obj.area}</strong><span >${obj.sums}分钟</span></li>--%>
+                                <%--</c:if>--%>
+                                <%--<c:if test="${status.index==1}">--%>
+                                    <%--<li><i class="yellow">02</i><strong>${obj.area}</strong><span >${obj.sums}分钟</span></li>--%>
+                                <%--</c:if>--%>
+                                <%--<c:if test="${status.index==2}">--%>
+                                    <%--<li><i class="yellow_l">03</i><strong>${obj.area}</strong><span >${obj.sums}分钟</span></li>--%>
+                                <%--</c:if>--%>
+                                <%--<c:if test="${status.index==3}">--%>
+                                    <%--<li><i class="grey">04</i><strong>${obj.area}</strong><span >${obj.sums}分钟</span></li>--%>
+                                <%--</c:if>--%>
+                                <%--<c:if test="${status.index==4}">--%>
+                                    <%--<li><i class="grey">05</i><strong>${obj.area}</strong><span >${obj.sums}分钟</span></li>--%>
+                                <%--</c:if>--%>
+                            <%--</c:forEach>--%>
+                                <li><i class="red">01</i><strong>集安市</strong><span >87分钟</span></li>
+                                <li><i class="yellow">02</i><strong>云峰湖旅游度假区</strong><span >20分钟</span></li>
+                                <li><i class="yellow_l">03</i><strong>大路镇</strong><span >0分钟</span></li>
+                                <li><i class="grey">04</i><strong>财源镇</strong><span >0分钟</span></li>
+                                <li><i class="grey">05</i><strong>头道镇</strong><span >0分钟</span></li>
                         </ul>
                     </div>
                    <%-- <div class="core_showcase_cont2" id="itme5" style="display: none;">