|
|
|
@ -21,6 +21,7 @@ import org.springframework.util.ResourceUtils;
|
|
|
|
|
|
|
|
|
|
import java.io.File;
|
|
|
|
|
import java.io.FileNotFoundException;
|
|
|
|
|
import java.io.IOException;
|
|
|
|
|
import java.io.InputStream;
|
|
|
|
|
import java.util.HashMap;
|
|
|
|
|
import java.util.List;
|
|
|
|
@ -105,6 +106,13 @@ public class GenerateFileServiceImpl implements GenerateFileService {
|
|
|
|
|
path = FileContentUtil.pdfOut(getData(object, img), getModelPath(templatePath), fileUtil, getNewPath(templatePath, dto.getExamCode()), (Integer) type.get("page_num"));
|
|
|
|
|
} catch (FileNotFoundException e) {
|
|
|
|
|
e.printStackTrace();
|
|
|
|
|
return ResponseVO.error(e.toString());
|
|
|
|
|
} catch (IOException e) {
|
|
|
|
|
e.printStackTrace();
|
|
|
|
|
return ResponseVO.error(e.toString());
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
e.printStackTrace();
|
|
|
|
|
return ResponseVO.error(e.toString());
|
|
|
|
|
}
|
|
|
|
|
mapper.update(path, dto.getExamCode());
|
|
|
|
|
mapper.updateDoc(templatePath + ",", path + ",", dto.getExamCode());
|
|
|
|
|