You've already forked FrameTour-BE
feat(config): 添加Mybatis Plus分页插件和Mapper扫描配置
All checks were successful
ZhenTu-BE/pipeline/head This commit looks good
All checks were successful
ZhenTu-BE/pipeline/head This commit looks good
- 配置MybatisPlusInterceptor分页插件 - 添加@MapperScan注解扫描多个mapper包 - 为多个service注入添加@Lazy注解解决循环依赖 - 在VoucherServiceImpl和PuzzleGenerateServiceImpl中启用懒加载 - 优化订单服务中的依赖注入配置
This commit is contained in:
@@ -47,6 +47,7 @@ import com.ycwl.basic.repository.FaceRepository;
|
||||
import com.ycwl.basic.service.pc.ScenicService;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.context.annotation.Lazy;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
@@ -70,13 +71,20 @@ public class OrderServiceImpl implements IOrderService {
|
||||
private final OrderItemMapper orderItemMapper;
|
||||
private final OrderDiscountMapper orderDiscountMapper;
|
||||
private final OrderRefundMapper orderRefundMapper;
|
||||
@Lazy
|
||||
private final OrderEventManager orderEventManager;
|
||||
@Lazy
|
||||
private final ScenicService scenicService;
|
||||
private final MemberMapper memberMapper;
|
||||
@Lazy
|
||||
private final ICouponService couponService;
|
||||
@Lazy
|
||||
private final IVoucherService voucherService;
|
||||
@Lazy
|
||||
private final IProductConfigService productConfigService;
|
||||
@Lazy
|
||||
private final IProductTypeCapabilityService productTypeCapabilityService;
|
||||
@Lazy
|
||||
private final DuplicatePurchaseCheckerFactory duplicatePurchaseCheckerFactory;
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user