优化链接

main
tamguo 7 years ago
parent d404352bb9
commit 6e23c61910

@ -81,9 +81,15 @@ public class SubjectService implements ISubjectService{
for(int i=0 ; i<subjectVo.getCourseName().size() ; i++) {
logger.info("科目名称:{}" , subjectVo.getCourseName().get(i));
SubjectEntity subject = subjectMapper.findByName(subjectVo.getSubjectName());
if(subject == null) {
continue;
}
CourseEntity course = new CourseEntity();
course.setName(subjectVo.getCourseName().get(i));
CourseEntity courseEntity = courseMapper.selectOne(course);
if(courseEntity != null) {
continue;
}
course.setOrders(i+1);
course.setPointNum(BigInteger.ZERO);
course.setQuestionNum(BigInteger.ZERO);

@ -1,6 +1,6 @@
domain.name=http://www.tamguo.com/
domain.name=http://localhost/
admin.domain.name=http://admin.tanguoguo.com
server.port=8081
server.port=80
jasypt.encryptor.password=tamguo
spring.datasource.connectionProperties=druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
@ -12,14 +12,14 @@ spring.datasource.maxPoolPreparedStatementPerConnectionSize=20
spring.datasource.maxWait=60000
spring.datasource.minEvictableIdleTimeMillis=300000
spring.datasource.minIdle=5
spring.datasource.password=
spring.datasource.password=Tanguo
spring.datasource.poolPreparedStatements=true
spring.datasource.testOnBorrow=false
spring.datasource.testOnReturn=false
spring.datasource.testWhileIdle=true
spring.datasource.timeBetweenEvictionRunsMillis=60000
spring.datasource.type=com.alibaba.druid.pool.DruidDataSource
spring.datasource.url=jdbc:mysql://127.0.0.1:3306/tiku?useUnicode=true&characterEncoding=UTF-8&useSSL=false
spring.datasource.url=jdbc:mysql://47.100.175.14:3306/tiku?useUnicode=true&characterEncoding=UTF-8&useSSL=false
spring.datasource.username=root
spring.datasource.validationQuery=SELECT 1 FROM DUAL
@ -46,7 +46,7 @@ spring.thymeleaf.encoding=UTF-8
spring.thymeleaf.content-type=text/html
spring.thymeleaf.cache=false
redis.hostname=127.0.0.1
redis.hostname=47.100.175.14
redis.port=6379
redis.password=

@ -4,6 +4,6 @@
<pool maxActive="50" maxIdle="20" maxWait="1000" />
<servers>
<!-- test -->
<server ip="127.0.0.1" port="6379"/>
<server ip="47.100.175.14" port="6379"/>
</servers>
</redis>

@ -87,9 +87,7 @@
</div>
<div class="blank" style="height: 70px;"></div>
</div>
<div id="ascrail2000" class="nicescroll-rails nicescroll-rails-vr" style="width: 15px; z-index: auto; cursor: default; position: absolute; top: 0px; right: 0px; touch-action: none; height: 697px; opacity: 0; display: block;"><div class="nicescroll-cursors" style="position: relative; top: 0px; float: right; width: 5px; height: 403px; background-color: rgb(219, 219, 219); border: 5px; background-clip: padding-box; border-radius: 5px; touch-action: none;"></div></div><div id="ascrail2000-hr" class="nicescroll-rails nicescroll-rails-hr" style="height: 15px; z-index: auto; position: absolute; left: 0px; bottom: 0px; cursor: default; display: none; width: 329px; opacity: 0;"><div class="nicescroll-cursors" style="position: absolute; top: 0px; height: 5px; width: 329px; background-color: rgb(219, 219, 219); border: 5px; background-clip: padding-box; border-radius: 5px;"></div></div></div>
<div id="ascrail2000" class="nicescroll-rails nicescroll-rails-vr" style="width: 15px; z-index: auto; cursor: default; position: absolute; top: 0px; right: 0px; touch-action: none; height: 697px; opacity: 0; display: block;"><div class="nicescroll-cursors" style="position: relative; top: 0px; float: right; width: 5px; height: 403px; background-color: rgb(219, 219, 219); border: 5px; background-clip: padding-box; border-radius: 5px; touch-action: none;"></div></div><div id="ascrail2000-hr" class="nicescroll-rails nicescroll-rails-hr" style="height: 15px; z-index: auto; position: absolute; left: 0px; bottom: 0px; cursor: default; display: none; width: 329px; opacity: 0;"><div class="nicescroll-cursors" style="position: absolute; top: 0px; height: 5px; width: 329px; background-color: rgb(219, 219, 219); border: 5px; background-clip: padding-box; border-radius: 5px;"></div></div></div>
</div>
<div class="list-right">
<div class="detail">
@ -112,7 +110,7 @@
<div class="detail-kpoint-1" th:each="cc,ccStat:${c.childChapterList}">
<div class="kpoint-1-title k1t-0-0" id="k1t-0-0">
<h4 text="$">1 集合的概念及运算</h4>
<h4 th:text="${cc.name}">1 集合的概念及运算</h4>
<span>1181 试题</span>
<a target="_blank" class="ten" th:href="${setting.domain + 'question/' + subjectId +'/'+ course.uid + '/' +c.uid +'/'+cc.uid+'-1-15.html'}">随机来

Loading…
Cancel
Save