shc 6 сар өмнө
parent
commit
1a0310af65

+ 7 - 1
hnqz-upms/hnqz-upms-biz/src/main/java/com/qunzhixinxi/hnqz/admin/service/impl/WmDaHospitalServiceImpl.java

@@ -34,6 +34,7 @@ import lombok.extern.slf4j.Slf4j;
 import org.apache.commons.collections4.CollectionUtils;
 import org.apache.commons.lang.StringUtils;
 import org.springframework.beans.factory.annotation.Value;
+import org.springframework.context.annotation.Lazy;
 import org.springframework.data.geo.Circle;
 import org.springframework.data.geo.GeoResults;
 import org.springframework.data.geo.Metrics;
@@ -42,6 +43,7 @@ import org.springframework.data.redis.core.RedisTemplate;
 import org.springframework.stereotype.Service;
 import org.springframework.transaction.annotation.Transactional;
 
+import javax.annotation.Resource;
 import java.time.LocalDateTime;
 import java.util.ArrayList;
 import java.util.Collections;
@@ -66,7 +68,11 @@ public class WmDaHospitalServiceImpl extends ServiceImpl<WmDaHospitalMapper, WmD
     private final RedisTemplate redisTemplate;
     private final WmTaskContentMapper wmTaskContentMapper;
     private final WmDaHospitalMapper wmDaHospitalMapper;
-    private final WmTaskService wmTaskService;
+
+    @Lazy
+    @Resource
+    private  WmTaskService wmTaskService;
+
     private final SysDictItemService sysDictItemService;
     private final WmScorePackageService wmScorePackageService;
     private final WmScorePackageStatusService packageStatusService;