Compare commits
4 Commits
f5ee50e74d
...
1c9dd2f3ec
Author | SHA1 | Date | |
---|---|---|---|
1c9dd2f3ec | |||
![]() |
d21423b938 | ||
![]() |
9cce832833 | ||
![]() |
7a80189262 |
@@ -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.section.SectionPage;
|
||||
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.XmlUtil;
|
||||
import com.example.exam.exam.service.wpsword.docx4j.vo.JudgementWordsVO;
|
||||
@@ -462,7 +463,7 @@ public class DocxMaster {
|
||||
|
||||
if (anchor != null) {
|
||||
// 反射调用文本框处理方法(传 Anchor)
|
||||
Class<?> textClass = pc.exam.pp.module.judgement.utils.wps_word.docx4j.text.TextInfo.class;
|
||||
Class<?> textClass = TextInfo.class;
|
||||
String value = null;
|
||||
try {
|
||||
Method method = textClass.getMethod(function, List.class,
|
||||
@@ -634,8 +635,6 @@ public class DocxMaster {
|
||||
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.utils.ColorUtils;
|
||||
@@ -519,7 +519,6 @@ public class Paragraphs {
|
||||
CTBorder bottom = border.getBottom();
|
||||
CTBorder left = border.getLeft();
|
||||
CTBorder right = border.getRight();
|
||||
|
||||
if (top != null && bottom != null && left != null && right != null) {
|
||||
String topVal = translateBorderVal(top.getVal().value());
|
||||
String bottomVal = translateBorderVal(bottom.getVal().value());
|
||||
|
@@ -5,7 +5,6 @@ import org.docx4j.XmlUtils;
|
||||
import org.docx4j.openpackaging.parts.WordprocessingML.StyleDefinitionsPart;
|
||||
import org.docx4j.wml.*;
|
||||
import java.util.List;
|
||||
|
||||
public class RunText {
|
||||
|
||||
// 句子-字号(返回第一个有效值)
|
||||
@@ -330,8 +329,6 @@ public class RunText {
|
||||
if (run == null) continue;
|
||||
RPr rPr = run.getRPr();
|
||||
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());
|
||||
}
|
||||
}
|
||||
@@ -345,8 +342,6 @@ public class RunText {
|
||||
Style style = stylePart.getStyleById(styleId);
|
||||
if (style != null && style.getRPr() != null && style.getRPr().getU() != 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());
|
||||
}
|
||||
} catch (Exception e) {
|
||||
|
@@ -4,12 +4,11 @@
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.example.exam.exam.mapper.ExamErrorQuestionMapper">
|
||||
|
||||
<delete id="deleteByQuIdAndUserId" parameterType="long">
|
||||
<delete id="deleteByQuIdAndUserId" >
|
||||
DELETE
|
||||
FROM exam_error_question
|
||||
WHERE qu_id = #{quId}
|
||||
AND creator = #{userId}
|
||||
AND tenant_id = #{tenantId}
|
||||
</delete>
|
||||
|
||||
</mapper>
|
Reference in New Issue
Block a user