|
|
|
|
@ -156,23 +156,32 @@ public class Archive_DetailServiceImpl implements Archive_DetailService {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void selectPdfPathByIds(HttpServletResponse response,HttpSession session,String detailIds, String masterId) {
|
|
|
|
|
public void selectPdfPathByIds(HttpServletResponse response,HttpSession session,String detailIds, String masterId,String pdfWater) {
|
|
|
|
|
//获取废除的pdf文件名列表archive_detail
|
|
|
|
|
List<Archive_Detail> arList = archiveDetailMapper.selectPdfPathByIds(masterId,detailIds);
|
|
|
|
|
pdfToSession(response,session,arList);
|
|
|
|
|
pdfToSession(response,session,arList,pdfWater);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void pdfToSession(HttpServletResponse response,HttpSession session, List<Archive_Detail> arList){
|
|
|
|
|
private void pdfToSession(HttpServletResponse response,HttpSession session, List<Archive_Detail> arList,String pdfWater){
|
|
|
|
|
List<String> pdfList = mulFile2OneById(response, arList);
|
|
|
|
|
Jpg2PdfUtil.mulFile2One(response, pdfList, pdfWater);
|
|
|
|
|
//存至session
|
|
|
|
|
session.setAttribute("showRecord",pdfList);
|
|
|
|
|
//session.setAttribute("showRecord",pdfList);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void selectByIdStr(HttpServletResponse response, HttpSession session,Archive_Detail detail,String pdfWater) {
|
|
|
|
|
List<Archive_Detail> arList = archiveDetailMapper.selectByIdStr(detail);
|
|
|
|
|
pdfToSession(response,session,arList,pdfWater);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void selectByIdStr(HttpServletResponse response, HttpSession session,Archive_Detail detail) {
|
|
|
|
|
public void selectByIdStrFont(HttpServletResponse response, HttpSession session,Archive_Detail detail) {
|
|
|
|
|
List<Archive_Detail> arList = archiveDetailMapper.selectByIdStr(detail);
|
|
|
|
|
pdfToSession(response,session,arList);
|
|
|
|
|
List<String> pdfList = mulFile2OneById(response, arList);
|
|
|
|
|
//存至session
|
|
|
|
|
session.setAttribute("showRecord",pdfList);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
@ -181,6 +190,8 @@ public class Archive_DetailServiceImpl implements Archive_DetailService {
|
|
|
|
|
if(!CollectionUtils.isEmpty(pdfList)) {
|
|
|
|
|
Jpg2PdfUtil.mulFile2One(response, pdfList, pdfWater);
|
|
|
|
|
}
|
|
|
|
|
//删除缓存
|
|
|
|
|
session.removeAttribute("showRecord");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
|