|
@@ -24,6 +24,8 @@ import com.qmth.teachcloud.common.enums.PageSizeEnum;
|
|
|
import com.qmth.teachcloud.common.mapper.BasicAttachmentMapper;
|
|
|
import com.qmth.teachcloud.common.service.AttachmentCommonService;
|
|
|
import com.qmth.teachcloud.common.service.BasicRoleDataPermissionService;
|
|
|
+import com.qmth.teachcloud.common.service.SysUserService;
|
|
|
+import com.qmth.teachcloud.common.util.Base64Util;
|
|
|
import com.qmth.teachcloud.common.util.ConvertUtil;
|
|
|
import com.qmth.distributed.print.business.util.ExamTaskUtil;
|
|
|
import com.qmth.teachcloud.common.util.HtmlToPdfUtil;
|
|
@@ -49,7 +51,7 @@ public class DownloadServiceImpl implements DownloadService {
|
|
|
@Resource
|
|
|
ExamTaskMapper examTaskMapper;
|
|
|
@Resource
|
|
|
- ExamTaskDetailMapper examTaskDetailMapper;
|
|
|
+ SysUserService sysUserService;
|
|
|
|
|
|
@Resource
|
|
|
BasicAttachmentMapper basicAttachmentMapper;
|
|
@@ -157,7 +159,8 @@ public class DownloadServiceImpl implements DownloadService {
|
|
|
throw ExceptionResultEnum.ERROR.exception("没有可导出文件");
|
|
|
}
|
|
|
String zipName = examTask.getCourseName() + "未曝光试卷" + SystemConstant.ZIP_PREFIX;
|
|
|
- attachmentCommonService.zipFiles(response, rootPath, zipName, fileList);
|
|
|
+ SysUser sysUser = sysUserService.getById(ServletUtil.getRequestUserId());
|
|
|
+ attachmentCommonService.zipFiles(response, rootPath, zipName, fileList, new String(Base64Util.decode(sysUser.getPassword())));
|
|
|
} catch (Exception e) {
|
|
|
log.error(SystemConstant.LOG_ERROR, e);
|
|
|
} finally {
|