main
tamguo 7 years ago
parent df16d7f61f
commit 107d71a1df

@ -29,13 +29,13 @@ public class ModifyQuestionImage {
@SuppressWarnings("unchecked")
@Test
public void modify() {
Integer current = 1 ;
Integer current = 98 ;
Integer size = 100;
while(true) {
Page<QuestionEntity> page = new Page<>(current , size);
Page<QuestionEntity> entitys = iQuestionService.selectPage(page , Condition.create().orderAsc(Arrays.asList("id")));
if(entitys.getPages() > 759) {
if(entitys.getCurrent() > 759) {
break;
}
// 处理数据
@ -43,6 +43,9 @@ public class ModifyQuestionImage {
QuestionEntity question = entitys.getRecords().get(i);
question.setAnalysis(question.getAnalysis().replaceAll("http://www.tamguo.com/", ""));
question.setContent(question.getContent().replaceAll("http://www.tamguo.com/", ""));
if(question.getAnswer() == null) {
question.setAnswer("");
}
question.setAnswer(question.getAnswer().replaceAll("http://www.tamguo.com/", ""));
}
iQuestionService.updateAllColumnBatchById(entitys.getRecords());

@ -21,6 +21,10 @@ public class CourseEntity {
private Integer pointNum;
private String remarks;
private String seoTitle;
private String seoKeywords;
private String seoDescription;
@TableField(fill = FieldFill.INSERT_UPDATE)
private String createBy;
@TableField(fill = FieldFill.INSERT_UPDATE)
@ -105,5 +109,23 @@ public class CourseEntity {
public void setId(String id) {
this.id = id;
}
public String getSeoTitle() {
return seoTitle;
}
public void setSeoTitle(String seoTitle) {
this.seoTitle = seoTitle;
}
public String getSeoKeywords() {
return seoKeywords;
}
public void setSeoKeywords(String seoKeywords) {
this.seoKeywords = seoKeywords;
}
public String getSeoDescription() {
return seoDescription;
}
public void setSeoDescription(String seoDescription) {
this.seoDescription = seoDescription;
}
}

@ -2,9 +2,9 @@
<html lang="Zh-hans" xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<title th:text="${#strings.isEmpty(subject.seoTitle) ? '探果题库_聪明的学生都在这里' : subject.seoTitle}"></title>
<meta name="keywords" th:content="${#strings.isEmpty(subject.seoKeywords) ? '探果题库为考生提供高效的智能备考服务,涵括领域有高考、财会类、建筑工程、职业资格、医卫类、计算机类和学历类等热门考试题库。拥有高校名师丰富的经验,优质的学习资料和备考全阶段的高效服务!' : subject.seoKeywords}"/>
<meta name="description" th:content="${#strings.isEmpty(subject.seoDescription) ? '探果题库,高考试题,高考试卷,高校试题,名校,名校试题,名校试卷,高校名师,名师专访,名师教案,名师课堂试题库,试卷库,智能题库,历年真题,模拟试题,押题,预测试题,高考,会计证,会计从业,会计师,经济师,施工员,建造师,建筑师,造价师,职业资格,证券资格,考研,计算机考试,建筑考试,财会类,医卫类,护士资格,公务员,知识点,试题,试卷' : subject.seoDescription}"/>
<title th:text="${#strings.isEmpty(course.seoTitle) ? '探果题库_聪明的学生都在这里' : course.seoTitle}"></title>
<meta name="keywords" th:content="${#strings.isEmpty(course.seoKeywords) ? '探果题库为考生提供高效的智能备考服务,涵括领域有高考、财会类、建筑工程、职业资格、医卫类、计算机类和学历类等热门考试题库。拥有高校名师丰富的经验,优质的学习资料和备考全阶段的高效服务!' : course.seoKeywords}"/>
<meta name="description" th:content="${#strings.isEmpty(course.seoDescription) ? '探果题库,高考试题,高考试卷,高校试题,名校,名校试题,名校试卷,高校名师,名师专访,名师教案,名师课堂试题库,试卷库,智能题库,历年真题,模拟试题,押题,预测试题,高考,会计证,会计从业,会计师,经济师,施工员,建造师,建筑师,造价师,职业资格,证券资格,考研,计算机考试,建筑考试,财会类,医卫类,护士资格,公务员,知识点,试题,试卷' : course.seoDescription}"/>
<meta name="author" content="Tamguo Team" />
<meta name="copyright" content="Tamguo" />
<meta name="author" content="Tamguo Team" />

@ -2,9 +2,9 @@
<html lang="Zh-hans" xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<title th:text="${#strings.isEmpty(subject.seoTitle) ? '探果题库_聪明的学生都在这里' : subject.seoTitle}"></title>
<meta name="keywords" th:content="${#strings.isEmpty(subject.seoKeywords) ? '探果题库为考生提供高效的智能备考服务,涵括领域有高考、财会类、建筑工程、职业资格、医卫类、计算机类和学历类等热门考试题库。拥有高校名师丰富的经验,优质的学习资料和备考全阶段的高效服务!' : subject.seoKeywords}"/>
<meta name="description" th:content="${#strings.isEmpty(subject.seoDescription) ? '探果题库,高考试题,高考试卷,高校试题,名校,名校试题,名校试卷,高校名师,名师专访,名师教案,名师课堂试题库,试卷库,智能题库,历年真题,模拟试题,押题,预测试题,高考,会计证,会计从业,会计师,经济师,施工员,建造师,建筑师,造价师,职业资格,证券资格,考研,计算机考试,建筑考试,财会类,医卫类,护士资格,公务员,知识点,试题,试卷' : subject.seoDescription}"/>
<title th:text="${#strings.isEmpty(course.seoTitle) ? '探果题库_聪明的学生都在这里' : course.seoTitle}"></title>
<meta name="keywords" th:content="${#strings.isEmpty(course.seoKeywords) ? '探果题库为考生提供高效的智能备考服务,涵括领域有高考、财会类、建筑工程、职业资格、医卫类、计算机类和学历类等热门考试题库。拥有高校名师丰富的经验,优质的学习资料和备考全阶段的高效服务!' : course.seoKeywords}"/>
<meta name="description" th:content="${#strings.isEmpty(course.seoDescription) ? '探果题库,高考试题,高考试卷,高校试题,名校,名校试题,名校试卷,高校名师,名师专访,名师教案,名师课堂试题库,试卷库,智能题库,历年真题,模拟试题,押题,预测试题,高考,会计证,会计从业,会计师,经济师,施工员,建造师,建筑师,造价师,职业资格,证券资格,考研,计算机考试,建筑考试,财会类,医卫类,护士资格,公务员,知识点,试题,试卷' : course.seoDescription}"/>
<meta name="author" content="Tamguo Team" />
<meta name="copyright" content="Tamguo" />
<meta name="author" content="Tamguo Team" />

@ -10,6 +10,7 @@
<meta name="copyright" content="Tamguo" />
<meta name="360-site-verification" content="d307dfe5c7562c28c2514592bfba0f58" />
<meta name="wlhlauth" content="6bb48d08d2b053e9e45f91fa46fb0c4f"/>
<meta name="shenma-site-verification" content="d7da26ed196c232a40149f7a6feb2417_1534215172">
<link rel="stylesheet" th:href="${domainName + 'css/main.css'}"></link>
<link rel="stylesheet" th:href="${domainName + 'css/reset.css'}" />
<link rel="stylesheet" th:href="${domainName + 'css/iconfont.css'}" />

Loading…
Cancel
Save