From 57641b2e2a36593ebfa7367413dd102f52a0cfc6 Mon Sep 17 00:00:00 2001 From: wangjinlei <751475802@qq.com> Date: Wed, 22 Nov 2023 10:45:21 +0800 Subject: [PATCH] log-slf4j --- .../peanut/modules/app/utils/JwtUtils.java | 2 ++ .../book/controller/AuthorController.java | 2 ++ .../book/controller/BaseAreaController.java | 3 +- .../BookBrowseRecordsController.java | 2 ++ .../controller/BookBuyConfigController.java | 2 ++ .../controller/BookCategoryController.java | 2 ++ .../BookChapterContentController.java | 2 ++ .../controller/BookChapterController.java | 2 ++ .../controller/BookClockForumController.java | 2 ++ .../BookClockinPunchController.java | 3 +- .../BookForumArticlesServiceController.java | 3 +- .../BookForumCommentController.java | 2 ++ .../controller/BookListeningController.java | 2 ++ .../BookListeningShelfController.java | 2 ++ .../controller/BookReadRateController.java | 2 ++ .../book/controller/BookShelfController.java | 2 ++ .../book/controller/BookTeachController.java | 3 +- .../book/controller/CouponController.java | 2 ++ .../controller/CouponHistoryController.java | 2 ++ ...uponProductCategoryRelationController.java | 2 ++ .../CouponProductRelationController.java | 2 ++ .../book/controller/ExpressController.java | 2 ++ .../book/controller/MyUserController.java | 2 ++ .../book/controller/OrderCartController.java | 2 ++ .../controller/PayPaymentOrderController.java | 2 ++ .../controller/PayZfbOrderController.java | 2 ++ .../book/controller/PointController.java | 3 +- .../book/controller/ProvinceController.java | 3 +- .../book/controller/PublisherController.java | 2 ++ .../SeckillProdRelationController.java | 2 ++ .../controller/ShopCategoryController.java | 2 ++ .../controller/ShopProductBookController.java | 3 +- .../controller/ShopProductController.java | 2 ++ .../ShopProductLabelController.java | 3 +- .../TransactionDetailsController.java | 2 ++ .../controller/UserAddressController.java | 3 +- .../book/controller/UserClockController.java | 3 +- .../controller/UserEbookBuyController.java | 2 ++ .../controller/UserFeedbackController.java | 2 ++ .../controller/UserFollowUpController.java | 3 +- .../book/controller/UserRecordController.java | 3 +- .../service/impl/ActivityServiceImpl.java | 3 +- .../book/service/impl/AuthorServiceImpl.java | 3 +- .../service/impl/BaseAreaServiceImpl.java | 3 +- .../impl/BookBrowseRecordsServiceImpl.java | 3 +- .../impl/BookBuyConfigServiceImpl.java | 3 +- .../service/impl/BookCategoryServiceImpl.java | 3 +- .../impl/BookChapterContentServiceImpl.java | 3 +- .../service/impl/BookChapterServiceImpl.java | 3 +- .../service/impl/BookClockEntryChatImpl.java | 3 +- .../book/service/impl/BookClockEntryImpl.java | 3 +- .../impl/BookForumArticlesServiceImpl.java | 3 +- .../impl/BookForumCommenServiceImpl.java | 3 +- .../impl/BookListeningServiceImpl.java | 3 +- .../impl/BookListeningShelfServiceImpl.java | 3 +- .../service/impl/BookReadRateServiceImpl.java | 3 +- .../book/service/impl/BookServiceImpl.java | 3 +- .../service/impl/BookShelfServiceImpl.java | 3 +- .../service/impl/BookTeachServiceImpl.java | 3 +- .../impl/BuyOrderDetailServiceImpl.java | 3 +- .../impl/BuyOrderProductServiceImpl.java | 2 ++ .../service/impl/BuyOrderServiceImpl.java | 3 +- .../book/service/impl/CityServiceImpl.java | 3 +- .../book/service/impl/CountyServiceImpl.java | 3 +- ...ponProductCategoryRelationServiceImpl.java | 3 +- .../CouponProductRelationServiceImpl.java | 3 +- .../book/service/impl/CouponServiceImpl.java | 3 +- .../impl/ExpressCompanyServiceImpl.java | 2 ++ .../service/impl/ExpressFeeServiceImpl.java | 2 ++ .../service/impl/ExpressOrderServiceImpl.java | 2 ++ .../service/impl/OrderCartServiceImpl.java | 3 +- .../impl/PayPaymentOrderServiceImpl.java | 3 +- .../impl/PayWechatOrderServiceImpl.java | 3 +- .../service/impl/PayZfbOrderServiceImpl.java | 3 +- .../impl/PointCategoryServiceImpl.java | 3 +- .../book/service/impl/PointServiceImpl.java | 3 +- .../service/impl/ProvinceServiceImpl.java | 3 +- .../service/impl/PublisherServiceImpl.java | 3 +- .../impl/SeckillProdRelationServiceImpl.java | 3 +- .../service/impl/ShopCategoryServiceImpl.java | 3 +- .../impl/ShopProductBookServiceImpl.java | 3 +- .../impl/ShopProductLabelServiceImpl.java | 3 +- .../service/impl/ShopProductServiceImpl.java | 3 +- .../impl/ShopProductToLabelServiceImpl.java | 3 +- .../impl/TransactionDetailsServiceImpl.java | 3 +- .../service/impl/UserAddressServiceImpl.java | 3 +- .../book/service/impl/UserBookClockImpl.java | 3 +- .../service/impl/UserEbookBuyServiceImpl.java | 3 +- .../service/impl/UserFeedbackServiceImpl.java | 3 +- .../service/impl/UserFollowUpServiceImpl.java | 3 +- .../service/impl/UserRecordServiceImpl.java | 3 +- src/main/resources/application.yml | 2 +- src/main/resources/logback-spring.xml | 28 ++++++++++--------- 93 files changed, 198 insertions(+), 72 deletions(-) diff --git a/src/main/java/com/peanut/modules/app/utils/JwtUtils.java b/src/main/java/com/peanut/modules/app/utils/JwtUtils.java index da43d417..35a1f5e8 100644 --- a/src/main/java/com/peanut/modules/app/utils/JwtUtils.java +++ b/src/main/java/com/peanut/modules/app/utils/JwtUtils.java @@ -11,6 +11,7 @@ package com.peanut.modules.app.utils; import io.jsonwebtoken.Claims; import io.jsonwebtoken.Jwts; import io.jsonwebtoken.SignatureAlgorithm; +import lombok.extern.slf4j.Slf4j; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.boot.context.properties.ConfigurationProperties; @@ -23,6 +24,7 @@ import java.util.Date; * * @author Mark sunlightcs@gmail.com */ +@Slf4j @ConfigurationProperties(prefix = "renren.jwt") @Component public class JwtUtils { diff --git a/src/main/java/com/peanut/modules/book/controller/AuthorController.java b/src/main/java/com/peanut/modules/book/controller/AuthorController.java index aa847890..a451799f 100644 --- a/src/main/java/com/peanut/modules/book/controller/AuthorController.java +++ b/src/main/java/com/peanut/modules/book/controller/AuthorController.java @@ -4,6 +4,7 @@ import java.util.*; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.peanut.modules.book.service.BookService; +import lombok.extern.slf4j.Slf4j; import org.apache.shiro.authz.annotation.RequiresPermissions; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.PathVariable; @@ -26,6 +27,7 @@ import com.peanut.common.utils.R; * @email yl328572838@163.com * @date 2022-08-04 15:36:59 */ +@Slf4j @RestController @RequestMapping("book/author") public class AuthorController { diff --git a/src/main/java/com/peanut/modules/book/controller/BaseAreaController.java b/src/main/java/com/peanut/modules/book/controller/BaseAreaController.java index 3dd51d18..765ff172 100644 --- a/src/main/java/com/peanut/modules/book/controller/BaseAreaController.java +++ b/src/main/java/com/peanut/modules/book/controller/BaseAreaController.java @@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.peanut.common.utils.R; import com.peanut.modules.book.entity.BaseAreaEntity; import com.peanut.modules.book.service.BaseAreaService; +import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; @@ -11,7 +12,7 @@ import org.springframework.web.bind.annotation.RestController; import java.util.List; import java.util.Map; - +@Slf4j @RestController @RequestMapping("/book/baseArea") public class BaseAreaController { diff --git a/src/main/java/com/peanut/modules/book/controller/BookBrowseRecordsController.java b/src/main/java/com/peanut/modules/book/controller/BookBrowseRecordsController.java index 8ed3ed04..c01c943e 100644 --- a/src/main/java/com/peanut/modules/book/controller/BookBrowseRecordsController.java +++ b/src/main/java/com/peanut/modules/book/controller/BookBrowseRecordsController.java @@ -6,6 +6,7 @@ import java.util.Map; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.peanut.modules.book.entity.BookShelfEntity; import com.peanut.modules.book.service.BookShelfService; +import lombok.extern.slf4j.Slf4j; import org.apache.shiro.authz.annotation.RequiresPermissions; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.PathVariable; @@ -28,6 +29,7 @@ import com.peanut.common.utils.R; * @email yl328572838@163.com * @date 2022-08-29 15:27:44 */ +@Slf4j @RestController @RequestMapping("book/bookbrowserecords") public class BookBrowseRecordsController { diff --git a/src/main/java/com/peanut/modules/book/controller/BookBuyConfigController.java b/src/main/java/com/peanut/modules/book/controller/BookBuyConfigController.java index af9b47d4..df4435d0 100644 --- a/src/main/java/com/peanut/modules/book/controller/BookBuyConfigController.java +++ b/src/main/java/com/peanut/modules/book/controller/BookBuyConfigController.java @@ -5,6 +5,7 @@ import java.util.List; import java.util.Map; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import lombok.extern.slf4j.Slf4j; import org.apache.shiro.authz.annotation.RequiresPermissions; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.PathVariable; @@ -27,6 +28,7 @@ import com.peanut.common.utils.R; * @email yl328572838@163.com * @date 2022-10-17 14:54:08 */ +@Slf4j @RestController @RequestMapping("book/bookbuyconfig") public class BookBuyConfigController { diff --git a/src/main/java/com/peanut/modules/book/controller/BookCategoryController.java b/src/main/java/com/peanut/modules/book/controller/BookCategoryController.java index 981b1611..699d9393 100644 --- a/src/main/java/com/peanut/modules/book/controller/BookCategoryController.java +++ b/src/main/java/com/peanut/modules/book/controller/BookCategoryController.java @@ -7,6 +7,7 @@ import com.peanut.common.utils.PageUtils; import com.peanut.common.utils.R; import com.peanut.modules.book.entity.*; import com.peanut.modules.book.service.BookCategoryService; +import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; @@ -18,6 +19,7 @@ import java.util.Map; * 图书分类 * */ +@Slf4j @RestController @RequestMapping("book/bookCategory") public class BookCategoryController { diff --git a/src/main/java/com/peanut/modules/book/controller/BookChapterContentController.java b/src/main/java/com/peanut/modules/book/controller/BookChapterContentController.java index cd23619e..c6ccc0bf 100644 --- a/src/main/java/com/peanut/modules/book/controller/BookChapterContentController.java +++ b/src/main/java/com/peanut/modules/book/controller/BookChapterContentController.java @@ -14,6 +14,7 @@ import com.peanut.modules.book.entity.*; import com.peanut.modules.book.service.*; import com.peanut.modules.oss.service.OssService; import lombok.SneakyThrows; +import lombok.extern.slf4j.Slf4j; import org.apache.commons.io.IOUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.mock.web.MockMultipartFile; @@ -33,6 +34,7 @@ import org.springframework.web.multipart.MultipartFile; * @email yl328572838@163.com * @date 2022-08-16 14:32:06 */ +@Slf4j @RestController @RequestMapping("book/bookchaptercontent") public class BookChapterContentController { diff --git a/src/main/java/com/peanut/modules/book/controller/BookChapterController.java b/src/main/java/com/peanut/modules/book/controller/BookChapterController.java index afe50206..5ca8f6cd 100644 --- a/src/main/java/com/peanut/modules/book/controller/BookChapterController.java +++ b/src/main/java/com/peanut/modules/book/controller/BookChapterController.java @@ -5,6 +5,7 @@ import java.text.Collator; import java.util.*; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import lombok.extern.slf4j.Slf4j; import org.apache.shiro.authz.annotation.RequiresPermissions; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.PathVariable; @@ -27,6 +28,7 @@ import org.springframework.web.multipart.MultipartFile; * @email yl328572838@163.com * @date 2022-08-12 09:53:25 */ +@Slf4j @RestController @RequestMapping("book/bookchapter") public class BookChapterController { diff --git a/src/main/java/com/peanut/modules/book/controller/BookClockForumController.java b/src/main/java/com/peanut/modules/book/controller/BookClockForumController.java index e28ef1cf..152b7d79 100644 --- a/src/main/java/com/peanut/modules/book/controller/BookClockForumController.java +++ b/src/main/java/com/peanut/modules/book/controller/BookClockForumController.java @@ -14,6 +14,7 @@ import com.peanut.modules.book.service.BookClockEntryChatService; import com.peanut.modules.book.service.BookClockEntryService; import com.peanut.modules.book.service.MyUserService; import com.peanut.modules.book.vo.ClockInCommentVo; +import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; @@ -27,6 +28,7 @@ import java.util.Map; * @Author: Cauchy * @CreateTime: 2023/10/11 */ +@Slf4j @RestController @RequestMapping("/book/clockInForum") public class BookClockForumController { diff --git a/src/main/java/com/peanut/modules/book/controller/BookClockinPunchController.java b/src/main/java/com/peanut/modules/book/controller/BookClockinPunchController.java index 5512104f..09950def 100644 --- a/src/main/java/com/peanut/modules/book/controller/BookClockinPunchController.java +++ b/src/main/java/com/peanut/modules/book/controller/BookClockinPunchController.java @@ -4,9 +4,10 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.peanut.common.utils.R; import com.peanut.modules.book.entity.BookEntity; import com.peanut.modules.book.service.BookService; +import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; - +@Slf4j @RestController @RequestMapping("book/clockinPunch") public class BookClockinPunchController { diff --git a/src/main/java/com/peanut/modules/book/controller/BookForumArticlesServiceController.java b/src/main/java/com/peanut/modules/book/controller/BookForumArticlesServiceController.java index d8a49c9f..7e668be0 100644 --- a/src/main/java/com/peanut/modules/book/controller/BookForumArticlesServiceController.java +++ b/src/main/java/com/peanut/modules/book/controller/BookForumArticlesServiceController.java @@ -10,11 +10,12 @@ import com.peanut.modules.book.dao.BookForumArticlesDao; import com.peanut.modules.book.entity.*; import com.peanut.modules.book.service.*; import com.peanut.modules.book.vo.BookForumArticlesVO; +import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; import java.util.*; - +@Slf4j @RestController @RequestMapping("forum/articles") public class BookForumArticlesServiceController { diff --git a/src/main/java/com/peanut/modules/book/controller/BookForumCommentController.java b/src/main/java/com/peanut/modules/book/controller/BookForumCommentController.java index 642ae4ef..5829599b 100644 --- a/src/main/java/com/peanut/modules/book/controller/BookForumCommentController.java +++ b/src/main/java/com/peanut/modules/book/controller/BookForumCommentController.java @@ -5,6 +5,7 @@ import com.peanut.common.utils.R; import com.peanut.modules.book.entity.BookForumCommentEntity; import com.peanut.modules.book.service.BookForumArticlesService; import com.peanut.modules.book.service.BookForumCommenService; +import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; @@ -16,6 +17,7 @@ import java.util.Map; * 评价文章 * */ +@Slf4j @RestController @RequestMapping("forum/comment") public class BookForumCommentController { diff --git a/src/main/java/com/peanut/modules/book/controller/BookListeningController.java b/src/main/java/com/peanut/modules/book/controller/BookListeningController.java index be6531f4..35984420 100644 --- a/src/main/java/com/peanut/modules/book/controller/BookListeningController.java +++ b/src/main/java/com/peanut/modules/book/controller/BookListeningController.java @@ -5,6 +5,7 @@ import com.peanut.common.utils.PageUtils; import com.peanut.common.utils.R; import com.peanut.modules.book.entity.BookListeningEntity; import com.peanut.modules.book.service.BookListeningService; +import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; @@ -16,6 +17,7 @@ import java.util.Map; * 听书进度表 * */ +@Slf4j @RestController @RequestMapping("book/listening") public class BookListeningController { diff --git a/src/main/java/com/peanut/modules/book/controller/BookListeningShelfController.java b/src/main/java/com/peanut/modules/book/controller/BookListeningShelfController.java index 9e633591..05f029a9 100644 --- a/src/main/java/com/peanut/modules/book/controller/BookListeningShelfController.java +++ b/src/main/java/com/peanut/modules/book/controller/BookListeningShelfController.java @@ -12,6 +12,7 @@ import com.peanut.modules.book.service.BookListeningService; import com.peanut.modules.book.service.BookListeningShelfService; import com.peanut.modules.book.service.BookShelfService; import com.peanut.modules.book.vo.BookShelfVo; +import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; @@ -20,6 +21,7 @@ import java.util.Date; import java.util.List; import java.util.Map; +@Slf4j @RestController @RequestMapping("book/BookListeningShelf") public class BookListeningShelfController { diff --git a/src/main/java/com/peanut/modules/book/controller/BookReadRateController.java b/src/main/java/com/peanut/modules/book/controller/BookReadRateController.java index 5dba9e4e..6320b9db 100644 --- a/src/main/java/com/peanut/modules/book/controller/BookReadRateController.java +++ b/src/main/java/com/peanut/modules/book/controller/BookReadRateController.java @@ -4,6 +4,7 @@ import java.util.Arrays; import java.util.Map; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestBody; @@ -25,6 +26,7 @@ import com.peanut.common.utils.R; * @email yl328572838@163.com * @date 2022-08-29 15:27:44 */ +@Slf4j @RestController @RequestMapping("book/bookreadrate") public class BookReadRateController { diff --git a/src/main/java/com/peanut/modules/book/controller/BookShelfController.java b/src/main/java/com/peanut/modules/book/controller/BookShelfController.java index ca93a760..03b1dbdb 100644 --- a/src/main/java/com/peanut/modules/book/controller/BookShelfController.java +++ b/src/main/java/com/peanut/modules/book/controller/BookShelfController.java @@ -8,6 +8,7 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.peanut.modules.book.entity.BookBrowseRecordsEntity; import com.peanut.modules.book.service.BookBrowseRecordsService; import com.peanut.modules.book.vo.BookShelfVo; +import lombok.extern.slf4j.Slf4j; import org.apache.shiro.authz.annotation.RequiresPermissions; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.PathVariable; @@ -30,6 +31,7 @@ import com.peanut.common.utils.R; * @email yl328572838@163.com * @date 2022-08-29 15:27:44 */ +@Slf4j @RestController @RequestMapping("book/bookshelf") public class BookShelfController { diff --git a/src/main/java/com/peanut/modules/book/controller/BookTeachController.java b/src/main/java/com/peanut/modules/book/controller/BookTeachController.java index 44f1b93d..ed94e402 100644 --- a/src/main/java/com/peanut/modules/book/controller/BookTeachController.java +++ b/src/main/java/com/peanut/modules/book/controller/BookTeachController.java @@ -9,12 +9,13 @@ import com.peanut.modules.book.service.BookService; import com.peanut.modules.book.service.BookTeachService; import com.peanut.modules.book.service.ShopProductBookService; import com.peanut.modules.book.to.PageIdDto; +import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; - +@Slf4j @RestController @RequestMapping("book/teach") public class BookTeachController { diff --git a/src/main/java/com/peanut/modules/book/controller/CouponController.java b/src/main/java/com/peanut/modules/book/controller/CouponController.java index df030c5d..8a7a55a4 100644 --- a/src/main/java/com/peanut/modules/book/controller/CouponController.java +++ b/src/main/java/com/peanut/modules/book/controller/CouponController.java @@ -8,6 +8,7 @@ import com.peanut.modules.book.service.CouponHistoryService; import com.peanut.modules.book.service.CouponProductCategoryRelationService; import com.peanut.modules.book.vo.UserCouponVo; import io.swagger.models.auth.In; +import lombok.extern.slf4j.Slf4j; import org.apache.shiro.authz.annotation.RequiresPermissions; import org.springframework.beans.BeanUtils; import org.springframework.beans.factory.annotation.Autowired; @@ -31,6 +32,7 @@ import com.peanut.common.utils.R; * @email yl328572838@163.com * @date 2022-10-28 17:38:29 */ +@Slf4j @RestController @RequestMapping("book/coupon") public class CouponController { diff --git a/src/main/java/com/peanut/modules/book/controller/CouponHistoryController.java b/src/main/java/com/peanut/modules/book/controller/CouponHistoryController.java index 18b30ec0..91025e24 100644 --- a/src/main/java/com/peanut/modules/book/controller/CouponHistoryController.java +++ b/src/main/java/com/peanut/modules/book/controller/CouponHistoryController.java @@ -10,6 +10,7 @@ import com.peanut.common.utils.Query; import com.peanut.modules.book.entity.CouponEntity; import com.peanut.modules.book.service.CouponService; import com.peanut.modules.book.vo.UserCouponVo; +import lombok.extern.slf4j.Slf4j; import org.apache.shiro.authz.annotation.RequiresPermissions; import org.springframework.beans.BeanUtils; import org.springframework.beans.factory.annotation.Autowired; @@ -33,6 +34,7 @@ import com.peanut.common.utils.R; * @email yl328572838@163.com * @date 2022-10-28 17:38:29 */ +@Slf4j @RestController @RequestMapping("book/couponhistory") public class CouponHistoryController { diff --git a/src/main/java/com/peanut/modules/book/controller/CouponProductCategoryRelationController.java b/src/main/java/com/peanut/modules/book/controller/CouponProductCategoryRelationController.java index 6d45b49d..22d13562 100644 --- a/src/main/java/com/peanut/modules/book/controller/CouponProductCategoryRelationController.java +++ b/src/main/java/com/peanut/modules/book/controller/CouponProductCategoryRelationController.java @@ -4,6 +4,7 @@ import java.util.Arrays; import java.util.Map; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import lombok.extern.slf4j.Slf4j; import org.apache.shiro.authz.annotation.RequiresPermissions; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.PathVariable; @@ -26,6 +27,7 @@ import com.peanut.common.utils.R; * @email yl328572838@163.com * @date 2022-10-28 17:38:29 */ +@Slf4j @RestController @RequestMapping("book/couponproductcategoryrelation") public class CouponProductCategoryRelationController { diff --git a/src/main/java/com/peanut/modules/book/controller/CouponProductRelationController.java b/src/main/java/com/peanut/modules/book/controller/CouponProductRelationController.java index d94e0ace..c6f470ef 100644 --- a/src/main/java/com/peanut/modules/book/controller/CouponProductRelationController.java +++ b/src/main/java/com/peanut/modules/book/controller/CouponProductRelationController.java @@ -4,6 +4,7 @@ import java.util.Arrays; import java.util.Map; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import lombok.extern.slf4j.Slf4j; import org.apache.shiro.authz.annotation.RequiresPermissions; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.PathVariable; @@ -26,6 +27,7 @@ import com.peanut.common.utils.R; * @email yl328572838@163.com * @date 2022-10-28 17:38:29 */ +@Slf4j @RestController @RequestMapping("book/couponproductrelation") public class CouponProductRelationController { diff --git a/src/main/java/com/peanut/modules/book/controller/ExpressController.java b/src/main/java/com/peanut/modules/book/controller/ExpressController.java index 31cf08e3..0588ec36 100644 --- a/src/main/java/com/peanut/modules/book/controller/ExpressController.java +++ b/src/main/java/com/peanut/modules/book/controller/ExpressController.java @@ -15,6 +15,7 @@ import com.peanut.modules.book.to.ExpressPrintDto; import com.peanut.modules.book.vo.ExpressCompanyVo; import com.peanut.modules.book.vo.response.PrintTemplateVo; import io.swagger.models.auth.In; +import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; @@ -29,6 +30,7 @@ import java.util.Map; * @Author: Cauchy * @CreateTime: 2023/10/16 */ +@Slf4j @RestController @RequestMapping("/express") public class ExpressController { diff --git a/src/main/java/com/peanut/modules/book/controller/MyUserController.java b/src/main/java/com/peanut/modules/book/controller/MyUserController.java index 3696849a..eb52355d 100644 --- a/src/main/java/com/peanut/modules/book/controller/MyUserController.java +++ b/src/main/java/com/peanut/modules/book/controller/MyUserController.java @@ -17,6 +17,7 @@ import com.peanut.modules.book.entity.*; import com.peanut.modules.book.service.*; import com.peanut.modules.book.to.PageIdDto; import com.peanut.modules.sys.service.SysUserTokenService; +import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.redis.core.StringRedisTemplate; import org.springframework.transaction.annotation.Transactional; @@ -38,6 +39,7 @@ import com.peanut.common.utils.R; * @email yl328572838@163.com * @date 2022-08-10 14:20:12 */ +@Slf4j @RestController @RequestMapping("book/user") public class MyUserController { diff --git a/src/main/java/com/peanut/modules/book/controller/OrderCartController.java b/src/main/java/com/peanut/modules/book/controller/OrderCartController.java index 3dca2b6c..0b7b1946 100644 --- a/src/main/java/com/peanut/modules/book/controller/OrderCartController.java +++ b/src/main/java/com/peanut/modules/book/controller/OrderCartController.java @@ -5,6 +5,7 @@ import java.util.List; import java.util.Map; import com.peanut.modules.book.vo.ShopCartVo; +import lombok.extern.slf4j.Slf4j; import org.apache.shiro.authz.annotation.RequiresPermissions; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.PathVariable; @@ -27,6 +28,7 @@ import com.peanut.common.utils.R; * @email yl328572838@163.com * @date 2022-08-29 15:27:44 */ +@Slf4j @RestController @RequestMapping("book/ordercart") public class OrderCartController { diff --git a/src/main/java/com/peanut/modules/book/controller/PayPaymentOrderController.java b/src/main/java/com/peanut/modules/book/controller/PayPaymentOrderController.java index da53d59e..e46d4c6d 100644 --- a/src/main/java/com/peanut/modules/book/controller/PayPaymentOrderController.java +++ b/src/main/java/com/peanut/modules/book/controller/PayPaymentOrderController.java @@ -3,6 +3,7 @@ package com.peanut.modules.book.controller; import java.util.Arrays; import java.util.Map; +import lombok.extern.slf4j.Slf4j; import org.apache.shiro.authz.annotation.RequiresPermissions; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.PathVariable; @@ -25,6 +26,7 @@ import com.peanut.common.utils.R; * @email yl328572838@163.com * @date 2022-08-29 15:27:44 */ +@Slf4j @RestController @RequestMapping("book/paypaymentorder") public class PayPaymentOrderController { diff --git a/src/main/java/com/peanut/modules/book/controller/PayZfbOrderController.java b/src/main/java/com/peanut/modules/book/controller/PayZfbOrderController.java index 96a9e504..ebcc2ed0 100644 --- a/src/main/java/com/peanut/modules/book/controller/PayZfbOrderController.java +++ b/src/main/java/com/peanut/modules/book/controller/PayZfbOrderController.java @@ -3,6 +3,7 @@ package com.peanut.modules.book.controller; import java.util.Arrays; import java.util.Map; +import lombok.extern.slf4j.Slf4j; import org.apache.shiro.authz.annotation.RequiresPermissions; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.PathVariable; @@ -25,6 +26,7 @@ import com.peanut.common.utils.R; * @email yl328572838@163.com * @date 2022-08-29 15:27:44 */ +@Slf4j @RestController @RequestMapping("book/payzfborder") public class PayZfbOrderController { diff --git a/src/main/java/com/peanut/modules/book/controller/PointController.java b/src/main/java/com/peanut/modules/book/controller/PointController.java index 5ba93631..b61a7788 100644 --- a/src/main/java/com/peanut/modules/book/controller/PointController.java +++ b/src/main/java/com/peanut/modules/book/controller/PointController.java @@ -8,6 +8,7 @@ import com.peanut.modules.book.entity.PointCategoryEntity; import com.peanut.modules.book.entity.PointEntity; import com.peanut.modules.book.service.PointCategoryService; import com.peanut.modules.book.service.PointService; +import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; @@ -18,7 +19,7 @@ import java.text.SimpleDateFormat; import java.util.Date; import java.util.List; import java.util.Map; - +@Slf4j @RestController @RequestMapping("book/point") public class PointController { diff --git a/src/main/java/com/peanut/modules/book/controller/ProvinceController.java b/src/main/java/com/peanut/modules/book/controller/ProvinceController.java index 98aa8ad9..2f1b08ba 100644 --- a/src/main/java/com/peanut/modules/book/controller/ProvinceController.java +++ b/src/main/java/com/peanut/modules/book/controller/ProvinceController.java @@ -10,6 +10,7 @@ import com.peanut.modules.book.entity.Province; import com.peanut.modules.book.service.CityService; import com.peanut.modules.book.service.CountyService; import com.peanut.modules.book.service.ProvinceService; +import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang.StringUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.redis.core.StringRedisTemplate; @@ -20,7 +21,7 @@ import org.springframework.web.bind.annotation.RestController; import java.util.ArrayList; import java.util.List; import java.util.Map; - +@Slf4j @RestController @RequestMapping("api/province") public class ProvinceController { diff --git a/src/main/java/com/peanut/modules/book/controller/PublisherController.java b/src/main/java/com/peanut/modules/book/controller/PublisherController.java index 9261a33f..0a5ad95a 100644 --- a/src/main/java/com/peanut/modules/book/controller/PublisherController.java +++ b/src/main/java/com/peanut/modules/book/controller/PublisherController.java @@ -6,6 +6,7 @@ import com.peanut.common.utils.R; import com.peanut.modules.book.entity.Publisher; import com.peanut.modules.book.service.BookService; import com.peanut.modules.book.service.PublisherService; +import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; @@ -18,6 +19,7 @@ import java.util.*; * @email yl328572838@163.com * @date 2022-08-04 15:36:59 */ +@Slf4j @RestController @RequestMapping("book/publisher") public class PublisherController { diff --git a/src/main/java/com/peanut/modules/book/controller/SeckillProdRelationController.java b/src/main/java/com/peanut/modules/book/controller/SeckillProdRelationController.java index 42d2bc92..3077667e 100644 --- a/src/main/java/com/peanut/modules/book/controller/SeckillProdRelationController.java +++ b/src/main/java/com/peanut/modules/book/controller/SeckillProdRelationController.java @@ -5,6 +5,7 @@ import com.peanut.common.utils.PageUtils; import com.peanut.common.utils.R; import com.peanut.modules.book.entity.SeckillProdRelationEntity; import com.peanut.modules.book.service.SeckillProdRelationService; +import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; @@ -21,6 +22,7 @@ import java.util.Map; * @email yl328572838@163.com * @date 2022-10-28 11:24:05 */ +@Slf4j @RestController @RequestMapping("book/seckillprodrelation") public class SeckillProdRelationController { diff --git a/src/main/java/com/peanut/modules/book/controller/ShopCategoryController.java b/src/main/java/com/peanut/modules/book/controller/ShopCategoryController.java index c23748c8..ce1076da 100644 --- a/src/main/java/com/peanut/modules/book/controller/ShopCategoryController.java +++ b/src/main/java/com/peanut/modules/book/controller/ShopCategoryController.java @@ -4,6 +4,7 @@ import java.util.Arrays; import java.util.List; import java.util.Map; +import lombok.extern.slf4j.Slf4j; import org.apache.shiro.authz.annotation.RequiresPermissions; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.PathVariable; @@ -26,6 +27,7 @@ import com.peanut.common.utils.R; * @email yl328572838@163.com * @date 2022-08-30 15:06:20 */ +@Slf4j @RestController @RequestMapping("book/shopcategory") public class ShopCategoryController { diff --git a/src/main/java/com/peanut/modules/book/controller/ShopProductBookController.java b/src/main/java/com/peanut/modules/book/controller/ShopProductBookController.java index 0c4e1699..01e2742c 100644 --- a/src/main/java/com/peanut/modules/book/controller/ShopProductBookController.java +++ b/src/main/java/com/peanut/modules/book/controller/ShopProductBookController.java @@ -5,12 +5,13 @@ import com.peanut.common.utils.R; import com.peanut.modules.book.entity.ShopProductBookEntity; import com.peanut.modules.book.service.ShopProductBookService; import com.peanut.modules.book.vo.ProductBookQueryVO; +import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; import java.util.List; import java.util.Map; - +@Slf4j @RestController @RequestMapping("book/shopProudictBook") public class ShopProductBookController { diff --git a/src/main/java/com/peanut/modules/book/controller/ShopProductController.java b/src/main/java/com/peanut/modules/book/controller/ShopProductController.java index c033b45e..5905d10e 100644 --- a/src/main/java/com/peanut/modules/book/controller/ShopProductController.java +++ b/src/main/java/com/peanut/modules/book/controller/ShopProductController.java @@ -7,6 +7,7 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.peanut.modules.book.entity.*; import com.peanut.modules.book.service.*; import com.peanut.modules.book.vo.ShopProductVo; +import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestBody; @@ -24,6 +25,7 @@ import com.peanut.common.utils.R; * @email yl328572838@163.com * @date 2022-10-28 09:43:14 */ +@Slf4j @RestController @RequestMapping("book/shopproduct") public class ShopProductController { diff --git a/src/main/java/com/peanut/modules/book/controller/ShopProductLabelController.java b/src/main/java/com/peanut/modules/book/controller/ShopProductLabelController.java index 444c0d40..d48556d0 100644 --- a/src/main/java/com/peanut/modules/book/controller/ShopProductLabelController.java +++ b/src/main/java/com/peanut/modules/book/controller/ShopProductLabelController.java @@ -12,6 +12,7 @@ import com.peanut.modules.book.entity.ShopProductLabelEntity; import com.peanut.modules.book.entity.ShopProductToLabelEntity; import com.peanut.modules.book.service.ShopProductLabelService; import com.peanut.modules.book.service.ShopProductToLabelService; +import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; @@ -20,7 +21,7 @@ import org.springframework.web.bind.annotation.RestController; import java.util.HashMap; import java.util.List; import java.util.Map; - +@Slf4j @RestController @RequestMapping("book/label") public class ShopProductLabelController { diff --git a/src/main/java/com/peanut/modules/book/controller/TransactionDetailsController.java b/src/main/java/com/peanut/modules/book/controller/TransactionDetailsController.java index f1521fc8..acaec8b3 100644 --- a/src/main/java/com/peanut/modules/book/controller/TransactionDetailsController.java +++ b/src/main/java/com/peanut/modules/book/controller/TransactionDetailsController.java @@ -3,6 +3,7 @@ package com.peanut.modules.book.controller; import java.util.Arrays; import java.util.Map; +import lombok.extern.slf4j.Slf4j; import org.apache.shiro.authz.annotation.RequiresPermissions; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.PathVariable; @@ -25,6 +26,7 @@ import com.peanut.common.utils.R; * @email yl328572838@163.com * @date 2022-08-29 15:47:50 */ +@Slf4j @RestController @RequestMapping("book/transactiondetails") public class TransactionDetailsController { diff --git a/src/main/java/com/peanut/modules/book/controller/UserAddressController.java b/src/main/java/com/peanut/modules/book/controller/UserAddressController.java index 8388a0c7..bd418499 100644 --- a/src/main/java/com/peanut/modules/book/controller/UserAddressController.java +++ b/src/main/java/com/peanut/modules/book/controller/UserAddressController.java @@ -6,13 +6,14 @@ import com.peanut.common.utils.R; import com.peanut.modules.book.entity.UserAddress; import com.peanut.modules.book.service.UserAddressService; import com.peanut.modules.book.vo.UserAddressVo; +import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; import java.util.ArrayList; import java.util.List; - +@Slf4j @RestController @RequestMapping("book/userAddress") public class UserAddressController { diff --git a/src/main/java/com/peanut/modules/book/controller/UserClockController.java b/src/main/java/com/peanut/modules/book/controller/UserClockController.java index 8a81f3f1..19eb57e1 100644 --- a/src/main/java/com/peanut/modules/book/controller/UserClockController.java +++ b/src/main/java/com/peanut/modules/book/controller/UserClockController.java @@ -8,12 +8,13 @@ import com.peanut.modules.book.entity.BookEntity; import com.peanut.modules.book.service.BookClockEntryService; import com.peanut.modules.book.service.BookService; import com.peanut.modules.book.to.PageIdDto; +import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; - +@Slf4j @RestController @RequestMapping("book/clock") public class UserClockController { diff --git a/src/main/java/com/peanut/modules/book/controller/UserEbookBuyController.java b/src/main/java/com/peanut/modules/book/controller/UserEbookBuyController.java index c3b67c89..4197ba9e 100644 --- a/src/main/java/com/peanut/modules/book/controller/UserEbookBuyController.java +++ b/src/main/java/com/peanut/modules/book/controller/UserEbookBuyController.java @@ -10,6 +10,7 @@ import com.peanut.modules.book.entity.BookEntity; import com.peanut.modules.book.entity.UserEbookBuyEntity; import com.peanut.modules.book.service.BookService; import com.peanut.modules.book.service.UserEbookBuyService; +import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; @@ -21,6 +22,7 @@ import java.util.*; * * */ +@Slf4j @RestController @RequestMapping("book/userebookbuy") public class UserEbookBuyController { diff --git a/src/main/java/com/peanut/modules/book/controller/UserFeedbackController.java b/src/main/java/com/peanut/modules/book/controller/UserFeedbackController.java index ba65c379..ef7c2962 100644 --- a/src/main/java/com/peanut/modules/book/controller/UserFeedbackController.java +++ b/src/main/java/com/peanut/modules/book/controller/UserFeedbackController.java @@ -6,6 +6,7 @@ import com.peanut.modules.book.entity.MyUserEntity; import com.peanut.modules.book.entity.UserFeedbackEntity; import com.peanut.modules.book.service.MyUserService; import com.peanut.modules.book.service.UserFeedbackSerivce; +import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; @@ -18,6 +19,7 @@ import java.util.List; /** * 追加评论后游客评论无限制 */ +@Slf4j @RestController @RequestMapping("/user/feedback") public class UserFeedbackController { diff --git a/src/main/java/com/peanut/modules/book/controller/UserFollowUpController.java b/src/main/java/com/peanut/modules/book/controller/UserFollowUpController.java index 82a6733d..7c065cb8 100644 --- a/src/main/java/com/peanut/modules/book/controller/UserFollowUpController.java +++ b/src/main/java/com/peanut/modules/book/controller/UserFollowUpController.java @@ -11,11 +11,12 @@ import com.peanut.modules.book.service.BuyOrderService; import com.peanut.modules.book.service.MyUserService; import com.peanut.modules.book.service.UserFollowUpService; import com.peanut.modules.book.service.UserRecordService; +import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; import java.util.*; - +@Slf4j @RestController @RequestMapping("/user/followUp") public class UserFollowUpController { diff --git a/src/main/java/com/peanut/modules/book/controller/UserRecordController.java b/src/main/java/com/peanut/modules/book/controller/UserRecordController.java index 651f47e0..2b332ea5 100644 --- a/src/main/java/com/peanut/modules/book/controller/UserRecordController.java +++ b/src/main/java/com/peanut/modules/book/controller/UserRecordController.java @@ -6,13 +6,14 @@ import com.peanut.common.utils.PageUtils; import com.peanut.common.utils.R; import com.peanut.modules.book.entity.*; import com.peanut.modules.book.service.*; +import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; import java.util.*; import static com.peanut.common.utils.R.error; - +@Slf4j @RestController @RequestMapping("buy/record") public class UserRecordController { diff --git a/src/main/java/com/peanut/modules/book/service/impl/ActivityServiceImpl.java b/src/main/java/com/peanut/modules/book/service/impl/ActivityServiceImpl.java index a0eb40be..1d710d59 100644 --- a/src/main/java/com/peanut/modules/book/service/impl/ActivityServiceImpl.java +++ b/src/main/java/com/peanut/modules/book/service/impl/ActivityServiceImpl.java @@ -10,13 +10,14 @@ import com.peanut.modules.book.dao.ActivityDao; import com.peanut.modules.book.dao.BuyOrderDao; import com.peanut.modules.book.entity.ActivityEntity; import com.peanut.modules.book.service.ActivityService; +import lombok.extern.slf4j.Slf4j; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.stereotype.Service; import java.util.Map; - +@Slf4j @Service("activityService") public class ActivityServiceImpl extends ServiceImpl implements ActivityService { diff --git a/src/main/java/com/peanut/modules/book/service/impl/AuthorServiceImpl.java b/src/main/java/com/peanut/modules/book/service/impl/AuthorServiceImpl.java index c13bd614..a43419f9 100644 --- a/src/main/java/com/peanut/modules/book/service/impl/AuthorServiceImpl.java +++ b/src/main/java/com/peanut/modules/book/service/impl/AuthorServiceImpl.java @@ -1,5 +1,6 @@ package com.peanut.modules.book.service.impl; +import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Service; import java.util.Map; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; @@ -12,7 +13,7 @@ import com.peanut.modules.book.dao.AuthorDao; import com.peanut.modules.book.entity.AuthorEntity; import com.peanut.modules.book.service.AuthorService; - +@Slf4j @Service("authorService") public class AuthorServiceImpl extends ServiceImpl implements AuthorService { diff --git a/src/main/java/com/peanut/modules/book/service/impl/BaseAreaServiceImpl.java b/src/main/java/com/peanut/modules/book/service/impl/BaseAreaServiceImpl.java index c81096dd..1d6dc46f 100644 --- a/src/main/java/com/peanut/modules/book/service/impl/BaseAreaServiceImpl.java +++ b/src/main/java/com/peanut/modules/book/service/impl/BaseAreaServiceImpl.java @@ -6,8 +6,9 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.peanut.modules.book.dao.BaseAreaDao; import com.peanut.modules.book.entity.BaseAreaEntity; import com.peanut.modules.book.service.BaseAreaService; +import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Service; - +@Slf4j @Service("baseAreaService") public class BaseAreaServiceImpl extends ServiceImpl implements BaseAreaService { diff --git a/src/main/java/com/peanut/modules/book/service/impl/BookBrowseRecordsServiceImpl.java b/src/main/java/com/peanut/modules/book/service/impl/BookBrowseRecordsServiceImpl.java index 150fb1d7..a2dec0e8 100644 --- a/src/main/java/com/peanut/modules/book/service/impl/BookBrowseRecordsServiceImpl.java +++ b/src/main/java/com/peanut/modules/book/service/impl/BookBrowseRecordsServiceImpl.java @@ -6,6 +6,7 @@ import com.peanut.modules.book.entity.BookReadRateEntity; import com.peanut.modules.book.service.BookChapterService; import com.peanut.modules.book.service.BookReadRateService; import com.peanut.modules.book.service.BookService; +import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @@ -21,7 +22,7 @@ import com.peanut.modules.book.dao.BookBrowseRecordsDao; import com.peanut.modules.book.entity.BookBrowseRecordsEntity; import com.peanut.modules.book.service.BookBrowseRecordsService; - +@Slf4j @Service("bookBrowseRecordsService") public class BookBrowseRecordsServiceImpl extends ServiceImpl implements BookBrowseRecordsService { diff --git a/src/main/java/com/peanut/modules/book/service/impl/BookBuyConfigServiceImpl.java b/src/main/java/com/peanut/modules/book/service/impl/BookBuyConfigServiceImpl.java index a9de11ff..d1e78dd3 100644 --- a/src/main/java/com/peanut/modules/book/service/impl/BookBuyConfigServiceImpl.java +++ b/src/main/java/com/peanut/modules/book/service/impl/BookBuyConfigServiceImpl.java @@ -1,5 +1,6 @@ package com.peanut.modules.book.service.impl; +import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Service; import java.util.Map; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; @@ -12,7 +13,7 @@ import com.peanut.modules.book.dao.BookBuyConfigDao; import com.peanut.modules.book.entity.BookBuyConfigEntity; import com.peanut.modules.book.service.BookBuyConfigService; - +@Slf4j @Service("bookBuyConfigService") public class BookBuyConfigServiceImpl extends ServiceImpl implements BookBuyConfigService { diff --git a/src/main/java/com/peanut/modules/book/service/impl/BookCategoryServiceImpl.java b/src/main/java/com/peanut/modules/book/service/impl/BookCategoryServiceImpl.java index 1af982d8..c8666b8f 100644 --- a/src/main/java/com/peanut/modules/book/service/impl/BookCategoryServiceImpl.java +++ b/src/main/java/com/peanut/modules/book/service/impl/BookCategoryServiceImpl.java @@ -12,11 +12,12 @@ import com.peanut.modules.book.entity.BookCategoryEntity; import com.peanut.modules.book.entity.ShopCategoryEntity; import com.peanut.modules.book.service.BookCategoryService; +import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Service; import java.util.List; import java.util.Map; import java.util.stream.Collectors; - +@Slf4j @Service("bookCategoryService") public class BookCategoryServiceImpl extends ServiceImpl implements BookCategoryService { @Override diff --git a/src/main/java/com/peanut/modules/book/service/impl/BookChapterContentServiceImpl.java b/src/main/java/com/peanut/modules/book/service/impl/BookChapterContentServiceImpl.java index 45434484..50c7b158 100644 --- a/src/main/java/com/peanut/modules/book/service/impl/BookChapterContentServiceImpl.java +++ b/src/main/java/com/peanut/modules/book/service/impl/BookChapterContentServiceImpl.java @@ -7,6 +7,7 @@ import com.peanut.modules.book.service.BookService; import com.spire.doc.Document; import com.spire.doc.Section; import com.spire.doc.documents.Paragraph; +import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang.StringUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @@ -23,7 +24,7 @@ import com.peanut.modules.book.dao.BookChapterContentDao; import com.peanut.modules.book.entity.BookChapterContentEntity; import com.peanut.modules.book.service.BookChapterContentService; import org.springframework.util.CollectionUtils; - +@Slf4j @Service("bookChapterContentService") public class BookChapterContentServiceImpl extends ServiceImpl implements BookChapterContentService { diff --git a/src/main/java/com/peanut/modules/book/service/impl/BookChapterServiceImpl.java b/src/main/java/com/peanut/modules/book/service/impl/BookChapterServiceImpl.java index 717cbdd9..7c8a5c45 100644 --- a/src/main/java/com/peanut/modules/book/service/impl/BookChapterServiceImpl.java +++ b/src/main/java/com/peanut/modules/book/service/impl/BookChapterServiceImpl.java @@ -1,6 +1,7 @@ package com.peanut.modules.book.service.impl; import com.peanut.modules.book.vo.BookShelfVo; +import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Service; import java.io.BufferedReader; @@ -20,7 +21,7 @@ import com.peanut.modules.book.entity.BookChapterEntity; import com.peanut.modules.book.service.BookChapterService; import org.springframework.web.multipart.MultipartFile; - +@Slf4j @Service("bookChapterService") public class BookChapterServiceImpl extends ServiceImpl implements BookChapterService { diff --git a/src/main/java/com/peanut/modules/book/service/impl/BookClockEntryChatImpl.java b/src/main/java/com/peanut/modules/book/service/impl/BookClockEntryChatImpl.java index adadc50e..41fbab56 100644 --- a/src/main/java/com/peanut/modules/book/service/impl/BookClockEntryChatImpl.java +++ b/src/main/java/com/peanut/modules/book/service/impl/BookClockEntryChatImpl.java @@ -4,8 +4,9 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.peanut.modules.book.dao.BookClockEntryChatDao; import com.peanut.modules.book.entity.BookClockEntryChat; import com.peanut.modules.book.service.BookClockEntryChatService; +import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Service; - +@Slf4j @Service("bookClockEntryChatService") public class BookClockEntryChatImpl extends ServiceImpl implements BookClockEntryChatService { } diff --git a/src/main/java/com/peanut/modules/book/service/impl/BookClockEntryImpl.java b/src/main/java/com/peanut/modules/book/service/impl/BookClockEntryImpl.java index f39508e5..06cf21c7 100644 --- a/src/main/java/com/peanut/modules/book/service/impl/BookClockEntryImpl.java +++ b/src/main/java/com/peanut/modules/book/service/impl/BookClockEntryImpl.java @@ -4,8 +4,9 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.peanut.modules.book.dao.BookClockEntryDao; import com.peanut.modules.book.entity.BookClockEntryEntity; import com.peanut.modules.book.service.BookClockEntryService; +import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Service; - +@Slf4j @Service("bookClockEntryService") public class BookClockEntryImpl extends ServiceImpl implements BookClockEntryService { } diff --git a/src/main/java/com/peanut/modules/book/service/impl/BookForumArticlesServiceImpl.java b/src/main/java/com/peanut/modules/book/service/impl/BookForumArticlesServiceImpl.java index b0c72aef..c6e3af77 100644 --- a/src/main/java/com/peanut/modules/book/service/impl/BookForumArticlesServiceImpl.java +++ b/src/main/java/com/peanut/modules/book/service/impl/BookForumArticlesServiceImpl.java @@ -10,12 +10,13 @@ import com.peanut.modules.book.dao.BookForumArticlesDao; import com.peanut.modules.book.entity.BookForumArticlesEntity; import com.peanut.modules.book.service.BookForumArticlesService; import com.peanut.modules.book.service.MyUserService; +import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.List; import java.util.Map; - +@Slf4j @Service public class BookForumArticlesServiceImpl extends ServiceImpl implements BookForumArticlesService { diff --git a/src/main/java/com/peanut/modules/book/service/impl/BookForumCommenServiceImpl.java b/src/main/java/com/peanut/modules/book/service/impl/BookForumCommenServiceImpl.java index a3b9cb4a..8062f16c 100644 --- a/src/main/java/com/peanut/modules/book/service/impl/BookForumCommenServiceImpl.java +++ b/src/main/java/com/peanut/modules/book/service/impl/BookForumCommenServiceImpl.java @@ -10,12 +10,13 @@ import com.peanut.modules.book.dao.BookForumCommentDao; import com.peanut.modules.book.entity.BookForumCommentEntity; import com.peanut.modules.book.service.BookForumCommenService; import com.peanut.modules.book.service.MyUserService; +import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.List; import java.util.Map; - +@Slf4j @Service public class BookForumCommenServiceImpl extends ServiceImpl implements BookForumCommenService { diff --git a/src/main/java/com/peanut/modules/book/service/impl/BookListeningServiceImpl.java b/src/main/java/com/peanut/modules/book/service/impl/BookListeningServiceImpl.java index a8fd9cc3..64f0403a 100644 --- a/src/main/java/com/peanut/modules/book/service/impl/BookListeningServiceImpl.java +++ b/src/main/java/com/peanut/modules/book/service/impl/BookListeningServiceImpl.java @@ -8,10 +8,11 @@ import com.peanut.common.utils.Query; import com.peanut.modules.book.dao.BookListeningDao; import com.peanut.modules.book.entity.BookListeningEntity; import com.peanut.modules.book.service.BookListeningService; +import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Service; import java.util.Map; - +@Slf4j @Service("bookListeningService") public class BookListeningServiceImpl extends ServiceImpl implements BookListeningService{ diff --git a/src/main/java/com/peanut/modules/book/service/impl/BookListeningShelfServiceImpl.java b/src/main/java/com/peanut/modules/book/service/impl/BookListeningShelfServiceImpl.java index dddf2cc3..c61f6ae0 100644 --- a/src/main/java/com/peanut/modules/book/service/impl/BookListeningShelfServiceImpl.java +++ b/src/main/java/com/peanut/modules/book/service/impl/BookListeningShelfServiceImpl.java @@ -6,10 +6,11 @@ import com.peanut.common.utils.PageUtils; import com.peanut.modules.book.dao.BookListeningShelfDao; import com.peanut.modules.book.entity.BookListeningShelfEntity; import com.peanut.modules.book.service.BookListeningShelfService; +import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Service; import java.util.Map; - +@Slf4j @Service public class BookListeningShelfServiceImpl extends ServiceImpl implements BookListeningShelfService { @Override diff --git a/src/main/java/com/peanut/modules/book/service/impl/BookReadRateServiceImpl.java b/src/main/java/com/peanut/modules/book/service/impl/BookReadRateServiceImpl.java index d78c6ff7..1c39d38f 100644 --- a/src/main/java/com/peanut/modules/book/service/impl/BookReadRateServiceImpl.java +++ b/src/main/java/com/peanut/modules/book/service/impl/BookReadRateServiceImpl.java @@ -1,5 +1,6 @@ package com.peanut.modules.book.service.impl; +import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Service; import java.util.Map; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; @@ -12,7 +13,7 @@ import com.peanut.modules.book.dao.BookReadRateDao; import com.peanut.modules.book.entity.BookReadRateEntity; import com.peanut.modules.book.service.BookReadRateService; - +@Slf4j @Service("bookReadRateService") public class BookReadRateServiceImpl extends ServiceImpl implements BookReadRateService { 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 09b2914b..ef00ec9d 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 @@ -24,6 +24,7 @@ import com.peanut.modules.sys.service.SysDictDataService; import com.spire.doc.Document; import com.spire.doc.Section; import com.spire.doc.documents.Paragraph; +import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang.StringUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @@ -36,7 +37,7 @@ import java.util.*; import java.util.regex.Matcher; import java.util.regex.Pattern; - +@Slf4j @Service("bookService") public class BookServiceImpl extends ServiceImpl implements BookService { diff --git a/src/main/java/com/peanut/modules/book/service/impl/BookShelfServiceImpl.java b/src/main/java/com/peanut/modules/book/service/impl/BookShelfServiceImpl.java index 0d7ad5c8..e7af8c16 100644 --- a/src/main/java/com/peanut/modules/book/service/impl/BookShelfServiceImpl.java +++ b/src/main/java/com/peanut/modules/book/service/impl/BookShelfServiceImpl.java @@ -2,6 +2,7 @@ package com.peanut.modules.book.service.impl; import com.peanut.modules.book.entity.*; import com.peanut.modules.book.service.*; import com.peanut.modules.book.vo.BookShelfVo; +import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.text.DecimalFormat; @@ -16,7 +17,7 @@ import com.peanut.common.utils.PageUtils; import com.peanut.common.utils.Query; import com.peanut.modules.book.dao.BookShelfDao; - +@Slf4j @Service("bookShelfService") public class BookShelfServiceImpl extends ServiceImpl implements BookShelfService { diff --git a/src/main/java/com/peanut/modules/book/service/impl/BookTeachServiceImpl.java b/src/main/java/com/peanut/modules/book/service/impl/BookTeachServiceImpl.java index 4b7decb0..d0023d5a 100644 --- a/src/main/java/com/peanut/modules/book/service/impl/BookTeachServiceImpl.java +++ b/src/main/java/com/peanut/modules/book/service/impl/BookTeachServiceImpl.java @@ -4,8 +4,9 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.peanut.modules.book.dao.BookTeachDao; import com.peanut.modules.book.entity.BookTeachEntity; import com.peanut.modules.book.service.BookTeachService; +import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Service; - +@Slf4j @Service public class BookTeachServiceImpl extends ServiceImpl implements BookTeachService { } diff --git a/src/main/java/com/peanut/modules/book/service/impl/BuyOrderDetailServiceImpl.java b/src/main/java/com/peanut/modules/book/service/impl/BuyOrderDetailServiceImpl.java index c8bb7ab8..41d52375 100644 --- a/src/main/java/com/peanut/modules/book/service/impl/BuyOrderDetailServiceImpl.java +++ b/src/main/java/com/peanut/modules/book/service/impl/BuyOrderDetailServiceImpl.java @@ -1,6 +1,7 @@ package com.peanut.modules.book.service.impl; import com.peanut.modules.book.entity.BuyOrderDetail; +import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Service; import java.util.Map; @@ -13,7 +14,7 @@ import com.peanut.common.utils.Query; import com.peanut.modules.book.dao.BuyOrderDetailDao; import com.peanut.modules.book.service.BuyOrderDetailService; - +@Slf4j @Service("buyOrderDetailService") public class BuyOrderDetailServiceImpl extends ServiceImpl implements BuyOrderDetailService { diff --git a/src/main/java/com/peanut/modules/book/service/impl/BuyOrderProductServiceImpl.java b/src/main/java/com/peanut/modules/book/service/impl/BuyOrderProductServiceImpl.java index af824a5d..b830fa45 100644 --- a/src/main/java/com/peanut/modules/book/service/impl/BuyOrderProductServiceImpl.java +++ b/src/main/java/com/peanut/modules/book/service/impl/BuyOrderProductServiceImpl.java @@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.peanut.modules.book.dao.BuyOrderProductDao; import com.peanut.modules.book.entity.BuyOrderProduct; import com.peanut.modules.book.service.BuyOrderProductService; +import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Service; /** @@ -11,6 +12,7 @@ import org.springframework.stereotype.Service; * @Author: Cauchy * @CreateTime: 2023/10/19 */ +@Slf4j @Service public class BuyOrderProductServiceImpl extends ServiceImpl implements BuyOrderProductService { } diff --git a/src/main/java/com/peanut/modules/book/service/impl/BuyOrderServiceImpl.java b/src/main/java/com/peanut/modules/book/service/impl/BuyOrderServiceImpl.java index 4fbdb63a..2429dc70 100644 --- a/src/main/java/com/peanut/modules/book/service/impl/BuyOrderServiceImpl.java +++ b/src/main/java/com/peanut/modules/book/service/impl/BuyOrderServiceImpl.java @@ -25,6 +25,7 @@ import com.peanut.modules.book.vo.UserOrderVo; import com.peanut.modules.book.vo.request.BuyOrderListRequestVo; import com.peanut.modules.book.vo.response.*; import com.peanut.modules.oss.service.OssService; +import lombok.extern.slf4j.Slf4j; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; @@ -43,7 +44,7 @@ import java.text.SimpleDateFormat; import java.util.*; import java.util.stream.Collectors; - +@Slf4j @Service("buyOrderService") public class BuyOrderServiceImpl extends ServiceImpl implements BuyOrderService { diff --git a/src/main/java/com/peanut/modules/book/service/impl/CityServiceImpl.java b/src/main/java/com/peanut/modules/book/service/impl/CityServiceImpl.java index ee93c53e..df6cd9bd 100644 --- a/src/main/java/com/peanut/modules/book/service/impl/CityServiceImpl.java +++ b/src/main/java/com/peanut/modules/book/service/impl/CityServiceImpl.java @@ -1,6 +1,7 @@ package com.peanut.modules.book.service.impl; import com.peanut.modules.book.entity.City; +import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Service; import java.util.Map; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; @@ -12,7 +13,7 @@ import com.peanut.common.utils.Query; import com.peanut.modules.book.dao.CityDao; import com.peanut.modules.book.service.CityService; - +@Slf4j @Service("cityService") public class CityServiceImpl extends ServiceImpl implements CityService { diff --git a/src/main/java/com/peanut/modules/book/service/impl/CountyServiceImpl.java b/src/main/java/com/peanut/modules/book/service/impl/CountyServiceImpl.java index cf8ffa08..bf3f8c52 100644 --- a/src/main/java/com/peanut/modules/book/service/impl/CountyServiceImpl.java +++ b/src/main/java/com/peanut/modules/book/service/impl/CountyServiceImpl.java @@ -1,6 +1,7 @@ package com.peanut.modules.book.service.impl; import com.peanut.modules.book.entity.County; +import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Service; import java.util.Map; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; @@ -12,7 +13,7 @@ import com.peanut.common.utils.Query; import com.peanut.modules.book.dao.CountyDao; import com.peanut.modules.book.service.CountyService; - +@Slf4j @Service("countyService") public class CountyServiceImpl extends ServiceImpl implements CountyService { diff --git a/src/main/java/com/peanut/modules/book/service/impl/CouponProductCategoryRelationServiceImpl.java b/src/main/java/com/peanut/modules/book/service/impl/CouponProductCategoryRelationServiceImpl.java index 2944d96c..410376bc 100644 --- a/src/main/java/com/peanut/modules/book/service/impl/CouponProductCategoryRelationServiceImpl.java +++ b/src/main/java/com/peanut/modules/book/service/impl/CouponProductCategoryRelationServiceImpl.java @@ -1,5 +1,6 @@ package com.peanut.modules.book.service.impl; +import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Service; import java.util.Map; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; @@ -12,7 +13,7 @@ import com.peanut.modules.book.dao.CouponProductCategoryRelationDao; import com.peanut.modules.book.entity.CouponProductCategoryRelationEntity; import com.peanut.modules.book.service.CouponProductCategoryRelationService; - +@Slf4j @Service("couponProductCategoryRelationService") public class CouponProductCategoryRelationServiceImpl extends ServiceImpl implements CouponProductCategoryRelationService { diff --git a/src/main/java/com/peanut/modules/book/service/impl/CouponProductRelationServiceImpl.java b/src/main/java/com/peanut/modules/book/service/impl/CouponProductRelationServiceImpl.java index ccc5b70e..a012f637 100644 --- a/src/main/java/com/peanut/modules/book/service/impl/CouponProductRelationServiceImpl.java +++ b/src/main/java/com/peanut/modules/book/service/impl/CouponProductRelationServiceImpl.java @@ -1,5 +1,6 @@ package com.peanut.modules.book.service.impl; +import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Service; import java.util.Map; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; @@ -12,7 +13,7 @@ import com.peanut.modules.book.dao.CouponProductRelationDao; import com.peanut.modules.book.entity.CouponProductRelationEntity; import com.peanut.modules.book.service.CouponProductRelationService; - +@Slf4j @Service("couponProductRelationService") public class CouponProductRelationServiceImpl extends ServiceImpl implements CouponProductRelationService { diff --git a/src/main/java/com/peanut/modules/book/service/impl/CouponServiceImpl.java b/src/main/java/com/peanut/modules/book/service/impl/CouponServiceImpl.java index 05261df3..6552bd4f 100644 --- a/src/main/java/com/peanut/modules/book/service/impl/CouponServiceImpl.java +++ b/src/main/java/com/peanut/modules/book/service/impl/CouponServiceImpl.java @@ -2,6 +2,7 @@ package com.peanut.modules.book.service.impl; import com.peanut.common.utils.ExcludeEmptyQueryWrapper; import com.peanut.modules.book.service.CouponHistoryService; +import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @@ -16,7 +17,7 @@ import com.peanut.modules.book.dao.CouponDao; import com.peanut.modules.book.entity.CouponEntity; import com.peanut.modules.book.service.CouponService; - +@Slf4j @Service("couponService") public class CouponServiceImpl extends ServiceImpl implements CouponService { diff --git a/src/main/java/com/peanut/modules/book/service/impl/ExpressCompanyServiceImpl.java b/src/main/java/com/peanut/modules/book/service/impl/ExpressCompanyServiceImpl.java index b3435a86..d8f85648 100644 --- a/src/main/java/com/peanut/modules/book/service/impl/ExpressCompanyServiceImpl.java +++ b/src/main/java/com/peanut/modules/book/service/impl/ExpressCompanyServiceImpl.java @@ -5,6 +5,7 @@ import com.peanut.modules.book.dao.ExpressCompanyDao; import com.peanut.modules.book.entity.ExpressCompany; import com.peanut.modules.book.service.ExpressCompanyService; import com.peanut.modules.book.vo.ExpressCompanyVo; +import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @@ -15,6 +16,7 @@ import java.util.List; * @Author: Cauchy * @CreateTime: 2023/10/16 */ +@Slf4j @Service public class ExpressCompanyServiceImpl extends ServiceImpl implements ExpressCompanyService { @Autowired diff --git a/src/main/java/com/peanut/modules/book/service/impl/ExpressFeeServiceImpl.java b/src/main/java/com/peanut/modules/book/service/impl/ExpressFeeServiceImpl.java index a2bf8011..a2c83790 100644 --- a/src/main/java/com/peanut/modules/book/service/impl/ExpressFeeServiceImpl.java +++ b/src/main/java/com/peanut/modules/book/service/impl/ExpressFeeServiceImpl.java @@ -5,6 +5,7 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.peanut.modules.book.dao.ExpressFeeDao; import com.peanut.modules.book.entity.ExpressFee; import com.peanut.modules.book.service.ExpressFeeService; +import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Service; import java.math.BigDecimal; @@ -14,6 +15,7 @@ import java.math.BigDecimal; * @Author: Cauchy * @CreateTime: 2023/10/16 */ +@Slf4j @Service public class ExpressFeeServiceImpl extends ServiceImpl implements ExpressFeeService { @Override diff --git a/src/main/java/com/peanut/modules/book/service/impl/ExpressOrderServiceImpl.java b/src/main/java/com/peanut/modules/book/service/impl/ExpressOrderServiceImpl.java index a4c0c938..b3098c49 100644 --- a/src/main/java/com/peanut/modules/book/service/impl/ExpressOrderServiceImpl.java +++ b/src/main/java/com/peanut/modules/book/service/impl/ExpressOrderServiceImpl.java @@ -11,6 +11,7 @@ import com.peanut.modules.book.entity.ExpressQueryResponse; import com.peanut.modules.book.service.ExpressOrderService; import com.peanut.modules.book.vo.*; import com.peanut.modules.book.vo.request.ExpressOrderRequestVo; +import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Service; @@ -22,6 +23,7 @@ import java.util.Map; * @Author: Cauchy * @CreateTime: 2023/10/16 */ +@Slf4j @Service public class ExpressOrderServiceImpl extends ServiceImpl implements ExpressOrderService { diff --git a/src/main/java/com/peanut/modules/book/service/impl/OrderCartServiceImpl.java b/src/main/java/com/peanut/modules/book/service/impl/OrderCartServiceImpl.java index 22a84182..97a2b785 100644 --- a/src/main/java/com/peanut/modules/book/service/impl/OrderCartServiceImpl.java +++ b/src/main/java/com/peanut/modules/book/service/impl/OrderCartServiceImpl.java @@ -3,6 +3,7 @@ package com.peanut.modules.book.service.impl; import com.peanut.modules.book.entity.ShopProduct; import com.peanut.modules.book.service.ShopProductService; import com.peanut.modules.book.vo.ShopCartVo; +import lombok.extern.slf4j.Slf4j; import org.springframework.beans.BeanUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @@ -21,7 +22,7 @@ import com.peanut.modules.book.dao.OrderCartDao; import com.peanut.modules.book.entity.OrderCartEntity; import com.peanut.modules.book.service.OrderCartService; - +@Slf4j @Service("orderCartService") public class OrderCartServiceImpl extends ServiceImpl implements OrderCartService { diff --git a/src/main/java/com/peanut/modules/book/service/impl/PayPaymentOrderServiceImpl.java b/src/main/java/com/peanut/modules/book/service/impl/PayPaymentOrderServiceImpl.java index 148ebaef..021575ac 100644 --- a/src/main/java/com/peanut/modules/book/service/impl/PayPaymentOrderServiceImpl.java +++ b/src/main/java/com/peanut/modules/book/service/impl/PayPaymentOrderServiceImpl.java @@ -1,6 +1,7 @@ package com.peanut.modules.book.service.impl; import com.peanut.common.utils.ExcludeEmptyQueryWrapper; +import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang.StringUtils; import org.springframework.stereotype.Service; import java.util.Map; @@ -14,7 +15,7 @@ import com.peanut.modules.book.dao.PayPaymentOrderDao; import com.peanut.modules.book.entity.PayPaymentOrderEntity; import com.peanut.modules.book.service.PayPaymentOrderService; - +@Slf4j @Service("payPaymentOrderService") public class PayPaymentOrderServiceImpl extends ServiceImpl implements PayPaymentOrderService { diff --git a/src/main/java/com/peanut/modules/book/service/impl/PayWechatOrderServiceImpl.java b/src/main/java/com/peanut/modules/book/service/impl/PayWechatOrderServiceImpl.java index dd88b67f..2fd052bd 100644 --- a/src/main/java/com/peanut/modules/book/service/impl/PayWechatOrderServiceImpl.java +++ b/src/main/java/com/peanut/modules/book/service/impl/PayWechatOrderServiceImpl.java @@ -10,13 +10,14 @@ import com.peanut.modules.book.entity.BuyOrder; import com.peanut.modules.book.entity.PayWechatOrderEntity; import com.peanut.modules.book.service.BuyOrderService; import com.peanut.modules.book.service.PayWechatOrderService; +import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.Date; import java.util.Map; - +@Slf4j @Service("payWechatOrderService") public class PayWechatOrderServiceImpl extends ServiceImpl implements PayWechatOrderService { diff --git a/src/main/java/com/peanut/modules/book/service/impl/PayZfbOrderServiceImpl.java b/src/main/java/com/peanut/modules/book/service/impl/PayZfbOrderServiceImpl.java index 72247057..ae75e8f7 100644 --- a/src/main/java/com/peanut/modules/book/service/impl/PayZfbOrderServiceImpl.java +++ b/src/main/java/com/peanut/modules/book/service/impl/PayZfbOrderServiceImpl.java @@ -1,5 +1,6 @@ package com.peanut.modules.book.service.impl; +import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Service; import java.util.Map; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; @@ -12,7 +13,7 @@ import com.peanut.modules.book.dao.PayZfbOrderDao; import com.peanut.modules.book.entity.PayZfbOrderEntity; import com.peanut.modules.book.service.PayZfbOrderService; - +@Slf4j @Service("payZfbOrderService") public class PayZfbOrderServiceImpl extends ServiceImpl implements PayZfbOrderService { diff --git a/src/main/java/com/peanut/modules/book/service/impl/PointCategoryServiceImpl.java b/src/main/java/com/peanut/modules/book/service/impl/PointCategoryServiceImpl.java index ab7aa3cb..75a6ebba 100644 --- a/src/main/java/com/peanut/modules/book/service/impl/PointCategoryServiceImpl.java +++ b/src/main/java/com/peanut/modules/book/service/impl/PointCategoryServiceImpl.java @@ -7,11 +7,12 @@ import com.peanut.modules.book.dao.PointCategoryDao; import com.peanut.modules.book.entity.PointCategoryEntity; import com.peanut.modules.book.entity.PointEntity; import com.peanut.modules.book.service.PointCategoryService; +import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Service; import java.util.List; import java.util.Map; - +@Slf4j @Service("pointCategoryService") public class PointCategoryServiceImpl extends ServiceImpl implements PointCategoryService { diff --git a/src/main/java/com/peanut/modules/book/service/impl/PointServiceImpl.java b/src/main/java/com/peanut/modules/book/service/impl/PointServiceImpl.java index 3bef0337..2eaf826d 100644 --- a/src/main/java/com/peanut/modules/book/service/impl/PointServiceImpl.java +++ b/src/main/java/com/peanut/modules/book/service/impl/PointServiceImpl.java @@ -14,6 +14,7 @@ import com.peanut.modules.book.dao.PointDao; import com.peanut.modules.book.entity.PointCategoryEntity; import com.peanut.modules.book.entity.PointEntity; import com.peanut.modules.book.service.PointService; +import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @@ -21,7 +22,7 @@ import java.text.SimpleDateFormat; import java.util.*; import static com.peanut.config.TGDZ.*; - +@Slf4j @Service("pointService") public class PointServiceImpl extends ServiceImpl implements PointService { diff --git a/src/main/java/com/peanut/modules/book/service/impl/ProvinceServiceImpl.java b/src/main/java/com/peanut/modules/book/service/impl/ProvinceServiceImpl.java index ee2420e0..a13d2f0c 100644 --- a/src/main/java/com/peanut/modules/book/service/impl/ProvinceServiceImpl.java +++ b/src/main/java/com/peanut/modules/book/service/impl/ProvinceServiceImpl.java @@ -5,6 +5,7 @@ import com.peanut.modules.book.entity.County; import com.peanut.modules.book.entity.Province; import com.peanut.modules.book.service.CityService; import com.peanut.modules.book.service.CountyService; +import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @@ -19,7 +20,7 @@ import com.peanut.common.utils.Query; import com.peanut.modules.book.dao.ProvinceDao; import com.peanut.modules.book.service.ProvinceService; - +@Slf4j @Service("provinceService") public class ProvinceServiceImpl extends ServiceImpl implements ProvinceService { diff --git a/src/main/java/com/peanut/modules/book/service/impl/PublisherServiceImpl.java b/src/main/java/com/peanut/modules/book/service/impl/PublisherServiceImpl.java index 02241cb4..870ecf21 100644 --- a/src/main/java/com/peanut/modules/book/service/impl/PublisherServiceImpl.java +++ b/src/main/java/com/peanut/modules/book/service/impl/PublisherServiceImpl.java @@ -1,5 +1,6 @@ package com.peanut.modules.book.service.impl; +import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Service; import java.util.Map; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; @@ -12,7 +13,7 @@ import com.peanut.modules.book.dao.PublisherDao; import com.peanut.modules.book.entity.Publisher; import com.peanut.modules.book.service.PublisherService; - +@Slf4j @Service("publisherService") public class PublisherServiceImpl extends ServiceImpl implements PublisherService { diff --git a/src/main/java/com/peanut/modules/book/service/impl/SeckillProdRelationServiceImpl.java b/src/main/java/com/peanut/modules/book/service/impl/SeckillProdRelationServiceImpl.java index b42bc8a6..c01bb030 100644 --- a/src/main/java/com/peanut/modules/book/service/impl/SeckillProdRelationServiceImpl.java +++ b/src/main/java/com/peanut/modules/book/service/impl/SeckillProdRelationServiceImpl.java @@ -1,5 +1,6 @@ package com.peanut.modules.book.service.impl; +import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Service; import java.util.Map; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; @@ -12,7 +13,7 @@ import com.peanut.modules.book.dao.SeckillProdRelationDao; import com.peanut.modules.book.entity.SeckillProdRelationEntity; import com.peanut.modules.book.service.SeckillProdRelationService; - +@Slf4j @Service("seckillProdRelationService") public class SeckillProdRelationServiceImpl extends ServiceImpl implements SeckillProdRelationService { diff --git a/src/main/java/com/peanut/modules/book/service/impl/ShopCategoryServiceImpl.java b/src/main/java/com/peanut/modules/book/service/impl/ShopCategoryServiceImpl.java index 47b574e6..8027b517 100644 --- a/src/main/java/com/peanut/modules/book/service/impl/ShopCategoryServiceImpl.java +++ b/src/main/java/com/peanut/modules/book/service/impl/ShopCategoryServiceImpl.java @@ -1,5 +1,6 @@ package com.peanut.modules.book.service.impl; +import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Service; import java.util.ArrayList; @@ -18,7 +19,7 @@ import com.peanut.modules.book.dao.ShopCategoryDao; import com.peanut.modules.book.entity.ShopCategoryEntity; import com.peanut.modules.book.service.ShopCategoryService; - +@Slf4j @Service("shopCategoryService") public class ShopCategoryServiceImpl extends ServiceImpl implements ShopCategoryService { diff --git a/src/main/java/com/peanut/modules/book/service/impl/ShopProductBookServiceImpl.java b/src/main/java/com/peanut/modules/book/service/impl/ShopProductBookServiceImpl.java index 6e3420d9..e2d8969d 100644 --- a/src/main/java/com/peanut/modules/book/service/impl/ShopProductBookServiceImpl.java +++ b/src/main/java/com/peanut/modules/book/service/impl/ShopProductBookServiceImpl.java @@ -14,6 +14,7 @@ import com.peanut.modules.book.service.BookService; import com.peanut.modules.book.service.ShopProductService; import com.peanut.modules.book.service.ShopProductBookService; import com.peanut.modules.book.vo.ProductBookQueryVO; +import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @@ -22,7 +23,7 @@ import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.stream.Collectors; - +@Slf4j @Service("shopProductBookService") public class ShopProductBookServiceImpl extends ServiceImpl implements ShopProductBookService { @Autowired diff --git a/src/main/java/com/peanut/modules/book/service/impl/ShopProductLabelServiceImpl.java b/src/main/java/com/peanut/modules/book/service/impl/ShopProductLabelServiceImpl.java index fc44fc65..e8f22027 100644 --- a/src/main/java/com/peanut/modules/book/service/impl/ShopProductLabelServiceImpl.java +++ b/src/main/java/com/peanut/modules/book/service/impl/ShopProductLabelServiceImpl.java @@ -4,8 +4,9 @@ import com.peanut.modules.book.dao.ShopProductLabelDao; import com.peanut.modules.book.entity.ShopProductLabelEntity; import com.peanut.modules.book.service.ShopProductLabelService; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Service; - +@Slf4j @Service("ShopProductLabelService") public class ShopProductLabelServiceImpl extends ServiceImpl implements ShopProductLabelService { diff --git a/src/main/java/com/peanut/modules/book/service/impl/ShopProductServiceImpl.java b/src/main/java/com/peanut/modules/book/service/impl/ShopProductServiceImpl.java index 77c44940..0c5f55c3 100644 --- a/src/main/java/com/peanut/modules/book/service/impl/ShopProductServiceImpl.java +++ b/src/main/java/com/peanut/modules/book/service/impl/ShopProductServiceImpl.java @@ -1,5 +1,6 @@ package com.peanut.modules.book.service.impl; import com.peanut.common.utils.ExcludeEmptyQueryWrapper; +import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Service; import java.util.List; @@ -13,7 +14,7 @@ import com.peanut.modules.book.dao.ShopProductDao; import com.peanut.modules.book.entity.ShopProduct; import com.peanut.modules.book.service.ShopProductService; - +@Slf4j @Service("shopProductService") public class ShopProductServiceImpl extends ServiceImpl implements ShopProductService { diff --git a/src/main/java/com/peanut/modules/book/service/impl/ShopProductToLabelServiceImpl.java b/src/main/java/com/peanut/modules/book/service/impl/ShopProductToLabelServiceImpl.java index e22e0454..12080c51 100644 --- a/src/main/java/com/peanut/modules/book/service/impl/ShopProductToLabelServiceImpl.java +++ b/src/main/java/com/peanut/modules/book/service/impl/ShopProductToLabelServiceImpl.java @@ -11,13 +11,14 @@ import com.peanut.modules.book.entity.ShopProduct; import com.peanut.modules.book.entity.ShopProductToLabelEntity; import com.peanut.modules.book.service.ShopProductService; import com.peanut.modules.book.service.ShopProductToLabelService; +import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.ArrayList; import java.util.List; import java.util.Map; - +@Slf4j @Service("ShopProductToLabelService") public class ShopProductToLabelServiceImpl extends ServiceImpl implements ShopProductToLabelService { @Autowired diff --git a/src/main/java/com/peanut/modules/book/service/impl/TransactionDetailsServiceImpl.java b/src/main/java/com/peanut/modules/book/service/impl/TransactionDetailsServiceImpl.java index 324ff2d7..73b7e5aa 100644 --- a/src/main/java/com/peanut/modules/book/service/impl/TransactionDetailsServiceImpl.java +++ b/src/main/java/com/peanut/modules/book/service/impl/TransactionDetailsServiceImpl.java @@ -9,13 +9,14 @@ import com.peanut.modules.book.dao.TransactionDetailsDao; import com.peanut.modules.book.entity.TransactionDetailsEntity; import com.peanut.modules.book.service.BookService; import com.peanut.modules.book.service.TransactionDetailsService; +import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang.StringUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.Map; - +@Slf4j @Service("transactionDetailsService") public class TransactionDetailsServiceImpl extends ServiceImpl implements TransactionDetailsService { diff --git a/src/main/java/com/peanut/modules/book/service/impl/UserAddressServiceImpl.java b/src/main/java/com/peanut/modules/book/service/impl/UserAddressServiceImpl.java index 38ae73bc..469cfb01 100644 --- a/src/main/java/com/peanut/modules/book/service/impl/UserAddressServiceImpl.java +++ b/src/main/java/com/peanut/modules/book/service/impl/UserAddressServiceImpl.java @@ -7,6 +7,7 @@ import com.peanut.modules.book.service.CityService; import com.peanut.modules.book.service.CountyService; import com.peanut.modules.book.service.ProvinceService; import com.peanut.modules.book.vo.UserAddressVo; +import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @@ -22,7 +23,7 @@ import com.peanut.modules.book.dao.UserAddressDao; import com.peanut.modules.book.entity.UserAddress; import com.peanut.modules.book.service.UserAddressService; - +@Slf4j @Service("userAddressService") public class UserAddressServiceImpl extends ServiceImpl implements UserAddressService { @Autowired diff --git a/src/main/java/com/peanut/modules/book/service/impl/UserBookClockImpl.java b/src/main/java/com/peanut/modules/book/service/impl/UserBookClockImpl.java index 0ea80d75..3fa2f08d 100644 --- a/src/main/java/com/peanut/modules/book/service/impl/UserBookClockImpl.java +++ b/src/main/java/com/peanut/modules/book/service/impl/UserBookClockImpl.java @@ -4,8 +4,9 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.peanut.modules.book.dao.UserBookClockDao; import com.peanut.modules.book.entity.UserBookClockEntity; import com.peanut.modules.book.service.UserBookClockService; +import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Service; - +@Slf4j @Service("userBookClockService") public class UserBookClockImpl extends ServiceImpl implements UserBookClockService { } diff --git a/src/main/java/com/peanut/modules/book/service/impl/UserEbookBuyServiceImpl.java b/src/main/java/com/peanut/modules/book/service/impl/UserEbookBuyServiceImpl.java index b8c0dfaa..c556b269 100644 --- a/src/main/java/com/peanut/modules/book/service/impl/UserEbookBuyServiceImpl.java +++ b/src/main/java/com/peanut/modules/book/service/impl/UserEbookBuyServiceImpl.java @@ -9,6 +9,7 @@ import com.peanut.common.utils.Query; import com.peanut.modules.book.dao.UserEbookBuyDao; import com.peanut.modules.book.entity.UserEbookBuyEntity; import com.peanut.modules.book.service.UserEbookBuyService; +import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @@ -16,7 +17,7 @@ import java.util.Date; import java.util.List; import java.util.Map; - +@Slf4j @Service("userEbookBuyService") public class UserEbookBuyServiceImpl extends ServiceImpl implements UserEbookBuyService { diff --git a/src/main/java/com/peanut/modules/book/service/impl/UserFeedbackServiceImpl.java b/src/main/java/com/peanut/modules/book/service/impl/UserFeedbackServiceImpl.java index c2e18f8f..62f9d02f 100644 --- a/src/main/java/com/peanut/modules/book/service/impl/UserFeedbackServiceImpl.java +++ b/src/main/java/com/peanut/modules/book/service/impl/UserFeedbackServiceImpl.java @@ -5,8 +5,9 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.peanut.modules.book.dao.UserFeedbackDao; import com.peanut.modules.book.entity.UserFeedbackEntity; import com.peanut.modules.book.service.UserFeedbackSerivce; +import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Service; - +@Slf4j @Service public class UserFeedbackServiceImpl extends ServiceImpl implements UserFeedbackSerivce { } diff --git a/src/main/java/com/peanut/modules/book/service/impl/UserFollowUpServiceImpl.java b/src/main/java/com/peanut/modules/book/service/impl/UserFollowUpServiceImpl.java index 34e7f749..ba3f5651 100644 --- a/src/main/java/com/peanut/modules/book/service/impl/UserFollowUpServiceImpl.java +++ b/src/main/java/com/peanut/modules/book/service/impl/UserFollowUpServiceImpl.java @@ -8,10 +8,11 @@ import com.peanut.common.utils.Query; import com.peanut.modules.book.dao.UserFollowUpDao; import com.peanut.modules.book.entity.UserFollowUpEntity; import com.peanut.modules.book.service.UserFollowUpService; +import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Service; import java.util.Map; - +@Slf4j @Service public class UserFollowUpServiceImpl extends ServiceImpl implements UserFollowUpService { diff --git a/src/main/java/com/peanut/modules/book/service/impl/UserRecordServiceImpl.java b/src/main/java/com/peanut/modules/book/service/impl/UserRecordServiceImpl.java index fb21b96a..3690407c 100644 --- a/src/main/java/com/peanut/modules/book/service/impl/UserRecordServiceImpl.java +++ b/src/main/java/com/peanut/modules/book/service/impl/UserRecordServiceImpl.java @@ -11,6 +11,7 @@ import com.peanut.modules.book.entity.MyUserEntity; import com.peanut.modules.book.entity.UserRecord; import com.peanut.modules.book.service.MyUserService; import com.peanut.modules.book.service.UserRecordService; +import lombok.extern.slf4j.Slf4j; import org.joda.time.DateTime; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @@ -19,7 +20,7 @@ import org.springframework.web.multipart.MultipartFile; import java.io.InputStream; import java.util.*; - +@Slf4j @Service("UserRecordServiceImpl") public class UserRecordServiceImpl extends ServiceImpl implements UserRecordService { diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 4b7d7a8c..ad28466c 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -11,7 +11,7 @@ connection-timeout: 6000000ms spring: # 环境 dev|test|prod profiles: - active: dev + active: prod # jackson时间格式化 jackson: time-zone: GMT+8 diff --git a/src/main/resources/logback-spring.xml b/src/main/resources/logback-spring.xml index 50b2ebb3..42688217 100644 --- a/src/main/resources/logback-spring.xml +++ b/src/main/resources/logback-spring.xml @@ -183,28 +183,30 @@ - - + + + + + + - + - + + + + + + + + \ No newline at end of file