From 6371192282c8e2ecce7ed9196d19bc4fa82da7b1 Mon Sep 17 00:00:00 2001 From: wuchunlei Date: Wed, 4 Dec 2024 14:51:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E4=B8=8A=E5=9B=9E=E6=BB=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/peanut/modules/book/service/impl/BookServiceImpl.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/peanut/modules/book/service/impl/BookServiceImpl.java b/src/main/java/com/peanut/modules/book/service/impl/BookServiceImpl.java index f8d0f032..36bf59b9 100644 --- a/src/main/java/com/peanut/modules/book/service/impl/BookServiceImpl.java +++ b/src/main/java/com/peanut/modules/book/service/impl/BookServiceImpl.java @@ -31,6 +31,7 @@ import org.apache.poi.xwpf.usermodel.*; import org.joda.time.DateTime; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; import org.springframework.util.CollectionUtils; import javax.imageio.ImageIO; @@ -451,6 +452,7 @@ public class BookServiceImpl extends ServiceImpl implements * @return0 */ @Override + @Transactional public boolean getWordSection(Integer bookId) { try{ int topText = 22;