|
@@ -92,26 +92,26 @@ public class HrBaseEmployeeInfoController {
|
|
|
|
|
|
|
|
|
|
@ApiOperation("获取人员明细详情")
|
|
@ApiOperation("获取人员明细详情")
|
|
- @GetMapping("/hr/baseemployeeinfo/detail")
|
|
|
|
|
|
+ @PostMapping("/hr/baseemployeeinfo/detail")
|
|
public CommonResult<HrBaseEmployeeInfo> detail(@Valid HrBaseEmployeeInfoIdParam hrBaseEmployeeInfoIdParam) {
|
|
public CommonResult<HrBaseEmployeeInfo> detail(@Valid HrBaseEmployeeInfoIdParam hrBaseEmployeeInfoIdParam) {
|
|
return CommonResult.data(hrBaseEmployeeInfoService.detail(hrBaseEmployeeInfoIdParam));
|
|
return CommonResult.data(hrBaseEmployeeInfoService.detail(hrBaseEmployeeInfoIdParam));
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
@ApiOperation("部门本科及以上学历")
|
|
@ApiOperation("部门本科及以上学历")
|
|
- @GetMapping("/hr/baseemployeeinfo/listByEoucation")
|
|
|
|
|
|
+ @PostMapping("/hr/baseemployeeinfo/listByEoucation")
|
|
public CommonResult<List<EoucationVo>> listByEoucation(@Valid EmployeeInfoEoucation employeeInfoEoucation) {
|
|
public CommonResult<List<EoucationVo>> listByEoucation(@Valid EmployeeInfoEoucation employeeInfoEoucation) {
|
|
return CommonResult.data(hrBaseEmployeeInfoService.listByEoucation(employeeInfoEoucation));
|
|
return CommonResult.data(hrBaseEmployeeInfoService.listByEoucation(employeeInfoEoucation));
|
|
}
|
|
}
|
|
|
|
|
|
@ApiOperation("数量统计及退休人员")
|
|
@ApiOperation("数量统计及退休人员")
|
|
- @GetMapping("/hr/baseemployeeinfo/countPerson")
|
|
|
|
|
|
+ @PostMapping("/hr/baseemployeeinfo/countPerson")
|
|
public CommonResult<CountPerson> countPerson(@Valid EmployeeInfoEoucation employeeInfoEoucation) {
|
|
public CommonResult<CountPerson> countPerson(@Valid EmployeeInfoEoucation employeeInfoEoucation) {
|
|
return CommonResult.data(hrBaseEmployeeInfoService.countPerson(employeeInfoEoucation));
|
|
return CommonResult.data(hrBaseEmployeeInfoService.countPerson(employeeInfoEoucation));
|
|
}
|
|
}
|
|
|
|
|
|
@ApiOperation("历史总人数等")
|
|
@ApiOperation("历史总人数等")
|
|
- @GetMapping("/hr/baseemployeeinfo/countNum")
|
|
|
|
|
|
+ @PostMapping("/hr/baseemployeeinfo/countNum")
|
|
public CommonResult<CountNum> countNum(@Valid EmployeeInfoEoucation employeeInfoEoucation) {
|
|
public CommonResult<CountNum> countNum(@Valid EmployeeInfoEoucation employeeInfoEoucation) {
|
|
QueryWrapper<HrBaseEmployeeInfo> mapper = new QueryWrapper<>();
|
|
QueryWrapper<HrBaseEmployeeInfo> mapper = new QueryWrapper<>();
|
|
CountNum countNum = new CountNum();
|
|
CountNum countNum = new CountNum();
|
|
@@ -128,18 +128,18 @@ public class HrBaseEmployeeInfoController {
|
|
}
|
|
}
|
|
|
|
|
|
@ApiOperation("部门人数统计")
|
|
@ApiOperation("部门人数统计")
|
|
- @GetMapping("/hr/baseemployeeinfo/listByDepart")
|
|
|
|
|
|
+ @PostMapping("/hr/baseemployeeinfo/listByDepart")
|
|
public CommonResult<List<EoucationVo>> listByDepart(@Valid EmployeeInfoEoucation employeeInfoEoucation) {
|
|
public CommonResult<List<EoucationVo>> listByDepart(@Valid EmployeeInfoEoucation employeeInfoEoucation) {
|
|
return CommonResult.data(hrBaseEmployeeInfoService.listByDepart(employeeInfoEoucation));
|
|
return CommonResult.data(hrBaseEmployeeInfoService.listByDepart(employeeInfoEoucation));
|
|
}
|
|
}
|
|
@ApiOperation("部门人数性别统计")
|
|
@ApiOperation("部门人数性别统计")
|
|
- @GetMapping("/hr/baseemployeeinfo/listByDepartGender")
|
|
|
|
|
|
+ @PostMapping("/hr/baseemployeeinfo/listByDepartGender")
|
|
public CommonResult<List<EoucationVo>> listByDepartGender(@Valid EmployeeInfoEoucation employeeInfoEoucation) {
|
|
public CommonResult<List<EoucationVo>> listByDepartGender(@Valid EmployeeInfoEoucation employeeInfoEoucation) {
|
|
return CommonResult.data(hrBaseEmployeeInfoService.listByDepartGender(employeeInfoEoucation));
|
|
return CommonResult.data(hrBaseEmployeeInfoService.listByDepartGender(employeeInfoEoucation));
|
|
}
|
|
}
|
|
|
|
|
|
@ApiOperation("年龄分布")
|
|
@ApiOperation("年龄分布")
|
|
- @GetMapping("/hr/baseemployeeinfo/ageDis")
|
|
|
|
|
|
+ @PostMapping("/hr/baseemployeeinfo/ageDis")
|
|
public CommonResult<List<PerNum>> ageDis(@Valid EmployeeInfoEoucation employeeInfoEoucation) {
|
|
public CommonResult<List<PerNum>> ageDis(@Valid EmployeeInfoEoucation employeeInfoEoucation) {
|
|
String orgId = employeeInfoEoucation.getOrgId();
|
|
String orgId = employeeInfoEoucation.getOrgId();
|
|
long age22 = hrBaseEmployeeInfoService.count(new QueryWrapper<HrBaseEmployeeInfo>().eq("ORG_ID", orgId).eq("USER_TYPE",0).between("AGE", 18,22));
|
|
long age22 = hrBaseEmployeeInfoService.count(new QueryWrapper<HrBaseEmployeeInfo>().eq("ORG_ID", orgId).eq("USER_TYPE",0).between("AGE", 18,22));
|
|
@@ -159,7 +159,7 @@ public class HrBaseEmployeeInfoController {
|
|
}
|
|
}
|
|
|
|
|
|
@ApiOperation("性别分布")
|
|
@ApiOperation("性别分布")
|
|
- @GetMapping("/hr/baseemployeeinfo/genderDis")
|
|
|
|
|
|
+ @PostMapping("/hr/baseemployeeinfo/genderDis")
|
|
public CommonResult<List<PerNum>> genderDis(@Valid EmployeeInfoEoucation employeeInfoEoucation) {
|
|
public CommonResult<List<PerNum>> genderDis(@Valid EmployeeInfoEoucation employeeInfoEoucation) {
|
|
String orgId = employeeInfoEoucation.getOrgId();
|
|
String orgId = employeeInfoEoucation.getOrgId();
|
|
long age22 = hrBaseEmployeeInfoService.count(new QueryWrapper<HrBaseEmployeeInfo>().eq("ORG_ID", orgId).eq("USER_TYPE",0).eq("GENDER", 0));
|
|
long age22 = hrBaseEmployeeInfoService.count(new QueryWrapper<HrBaseEmployeeInfo>().eq("ORG_ID", orgId).eq("USER_TYPE",0).eq("GENDER", 0));
|
|
@@ -171,7 +171,7 @@ public class HrBaseEmployeeInfoController {
|
|
}
|
|
}
|
|
|
|
|
|
@ApiOperation("婚姻状况")
|
|
@ApiOperation("婚姻状况")
|
|
- @GetMapping("/hr/baseemployeeinfo/marrDis")
|
|
|
|
|
|
+ @PostMapping("/hr/baseemployeeinfo/marrDis")
|
|
public CommonResult<List<PerNum>> marrDis(@Valid EmployeeInfoEoucation employeeInfoEoucation) {
|
|
public CommonResult<List<PerNum>> marrDis(@Valid EmployeeInfoEoucation employeeInfoEoucation) {
|
|
String orgId = employeeInfoEoucation.getOrgId();
|
|
String orgId = employeeInfoEoucation.getOrgId();
|
|
long age22 = hrBaseEmployeeInfoService.count(new QueryWrapper<HrBaseEmployeeInfo>().eq("ORG_ID", orgId).eq("USER_TYPE",0).eq("MARRIAGE", 0));
|
|
long age22 = hrBaseEmployeeInfoService.count(new QueryWrapper<HrBaseEmployeeInfo>().eq("ORG_ID", orgId).eq("USER_TYPE",0).eq("MARRIAGE", 0));
|
|
@@ -182,7 +182,7 @@ public class HrBaseEmployeeInfoController {
|
|
return CommonResult.data(perNums);
|
|
return CommonResult.data(perNums);
|
|
}
|
|
}
|
|
@ApiOperation("民族分布")
|
|
@ApiOperation("民族分布")
|
|
- @GetMapping("/hr/baseemployeeinfo/nationDis")
|
|
|
|
|
|
+ @PostMapping("/hr/baseemployeeinfo/nationDis")
|
|
public CommonResult<List<PerNum>> nationDis(@Valid EmployeeInfoEoucation employeeInfoEoucation) {
|
|
public CommonResult<List<PerNum>> nationDis(@Valid EmployeeInfoEoucation employeeInfoEoucation) {
|
|
String orgId = employeeInfoEoucation.getOrgId();
|
|
String orgId = employeeInfoEoucation.getOrgId();
|
|
long age22 = hrBaseEmployeeInfoService.count(new QueryWrapper<HrBaseEmployeeInfo>().eq("ORG_ID", orgId).eq("USER_TYPE",0).eq("NATION", "汉族"));
|
|
long age22 = hrBaseEmployeeInfoService.count(new QueryWrapper<HrBaseEmployeeInfo>().eq("ORG_ID", orgId).eq("USER_TYPE",0).eq("NATION", "汉族"));
|
|
@@ -194,7 +194,7 @@ public class HrBaseEmployeeInfoController {
|
|
}
|
|
}
|
|
|
|
|
|
@ApiOperation("学历分布")
|
|
@ApiOperation("学历分布")
|
|
- @GetMapping("/hr/baseemployeeinfo/educationDis")
|
|
|
|
|
|
+ @PostMapping("/hr/baseemployeeinfo/educationDis")
|
|
public CommonResult<List<PerNum>> educationDis(@Valid EmployeeInfoEoucation employeeInfoEoucation) {
|
|
public CommonResult<List<PerNum>> educationDis(@Valid EmployeeInfoEoucation employeeInfoEoucation) {
|
|
String orgId = employeeInfoEoucation.getOrgId();
|
|
String orgId = employeeInfoEoucation.getOrgId();
|
|
long age22 = hrBaseEmployeeInfoService.count(new QueryWrapper<HrBaseEmployeeInfo>().eq("ORG_ID", orgId).eq("USER_TYPE",0).eq("EDUCATION", 0));
|
|
long age22 = hrBaseEmployeeInfoService.count(new QueryWrapper<HrBaseEmployeeInfo>().eq("ORG_ID", orgId).eq("USER_TYPE",0).eq("EDUCATION", 0));
|
|
@@ -215,25 +215,25 @@ public class HrBaseEmployeeInfoController {
|
|
}
|
|
}
|
|
|
|
|
|
@ApiOperation("部门学历分布")
|
|
@ApiOperation("部门学历分布")
|
|
- @GetMapping("/hr/baseemployeeinfo/listByDepartGenderEducationDis")
|
|
|
|
|
|
+ @PostMapping("/hr/baseemployeeinfo/listByDepartGenderEducationDis")
|
|
public CommonResult<List<EoucationVo>> listByDepartGenderEducationDis(@Valid EmployeeInfoEoucation employeeInfoEoucation) {
|
|
public CommonResult<List<EoucationVo>> listByDepartGenderEducationDis(@Valid EmployeeInfoEoucation employeeInfoEoucation) {
|
|
return CommonResult.data(hrBaseEmployeeInfoService.listByDepartGenderEducationDis(employeeInfoEoucation));
|
|
return CommonResult.data(hrBaseEmployeeInfoService.listByDepartGenderEducationDis(employeeInfoEoucation));
|
|
}
|
|
}
|
|
|
|
|
|
@ApiOperation("生日分布")
|
|
@ApiOperation("生日分布")
|
|
- @GetMapping("/hr/baseemployeeinfo/birthDis")
|
|
|
|
|
|
+ @PostMapping("/hr/baseemployeeinfo/birthDis")
|
|
public CommonResult<List<PerNum>> birthDis(@Valid EmployeeInfoEoucation employeeInfoEoucation) {
|
|
public CommonResult<List<PerNum>> birthDis(@Valid EmployeeInfoEoucation employeeInfoEoucation) {
|
|
return CommonResult.data(hrBaseEmployeeInfoService.birthDis(employeeInfoEoucation));
|
|
return CommonResult.data(hrBaseEmployeeInfoService.birthDis(employeeInfoEoucation));
|
|
}
|
|
}
|
|
|
|
|
|
@ApiOperation("司龄分布")
|
|
@ApiOperation("司龄分布")
|
|
- @GetMapping("/hr/baseemployeeinfo/siLingDis")
|
|
|
|
|
|
+ @PostMapping("/hr/baseemployeeinfo/siLingDis")
|
|
public CommonResult<List<PerNum>> siLingDis(@Valid EmployeeInfoEoucation employeeInfoEoucation) {
|
|
public CommonResult<List<PerNum>> siLingDis(@Valid EmployeeInfoEoucation employeeInfoEoucation) {
|
|
return CommonResult.data(hrBaseEmployeeInfoService.siLingDis(employeeInfoEoucation));
|
|
return CommonResult.data(hrBaseEmployeeInfoService.siLingDis(employeeInfoEoucation));
|
|
}
|
|
}
|
|
|
|
|
|
@ApiOperation("工龄分布")
|
|
@ApiOperation("工龄分布")
|
|
- @GetMapping("/hr/baseemployeeinfo/gongLingDis")
|
|
|
|
|
|
+ @PostMapping("/hr/baseemployeeinfo/gongLingDis")
|
|
public CommonResult<List<PerNum>> gongLingDis(@Valid EmployeeInfoEoucation employeeInfoEoucation) {
|
|
public CommonResult<List<PerNum>> gongLingDis(@Valid EmployeeInfoEoucation employeeInfoEoucation) {
|
|
return CommonResult.data(hrBaseEmployeeInfoService.gongLingDis(employeeInfoEoucation));
|
|
return CommonResult.data(hrBaseEmployeeInfoService.gongLingDis(employeeInfoEoucation));
|
|
}
|
|
}
|