提交 91cc2eef authored 作者: lizhuo's avatar lizhuo

--no commit message

上级 26a159db
......@@ -266,7 +266,7 @@ public class ApplyController {
@ApiOperation(value = "检索批量下载", notes = "检索批量下载")
@GetMapping(value = WorksRequestPath.PREDOWN)
public CallBack<String> getPreDown(String[] ids,String type) {
public CallBack<String> getPreDown(String[] ids,String typeList) {
//获取当前登陆人部门列表
String userid = "11";//redis.getUser().getUserId();
CallBack<UserVO> userVo = sysuserClient.getUserById(userid);
......@@ -288,9 +288,9 @@ public class ApplyController {
//判断和资源是否属于同部门 两种情况下载类型不同
Integer departmentId = (Integer)results.get(0).get("departmentId");
if(deptIdList.contains(departmentId)) {
sdv.setType(type);
sdv.setType(typeList);
//申请资源 下载附件和资源文件等
if (type.contains(BookDownEnum.RESOURCE.getCode())) {
if (typeList.contains(BookDownEnum.RESOURCE.getCode())) {
String pdf = (String) results.get(0).get("pdf");
String video = (String) results.get(0).get("video");
String audio = (String) results.get(0).get("audio");
......@@ -304,7 +304,7 @@ public class ApplyController {
sdv.getResourceList().add(audio);
}
}
if (type.contains(BookDownEnum.ATTACHMENT.getCode())) {
if (typeList.contains(BookDownEnum.ATTACHMENT.getCode())) {
Set attachmentList = (Set) results.get(0).get("attachmentList");
sdv.setAttachmentList(attachmentList);
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论