提交 004f1b7d authored 作者: renjiancai's avatar renjiancai

--no commit message

上级 660b666e
...@@ -406,6 +406,7 @@ public class EbookLibraryController { ...@@ -406,6 +406,7 @@ public class EbookLibraryController {
ArticleGoods agoods=new ArticleGoods(); ArticleGoods agoods=new ArticleGoods();
agoods.setObjectId(article.getId()); agoods.setObjectId(article.getId());
agoods.setDataSources(1); agoods.setDataSources(1);
agoods.setSalesStatus(1);
articleGoodsService.insertSelective(agoods); articleGoodsService.insertSelective(agoods);
}); });
...@@ -414,6 +415,7 @@ public class EbookLibraryController { ...@@ -414,6 +415,7 @@ public class EbookLibraryController {
image.setBookId(ev.getEbook().getBookId()); image.setBookId(ev.getEbook().getBookId());
image.setBookName(ev.getBook().getName()); image.setBookName(ev.getBook().getName());
image.setUpdateTime(new Date()); image.setUpdateTime(new Date());
image.setStatus(0);
image.setUploadTime(new Date()); image.setUploadTime(new Date());
ilService.insert(image); ilService.insert(image);
ClassifyRelation ildt = new ClassifyRelation(); ClassifyRelation ildt = new ClassifyRelation();
...@@ -426,6 +428,7 @@ public class EbookLibraryController { ...@@ -426,6 +428,7 @@ public class EbookLibraryController {
ImageGoods igoods=new ImageGoods(); ImageGoods igoods=new ImageGoods();
igoods.setObjectId(image.getId()); igoods.setObjectId(image.getId());
igoods.setDataSources(1); igoods.setDataSources(1);
igoods.setSalesStatus(1);
imageGoodsService.insertSelective(igoods); imageGoodsService.insertSelective(igoods);
}); });
...@@ -554,7 +557,7 @@ public class EbookLibraryController { ...@@ -554,7 +557,7 @@ public class EbookLibraryController {
@ApiOperation(value = "导入图书Excel") @ApiOperation(value = "导入图书Excel")
@PostMapping(value = SysUserRequestPath.IMPORT, produces = "application/json;charset=UTF-8") @PostMapping(value = SysUserRequestPath.IMPORT, produces = "application/json;charset=UTF-8")
public CallBack<String> importBook(@RequestParam("file") MultipartFile file,@RequestBody SaveDiyTypeForm form) public CallBack<String> importBook(@RequestParam("file") MultipartFile file,SaveDiyTypeForm form)
throws Exception { throws Exception {
Book book = new Book(); Book book = new Book();
Ebook ebook = new Ebook(); Ebook ebook = new Ebook();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论