瀏覽代碼

解决循环依赖

hurugang 4 年之前
父節點
當前提交
e683dfc611
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/main/java/cn/hnthyy/thmz/service/impl/his/mz/MzyReqrecServiceImpl.java

+ 3 - 0
src/main/java/cn/hnthyy/thmz/service/impl/his/mz/MzyReqrecServiceImpl.java

@@ -19,6 +19,7 @@ import cn.hnthyy.thmz.vo.ThmzmxsrParamsVo;
 import org.apache.commons.lang3.StringUtils;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.beans.factory.annotation.Value;
+import org.springframework.context.annotation.Lazy;
 import org.springframework.scheduling.annotation.Async;
 import org.springframework.stereotype.Service;
 import org.springframework.transaction.annotation.Isolation;
@@ -89,6 +90,8 @@ public class MzyReqrecServiceImpl implements MzyReqrecService {
     @Autowired
     private MzyZdChargeTypeService mzyZdChargeTypeService;
     @Autowired
+    //解决循环依赖
+    @Lazy
     private OrderStatusChangeService orderStatusChangeService;
     @Autowired
     private HolidaysService holidaysService;