|
|
|
|
@ -36,7 +36,6 @@ import com.emr.vo.commomSearch.ScanPathVo;
|
|
|
|
|
import com.emr.vo.templateSearch.Emr_Modle_RelatedVo;
|
|
|
|
|
import com.github.pagehelper.PageHelper;
|
|
|
|
|
import com.github.pagehelper.PageInfo;
|
|
|
|
|
import org.apache.commons.io.IOUtils;
|
|
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
|
|
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
@ -48,15 +47,14 @@ import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
|
|
import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
|
|
|
|
|
|
|
import javax.servlet.ServletOutputStream;
|
|
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
|
import java.io.*;
|
|
|
|
|
import java.text.ParseException;
|
|
|
|
|
import java.text.SimpleDateFormat;
|
|
|
|
|
import java.util.*;
|
|
|
|
|
import java.util.zip.ZipEntry;
|
|
|
|
|
import java.util.zip.ZipOutputStream;
|
|
|
|
|
import org.apache.tools.zip.ZipEntry;
|
|
|
|
|
import org.apache.tools.zip.ZipOutputStream;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @ProjectName:TemplateSearchController
|
|
|
|
|
@ -1337,7 +1335,6 @@ public class TemplateSearchController {
|
|
|
|
|
List<String> scanPathList = vo.getScanPathList();
|
|
|
|
|
//每个文件名
|
|
|
|
|
String fileName = vo.getInpatientNo().trim() + "-" + vo.getName().trim() + "-" + disDate.trim() + "_" + fmt.format(new Date());
|
|
|
|
|
fileName = java.net.URLEncoder.encode(fileName, "UTF-8");
|
|
|
|
|
zos.putNextEntry(new ZipEntry(fileName + ".pdf"));
|
|
|
|
|
//合成pdf
|
|
|
|
|
out = new ByteArrayOutputStream();
|
|
|
|
|
|