weixin and weibo success

main
lwy 2 years ago
parent 58fa3f8731
commit 65ad741fc9

@ -5,7 +5,7 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.0.5</version>
<version>3.0.6</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>top.liangwy</groupId>
@ -15,6 +15,8 @@
<description>read_statistics</description>
<properties>
<java.version>17</java.version>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
</properties>
<dependencies>
<dependency>
@ -32,7 +34,7 @@
<dependency>
<groupId>org.mybatis.spring.boot</groupId>
<artifactId>mybatis-spring-boot-starter</artifactId>
<version>3.0.0</version>
<version>3.0.1</version>
</dependency>
<dependency>
@ -56,7 +58,11 @@
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.yaml</groupId>
<artifactId>snakeyaml</artifactId>
<version>1.28</version>
</dependency>
<dependency>
<groupId>org.webjars</groupId>
<artifactId>bootstrap</artifactId>
@ -80,6 +86,28 @@
</configuration>
</plugin>
</plugins>
<resources>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.properties</include>
<include>**/*.xml</include>
</includes>
<filtering>false</filtering>
</resource>
<resource>
<directory>src/main/resources</directory>
<includes>
<include>**/*.properties</include>
<include>**/*.xml</include>
<include>**/*.html</include>
<include>**/**/*.js</include>
<include>**/**/*.css</include>
<include>**/*</include>
</includes>
<filtering>false</filtering>
</resource>
</resources>
</build>
</project>

@ -1,9 +1,11 @@
package top.liangwy.read_statistics;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
@MapperScan("top.liangwy.read_statistics.dao")
public class ReadStatisticsApplication {
public static void main(String[] args) {

@ -0,0 +1,22 @@
package top.liangwy.read_statistics.common;
public class BaseController {
// 云上伊川积分
public String[] free = { "梁文元", "闫露", "姜琰", "方伊东", "李元", "孙飞飞" };
/**
* url
*/
public String url = "http://app2.dxhmt.cn:10329/system/uUser/list";
// 快手积分
public String ksFree = "Joy,5429264664,是姜姜呀呀,老方聊青铜,李元668,人生充满阳光715,陶利,郭明杰563,旷野幽兰50808," +
"吴晓晖,张建校,王晓华,钟响亮,田津辉,张睿祥.,韩晓娜,杨玉明,宁霞,cht135236,13608656363,13938862929,15038503566,王晓芳," +
"13938803441,李辉晓\uD83D\uDC83,";
// 微信看一看
// public String ScanFree = "梁文元,闫露,姜琰,方伊东,李元,孙飞飞,陶利平,郭明杰,赵艳红,吴晓晖,张建校,王晓芳,";
public String ScanFree = "";
// 微博
public String WbFree = "孙飞32207,用户3hms2qw5ml,元元-ly,Joy-9716,姜姜_呦,大肋肋,小淘气rui,高静亚,小淘气rui,yiqili_,周雅丽yl,Mayajie3,赵yiman,用户928003530,用户7624278904,7728498387,";
}

@ -0,0 +1,105 @@
package top.liangwy.read_statistics.controller;
import org.apache.ibatis.session.SqlSession;
//import org.joda.time.DateTime;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import top.liangwy.read_statistics.common.BaseController;
import top.liangwy.read_statistics.dao.DeptMapper;
import top.liangwy.read_statistics.dao.ScanMapper;
import top.liangwy.read_statistics.dao.UserMapper;
import top.liangwy.read_statistics.pojo.Dept;
import top.liangwy.read_statistics.pojo.User;
import top.liangwy.read_statistics.pojo.Result.UserScan;
import top.liangwy.read_statistics.utils.MybatisUtils;
import java.time.LocalDateTime;
import java.util.*;
/**
* @author lwy
* @
*/
@Controller
@RequestMapping("/scan")
public class ScanController extends BaseController {
@GetMapping("/today")
public String home(Model model) {
SqlSession sqlSession = MybatisUtils.getSqlSession();
UserMapper userMapper = sqlSession.getMapper(UserMapper.class);
DeptMapper deptMapper = sqlSession.getMapper(DeptMapper.class);
ScanMapper scanMapper = sqlSession.getMapper(ScanMapper.class);
int status = 0;
LocalDateTime now = LocalDateTime.now();
int year = now.getYear();
int month = now.getMonthValue();
int day = now.getDayOfMonth();
int hour = now.getHour();
int minute = now.getMinute();
int second = now.getSecond();
String userScanString = scanMapper.getUserScanList();
System.out.println(year + "年" + month + "月" + day + "日 " + hour + "" + minute + "" + second +
" 点击在看的人员是:" + userScanString);
if (null == userScanString) {
status = 1;
} else {
String newUserScanString = userScanString.replace(" ", "");
String[] a = newUserScanString.split(",");
model.addAttribute("date", year + "年" + month + "月" + day + "日");
// 获取所有部门名称
List<Dept> deptList = deptMapper.getAllDeptName();
// 创建有序键值对储存总的数据
Map<String, List<UserScan>> map = new LinkedHashMap<String, List<UserScan>>(deptList.size());
for (int i = 0; i < deptList.size(); i++) {
// 获取指定部门的人员信息
List<User> arrayList = userMapper.getUserByDeptId(deptList.get(i).getDeptId());
List<UserScan> userList = new ArrayList<>();
for (int j = 0; j < arrayList.size(); j++) {
UserScan us = new UserScan();
us.setUserName(arrayList.get(j).getUserName());
for (int k = 0; k < a.length; k++) {
if (us.getUserName().equals(a[k])) {
us.setScanStatus("已完成");
}
}
userList.add(us);
}
map.put(deptList.get(i).getDeptName(), userList);
}
sqlSession.close();
model.addAttribute("list", map);
}
sqlSession.close();
model.addAttribute("status", status);
return "/scan/today";
}
@RequestMapping("/insert")
public String edit(String userScanList, Model model) {
System.out.println("123insert");
SqlSession sqlSession = MybatisUtils.getSqlSession();
ScanMapper scanMapper = sqlSession.getMapper(ScanMapper.class);
String newUserScanList = ScanFree + userScanList;
if (userScanList != null) {
int i = scanMapper.setUserScanList(newUserScanList);
if (i == 1) {
sqlSession.commit();
sqlSession.close();
model.addAttribute("info", "success");
}
}
sqlSession.close();
return "/scan/insert";
}
}

@ -0,0 +1,118 @@
package top.liangwy.read_statistics.controller;
import org.apache.ibatis.session.SqlSession;
//import org.joda.time.DateTime;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import top.liangwy.read_statistics.common.BaseController;
import top.liangwy.read_statistics.dao.DeptMapper;
import top.liangwy.read_statistics.dao.UserMapper;
import top.liangwy.read_statistics.dao.WbMapper;
import top.liangwy.read_statistics.pojo.Dept;
import top.liangwy.read_statistics.pojo.User;
import top.liangwy.read_statistics.pojo.Result.UserScan;
import top.liangwy.read_statistics.utils.MybatisUtils;
import java.time.LocalDateTime;
import java.util.*;
/**
* @author lwy
* @
*/
@Controller
@RequestMapping("/wb")
public class WbController extends BaseController {
@GetMapping("/today")
public String today(Model model) {
int status = 0;
SqlSession sqlSession = MybatisUtils.getSqlSession();
UserMapper userMapper = sqlSession.getMapper(UserMapper.class);
DeptMapper deptMapper = sqlSession.getMapper((DeptMapper.class));
WbMapper wbMapper = sqlSession.getMapper(WbMapper.class);
LocalDateTime now = LocalDateTime.now();
int year = now.getYear();
int month = now.getMonthValue();
int day = now.getDayOfMonth();
int hour = now.getHour();
int minute = now.getMinute();
int second = now.getSecond();
String wbUserScanString = wbMapper.getWbUserScanList();
if (null == wbUserScanString) {
status = 1;
} else {
System.out
.println(year + "年" + month + "月" + day + "日 " + hour + "" + minute + "" + second +
" 微博点赞评论人员是:" + wbUserScanString);
String newWbUserScanString = WbFree + wbUserScanString.replace(" ", "");
System.out.println(newWbUserScanString);
String[] a = newWbUserScanString.split(",");
model.addAttribute("date", year + "年" + month + "月" + day + "日");
// 获取所有部门名称
List<Dept> deptList = deptMapper.getAllDeptName();
// 创建有序键值对储存总的数据
Map<String, List<UserScan>> map = new LinkedHashMap<String, List<UserScan>>(deptList.size());
for (int i = 1; i < deptList.size(); i++) {
// 获取指定部门的人员信息
List<User> arrayList = userMapper.getUserByDeptId(deptList.get(i).getDeptId());
List<UserScan> userList = new ArrayList<>();
for (int j = 0; j < arrayList.size(); j++) {
if (i == 3) {
System.out.println(arrayList.get(j).getUserName());
System.out.println(arrayList.get(j).getWbNickName());
}
UserScan us = new UserScan();
us.setUserName(arrayList.get(j).getUserName());
us.setKsNickName(arrayList.get(j).getWbNickName());
for (int k = 0; k < a.length; k++) {
if (null == us.getKsNickName()) {
us.setKsNickName("");
}
if (us.getKsNickName().equals(a[k])) {
us.setScanStatus("已完成");
}
}
userList.add(us);
}
map.put(deptList.get(i).getDeptName(), userList);
}
model.addAttribute("list", map);
}
sqlSession.close();
model.addAttribute("status", status);
return "/wb/today";
}
@RequestMapping("/insert")
public String edit(String wbUserScanList, Model model) {
SqlSession sqlSession = MybatisUtils.getSqlSession();
WbMapper wbMapper = sqlSession.getMapper(WbMapper.class);
String newWbUserScanList = ScanFree + wbUserScanList;
System.out.println(wbUserScanList);
if (wbUserScanList != null) {
int i = wbMapper.setWbUserScanList(newWbUserScanList);
if (i == 1) {
sqlSession.commit();
sqlSession.close();
model.addAttribute("info", "success");
}
}
sqlSession.close();
return "/wb/insert";
}
}

@ -3,3 +3,6 @@ spring.datasource.url=jdbc:mysql://39.97.211.66:3306/dblwy?useUnicode=true&chara
spring.datasource.username=DBLwy
spring.datasource.password=tx8yH88dJseWt72x
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
mybatis.type-aliases-package=top.liangwy.read_statistics.cyc.pojo
mybatis.mapper-locations=classpath:/dao/*.xml

@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE configuration
PUBLIC "-//mybatis.org//DTD Config 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-config.dtd">
<configuration>
<environments default="development">
<environment id="development">
<transactionManager type="JDBC"/>
<dataSource type="POOLED">
<property name="driver" value="com.mysql.cj.jdbc.Driver"/>
<property name="url" value="jdbc:mysql://39.97.211.66/dblwy?useUnicode=true&amp;characterEncoding=UTF-8&amp;serverTimezone=Asia/Shanghai"/>
<property name="username" value="DBLwy"/>
<property name="password" value="tx8yH88dJseWt72x"/>
<property name="poolPingQuery" value="SELECT NOW()" />
<property name="poolPingEnabled" value="true" />
</dataSource>
</environment>
</environments>
<mappers>
<mapper resource="top/liangwy/read_statistics/dao/UserMapper.xml"/>
<mapper resource="top/liangwy/read_statistics/dao/IntegralMapper.xml"/>
<mapper resource="top/liangwy/read_statistics/dao/DeptMapper.xml"/>
<mapper resource="top/liangwy/read_statistics/dao/ScanMapper.xml"/>
<mapper resource="top/liangwy/read_statistics/dao/IntegralMapper.xml"/>
<mapper resource="top/liangwy/read_statistics/dao/KsMapper.xml"/>
<mapper resource="top/liangwy/read_statistics/dao/WbMapper.xml"/>
</mappers>
</configuration>

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -0,0 +1,28 @@
//增加30分
function addScore(userId) {
console.log(userId);
$.ajax({
type: "post",
contentType: "application/json",
url: "/api/score/edit",
dataType: 'json',
cache: false,
timeout: 600000,
data: JSON.stringify({ "userId": userId }
)
}).done(function (result) {
console.log(result);
if ($("td").eq("增加30分")) {
$("#" + userId).text("已增加").css("color", "red");
}
})
}
function f(userName) {
console.log(userName);
if ($("#" + userName).next().text() == "") {
$("#" + userName).next().text("已完成");
}
else{
$("#" + userName).next().text("");
}
}

@ -0,0 +1,39 @@
<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns="http://www.w3.org/1999/html">
<head>
<meta charset="UTF-8">
<title>Home</title>
<!-- <div th:replace="common/head :: head"></div>-->
<title th:text="'快手评论统计表'"></title>
<link rel="stylesheet" th:href="@{/css/bootstrap.min.css}">
<script th:src="@{/js/bootstrap.min.js}"></script>
<script th:src="@{/js/jquery-3.6.0.min.js}"></script>
</head>
<body>
<br>
<br>
<div class="container">
<div class="panel panel-primary">
<div class="panel-heading">
<h2 class="panel-title">添加今天的快手评论名单:</h2>
</div>
<div class="panel-body">
<form th:action="@{/ks/edit}" method="post">
<h3>请输入人员名单:</h3>
<!-- <input type="text" name="userScanList"/>-->
<textarea class="form-control" name="userKsList" id="userKsList" rows="5"></textarea>
<br>
<div class="align:center">
<button class="btn btn-primary m-2" type="submit">提交</button>
</div>
</form>
</div>
</div>
<div th:if="${info}">
<div class="alert alert-success">提交成功!</div>
</div>
</div>
</body>
</html>

@ -0,0 +1,43 @@
<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<title th:text="'快手评论统计表('+${date}+''"></title>
<link rel="stylesheet" th:href="@{/css/bootstrap.min.css}">
<script th:src="@{/js/bootstrap.min.js}"></script>
<script th:src="@{/js/jquery-3.6.0.min.js}"></script>
</head>
<body>
<br>
<div class="text-center">
<h1 th:text="'快手评论统计表('+${date}+''"></h1>
</div>
<div class="text-center" th:each="dept:${list}">
<br>
<h2>
<strong>
<p th:text="${dept.key}"></p>
</strong>
<div class="container">
<table class="table table-striped table-bordered">
<tr>
<td><strong>姓名</strong></td>
<td><strong>是否评论</strong></td>
</tr>
<tr th:each="v:${dept.value}">
<td th:text="${v.userName}"></td>
<td th:text="${v.scanStatus}"></td>
</tr>
</table>
</div>
</h2>
</div>
</body>
</html>

@ -0,0 +1,42 @@
<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns="http://www.w3.org/1999/html">
<head>
<meta charset="UTF-8">
<title>Home</title>
<!-- <div th:replace="common/head :: head"></div>-->
<link rel="stylesheet" th:href="@{/css/bootstrap.min.css}">
<script th:src="@{/js/bootstrap.min.js}"></script>
<script th:src="@{/js/jquery-3.6.0.min.js}"></script>
</script>
</head>
<body>
<br>
<br>
<div class="container">
<div class="panel panel-primary">
<div class="panel-heading">
<h2 class="panel-title">添加今天的在看名单</h2>
</div>
<div class="panel-body">
<form th:action="@{/scan/insert}" method="post">
<h3>请输入人员名单:</h3>
<!-- <input type="text" name="userScanList"/>-->
<textarea class="form-control" name="userScanList" id="userScanList" rows="5"></textarea>
<br>
<div class="align:center">
<button class="btn btn-primary m-2" type="submit">提交</button>
</div>
</form>
</div>
</div>
<div th:if="${info}">
<div class="alert alert-success">提交成功!<a th:href="@{/scan/today}">查看</a></div>
</div>
</div>
</body>
</html>

@ -0,0 +1,49 @@
<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<title th:text="'微信点“在看”统计表('+${date}+''"></title>
<!-- <div th:insert="/common/head.html :: head"></div>-->
<link rel="stylesheet" th:href="@{/css/bootstrap.min.css}">
<script th:src="@{/js/bootstrap.min.js}"></script>
<script th:src="@{/js/jquery-3.6.0.min.js}"></script>
<script type="text/javascript" th:src="@{/js/js.js}"></script>
</script>
</head>
<body>
<!--<p>ceshi</p>-->
<br>
<div th:if="${status ==1}">
<p>没有获取到名单</p>
<a th:href="@{/scan/insert}">跳转到insert页面</a>
</div>
<div class="text-center">
<h1 th:text="'微信点“在看”统计表('+${date}+''"></h1>
</div>
<div th:if="${status ==0}" class="text-center" th:each="dept:${list}">
<br>
<h2>
<strong>
<p th:text="${dept.key}"></p>
</strong>
<div class="container">
<table class="table table-striped table-bordered">
<tr>
<td><strong>姓名</strong></td>
<td><strong>是否点在看</strong></td>
</tr>
<tr th:each="v:${dept.value}">
<td th:id="${v.userName}" th:text="${v.userName}" th:onclick="f([[${v.userName}]]);"></td>
<td th:text="${v.scanStatus}"></td>
</tr>
</table>
</div>
</h2>
</div>
</body>
</html>

@ -0,0 +1,57 @@
<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<title th:text="'云上伊川积分统计表('+${date}+''"></title>
<!-- <div th:replace="common/head :: head"></div>-->
<link rel="stylesheet" th:href="@{/css/bootstrap.min.css}">
<script th:src="@{/js/bootstrap.min.js}"></script>
<script th:src="@{/js/jquery-3.6.0.min.js}"></script>
<script type="text/javascript" th:src="@{/js/js.js}"></script>
</head>
<body>
<br>
<div th:if="${status ==1}">
<p>没有获取到今日积分</p>
<a th:href="@{/score/insert}">跳转到insert页面</a>
</div>
<div th:if="${status ==2}">
<p>没有获取到昨日积分</p>
<a th:href="@{/score/insert}">跳转到insert页面</a>
</div>
<div class="text-center">
<h1 th:text="'云上伊川积分统计表('
+${date}+''"></h1>
</div>
<div th:if="${status ==0}" class="text-center" th:each="dept:${list}">
<br>
<h2>
<strong><p th:text="${dept.key}"></p></strong>
<div class="container">
<table class="table table-striped table-bordered">
<tr>
<td><strong>姓名</strong></td>
<td><strong>昨日积分</strong></td>
<td><strong>今日积分</strong></td>
<td><strong>增加</strong></td>
<td>操作</td>
</tr>
<tr th:each="v:${dept.value}">
<td id="userName" th:text="${v.userName}"></td>
<td id="yesterdayScore" th:text="${v.yesterdayScore}"></td>
<td id="todayScore" th:text="${v.todayScore}"></td>
<td id="add" th:text="${v.todayScore - v.yesterdayScore}"></td>
<td th:if="${v.todayScore - v.yesterdayScore <30}" th:id="${v.userId}"
th:onclick="|addScore(${v.userId})|">增加30
</td>
</table>
</div>
</h2>
</div>
</body>
</html>

@ -0,0 +1,41 @@
<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns="http://www.w3.org/1999/html">
<head>
<meta charset="UTF-8">
<title>Home</title>
<!-- <div th:replace="common/head :: head"></div>-->
<!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
<link rel="stylesheet" th:href="@{/css/bootstrap.min.css}">
<script th:src="@{/js/bootstrap.min.js}"></script>
<script th:src="@{/js/jquery-3.6.0.min.js}"></script>
</head>
<body>
<br>
<br>
<div class="container">
<div class="panel panel-primary">
<div class="panel-heading">
<h2 class="panel-title">云上伊川积分统计</h2>
</div>
<div class="panel-body">
<form th:action="@{/score/edit}" method="post">
<h3>请输入null_SESSIONID</h3>
<textarea class="form-control" name="n" id="n" rows="5"></textarea>
<br>
<div class="align:center">
<button class="btn btn-primary m-2" type="submit">提交</button>
</div>
</form>
</div>
</div>
<div th:if="${info}">
<div class="alert alert-success">提交成功!<a th:href="@{/scan/today}">链接</a></div>
</div>
</div>
</body>
</html>

@ -0,0 +1,57 @@
<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<title th:text="'云上伊川积分统计表('+${date}+''"></title>
<!-- <div th:replace="common/head :: head"></div>-->
<link rel="stylesheet" th:href="@{/css/bootstrap.min.css}">
<script th:src="@{/js/bootstrap.min.js}"></script>
<script th:src="@{/js/jquery-3.6.0.min.js}"></script>
</head>
<body>
<!--<p>ceshi</p>-->
<br>
<div th:if="${status == 1}">
<p>没有获取到今日积分</p>
<a th:href="@{/score/insert}">跳转到insert页面</a>
</div>
<div th:if="${status == 2}">
<p>没有获取到昨日积分</p>
<a th:href="@{/score/insert}">跳转到insert页面</a>
</div>
<div class="text-center">
<h1 th:text="'云上伊川积分统计表('+${date}+''"></h1>
</div>
<div th:if="${status ==0}" class="text-center" th:each="dept:${list}">
<br>
<h2>
<strong>
<p th:text="${dept.key}"></p>
</strong>
<div class="container">
<table class="table table-striped table-bordered">
<tr>
<td><strong>姓名</strong></td>
<td><strong>昨日积分</strong></td>
<td><strong>今日积分</strong></td>
<td><strong>增加</strong></td>
</tr>
<tr th:each="v:${dept.value}">
<td th:text="${v.userName}"></td>
<td th:text="${v.yesterdayScore}"></td>
<td th:text="${v.todayScore}"></td>
<td th:text="${v.todayScore - v.yesterdayScore}"></td>
</tr>
</table>
</div>
</h2>
</div>
</body>
</html>

@ -0,0 +1,42 @@
<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns="http://www.w3.org/1999/html">
<head>
<meta charset="UTF-8">
<title>微博统计</title>
<!-- <div th:replace="common/head :: head"></div>-->
<link rel="stylesheet" th:href="@{/css/bootstrap.min.css}">
<script th:src="@{/js/bootstrap.min.js}"></script>
<script th:src="@{/js/jquery-3.6.0.min.js}"></script>
</script>
</head>
<body>
<br>
<br>
<div class="container">
<div class="panel panel-primary">
<div class="panel-heading">
<h2 class="panel-title">添加今天的微博名单</h2>
</div>
<div class="panel-body">
<form th:action="@{/wb/insert}" method="post">
<h3>请输入人员名单:</h3>
<!-- <input type="text" name="userScanList"/>-->
<textarea class="form-control" name="wbUserScanList" id="wbUserScanList" rows="5"></textarea>
<br>
<div class="align:center">
<button class="btn btn-primary m-2" type="submit">提交</button>
</div>
</form>
</div>
</div>
<div th:if="${info}">
<div class="alert alert-success">提交成功!<a th:href="@{/wb/today}">查看</a></div>
</div>
</div>
</body>
</html>

@ -0,0 +1,47 @@
<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<title th:text="'微博统计表('+${date}+''"></title>
<link rel="stylesheet" th:href="@{/css/bootstrap.min.css}">
<script th:src="@{/js/bootstrap.min.js}"></script>
<script th:src="@{/js/jquery-3.6.0.min.js}"></script>
<script type="text/javascript" th:src="@{/js/js.js}"></script>
</head>
<body>
<br>
<div th:if="${status == 1}">
<p>没有获取到名单</p>
<a th:href="@{/wb/insert}">跳转到insert页面</a>
</div>
<div class="text-center">
<h1 th:text="'微博统计表('+${date}+''"></h1>
</div>
<div class="text-center" th:each="dept:${list}">
<br>
<h2>
<strong>
<p th:text="${dept.key}"></p>
</strong>
<div class="container">
<table class="table table-striped table-bordered">
<tr>
<td><strong>姓名</strong></td>
<td><strong>是否点赞、评论、转发</strong></td>
</tr>
<tr th:each="v:${dept.value}">
<td th:id="${v.userName}" th:text="${v.userName}" th:onclick="f([[${v.userName}]]);"></td>
<td th:text="${v.scanStatus}"></td>
</tr>
</table>
</div>
</h2>
</div>
</body>
</html>
Loading…
Cancel
Save