提交 20e22f23 作者: ZhangJingKun

1

上级 c17abf1b
server:
port: 9393
servlet:
context-path: /collection
spring:
datasource:
url: jdbc:mysql://114.115.159.144:3306/caiji?useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai&useSSL=false&allowPublicKeyRetrieval=true
username: caiji
password: zzsn9988
redis:
database: 0
host: 114.116.90.53
password: clbzzsn
port: 6380
mybatis-plus:
mapper-locations: mapper/*.xml
configuration:
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
map-underscore-to-camel-case: true
file:
info-source-path: E:\projects\code01\collection\src\main\resources\info_source.txt
IN-20240810-0020
IN-20240807-0083
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<configuration debug="false">
<!--定义日志文件的存储地址 -->
<property name="LOG_HOME" value="../clbLogs/collection" />
<!--<property name="COLOR_PATTERN" value="%black(%contextName-) %red(%d{yyyy-MM-dd HH:mm:ss}) %green([%thread]) %highlight(%-5level) %boldMagenta( %replace(%caller{1}){'\t|Caller.{1}0|\r\n', ''})- %gray(%msg%xEx%n)" />-->
<!-- 控制台输出 -->
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
<!--格式化输出:%d表示日期,%thread表示线程名,%-5level:级别从左显示5个字符宽度%msg:日志消息,%n是换行符
<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50}:%L - %msg%n</pattern>-->
<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %highlight(%-5level) %cyan(%logger{50}:%L) - %msg%n</pattern>
</encoder>
</appender>
<!-- 按照每天生成日志文件 -->
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${LOG_HOME}/collection.log</file>
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
<!--日志文件输出的文件名 -->
<FileNamePattern>${LOG_HOME}/collection-%d{yyyy-MM-dd}.%i.log</FileNamePattern>
<!--日志文件保留天数 -->
<MaxHistory>10</MaxHistory>
<maxFileSize>10MB</maxFileSize>
</rollingPolicy>
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
<!--格式化输出:%d表示日期,%thread表示线程名,%-5level:级别从左显示5个字符宽度%msg:日志消息,%n是换行符 -->
<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50}:%L - %msg%n</pattern>
</encoder>
</appender>
<!--myibatis log configure -->
<logger name="com.apache.ibatis" level="TRACE" />
<logger name="java.sql.Connection" level="DEBUG" />
<logger name="java.sql.Statement" level="DEBUG" />
<logger name="java.sql.PreparedStatement" level="DEBUG" />
<!-- 日志输出级别 -->
<root level="INFO">
<appender-ref ref="STDOUT" />
<appender-ref ref="FILE" />
</root>
</configuration>
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<title>title</title>
</head>
<body>
<div th:each="collect,stat:${list}">
<span th:text="${collect.id}"/>
<span th:text="${collect.infoSourceCode}"/>
<span th:text="${collect.siteName}"/>
<span th:text="${collect.serverCode}"/>
</div>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html lang="en" xmlns:th="http://www/thymeleaf.org">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<div th:text="${msg}"></div>
</body>
</html>
<!DOCTYPE html>
<html lang="en" xmlns:th="http://www/thymeleaf.org">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<div th:text="hello"></div>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
<!-- 引入bootstrap样式 -->
<link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script type="text/javascript" src="https://cdn.bootcss.com/jquery/1.12.4/jquery.min.js"></script>
<script type="text/javascript" src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<meta charset="UTF-8">
<title>采集情况统计</title>
<style type="text/css">
td, th {
text-align: center;
}
</style>
<script>
$(function () {
//全选与全不选
$("#firstCb").click(function () {
var u = $("input[name='uid']")
for (var i = 0; i < u.length; i++) {
u[i].checked = this.checked;
}
});
//1. 获取数据行的奇数行的tr
$("tr:gt(0):odd").css("backgroundColor","#e8f4ff");
//2. 获取数据行的偶数行的tr
$("tr:gt(0):even").css("backgroundColor","#dbe8f2");
})
</script>
</head>
<body>
<div class="container">
<h3 style="text-align: center;color: black;font-family: 黑体">采集情况统计</h3>
<div style="float: left;margin-bottom: 20px;margin-top: 10px">
<form th:action="@{/api/collectionlog/statistics}" class="form-inline" method="get" id="form" autocomplete="off">
<div class="form-group">
<label for="sign">查询范围</label>
<select class="form-control" id="sign" name="sign" >
<option value="0">请选择</option>
<option value="1">最近1小时内统计</option>
<option value="0">最近24小时内统计</option>
</select>
</div>
<button type="submit" class="btn btn-primary">查询</button>
</form>
</div>
<table border="1" class="table table-bordered table-hover">
<tr style="background-color: #76aef0">
<th th:text="${signValue}" ></th>
<th></th>
<th></th>
<th></th>
</tr>
<tr style="background-color: #76aef0">
<th>采集名称</th>
<th>采集编码</th>
<th>信息源接收数量</th>
<th>资讯采集数量</th>
</tr>
<tr th:if="${list != null}" th:each="map,stat:${list}">
<td th:text="${map.get('name')}"></td>
<td th:text="${map.get('code')}"></td>
<td th:text="${map.get('countSource')}"></td>
<td th:text="${map.get('countInfo')}"></td>
</tr>
</table>
</div>
<script>
$(function () {
$("li").click(function () {
$(this).attr("class", "active")
})
})
</script>
</body>
</html>
\ No newline at end of file
artifactId=collection
groupId=com.zzsn.collection
version=1.0-SNAPSHOT
com\zzsn\collection\controller\CollectionController.class
com\zzsn\collection\controller\CollectionLogController.class
com\zzsn\collection\CollectionApplication.class
com\zzsn\collection\service\CollectionLogService.class
com\zzsn\collection\entity\CollectionLog.class
com\zzsn\collection\mapper\CollectionLogMapper.class
com\zzsn\collection\service\impl\CollectionLogServiceImpl.class
E:\projects\code01\collection\src\main\java\com\zzsn\collection\CollectionApplication.java
E:\projects\code01\collection\src\main\java\com\zzsn\collection\controller\CollectionController.java
E:\projects\code01\collection\src\main\java\com\zzsn\collection\entity\CollectionLog.java
E:\projects\code01\collection\src\main\java\com\zzsn\collection\service\impl\CollectionLogServiceImpl.java
E:\projects\code01\collection\src\main\java\com\zzsn\collection\controller\CollectionLogController.java
E:\projects\code01\collection\src\main\java\com\zzsn\collection\service\CollectionLogService.java
E:\projects\code01\collection\src\main\java\com\zzsn\collection\mapper\CollectionLogMapper.java
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论