|
|
@@ -66,16 +66,24 @@ public class CallLogController extends BaseController {
|
|
66
|
66
|
qw.eq(input.getOpType() != null , CallLog::getOpType, input.getOpType());
|
|
67
|
67
|
qw.eq(input.getMyd() != null , CallLog::getMyd, input.getMyd());
|
|
68
|
68
|
qw.eq(!StringHelper.isEmpty(input.getWorkordercode()), CallLog::getWorkordercode, input.getWorkordercode());
|
|
69
|
|
- if (!StringHelper.isEmpty(input.getPhone()))
|
|
70
|
|
- {
|
|
71
|
|
- qw.and(wq->{
|
|
72
|
|
- wq.like(CallLog::getCallee, input.getPhone())
|
|
73
|
|
- .eq( CallLog::getCallType,2);
|
|
74
|
|
- }) .or() .or(wq->{
|
|
75
|
|
- wq.like(CallLog::getCaller, input.getPhone())
|
|
76
|
|
- .eq( CallLog::getCallType,1);
|
|
|
69
|
+ if (!StringHelper.isEmpty(input.getPhone())) {
|
|
|
70
|
+
|
|
|
71
|
+ qw.and(wq -> {
|
|
|
72
|
+ wq.and(innerWq -> {
|
|
|
73
|
+ innerWq.like(CallLog::getCallee, input.getPhone())
|
|
|
74
|
+ .eq(CallLog::getCallType, 2);
|
|
|
75
|
+ }).or(innerWq -> {
|
|
|
76
|
+ innerWq.like(CallLog::getCaller, input.getPhone())
|
|
|
77
|
+ .eq(CallLog::getCallType, 1);
|
|
|
78
|
+ });
|
|
77
|
79
|
});
|
|
|
80
|
+
|
|
|
81
|
+
|
|
|
82
|
+
|
|
78
|
83
|
}
|
|
|
84
|
+
|
|
|
85
|
+
|
|
|
86
|
+
|
|
79
|
87
|
if (!StringHelper.isEmpty(input.getAgent()))
|
|
80
|
88
|
{
|
|
81
|
89
|
qw.and(wq->{
|