Commit 846a6215 by 张富康

按省份筛选bi看板

1 parent 762aa9fe
...@@ -330,7 +330,11 @@ ...@@ -330,7 +330,11 @@
<artifactId>log4j-core</artifactId> <artifactId>log4j-core</artifactId>
<version>2.14.1</version> <version>2.14.1</version>
</dependency> </dependency>
<dependency>
<groupId>cn.com.glsx.merchants</groupId>
<artifactId>platform-merchants-api</artifactId>
<version>5.2.0-SNAPSHOT</version>
</dependency>
</dependencies> </dependencies>
......
package com.glsk.controller2; package com.glsk.controller2;
import com.glsk.service.BoutiqueService;
import com.glsk.service.BusinessAnalysisService2;
import com.glsk.service.TalentAnalysisService; import com.glsk.service.TalentAnalysisService;
import com.glsk.vo.*; import com.glsk.vo.ReqRet;
import com.glsk.vo.RopResponse;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import org.slf4j.Logger; import org.slf4j.Logger;
...@@ -31,18 +30,15 @@ public class TalentAnalysisController { ...@@ -31,18 +30,15 @@ public class TalentAnalysisController {
private TalentAnalysisService talentAnalysisService; private TalentAnalysisService talentAnalysisService;
@GetMapping("/getBasicData") @GetMapping("/getBasicData")
@ApiOperation("获取基础数据") @ApiOperation("获取基础数据")
public RopResponse<ReqRet.TalentAnalysisBasicDataRet> getBasicData(ReqRet.TalentAnalysisBasicDataReq req) throws Exception { public RopResponse<ReqRet.TalentAnalysisBasicDataRet> getBasicData(ReqRet.TalentAnalysisBasicDataReq req) throws Exception {
logger.info("getBasicData:req={}",req.toString() ); logger.info("getBasicData:req={}", req.toString());
System.out.println(req.getStaffId() + ">>>>>>>>>>>>>>");
System.out.println(req.getStaffName() + ">>>>>>>>>>>>>>");
System.out.println(req.getStaffId()+">>>>>>>>>>>>>>"); System.out.println(req.getStaffPhone() + ">>>>>>>>>>>>>>");
System.out.println(req.getStaffName()+">>>>>>>>>>>>>>"); // 进入时间 --埋点
System.out.println(req.getStaffPhone()+">>>>>>>>>>>>>>"); // 登录页面类型 BusinessType --埋点
//进入时间 --埋点
//登录页面类型 BusinessType --埋点
// 查询时段 QueryType --埋点 // 查询时段 QueryType --埋点
ReqRet.TalentAnalysisBasicDataRet ret = talentAnalysisService.getBasicData(req); ReqRet.TalentAnalysisBasicDataRet ret = talentAnalysisService.getBasicData(req);
return RopResponse.success(ret); return RopResponse.success(ret);
...@@ -50,12 +46,10 @@ public class TalentAnalysisController { ...@@ -50,12 +46,10 @@ public class TalentAnalysisController {
} }
@GetMapping("/getSummaryRetentionAnalysis") @GetMapping("/getSummaryRetentionAnalysis")
@ApiOperation("汇总留存分析") @ApiOperation("汇总留存分析")
public RopResponse<ReqRet.SummaryRetentionAnalysisRet> getSummaryRetentionAnalysis(ReqRet.SummaryRetentionAnalysisReq req) throws Exception { public RopResponse<ReqRet.SummaryRetentionAnalysisRet> getSummaryRetentionAnalysis(ReqRet.SummaryRetentionAnalysisReq req) throws Exception {
logger.info("getSummaryRetentionAnalysis:req={}",req.toString() ); logger.info("getSummaryRetentionAnalysis:req={}", req.toString());
ReqRet.SummaryRetentionAnalysisRet ret = talentAnalysisService.getSummaryRetentionAnalysis(req); ReqRet.SummaryRetentionAnalysisRet ret = talentAnalysisService.getSummaryRetentionAnalysis(req);
return RopResponse.success(ret); return RopResponse.success(ret);
...@@ -65,25 +59,17 @@ public class TalentAnalysisController { ...@@ -65,25 +59,17 @@ public class TalentAnalysisController {
@GetMapping("/getSummaryRetentionAnalysisDetail") @GetMapping("/getSummaryRetentionAnalysisDetail")
@ApiOperation("汇总留存分析详细分析") @ApiOperation("汇总留存分析详细分析")
public RopResponse<ReqRet.SummaryRetentionAnalysisRet> getSummaryRetentionAnalysisDetail(ReqRet.SummaryRetentionAnalysisDetailReq req) throws Exception { public RopResponse<ReqRet.SummaryRetentionAnalysisRet> getSummaryRetentionAnalysisDetail(ReqRet.SummaryRetentionAnalysisDetailReq req) throws Exception {
logger.info("getSummaryRetentionAnalysisDetail:req={}",req.toString() ); logger.info("getSummaryRetentionAnalysisDetail:req={}", req.toString());
ReqRet.SummaryRetentionAnalysisRet ret = talentAnalysisService.getSummaryRetentionAnalysisDetail(req); ReqRet.SummaryRetentionAnalysisRet ret = talentAnalysisService.getSummaryRetentionAnalysisDetail(req);
return RopResponse.success(ret); return RopResponse.success(ret);
} }
@GetMapping("/getCurrentActivePersonnelAnalysis") @GetMapping("/getCurrentActivePersonnelAnalysis")
@ApiOperation("当前在职人数分析") @ApiOperation("当前在职人数分析")
public RopResponse<ReqRet.SummaryRetentionAnalysisRet> getCurrentActivePersonnelAnalysis(ReqRet.SummaryRetentionAnalysisReq req) throws Exception { public RopResponse<ReqRet.SummaryRetentionAnalysisRet> getCurrentActivePersonnelAnalysis(ReqRet.SummaryRetentionAnalysisReq req) throws Exception {
logger.info("getCurrentActivePersonnelAnalysis:req={}",req.toString() ); logger.info("getCurrentActivePersonnelAnalysis:req={}", req.toString());
ReqRet.SummaryRetentionAnalysisRet ret = talentAnalysisService.getCurrentActivePersonnelAnalysis(req); ReqRet.SummaryRetentionAnalysisRet ret = talentAnalysisService.getCurrentActivePersonnelAnalysis(req);
return RopResponse.success(ret); return RopResponse.success(ret);
...@@ -93,21 +79,17 @@ public class TalentAnalysisController { ...@@ -93,21 +79,17 @@ public class TalentAnalysisController {
@GetMapping("/getCurrentActivePersonnelAnalysisDetail") @GetMapping("/getCurrentActivePersonnelAnalysisDetail")
@ApiOperation("当前在职人数分析详细分析") @ApiOperation("当前在职人数分析详细分析")
public RopResponse<ReqRet.SummaryRetentionAnalysisRet> getCurrentActivePersonnelAnalysisDetail(ReqRet.SummaryRetentionAnalysisDetailReq req) throws Exception { public RopResponse<ReqRet.SummaryRetentionAnalysisRet> getCurrentActivePersonnelAnalysisDetail(ReqRet.SummaryRetentionAnalysisDetailReq req) throws Exception {
logger.info("getCurrentActivePersonnelAnalysisDetail:req={}",req.toString() ); logger.info("getCurrentActivePersonnelAnalysisDetail:req={}", req.toString());
ReqRet.SummaryRetentionAnalysisRet ret = talentAnalysisService.getCurrentActivePersonnelAnalysisDetail(req); ReqRet.SummaryRetentionAnalysisRet ret = talentAnalysisService.getCurrentActivePersonnelAnalysisDetail(req);
return RopResponse.success(ret); return RopResponse.success(ret);
} }
@GetMapping("/getResignEmployeelAnalysis") @GetMapping("/getResignEmployeelAnalysis")
@ApiOperation("离职人数分析") @ApiOperation("离职人数分析")
public RopResponse<ReqRet.ResignEmployeelAnalysisRet> getResignEmployeelAnalysis(ReqRet.SummaryRetentionAnalysisReq req) throws Exception { public RopResponse<ReqRet.ResignEmployeelAnalysisRet> getResignEmployeelAnalysis(ReqRet.SummaryRetentionAnalysisReq req) throws Exception {
logger.info("getResignEmployeelAnalysis:req={}",req.toString() ); logger.info("getResignEmployeelAnalysis:req={}", req.toString());
ReqRet.ResignEmployeelAnalysisRet ret = talentAnalysisService.getResignEmployeelAnalysis(req); ReqRet.ResignEmployeelAnalysisRet ret = talentAnalysisService.getResignEmployeelAnalysis(req);
return RopResponse.success(ret); return RopResponse.success(ret);
...@@ -116,18 +98,11 @@ public class TalentAnalysisController { ...@@ -116,18 +98,11 @@ public class TalentAnalysisController {
@GetMapping("/getResignEmployeelAnalysisDetail") @GetMapping("/getResignEmployeelAnalysisDetail")
@ApiOperation("离职人数分析详细分析") @ApiOperation("离职人数分析详细分析")
public RopResponse<ReqRet.ResignEmployeelAnalysisRet> getResignEmployeelAnalysisDetail(ReqRet.SummaryRetentionAnalysisDetailReq req) throws Exception { public RopResponse<ReqRet.ResignEmployeelAnalysisRet> getResignEmployeelAnalysisDetail(ReqRet.SummaryRetentionAnalysisDetailReq req) throws Exception {
logger.info("getResignEmployeelAnalysisDetail:req={}",req.toString() ); logger.info("getResignEmployeelAnalysisDetail:req={}", req.toString());
ReqRet.ResignEmployeelAnalysisRet ret = talentAnalysisService.getResignEmployeelAnalysisDetail(req); ReqRet.ResignEmployeelAnalysisRet ret = talentAnalysisService.getResignEmployeelAnalysisDetail(req);
return RopResponse.success(ret); return RopResponse.success(ret);
} }
} }
...@@ -1329,14 +1329,13 @@ public class ReqRet { ...@@ -1329,14 +1329,13 @@ public class ReqRet {
private String staffPhone; private String staffPhone;
@ApiModelProperty(notes = "省份id", required = true, example = "120000") @ApiModelProperty(notes = "省份id", required = true, example = "120000")
private Integer provinceId; private Integer provinceId;
@ApiModelProperty(notes = "登录角色 1-其他角色 2-服务商老板 3-区域运营 4-广联销售(业务负责人) 5-飞行督导 6-线上运营 7-区域运营大区经理 8-销售大区经理 9-管理层及总部运营", @ApiModelProperty(notes = "登录角色 1-其他角色 2-服务商老板 3-区域运营 4-广联销售(业务负责人) 5-飞行督导 6-线上运营 7-区域运营大区经理 8-销售大区经理",
required = true, example = "3") required = true, example = "3")
private Integer role; private Integer role;
@ApiModelProperty(notes = "区域运营大区经理、销售大区经理可见门店ids", required = true)
private List<Integer> merchantIds;
} }
//汇总留存分析 // 汇总留存分析
@Data
public static class SummaryRetentionAnalysisReq implements Serializable { public static class SummaryRetentionAnalysisReq implements Serializable {
@ApiModelProperty(notes = "业务场景", required = true, example="all") @ApiModelProperty(notes = "业务场景", required = true, example="all")
private BusinessType businessType; private BusinessType businessType;
...@@ -1349,59 +1348,22 @@ public class ReqRet { ...@@ -1349,59 +1348,22 @@ public class ReqRet {
@ApiModelProperty(notes = "分析岗位的岗位名称", required = true, example="retailsalesman") @ApiModelProperty(notes = "分析岗位的岗位名称", required = true, example="retailsalesman")
JobNameEnum jobName; JobNameEnum jobName;
@Override @ApiModelProperty(notes = "员工id", required = true, example = "1111")
public String toString() { private String staffId;
return "SummaryRetentionAnalysisReq{" + @ApiModelProperty(notes = "员工姓名", required = true, example = "张三")
"businessType=" + businessType + private String staffName;
", queryType=" + queryType + @ApiModelProperty(notes = "员工手机", required = true, example = "13112341524")
", startDay='" + startDay + '\'' + private String staffPhone;
", endDay='" + endDay + '\'' + @ApiModelProperty(notes = "省份id", required = true, example = "120000")
", jobName=" + jobName + private Integer provinceId;
'}'; @ApiModelProperty(notes = "登录角色 1-其他角色 2-服务商老板 3-区域运营 4-广联销售(业务负责人) 5-飞行督导 6-线上运营 7-区域运营大区经理 8-销售大区经理",
} required = true, example = "3")
private Integer role;
public BusinessType getBusinessType() {
return businessType;
}
public void setBusinessType(BusinessType businessType) {
this.businessType = businessType;
}
public QueryType getQueryType() {
return queryType;
}
public void setQueryType(QueryType queryType) {
this.queryType = queryType;
}
public String getStartDay() {
return startDay;
}
public void setStartDay(String startDay) {
this.startDay = startDay;
}
public String getEndDay() {
return endDay;
}
public void setEndDay(String endDay) {
this.endDay = endDay;
}
public JobNameEnum getJobName() {
return jobName;
}
public void setJobName(JobNameEnum jobName) {
this.jobName = jobName;
}
} }
//汇总留存分析详情 // 汇总留存分析详情
@Data
public static class SummaryRetentionAnalysisDetailReq implements Serializable { public static class SummaryRetentionAnalysisDetailReq implements Serializable {
@ApiModelProperty(notes = "业务场景", required = true, example="all") @ApiModelProperty(notes = "业务场景", required = true, example="all")
private BusinessType businessType; private BusinessType businessType;
...@@ -1420,113 +1382,27 @@ public class ReqRet { ...@@ -1420,113 +1382,27 @@ public class ReqRet {
@ApiModelProperty(notes = "指标数值", required = true, example="29") @ApiModelProperty(notes = "指标数值", required = true, example="29")
Integer indicatorNum; Integer indicatorNum;
@Override @ApiModelProperty(notes = "员工id", required = true, example = "1111")
public String toString() { private String staffId;
return "SummaryRetentionAnalysisDetailReq{" + @ApiModelProperty(notes = "员工姓名", required = true, example = "张三")
"businessType=" + businessType + private String staffName;
", queryType=" + queryType + @ApiModelProperty(notes = "员工手机", required = true, example = "13112341524")
", startDay='" + startDay + '\'' + private String staffPhone;
", endDay='" + endDay + '\'' + @ApiModelProperty(notes = "省份id", required = true, example = "120000")
", jobName=" + jobName + private Integer provinceId;
", indicatorType=" + indicatorType + @ApiModelProperty(notes = "登录角色 1-其他角色 2-服务商老板 3-区域运营 4-广联销售(业务负责人) 5-飞行督导 6-线上运营 7-区域运营大区经理 8-销售大区经理",
", indicatorName='" + indicatorName + '\'' + required = true, example = "3")
", indicatorNum=" + indicatorNum + private Integer role;
'}';
}
public TalentAnalysisIndicatorType getIndicatorType() {
return indicatorType;
}
public void setIndicatorType(TalentAnalysisIndicatorType indicatorType) {
this.indicatorType = indicatorType;
}
public String getIndicatorName() {
return indicatorName;
}
public void setIndicatorName(String indicatorName) {
this.indicatorName = indicatorName;
}
public Integer getIndicatorNum() {
return indicatorNum;
}
public void setIndicatorNum(Integer indicatorNum) {
this.indicatorNum = indicatorNum;
}
public BusinessType getBusinessType() {
return businessType;
}
public void setBusinessType(BusinessType businessType) {
this.businessType = businessType;
}
public QueryType getQueryType() {
return queryType;
}
public void setQueryType(QueryType queryType) {
this.queryType = queryType;
}
public String getStartDay() {
return startDay;
}
public void setStartDay(String startDay) {
this.startDay = startDay;
}
public String getEndDay() {
return endDay;
}
public void setEndDay(String endDay) {
this.endDay = endDay;
}
public JobNameEnum getJobName() {
return jobName;
}
public void setJobName(JobNameEnum jobName) {
this.jobName = jobName;
}
} }
/**
* 人才分析
*/
// 获取基础数据
@Data
/*人才分析*/
//获取基础数据
public static class TalentAnalysisBasicDataRet { public static class TalentAnalysisBasicDataRet {
@ApiModelProperty(notes = "返回编码,0-正常,1-错误") @ApiModelProperty(notes = "返回编码,0-正常,1-错误")
private int code; private int code;
...@@ -1534,32 +1410,11 @@ public class ReqRet { ...@@ -1534,32 +1410,11 @@ public class ReqRet {
private String message; private String message;
@ApiModelProperty(notes = "数据集合") @ApiModelProperty(notes = "数据集合")
private List<ResponseDTO.TalentAnalysisBasicDataList> list; private List<ResponseDTO.TalentAnalysisBasicDataList> list;
}
public int getCode() {
return code;
}
public void setCode(int code) {
this.code = code;
}
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
public List<ResponseDTO.TalentAnalysisBasicDataList> getList() {
return list;
}
public void setList(List<ResponseDTO.TalentAnalysisBasicDataList> list) { // 汇总留存分析
this.list = list; @Data
}
}
//汇总留存分析
public static class SummaryRetentionAnalysisRet { public static class SummaryRetentionAnalysisRet {
@ApiModelProperty(notes = "返回编码,0-正常,1-错误") @ApiModelProperty(notes = "返回编码,0-正常,1-错误")
private int code; private int code;
...@@ -1568,32 +1423,10 @@ public class ReqRet { ...@@ -1568,32 +1423,10 @@ public class ReqRet {
@ApiModelProperty(notes = "数据集合") @ApiModelProperty(notes = "数据集合")
private List<ResponseDTO.SummaryRetentionAnalysisList> list; private List<ResponseDTO.SummaryRetentionAnalysisList> list;
public int getCode() {
return code;
}
public void setCode(int code) {
this.code = code;
}
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
public List<ResponseDTO.SummaryRetentionAnalysisList> getList() {
return list;
}
public void setList(List<ResponseDTO.SummaryRetentionAnalysisList> list) {
this.list = list;
}
} }
//汇总留存分析 // 汇总留存分析
@Data
public static class ResignEmployeelAnalysisRet { public static class ResignEmployeelAnalysisRet {
@ApiModelProperty(notes = "返回编码,0-正常,1-错误") @ApiModelProperty(notes = "返回编码,0-正常,1-错误")
private int code; private int code;
...@@ -1602,29 +1435,6 @@ public class ReqRet { ...@@ -1602,29 +1435,6 @@ public class ReqRet {
@ApiModelProperty(notes = "数据集合") @ApiModelProperty(notes = "数据集合")
private List<ResponseDTO.ResignEmployeelAnalysisList> list; private List<ResponseDTO.ResignEmployeelAnalysisList> list;
public int getCode() {
return code;
}
public void setCode(int code) {
this.code = code;
}
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
public List<ResponseDTO.ResignEmployeelAnalysisList> getList() {
return list;
}
public void setList(List<ResponseDTO.ResignEmployeelAnalysisList> list) {
this.list = list;
}
} }
......
...@@ -1712,6 +1712,7 @@ public class ResponseDTO { ...@@ -1712,6 +1712,7 @@ public class ResponseDTO {
private Double resignRate; private Double resignRate;
} }
@Data
public static class SummaryRetentionAnalysisList { public static class SummaryRetentionAnalysisList {
@ApiModelProperty(value = "学历分析",required=true ) @ApiModelProperty(value = "学历分析",required=true )
private List<AcademicQualificationAnalysisList> xueliList; private List<AcademicQualificationAnalysisList> xueliList;
...@@ -1721,38 +1722,6 @@ public class ResponseDTO { ...@@ -1721,38 +1722,6 @@ public class ResponseDTO {
private List<GenderAnalysisList> genderList; private List<GenderAnalysisList> genderList;
@ApiModelProperty(value = "年龄分析",required=true ) @ApiModelProperty(value = "年龄分析",required=true )
private List<AgeAnalysisList> ageList; private List<AgeAnalysisList> ageList;
public List<AcademicQualificationAnalysisList> getXueliList() {
return xueliList;
}
public void setXueliList(List<AcademicQualificationAnalysisList> xueliList) {
this.xueliList = xueliList;
}
public List<CompanyTenureAnalysisList> getSilingList() {
return silingList;
}
public void setSilingList(List<CompanyTenureAnalysisList> silingList) {
this.silingList = silingList;
}
public List<GenderAnalysisList> getGenderList() {
return genderList;
}
public void setGenderList(List<GenderAnalysisList> genderList) {
this.genderList = genderList;
}
public List<AgeAnalysisList> getAgeList() {
return ageList;
}
public void setAgeList(List<AgeAnalysisList> ageList) {
this.ageList = ageList;
}
} }
public static class ResignEmployeelAnalysisList { public static class ResignEmployeelAnalysisList {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!