24 changed files with 689 additions and 406 deletions
-
BINjavaweb-admin/.DS_Store
-
6javaweb-admin/pom.xml
-
BINjavaweb-admin/src/.DS_Store
-
BINjavaweb-admin/src/main/.DS_Store
-
BINjavaweb-admin/src/main/java/.DS_Store
-
BINjavaweb-admin/src/main/java/com/.DS_Store
-
3javaweb-admin/src/main/java/com/iflytop/zsjyapi/controller/CollectImageController.java
-
31javaweb-admin/src/main/java/com/iflytop/zsjyapi/dao/CurrentDetectionDao.java
-
30javaweb-admin/src/main/java/com/iflytop/zsjyapi/dao/TBatchDao.java
-
8javaweb-admin/src/main/java/com/iflytop/zsjyapi/dao/TestResultDao.java
-
6javaweb-admin/src/main/java/com/iflytop/zsjyapi/entity/TestResult.java
-
100javaweb-admin/src/main/java/com/iflytop/zsjyapi/service/TestResultService.java
-
BINjavaweb-admin/src/main/java/com/javaweb/.DS_Store
-
3javaweb-admin/src/main/java/com/javaweb/admin/AdminApplication.java
-
1javaweb-admin/src/main/java/com/javaweb/system/config/ShiroConfig.java
-
2javaweb-admin/src/main/resources/application-local.yml
-
2javaweb-admin/src/main/resources/application-prod.yml
-
2javaweb-admin/src/main/resources/application.yml
-
45javaweb-admin/src/main/resources/static/module/javaweb_login.js
-
194javaweb-admin/src/main/resources/templates/index.html
-
154javaweb-admin/src/main/resources/templates/login.html
-
6javaweb-admin/src/main/resources/templates/public/footer.html
-
42javaweb-admin/src/main/resources/templates/public/header.html
-
2javaweb-admin/src/main/resources/templates/ttestresult/index.html
@ -0,0 +1,31 @@ |
|||||
|
package com.iflytop.zsjyapi.dao; |
||||
|
|
||||
|
import com.iflytop.zsjyapi.entity.TestResult; |
||||
|
import com.javaweb.admin.entity.CurrentDetection; |
||||
|
import org.apache.shiro.authc.Account; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.jdbc.core.BeanPropertyRowMapper; |
||||
|
import org.springframework.jdbc.core.JdbcTemplate; |
||||
|
import org.springframework.stereotype.Repository; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @author cool |
||||
|
* @date 2023/7/15 19:02 |
||||
|
*/ |
||||
|
@Repository |
||||
|
public class CurrentDetectionDao { |
||||
|
|
||||
|
@Autowired |
||||
|
JdbcTemplate jdbcTemplate; |
||||
|
|
||||
|
public CurrentDetection getOne(){ |
||||
|
String querySql = "select * from current_detection where iscurrent = 1"; |
||||
|
List<CurrentDetection> query = jdbcTemplate.query(querySql, new BeanPropertyRowMapper<CurrentDetection>(CurrentDetection.class)); |
||||
|
if (query.size() > 0) { |
||||
|
return query.get(0); |
||||
|
} |
||||
|
return null; |
||||
|
} |
||||
|
} |
@ -0,0 +1,30 @@ |
|||||
|
package com.iflytop.zsjyapi.dao; |
||||
|
|
||||
|
import com.javaweb.admin.entity.CurrentDetection; |
||||
|
import com.javaweb.admin.entity.TBatch; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.jdbc.core.BeanPropertyRowMapper; |
||||
|
import org.springframework.jdbc.core.JdbcTemplate; |
||||
|
import org.springframework.stereotype.Repository; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @author cool |
||||
|
* @date 2023/7/15 20:06 |
||||
|
*/ |
||||
|
@Repository |
||||
|
public class TBatchDao { |
||||
|
|
||||
|
@Autowired |
||||
|
JdbcTemplate jdbcTemplate; |
||||
|
|
||||
|
public TBatch getOne(){ |
||||
|
String querySql = "select * from t_batch where is_current = 1"; |
||||
|
List<TBatch> query = jdbcTemplate.query(querySql, new BeanPropertyRowMapper<TBatch>(TBatch.class)); |
||||
|
if (query.size() > 0) { |
||||
|
return query.get(0); |
||||
|
} |
||||
|
return null; |
||||
|
} |
||||
|
} |
@ -1,12 +1,12 @@ |
|||||
<!DOCTYPE html> |
<!DOCTYPE html> |
||||
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org"> |
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org"> |
||||
<footer> |
|
||||
|
<footer> |
||||
<!-- JS部分 --> |
<!-- JS部分 --> |
||||
<script type="text/javascript"> |
<script type="text/javascript"> |
||||
var url = window.location.pathname.substring(1); |
var url = window.location.pathname.substring(1); |
||||
var item = url.split("/"); |
var item = url.split("/"); |
||||
var jsUrl = "/zsjyadmin/static/module/javaweb_" + item[1] + ".js"; |
|
||||
|
var jsUrl = "/zsjyapi/static/module/javaweb_" + item[1] + ".js"; |
||||
document.write("<script src='" + jsUrl + "'><\/script>"); |
document.write("<script src='" + jsUrl + "'><\/script>"); |
||||
</script> |
</script> |
||||
</footer> |
|
||||
|
</footer> |
||||
</html> |
</html> |
@ -1,29 +1,41 @@ |
|||||
<!DOCTYPE html> |
<!DOCTYPE html> |
||||
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org"> |
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org"> |
||||
<header> |
|
||||
|
<header> |
||||
<head> |
<head> |
||||
<meta charset="utf-8"/> |
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> |
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> |
|
||||
|
<meta charset="utf-8" /> |
||||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> |
||||
|
<meta |
||||
|
name="viewport" |
||||
|
content="width=device-width, initial-scale=1, maximum-scale=1" |
||||
|
/> |
||||
<title th:text="${fullName}"></title> |
<title th:text="${fullName}"></title> |
||||
<link href="/static/assets/images/favicon.ico" rel="icon"> |
|
||||
<link rel="stylesheet" th:href="@{/static/assets/libs/layui/css/layui.css}"/> |
|
||||
<link rel="stylesheet" th:href="@{/static/assets/module/admin.css?v=318}"/> |
|
||||
<!--[if lt IE 9]> |
|
||||
|
|
||||
<![endif]--> |
|
||||
<script type="text/javascript" th:src="@{/static/assets/libs/layui/layui.js}"></script> |
|
||||
<script type="text/javascript" th:src="@{/static/assets/js/common.js?v=318}"></script> |
|
||||
|
|
||||
|
<link href="/static/assets/images/favicon.ico" rel="icon" /> |
||||
|
<link |
||||
|
rel="stylesheet" |
||||
|
th:href="@{/static/assets/libs/layui/css/layui.css}" |
||||
|
/> |
||||
|
<link |
||||
|
rel="stylesheet" |
||||
|
th:href="@{/static/assets/module/admin.css?v=318}" |
||||
|
/> |
||||
|
<!--[if lt IE 9]> <![endif]--> |
||||
|
<script |
||||
|
type="text/javascript" |
||||
|
th:src="@{/static/assets/libs/layui/layui.js}" |
||||
|
></script> |
||||
|
<script |
||||
|
type="text/javascript" |
||||
|
th:src="@{/static/assets/js/common.js?v=318}" |
||||
|
></script> |
||||
|
|
||||
<script type="text/javascript"> |
<script type="text/javascript"> |
||||
var url = window.location.pathname.substring(1); |
var url = window.location.pathname.substring(1); |
||||
var item = url.split("/"); |
var item = url.split("/"); |
||||
var C = item[1]; |
var C = item[1]; |
||||
var A = item[2]; |
var A = item[2]; |
||||
var cUrl = "/zsjyadmin/" + C; |
|
||||
|
var cUrl = "/zsjyapi/" + C; |
||||
//alert(cUrl); |
//alert(cUrl); |
||||
</script> |
</script> |
||||
</head> |
</head> |
||||
</header> |
|
||||
|
</header> |
||||
</html> |
</html> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue