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

feat:详情

1.resource
上级 b193818c
...@@ -122,6 +122,8 @@ public class QrCodeController { ...@@ -122,6 +122,8 @@ public class QrCodeController {
for (Book book : list ) { for (Book book : list ) {
QrCode qrCode = new QrCode(); QrCode qrCode = new QrCode();
qrCode.setCreatedTime(new Date()); qrCode.setCreatedTime(new Date());
qrCode.setResourceId(book.getId());
qrCode.setResourceType(AllResourceTypeEnum.EBOOK.getCode());
String path = qrCodeUploadPath; String path = qrCodeUploadPath;
try { try {
QrCodeCreateUtil.createQrCode(path + "/" + book.getId() + ".jpg", realmNamePath + "/h5/resource/ebook/detail?id=" +book.getId()); QrCodeCreateUtil.createQrCode(path + "/" + book.getId() + ".jpg", realmNamePath + "/h5/resource/ebook/detail?id=" +book.getId());
......
...@@ -310,13 +310,6 @@ public class EbookServiceImpl extends ServiceImpl<EbookMapper, Ebook> implements ...@@ -310,13 +310,6 @@ public class EbookServiceImpl extends ServiceImpl<EbookMapper, Ebook> implements
} }
} }
// 添加作者关系 // 添加作者关系
/*if (ArrayUtils.isNotEmpty(form.getAuthorList())) {
List<RelationAuthor> baList = form.getAuthorList().stream().filter(a -> StringUtils.isNotBlank(a.getAuthor())).collect(Collectors.toList());
for (RelationAuthor li : baList) {
li.setResourceId(ebook.getId());
}
relationAuthorService.saveBatch(baList);
}*/
//关联系列 //关联系列
if(StringUtils.isNotBlank(form.getProjectId())){ if(StringUtils.isNotBlank(form.getProjectId())){
ProjectModelResource obj = new ProjectModelResource(); ProjectModelResource obj = new ProjectModelResource();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论