hyc #4
@@ -9,6 +9,7 @@ import com.example.exam.exam.service.wpsword.docx4j.paragraph.Paragraphs;
|
|||||||
import com.example.exam.exam.service.wpsword.docx4j.paragraph.RunText;
|
import com.example.exam.exam.service.wpsword.docx4j.paragraph.RunText;
|
||||||
import com.example.exam.exam.service.wpsword.docx4j.section.SectionPage;
|
import com.example.exam.exam.service.wpsword.docx4j.section.SectionPage;
|
||||||
import com.example.exam.exam.service.wpsword.docx4j.table.TableIng;
|
import com.example.exam.exam.service.wpsword.docx4j.table.TableIng;
|
||||||
|
import com.example.exam.exam.service.wpsword.docx4j.text.TextInfo;
|
||||||
import com.example.exam.exam.service.wpsword.docx4j.utils.WpsWordNameSpaces;
|
import com.example.exam.exam.service.wpsword.docx4j.utils.WpsWordNameSpaces;
|
||||||
import com.example.exam.exam.service.wpsword.docx4j.utils.XmlUtil;
|
import com.example.exam.exam.service.wpsword.docx4j.utils.XmlUtil;
|
||||||
import com.example.exam.exam.service.wpsword.docx4j.vo.JudgementWordsVO;
|
import com.example.exam.exam.service.wpsword.docx4j.vo.JudgementWordsVO;
|
||||||
@@ -146,7 +147,7 @@ public class DocxMaster {
|
|||||||
++i;
|
++i;
|
||||||
SectPr sectPr = section.getSectPr();
|
SectPr sectPr = section.getSectPr();
|
||||||
|
|
||||||
if (sectPr != null && firstName.contains("节")) {
|
if (sectPr != null && firstName.contains("节")) {
|
||||||
if (i == Integer.parseInt(indexParm)) {
|
if (i == Integer.parseInt(indexParm)) {
|
||||||
// 构造一个伪段落,包裹 sectPr 传入方法
|
// 构造一个伪段落,包裹 sectPr 传入方法
|
||||||
P dummyP = new P();
|
P dummyP = new P();
|
||||||
@@ -462,7 +463,7 @@ public class DocxMaster {
|
|||||||
|
|
||||||
if (anchor != null) {
|
if (anchor != null) {
|
||||||
// 反射调用文本框处理方法(传 Anchor)
|
// 反射调用文本框处理方法(传 Anchor)
|
||||||
Class<?> textClass = pc.exam.pp.module.judgement.utils.wps_word.docx4j.text.TextInfo.class;
|
Class<?> textClass = TextInfo.class;
|
||||||
String value = null;
|
String value = null;
|
||||||
try {
|
try {
|
||||||
Method method = textClass.getMethod(function, List.class,
|
Method method = textClass.getMethod(function, List.class,
|
||||||
@@ -634,7 +635,6 @@ public class DocxMaster {
|
|||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
|
||||||
break; // 找到指定表格就退出
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
package pc.exam.pp.module.judgement.utils.wps_word.docx4j.paragraph;
|
package com.example.exam.exam.service.wpsword.docx4j.paragraph;
|
||||||
|
|
||||||
import com.example.exam.exam.service.wpsword.docx4j.paragraph.Convert;
|
import com.example.exam.exam.service.wpsword.docx4j.paragraph.Convert;
|
||||||
import com.example.exam.exam.service.wpsword.docx4j.utils.ColorUtils;
|
import com.example.exam.exam.service.wpsword.docx4j.utils.ColorUtils;
|
||||||
|
@@ -330,8 +330,6 @@ public class RunText {
|
|||||||
if (run == null) continue;
|
if (run == null) continue;
|
||||||
RPr rPr = run.getRPr();
|
RPr rPr = run.getRPr();
|
||||||
if (rPr != null && rPr.getU() != null && rPr.getU().getColor() != null) {
|
if (rPr != null && rPr.getU() != null && rPr.getU().getColor() != null) {
|
||||||
System.out.println("============================================================");
|
|
||||||
System.out.println(ColorUtils.getChineseColorName(rPr.getU().getColor())+"''''''''''''''''''''''''''''''''''''");
|
|
||||||
return ColorUtils.getChineseColorName(rPr.getU().getColor());
|
return ColorUtils.getChineseColorName(rPr.getU().getColor());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -345,8 +343,6 @@ public class RunText {
|
|||||||
Style style = stylePart.getStyleById(styleId);
|
Style style = stylePart.getStyleById(styleId);
|
||||||
if (style != null && style.getRPr() != null && style.getRPr().getU() != null
|
if (style != null && style.getRPr() != null && style.getRPr().getU() != null
|
||||||
&& style.getRPr().getU().getColor() != null) {
|
&& style.getRPr().getU().getColor() != null) {
|
||||||
System.out.println("============================================================");
|
|
||||||
System.out.println(ColorUtils.getChineseColorName(style.getRPr().getU().getColor()));
|
|
||||||
return ColorUtils.getChineseColorName(style.getRPr().getU().getColor());
|
return ColorUtils.getChineseColorName(style.getRPr().getU().getColor());
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.example.exam.exam.mapper.ExamErrorQuestionMapper">
|
<mapper namespace="com.example.exam.exam.mapper.ExamErrorQuestionMapper">
|
||||||
|
|
||||||
<delete id="deleteByQuIdAndUserId" parameterType="long">
|
<delete id="deleteByQuIdAndUserId" >
|
||||||
DELETE
|
DELETE
|
||||||
FROM exam_error_question
|
FROM exam_error_question
|
||||||
WHERE qu_id = #{quId}
|
WHERE qu_id = #{quId}
|
||||||
|
Reference in New Issue
Block a user