Compare commits
2 Commits
58fa3f8731
...
ae4358a5a6
Author | SHA1 | Date |
---|---|---|
lwy | ae4358a5a6 | 2 years ago |
lwy | 65ad741fc9 | 2 years ago |
@ -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,20 @@
|
||||
package top.liangwy.read_statistics.dao;
|
||||
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.springframework.stereotype.Repository;
|
||||
import top.liangwy.read_statistics.pojo.Dept;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author lwy
|
||||
*/
|
||||
@Mapper
|
||||
@Repository
|
||||
public interface DeptMapper {
|
||||
|
||||
String getDeptName(Integer deptId);
|
||||
|
||||
List<Dept> getAllDeptName();
|
||||
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="top.liangwy.read_statistics.dao.DeptMapper">
|
||||
<select id="getDeptName" parameterType="int" resultType="String">
|
||||
select deptName from dept where deptId = #{deptId}
|
||||
</select>
|
||||
<select id="getAllDeptName" resultType="top.liangwy.read_statistics.pojo.Dept">
|
||||
select * from dept where deleted = 0 order by `order`
|
||||
</select>
|
||||
</mapper>
|
@ -0,0 +1,18 @@
|
||||
package top.liangwy.read_statistics.dao;
|
||||
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.springframework.stereotype.Repository;
|
||||
import top.liangwy.read_statistics.pojo.Integral;
|
||||
|
||||
/**
|
||||
* @author lwy
|
||||
*/
|
||||
@Mapper
|
||||
@Repository
|
||||
public interface IntegralMapper {
|
||||
Integral getTodayIntegral(Integer id);
|
||||
Integral getYesterdayIntegral(Integer id);
|
||||
Boolean addUserInteralNum(Integral integral);
|
||||
Boolean userInteralNumAdd30(Integral integral);
|
||||
Integral getYesterdayYesterdayIntegral(Integer id);
|
||||
}
|
@ -0,0 +1,40 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="top.liangwy.read_statistics.dao.IntegralMapper">
|
||||
<select id="getTodayIntegral" parameterType="int" resultType="top.liangwy.read_statistics.pojo.Integral">
|
||||
select integralNum
|
||||
from integral
|
||||
where userId = #{id}
|
||||
and to_days(createTime) = to_days(now())
|
||||
order by createTime desc limit 1
|
||||
</select>
|
||||
<select id="getYesterdayIntegral" parameterType="int" resultType="top.liangwy.read_statistics.pojo.Integral">
|
||||
select integralNum
|
||||
from integral
|
||||
where userId = #{id}
|
||||
and TO_DAYS(NOW()) - TO_DAYS(createTime) = 1
|
||||
and really = 0
|
||||
order by createTime desc limit 1
|
||||
</select>
|
||||
|
||||
<select id="getYesterdayYesterdayIntegral" parameterType="int" resultType="top.liangwy.read_statistics.pojo.Integral">
|
||||
select integralNum
|
||||
from integral
|
||||
where userId = #{id}
|
||||
and TO_DAYS(NOW()) - TO_DAYS(createTime) = 2
|
||||
and really = 0
|
||||
order by createTime desc limit 1
|
||||
</select>
|
||||
|
||||
<insert id="addUserInteralNum" parameterType="top.liangwy.read_statistics.pojo.Integral">
|
||||
insert into integral (userId, integralNum, really)
|
||||
values (#{userId}, #{integralNum}, 0)
|
||||
</insert>
|
||||
|
||||
<insert id="userInteralNumAdd30" parameterType="top.liangwy.read_statistics.pojo.Integral">
|
||||
insert into integral (userId, integralNum, really)
|
||||
values (#{userId}, #{integralNum}, #{really})
|
||||
</insert>
|
||||
</mapper>
|
@ -0,0 +1,17 @@
|
||||
package top.liangwy.read_statistics.dao;
|
||||
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
||||
* @author lwy
|
||||
*/
|
||||
@Mapper
|
||||
@Repository
|
||||
public interface KsMapper {
|
||||
|
||||
String getUserKsList();
|
||||
|
||||
int setUserKsList(String userKsList);
|
||||
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="top.liangwy.read_statistics.dao.KsMapper">
|
||||
<select id="getUserKsList" resultType="String">
|
||||
select userKsList from ks order by id desc limit 1;
|
||||
</select>
|
||||
<insert id="setUserKsList" parameterType="String">
|
||||
insert into ks (userKsList) values (#{userKsList})
|
||||
</insert>
|
||||
|
||||
</mapper>
|
@ -0,0 +1,17 @@
|
||||
package top.liangwy.read_statistics.dao;
|
||||
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
||||
* @author lwy
|
||||
*/
|
||||
@Mapper
|
||||
@Repository
|
||||
public interface ScanMapper {
|
||||
|
||||
String getUserScanList();
|
||||
|
||||
int setUserScanList(String userScanList);
|
||||
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="top.liangwy.read_statistics.dao.ScanMapper">
|
||||
<select id="getUserScanList" resultType="String">
|
||||
select userScanList from scan where to_days(now()) - to_days(createTime) = 0
|
||||
order by createTime desc limit 1;
|
||||
</select>
|
||||
<insert id="setUserScanList" parameterType="String">
|
||||
insert into scan (userScanList) values (#{userScanList})
|
||||
</insert>
|
||||
|
||||
</mapper>
|
@ -0,0 +1,23 @@
|
||||
package top.liangwy.read_statistics.dao;
|
||||
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.springframework.stereotype.Repository;
|
||||
import top.liangwy.read_statistics.pojo.User;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author lwy
|
||||
*/
|
||||
@Mapper
|
||||
@Repository
|
||||
public interface UserMapper {
|
||||
List<User> getUserList();
|
||||
|
||||
String getUserIdByTelephone(String telephone);
|
||||
|
||||
List<User> getUserTelephoneByDeptName(String deptName);
|
||||
|
||||
List<User> getUserByDeptId(Integer deptId);
|
||||
|
||||
List<String> getUserTelphone();
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="top.liangwy.read_statistics.dao.UserMapper">
|
||||
<select id="getUserList" resultType="top.liangwy.read_statistics.pojo.User">
|
||||
select * from user where deleted = 0
|
||||
</select>
|
||||
<select id="getUserIdByTelphone" resultType="String">
|
||||
select userId from user where telphone = #{telephone} and deleted = 0 limit 1
|
||||
</select>
|
||||
<select id="getUserTelphoneByDeptName" resultType="top.liangwy.read_statistics.pojo.User">
|
||||
select * from user, where deptName = #{deptName} and deleted = 0
|
||||
</select>
|
||||
<select id="getUserByDeptId" resultType="top.liangwy.read_statistics.pojo.User">
|
||||
select * from user where deptId = #{deptId} and deleted = 0 order by `order`
|
||||
</select>
|
||||
</mapper>
|
@ -0,0 +1,17 @@
|
||||
package top.liangwy.read_statistics.dao;
|
||||
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
||||
* @author lwy
|
||||
*/
|
||||
@Mapper
|
||||
@Repository
|
||||
public interface WbMapper {
|
||||
|
||||
String getWbUserScanList();
|
||||
|
||||
int setWbUserScanList(String wbUserScanList);
|
||||
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="top.liangwy.read_statistics.dao.WbMapper">
|
||||
<select id="getWbUserScanList" resultType="String">
|
||||
select wbUserScanList from wb where to_days(now()) - to_days(createTime) = 0
|
||||
order by createTime desc limit 1;
|
||||
</select>
|
||||
<insert id="setWbUserScanList" parameterType="String">
|
||||
insert into wb (wbUserScanList) values (#{wbUserScanList})
|
||||
</insert>
|
||||
|
||||
</mapper>
|
@ -0,0 +1,11 @@
|
||||
package top.liangwy.read_statistics.pojo;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class Dept {
|
||||
private Integer deptId;
|
||||
private String deptName;
|
||||
private Integer deleted;
|
||||
private Integer order;
|
||||
}
|
@ -0,0 +1,46 @@
|
||||
package top.liangwy.read_statistics.pojo;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import lombok.Data;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
@Data
|
||||
public class Integral {
|
||||
|
||||
/**
|
||||
* 积分表id
|
||||
*/
|
||||
private Integer integralId;
|
||||
|
||||
/**
|
||||
* 用户id
|
||||
*/
|
||||
private Integer userId;
|
||||
|
||||
/**
|
||||
* 用户积分
|
||||
*/
|
||||
private Integer integralNum;
|
||||
|
||||
/**
|
||||
* 积分是否真实
|
||||
*/
|
||||
private Integer really;
|
||||
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(
|
||||
pattern = "yyyy-MM-dd HH:mm:ss",
|
||||
timezone = "GMT+8"
|
||||
)
|
||||
private Date createTime;
|
||||
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(
|
||||
pattern = "yyyy-MM-dd HH:mm:ss",
|
||||
timezone = "GMT+8"
|
||||
)
|
||||
private Date updateTime;
|
||||
|
||||
}
|
@ -0,0 +1,23 @@
|
||||
package top.liangwy.read_statistics.pojo;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import lombok.Data;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @author lwy
|
||||
*/
|
||||
@Data
|
||||
public class Ks {
|
||||
private Integer id;
|
||||
private String userKsList;
|
||||
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(
|
||||
pattern = "yyyy-MM-dd HH:mm:ss",
|
||||
timezone = "GMT+8"
|
||||
)
|
||||
private Date createTime;
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
package top.liangwy.read_statistics.pojo.Result;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @author lwy
|
||||
*/
|
||||
@Data
|
||||
public class UserScan {
|
||||
private String userName;
|
||||
private String ksNickName;
|
||||
private String scanStatus;
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
package top.liangwy.read_statistics.pojo.Result;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @author lwy
|
||||
*/
|
||||
|
||||
@Data
|
||||
public class UserScore {
|
||||
private Integer userId;
|
||||
private String userName;
|
||||
private Integer todayScore;
|
||||
private Integer yesterdayScore;
|
||||
// private Integer addScore;
|
||||
|
||||
}
|
@ -0,0 +1,23 @@
|
||||
package top.liangwy.read_statistics.pojo;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import lombok.Data;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @author lwy
|
||||
*/
|
||||
@Data
|
||||
public class Scan {
|
||||
private Integer id;
|
||||
private String userScanList;
|
||||
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(
|
||||
pattern = "yyyy-MM-dd HH:mm:ss",
|
||||
timezone = "GMT+8"
|
||||
)
|
||||
private Date createTime;
|
||||
}
|
@ -0,0 +1,32 @@
|
||||
package top.liangwy.read_statistics.pojo;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import lombok.Data;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @author lwy
|
||||
*/
|
||||
@Data
|
||||
public class User {
|
||||
private Integer userId;
|
||||
private String userName;
|
||||
private Integer deptId;
|
||||
private String telephone;
|
||||
private String ksNickName;
|
||||
private String wbNickName;
|
||||
private Integer deleted;
|
||||
private Integer order;
|
||||
|
||||
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
private Date createTime;
|
||||
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
private Date updateTime;
|
||||
|
||||
}
|
@ -0,0 +1,20 @@
|
||||
package top.liangwy.read_statistics.pojo;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import lombok.Data;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @author lwy
|
||||
*/
|
||||
@Data
|
||||
public class Wb {
|
||||
private Integer id;
|
||||
private String wbUserScanList;
|
||||
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
private Date createTime;
|
||||
}
|
@ -0,0 +1,32 @@
|
||||
package top.liangwy.read_statistics.utils;
|
||||
|
||||
import org.apache.ibatis.io.Resources;
|
||||
import org.apache.ibatis.session.SqlSession;
|
||||
import org.apache.ibatis.session.SqlSessionFactory;
|
||||
import org.apache.ibatis.session.SqlSessionFactoryBuilder;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
|
||||
/**
|
||||
* @author lwy
|
||||
*/
|
||||
public class MybatisUtils {
|
||||
|
||||
private static SqlSessionFactory sqlSessionFactory;
|
||||
|
||||
static {
|
||||
try {
|
||||
String resource = "mybatis-config.xml";
|
||||
InputStream inputStream = Resources.getResourceAsStream(resource);
|
||||
sqlSessionFactory = new SqlSessionFactoryBuilder().build(inputStream);
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public static SqlSession getSqlSession() {
|
||||
return sqlSessionFactory.openSession();
|
||||
}
|
||||
}
|
@ -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&characterEncoding=UTF-8&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,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,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>
|
Loading…
Reference in new issue