Sfoglia il codice sorgente

1.解决qw_voice循环依赖问题

jzp 4 settimane fa
parent
commit
a9cd37212a

+ 0 - 2
fs-service/src/main/java/com/fs/company/service/impl/CompanyUserServiceImpl.java

@@ -108,8 +108,6 @@ public class CompanyUserServiceImpl implements ICompanyUserService
     @Autowired
     private ICompanyService companyService;
 
-    @Autowired
-    private IQwExternalContactService qwExternalContactService;
 
     @Autowired
     private IQwUserService qwUserService;

+ 5 - 1
fs-service/src/main/java/com/fs/sop/service/impl/QwSopLogsServiceImpl.java

@@ -106,9 +106,13 @@ public class QwSopLogsServiceImpl extends ServiceImpl<QwSopLogsMapper, QwSopLogs
     @Autowired
     private SopUserLogsInfoMapper sopUserLogsInfoMapper;
 
-    @Autowired
     private AsyncSopTestService asyncSopTestService;
 
+    @Autowired
+    public void setAsyncSopTestService(@Lazy AsyncSopTestService asyncSopTestService){
+        this.asyncSopTestService = asyncSopTestService;
+    }
+
 
     @Lazy
     @Autowired

+ 7 - 6
fs-service/src/main/java/com/fs/sop/service/impl/QwSopServiceImpl.java

@@ -41,6 +41,7 @@ import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 import org.springframework.beans.BeanUtils;
 import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.context.annotation.Lazy;
 import org.springframework.stereotype.Service;
 
 import java.io.IOException;
@@ -92,9 +93,6 @@ public class QwSopServiceImpl implements IQwSopService
     @Autowired
     private SopUserLogsMapper sopUserLogsMapper;
 
-    @Autowired
-    private AsyncSopService asyncSopService;
-
 
     @Autowired
     private AsyncSopTestService asyncSopTestService;
@@ -109,14 +107,17 @@ public class QwSopServiceImpl implements IQwSopService
     private ISopUserLogsService sopUserLogsService;
     @Autowired
     private CompanyUserMapper companyUserMapper;
-    @Autowired
+
     private IQwSopTempVoiceService qwSopTempVoiceService;
+
+    @Autowired
+    public void setIQwSopTempVoiceService(@Lazy IQwSopTempVoiceService qwSopTempVoiceService) {
+        this.qwSopTempVoiceService = qwSopTempVoiceService;
+    }
     @Autowired
     private IQwSopTempDayService qwSopTempDayService;
     @Autowired
     private IQwSopTempRulesService qwSopTempRulesService;
-    @Autowired
-    private IQwSopTempContentService qwSopTempContentService;
 
     @Autowired
     private RocketMQTemplate rocketMQTemplate;

+ 0 - 2
fs-service/src/main/java/com/fs/sop/service/impl/SopUserLogsServiceImpl.java

@@ -98,8 +98,6 @@ public class SopUserLogsServiceImpl  implements ISopUserLogsService {
     @Autowired
     private IQwSopTempDayService qwSopTempDayService;
 
-    @Autowired
-    private ISopUserLogsService sopUserLogsService;
 
     @Autowired
     private ISysConfigService configService;

+ 1 - 1
fs-user-app/src/main/java/com/fs/app/controller/CompanyUserController.java

@@ -218,7 +218,7 @@ public class CompanyUserController extends  AppBaseController {
      * @return
      */
     @GetMapping("/companyUserVoice")
-    public R companyUserVoice(@Param("id") Long id){
+    public R companyUserVoice(@RequestParam("id") Long id){
         AudioVO audioVO = new AudioVO();
         Long companyUserId = getCompanyUserId();
         List<QwSopTempVoice> sopTempVoices = redisCache.getVoiceAllList(SOP_TEMP_VOICE_KEY + ":" + companyUserId);