diff --git a/src/main/java/com/ydool/staff/controller/OrganizationController.java b/src/main/java/com/ydool/staff/controller/OrganizationController.java index 1b4895c..ece793d 100644 --- a/src/main/java/com/ydool/staff/controller/OrganizationController.java +++ b/src/main/java/com/ydool/staff/controller/OrganizationController.java @@ -47,6 +47,12 @@ public class OrganizationController extends BaseController { return organizationService.deleteOrganization(id); } + @GetMapping("/personnel") + @ApiOperation(value = "人员") + public AjaxResult personnel(){ + return organizationService.personnel(); + } + @GetMapping(value = "/approval") @ApiOperation(value = "招聘单号") @ApiImplicitParams({@ApiImplicitParam(value = "企业id", name = "id", required = true)}) diff --git a/src/main/java/com/ydool/staff/entity/Organization.java b/src/main/java/com/ydool/staff/entity/Organization.java index 564c3b6..5e9bf3c 100644 --- a/src/main/java/com/ydool/staff/entity/Organization.java +++ b/src/main/java/com/ydool/staff/entity/Organization.java @@ -97,6 +97,10 @@ public class Organization extends BaseEntity{ @TableField(exist = false) private Integer retiree = 0; + @ApiModelProperty(value = "离职人员") + @TableField(exist = false) + private Integer quit = 0; + @ApiModelProperty(value = "剩余招聘") @TableField(exist = false) private Integer surplus = 0; diff --git a/src/main/java/com/ydool/staff/service/IOrganizationService.java b/src/main/java/com/ydool/staff/service/IOrganizationService.java index a6b401a..d76d690 100644 --- a/src/main/java/com/ydool/staff/service/IOrganizationService.java +++ b/src/main/java/com/ydool/staff/service/IOrganizationService.java @@ -24,5 +24,7 @@ public interface IOrganizationService { AjaxResult submitRecruitment(String id, String type); AjaxResult approval(String id); + + AjaxResult personnel(); } diff --git a/src/main/java/com/ydool/staff/service/impl/OrganizationServiceImpl.java b/src/main/java/com/ydool/staff/service/impl/OrganizationServiceImpl.java index a5e625d..25afbac 100644 --- a/src/main/java/com/ydool/staff/service/impl/OrganizationServiceImpl.java +++ b/src/main/java/com/ydool/staff/service/impl/OrganizationServiceImpl.java @@ -109,6 +109,8 @@ public class OrganizationServiceImpl extends BaseService