|
|
@@ -2,9 +2,12 @@ package api.controller;
|
|
2
|
2
|
|
|
3
|
3
|
|
|
4
|
4
|
import api.entity.database.call.Record;
|
|
|
5
|
+import api.entity.database.online.Message;
|
|
5
|
6
|
import api.entity.database.order.WorkOrderBase;
|
|
6
|
7
|
import api.service.call.IRecordService;
|
|
|
8
|
+import api.service.online.IMessageService;
|
|
7
|
9
|
import api.service.order.IWorkOrderBaseService;
|
|
|
10
|
+import api.util.annotation.Anonymous;
|
|
8
|
11
|
import api.util.annotation.Log;
|
|
9
|
12
|
import api.util.enums.BusinessType;
|
|
10
|
13
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
@@ -25,6 +28,7 @@ import org.springframework.web.bind.annotation.RestController;
|
|
25
|
28
|
|
|
26
|
29
|
import java.time.LocalDate;
|
|
27
|
30
|
import java.util.*;
|
|
|
31
|
+import java.util.stream.Collectors;
|
|
28
|
32
|
|
|
29
|
33
|
@RestController
|
|
30
|
34
|
@RequestMapping("/index")
|
|
|
@@ -41,6 +45,8 @@ public class IndexController extends BaseController {
|
|
41
|
45
|
|
|
42
|
46
|
@Autowired
|
|
43
|
47
|
private IWorkOrderBaseService workOrderBaseService;
|
|
|
48
|
+ @Autowired
|
|
|
49
|
+ private IMessageService messageService;
|
|
44
|
50
|
|
|
45
|
51
|
/**
|
|
46
|
52
|
* 获取用户信息
|
|
|
@@ -106,12 +112,17 @@ public class IndexController extends BaseController {
|
|
106
|
112
|
qw.ge ( WorkOrderBase::getCreatetime, calendar.getTime());
|
|
107
|
113
|
qw.eq ( WorkOrderBase::getIsdelete, 0);
|
|
108
|
114
|
long gd=workOrderBaseService.getCount(qw);
|
|
109
|
|
-
|
|
|
115
|
+ LambdaQueryWrapper<Message> qm = new LambdaQueryWrapper<>();
|
|
|
116
|
+ qm.ge ( Message::getCreateTime, calendar.getTime());
|
|
|
117
|
+ var message=messageService.getList(qm);
|
|
|
118
|
+ long xx=message.size();
|
|
|
119
|
+ long hx=message.stream()
|
|
|
120
|
+ .collect(Collectors.groupingBy(Message::getKhUser)).size();
|
|
110
|
121
|
|
|
111
|
122
|
var obj = new Long[]
|
|
112
|
123
|
{
|
|
113
|
124
|
ld,
|
|
114
|
|
- gd
|
|
|
125
|
+ gd, hx,xx
|
|
115
|
126
|
};
|
|
116
|
127
|
return Success("成功",obj);
|
|
117
|
128
|
}
|