|
|
@@ -1,9 +1,5 @@
|
|
1
|
1
|
package api.controller.call;
|
|
2
|
|
-
|
|
3
|
|
-import api.entity.database.system.Config;
|
|
4
|
|
-import api.entity.database.system.Customer;
|
|
5
|
2
|
import api.service.system.IConfigService;
|
|
6
|
|
-import api.util.annotation.Anonymous;
|
|
7
|
3
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
8
|
4
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
9
|
5
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
@@ -17,7 +13,6 @@ import api.util.enums.BusinessType;
|
|
17
|
13
|
import api.util.helper.StringHelper;
|
|
18
|
14
|
import io.swagger.annotations.Api;
|
|
19
|
15
|
import io.swagger.annotations.ApiOperation;
|
|
20
|
|
-import lombok.var;
|
|
21
|
16
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
22
|
17
|
import org.springframework.web.bind.annotation.*;
|
|
23
|
18
|
import java.util.Arrays;
|
|
|
@@ -36,7 +31,7 @@ public class RecordController extends BaseController {
|
|
36
|
31
|
@Log(title = "查询通话记录表列表",businessType = BusinessType.QUERY)
|
|
37
|
32
|
@GetMapping
|
|
38
|
33
|
public AjaxResult getList(Record input, PageInput pageInput) {
|
|
39
|
|
- LambdaQueryWrapper<Record> qw = new LambdaQueryWrapper();
|
|
|
34
|
+ LambdaQueryWrapper<Record> qw = new LambdaQueryWrapper<>();
|
|
40
|
35
|
qw.eq(input.getRecordId() != null && input.getRecordId() > 0, Record::getRecordId, input.getRecordId());
|
|
41
|
36
|
qw.like(!StringHelper.isEmpty(input.getUuid()), Record::getUuid, input.getUuid());
|
|
42
|
37
|
qw.like(!StringHelper.isEmpty(input.getBaseNumber()), Record::getBaseNumber, input.getBaseNumber());
|
|
|
@@ -81,11 +76,9 @@ public class RecordController extends BaseController {
|
|
81
|
76
|
//添加录音路径
|
|
82
|
77
|
if (Records!=null && Records.size()>0)
|
|
83
|
78
|
{
|
|
84
|
|
- for (int i=0;i<Records.size();i++)
|
|
85
|
|
- {
|
|
86
|
|
- if (!StringHelper.isEmpty(Records.get(i ).getFilePath()))
|
|
87
|
|
- {
|
|
88
|
|
- Records.get(i ).setFilePath(captchaEnabled+ Records.get(i ).getFilePath());
|
|
|
79
|
+ for (Record record : Records) {
|
|
|
80
|
+ if (!StringHelper.isEmpty(record.getFilePath())) {
|
|
|
81
|
+ record.setFilePath(captchaEnabled + record.getFilePath());
|
|
89
|
82
|
}
|
|
90
|
83
|
}
|
|
91
|
84
|
}
|