|
@@ -26,6 +26,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import java.io.*;
|
|
|
+import java.text.DecimalFormat;
|
|
|
import java.text.SimpleDateFormat;
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.Collections;
|
|
@@ -148,7 +149,8 @@ public class PdfServiceImpl extends BaseService implements PdfService {
|
|
|
pdf.setDescription(caseExtends.getDescription());
|
|
|
for (AssignedCase assignedCase : cases) {
|
|
|
if (assignedCase.getCaseId() == caseId) {
|
|
|
- pdf.setCaseScore(String.valueOf(assignedCase.getMaxScore()));
|
|
|
+ DecimalFormat decimalFormat=new DecimalFormat("######0.00");
|
|
|
+ pdf.setCaseScore(String.valueOf(decimalFormat.format(assignedCase.getMaxScore())));
|
|
|
}
|
|
|
}
|
|
|
if (caseExtends.getAnswerWay() == AnswerWayConstants.REPORT)
|
|
@@ -174,6 +176,7 @@ public class PdfServiceImpl extends BaseService implements PdfService {
|
|
|
AcroFields fields = ps.getAcroFields();
|
|
|
fields.setSubstitutionFonts(fontList);
|
|
|
|
|
|
+ System.out.println(pdf.getExamName());
|
|
|
fields.setField("examName", pdf.getExamName());
|
|
|
fields.setField("workerName", pdf.getWorkerName());
|
|
|
fields.setField("school", pdf.getSchool());
|