TalentAnalysisController.java
4.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
package com.glsk.controller2;
import com.glsk.service.BoutiqueService;
import com.glsk.service.BusinessAnalysisService2;
import com.glsk.service.TalentAnalysisService;
import com.glsk.vo.*;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* @author Jinglf
* @create 2025-10-16 10:41
*/
@CrossOrigin(origins = "*")
@RestController
@RequestMapping("/talentAnalysis")
@Api(value = "人才分析", tags = {"人才分析"})
public class TalentAnalysisController {
protected final Logger logger = LoggerFactory.getLogger(getClass());
@Autowired
private TalentAnalysisService talentAnalysisService;
@GetMapping("/getBasicData")
@ApiOperation("获取基础数据")
public RopResponse<ReqRet.TalentAnalysisBasicDataRet> getBasicData(ReqRet.TalentAnalysisBasicDataReq req) throws Exception {
logger.info("getBasicData:req={}",req.toString() );
System.out.println(req.getStaffId()+">>>>>>>>>>>>>>");
System.out.println(req.getStaffName()+">>>>>>>>>>>>>>");
System.out.println(req.getStaffPhone()+">>>>>>>>>>>>>>");
//进入时间 --埋点
//登录页面类型 BusinessType --埋点
// 查询时段 QueryType --埋点
ReqRet.TalentAnalysisBasicDataRet ret = talentAnalysisService.getBasicData(req);
return RopResponse.success(ret);
}
@GetMapping("/getSummaryRetentionAnalysis")
@ApiOperation("汇总留存分析")
public RopResponse<ReqRet.SummaryRetentionAnalysisRet> getSummaryRetentionAnalysis(ReqRet.SummaryRetentionAnalysisReq req) throws Exception {
logger.info("getSummaryRetentionAnalysis:req={}",req.toString() );
ReqRet.SummaryRetentionAnalysisRet ret = talentAnalysisService.getSummaryRetentionAnalysis(req);
return RopResponse.success(ret);
}
@GetMapping("/getSummaryRetentionAnalysisDetail")
@ApiOperation("汇总留存分析详细分析")
public RopResponse<ReqRet.SummaryRetentionAnalysisRet> getSummaryRetentionAnalysisDetail(ReqRet.SummaryRetentionAnalysisDetailReq req) throws Exception {
logger.info("getSummaryRetentionAnalysisDetail:req={}",req.toString() );
ReqRet.SummaryRetentionAnalysisRet ret = talentAnalysisService.getSummaryRetentionAnalysisDetail(req);
return RopResponse.success(ret);
}
@GetMapping("/getCurrentActivePersonnelAnalysis")
@ApiOperation("当前在职人数分析")
public RopResponse<ReqRet.SummaryRetentionAnalysisRet> getCurrentActivePersonnelAnalysis(ReqRet.SummaryRetentionAnalysisReq req) throws Exception {
logger.info("getCurrentActivePersonnelAnalysis:req={}",req.toString() );
ReqRet.SummaryRetentionAnalysisRet ret = talentAnalysisService.getCurrentActivePersonnelAnalysis(req);
return RopResponse.success(ret);
}
@GetMapping("/getCurrentActivePersonnelAnalysisDetail")
@ApiOperation("当前在职人数分析详细分析")
public RopResponse<ReqRet.SummaryRetentionAnalysisRet> getCurrentActivePersonnelAnalysisDetail(ReqRet.SummaryRetentionAnalysisDetailReq req) throws Exception {
logger.info("getCurrentActivePersonnelAnalysisDetail:req={}",req.toString() );
ReqRet.SummaryRetentionAnalysisRet ret = talentAnalysisService.getCurrentActivePersonnelAnalysisDetail(req);
return RopResponse.success(ret);
}
@GetMapping("/getResignEmployeelAnalysis")
@ApiOperation("离职人数分析")
public RopResponse<ReqRet.ResignEmployeelAnalysisRet> getResignEmployeelAnalysis(ReqRet.SummaryRetentionAnalysisReq req) throws Exception {
logger.info("getResignEmployeelAnalysis:req={}",req.toString() );
ReqRet.ResignEmployeelAnalysisRet ret = talentAnalysisService.getResignEmployeelAnalysis(req);
return RopResponse.success(ret);
}
@GetMapping("/getResignEmployeelAnalysisDetail")
@ApiOperation("离职人数分析详细分析")
public RopResponse<ReqRet.ResignEmployeelAnalysisRet> getResignEmployeelAnalysisDetail(ReqRet.SummaryRetentionAnalysisDetailReq req) throws Exception {
logger.info("getResignEmployeelAnalysisDetail:req={}",req.toString() );
ReqRet.ResignEmployeelAnalysisRet ret = talentAnalysisService.getResignEmployeelAnalysisDetail(req);
return RopResponse.success(ret);
}
}