1550076451 %!s(int64=2) %!d(string=před) roky
rodič
revize
0e42e162b6

+ 5 - 3
zxkf-api/src/main/java/api/controller/order/WorkOrderVisitLogController.java

@@ -1,7 +1,9 @@
1 1
 package api.controller.order;
2 2
 
3
+import api.entity.database.call.CallLog;
3 4
 import api.entity.database.call.Record;
4 5
 import api.entity.view.order.WorkOrderVisitLogView;
6
+import api.service.call.ICallLogService;
5 7
 import api.service.call.IRecordService;
6 8
 import api.service.system.IConfigService;
7 9
 import api.util.annotation.Anonymous;
@@ -33,7 +35,7 @@ public class WorkOrderVisitLogController extends BaseController {
33 35
     @Autowired
34 36
     private IWorkOrderVisitLogService workordervisitlogService;
35 37
     @Autowired
36
-    private IRecordService recordService;
38
+    private ICallLogService calllogService;
37 39
     @Autowired
38 40
     private IConfigService configService;
39 41
 
@@ -116,8 +118,8 @@ public class WorkOrderVisitLogController extends BaseController {
116 118
         {
117 119
             //根据callid获取录音文件
118 120
             String captchaEnabled = configService.selectCaptchaEnabled("FileUrl");
119
-             Record record=recordService.getEntity(log.getCallid());
120
-            ov.setLyurl(captchaEnabled + record.getFilePath());
121
+            CallLog record=calllogService.getEntity(log.getCallid());
122
+            ov.setLyurl(captchaEnabled + record.getRecordPath());
121 123
         }
122 124
 
123 125
         if(log.getMyd()!=null)