Browse Source

解决循环依赖

hurugang 4 years ago
parent
commit
e683dfc611

+ 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;