提交 ad078b96 authored 作者: 任建彩's avatar 任建彩

feat:打包文件名

1.resource
上级 89399158
......@@ -113,7 +113,6 @@ public class GoodsLibraryController {
List<String> fileNames = resourceRelationService.queryRelationFileNameList(list);
FileDownloadForm fileForm = new FileDownloadForm();
fileForm.setFileNames(fileNames);
//fileForm.setName(goodsLibrary.getName());
//打包zip
String zipFileName = fileClient.wholeDownload(fileForm);
if(StringUtils.isNotBlank(zipFileName)){
......
......@@ -186,16 +186,11 @@ public class ResourceLibraryController {
vo.setNum(num);
sc.add(vo);
}else{
/*if(vo.getName().contains("第") && vo.getName().contains(" ") ){
String fileName = vo.getName().substring(0, vo.getName().indexOf(" "));
vo.setName(fileName);
}*/
sc.add(vo);
}
}
int i=0;
for (ResourceRelationVO s : sc){
//System.out.println("资源id:"+s.getId()+"-----排序号:"+i+"---------显示顺序:"+s.getNum()+"名称"+s.getName());
i++;
ResourceRelation resourceRelation = resourceRelationService.getById(s.getId());
resourceRelation.setSort(i);
......
......@@ -590,6 +590,7 @@ public class GoodsLibraryServiceImpl extends ServiceImpl<GoodsLibraryMapper, Goo
entity.setResourceType(16);
entity.setDepartmentId(systemAdmin.getDepartmentId());
entity.setDepartmentCode(systemAdmin.getDepartmentCode());
entity.setIsDelete(1);
mapper.insert(entity);
QrCode qrCode = new QrCode();
qrCode.setResourceId(entity.getId());
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论