招聘管理-区域运营助手小程序、技术督导h5 接口定义

1 parent 9ee3c476
Showing 17 changed files with 310 additions and 7 deletions
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
<dependency> <dependency>
<groupId>cn.com.glsx.dj</groupId> <groupId>cn.com.glsx.dj</groupId>
<artifactId>rpc-dj-staff-api</artifactId> <artifactId>rpc-dj-staff-api</artifactId>
<version>5.5.1-SNAPSHOT</version> <version>5.5.3-SNAPSHOT</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>cn.com.glsx.dj</groupId> <groupId>cn.com.glsx.dj</groupId>
......
...@@ -44,7 +44,7 @@ public class RecruitmentDemandController { ...@@ -44,7 +44,7 @@ public class RecruitmentDemandController {
return recruitmentDemandService.pageRecruitmentDemand(request); return recruitmentDemandService.pageRecruitmentDemand(request);
} }
@ApiOperation("招聘管理已完成/已驳回,确认flag标配已确认") @ApiOperation("招聘管理-待我处理-查看,确认flag标配已确认")
@ServiceMethod(method = "dj.api.staff.miniprogram.recruitment.confirm", needInSession = NeedInSessionType.YES) @ServiceMethod(method = "dj.api.staff.miniprogram.recruitment.confirm", needInSession = NeedInSessionType.YES)
public RopResponse<Boolean> updateConfirmFlagToConfirmed(CommonIdRequest request){ public RopResponse<Boolean> updateConfirmFlagToConfirmed(CommonIdRequest request){
return recruitmentDemandService.updateConfirmFlagToConfirmed(request); return recruitmentDemandService.updateConfirmFlagToConfirmed(request);
......
package cn.com.glsx.dj.staff.miniprogram.controller.recruitment;
import cn.com.glsx.dj.staff.miniprogram.request.common.CommonIdRequest;
import cn.com.glsx.dj.staff.miniprogram.request.recruitment.RecruitmentDemandStatusTSUpdateRequest;
import cn.com.glsx.dj.staff.miniprogram.request.recruitment.RecruitmentDemandTSPageRequest;
import cn.com.glsx.dj.staff.miniprogram.request.recruitment.RecruitmentDemandTSStatRequest;
import cn.com.glsx.dj.staff.miniprogram.request.recruitment.RecruitmentResumeProcessTSRequest;
import cn.com.glsx.dj.staff.miniprogram.response.recruitment.RecruitmentDemandDetailResponse;
import cn.com.glsx.dj.staff.miniprogram.response.recruitment.RecruitmentDemandPageTSResponse;
import cn.com.glsx.dj.staff.miniprogram.response.recruitment.RecruitmentDemandTSStatResponse;
import cn.com.glsx.dj.staff.miniprogram.service.recruitment.RecruitmentDemandService;
import cn.com.glsx.framework.core.beans.rpc.RpcPagination;
import cn.com.glsx.framework.rop.response.RopResponse;
import com.rop.annotation.NeedInSessionType;
import com.rop.annotation.ServiceMethod;
import com.rop.annotation.ServiceMethodBean;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
@Slf4j
@ServiceMethodBean(version = "1.0.0", needInSession = NeedInSessionType.NO)
@Api("招聘管理-技术督导")
public class RecruitmentDemandTSController {
@Autowired
private RecruitmentDemandService recruitmentDemandService;
@ApiOperation("招聘需求统计")
@ServiceMethod(method = "dj.api.staff.h5.recruitment.demand.technicalSupervisor.stat", needInSession = NeedInSessionType.NO)
public RopResponse<RecruitmentDemandTSStatResponse> statRecruitmentDemand(RecruitmentDemandTSStatRequest request){
// RecruitmentDemandDTO dto = RecruitmentDemandDTO.builder().regionOperationId(CommonUtil.getLoginUserInfo().getUuid()).build();
// return recruitmentDemandService.statRecruitmentDemand(dto);
return null;
}
@ApiOperation("招聘需求分页查询")
@ServiceMethod(method = "dj.api.staff.h5.recruitment.demand.technicalSupervisor.page", needInSession = NeedInSessionType.NO)
public RopResponse<RpcPagination<RecruitmentDemandPageTSResponse>> pageRecruitmentDemand(RecruitmentDemandTSPageRequest request){
return null;
}
@ApiOperation("招聘需求详情")
@ServiceMethod(method = "dj.api.staff.h5.recruitment.demand.technicalSupervisor.demand.detail", needInSession = NeedInSessionType.NO)
public RopResponse<RecruitmentDemandDetailResponse> getRecruitmentDemandDetail(CommonIdRequest request){
return recruitmentDemandService.getRecruitmentDemandDetail(request);
}
@ApiOperation("招聘需求-确认/驳回")
@ServiceMethod(method = "dj.api.staff.h5.recruitment.demand.technicalSupervisor.status.update", needInSession = NeedInSessionType.NO)
public RopResponse<String> recruitmentDemandStatusUpdate(RecruitmentDemandStatusTSUpdateRequest request) {
// String userName = CommonUtil.getLoginUser().getUserName();
//
// RecruitmentDemandDTO requestDTO = CommonUtil.convertRequest(RecruitmentDemandDTO.class);
// requestDTO.setUpdatedBy(userName);
// RpcResponse<String> response = recruitmentDemandRemote.recruitmentDemandStatusUpdate(requestDTO);
// return CommonUtil.convertRopResponse(response);
return null;
}
@ApiOperation("简历处理")
@ServiceMethod(method = "dj.api.staff.h5.recruitment.resume.technicalSupervisor.process", needInSession = NeedInSessionType.NO)
public RopResponse<Boolean> processResume(RecruitmentResumeProcessTSRequest request){
return null;
}
}
...@@ -17,6 +17,10 @@ public class RecruitmentDemandAddRequest extends AbstractRopRequest { ...@@ -17,6 +17,10 @@ public class RecruitmentDemandAddRequest extends AbstractRopRequest {
@ApiModelProperty(notes="门店名称", required = true) @ApiModelProperty(notes="门店名称", required = true)
private String merchantName; private String merchantName;
@NotNull(message = "是否急招不能为空")
@ApiModelProperty(notes = "是否急招,0-非急招 1-急招")
private Byte urgent;
@NotNull(message = "招聘数量不能为空") @NotNull(message = "招聘数量不能为空")
@ApiModelProperty(notes="招聘数量", required = true) @ApiModelProperty(notes="招聘数量", required = true)
private Integer recruitmentQuantity; private Integer recruitmentQuantity;
......
package cn.com.glsx.dj.staff.miniprogram.request.recruitment;
import com.rop.AbstractRopRequest;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
/**
* 招聘需求状态更新请求参数
*/
@Data
public class RecruitmentDemandStatusTSUpdateRequest extends AbstractRopRequest {
@ApiModelProperty(notes = "招聘需求id")
private Integer id;
@NotBlank(message = "技术督导姓名不能为空")
@ApiModelProperty(notes = "技术督导姓名", required = true)
private String technicalSupervisorName;
@NotBlank(message = "技术督导手机号不能为空")
@ApiModelProperty(notes = "技术督导手机号", required = true)
private String technicalSupervisorPhone;
@NotNull
@ApiModelProperty(notes = "操作,1-确认 3-驳回")
private Byte status;
@ApiModelProperty(notes = "驳回原因")
private String recallReason;
}
package cn.com.glsx.dj.staff.miniprogram.request.recruitment;
import cn.com.glsx.dj.staff.miniprogram.request.common.CommonPageRequest;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotBlank;
@Data
public class RecruitmentDemandTSPageRequest extends CommonPageRequest {
@NotBlank(message = "技术督导姓名不能为空")
@ApiModelProperty(notes = "技术督导姓名", required = true)
private String technicalSupervisorName;
@NotBlank(message = "技术督导手机号不能为空")
@ApiModelProperty(notes = "技术督导手机号", required = true)
private String technicalSupervisorPhone;
@ApiModelProperty(notes = "列表类型(0:全部,1:待审核,2:待处理)")
private Integer dataType;
}
package cn.com.glsx.dj.staff.miniprogram.request.recruitment;
import com.rop.AbstractRopRequest;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotBlank;
@Data
public class RecruitmentDemandTSStatRequest extends AbstractRopRequest {
@NotBlank(message = "技术督导姓名不能为空")
@ApiModelProperty(notes = "技术督导姓名", required = true)
private String technicalSupervisorName;
@NotBlank(message = "技术督导手机号不能为空")
@ApiModelProperty(notes = "技术督导手机号", required = true)
private String technicalSupervisorPhone;
}
...@@ -17,13 +17,12 @@ public class RecruitmentResumeProcessRequest extends AbstractRopRequest { ...@@ -17,13 +17,12 @@ public class RecruitmentResumeProcessRequest extends AbstractRopRequest {
@ApiModelProperty(notes="id", required = true) @ApiModelProperty(notes="id", required = true)
private Integer id; private Integer id;
@NotNull(message = "处理结果不能为空")
@Range(min = 1, max = 2, message = "处理结果取值范围:1-人员不匹配 2-已完成面试") @Range(min = 1, max = 2, message = "处理结果取值范围:1-人员不匹配 2-已完成面试")
@ApiModelProperty(notes="处理结果,1-人员不匹配 2-已完成面试", required = true) @ApiModelProperty(notes="处理结果,1-人员不匹配 2-已完成面试")
private Byte processResult; private Byte processResult;
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(notes="面试时间", required = true) @ApiModelProperty(notes="面试时间")
private Date interviewTime; private Date interviewTime;
@Range(min = 0, max = 1, message = "面试结果取值范围:0-不通过 1-通过") @Range(min = 0, max = 1, message = "面试结果取值范围:0-不通过 1-通过")
......
package cn.com.glsx.dj.staff.miniprogram.request.recruitment;
import com.rop.AbstractRopRequest;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;
import org.springframework.format.annotation.DateTimeFormat;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.Date;
@Data
public class RecruitmentResumeProcessTSRequest extends AbstractRopRequest {
@NotNull(message = "id 不能为空")
@ApiModelProperty(notes="id", required = true)
private Integer id;
@NotBlank(message = "技术督导姓名不能为空")
@ApiModelProperty(notes = "技术督导姓名", required = true)
private String technicalSupervisorName;
@NotBlank(message = "技术督导手机号不能为空")
@ApiModelProperty(notes = "技术督导手机号", required = true)
private String technicalSupervisorPhone;
@Range(min = 1, max = 2, message = "处理结果取值范围:1-人员不匹配 2-已完成面试")
@ApiModelProperty(notes="处理结果,1-人员不匹配 2-已完成面试")
private Byte processResult;
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(notes="面试时间")
private Date interviewTime;
@Range(min = 0, max = 1, message = "面试结果取值范围:0-不通过 1-通过")
@ApiModelProperty(notes="面试结果,0-不通过 1-通过")
private Byte interviewResult;
@Size(max = 255, message = "说明长度不能超过255字符")
@ApiModelProperty(notes="说明")
private String description;
}
...@@ -15,6 +15,9 @@ public class RecruitmentDemandDetailResponse implements Serializable { ...@@ -15,6 +15,9 @@ public class RecruitmentDemandDetailResponse implements Serializable {
@ApiModelProperty(notes="统计") @ApiModelProperty(notes="统计")
private RecruitmentDemandDetailStatResponse stat; private RecruitmentDemandDetailStatResponse stat;
@ApiModelProperty(notes="试岗计划列表")
private List<RecruitmentTrialOnboardingResponse> trialOnboardingPlans;
@ApiModelProperty(notes="入职计划列表") @ApiModelProperty(notes="入职计划列表")
private List<RecruitmentOnboardingPlanResponse> onboardingPlans; private List<RecruitmentOnboardingPlanResponse> onboardingPlans;
......
...@@ -18,6 +18,9 @@ public class RecruitmentDemandDetailStatResponse implements Serializable { ...@@ -18,6 +18,9 @@ public class RecruitmentDemandDetailStatResponse implements Serializable {
@ApiModelProperty(notes="处理简历数") @ApiModelProperty(notes="处理简历数")
private Integer processResumeCount; private Integer processResumeCount;
@ApiModelProperty(notes="试岗人数")
private Integer trialOnboardingCount;
@ApiModelProperty(notes="入职人数") @ApiModelProperty(notes="入职人数")
private Integer entryCount; private Integer entryCount;
} }
...@@ -41,4 +41,10 @@ public class RecruitmentDemandPageResponse implements Serializable { ...@@ -41,4 +41,10 @@ public class RecruitmentDemandPageResponse implements Serializable {
@ApiModelProperty(notes="待处理简历数量") @ApiModelProperty(notes="待处理简历数量")
private Integer waitProcessResumeCount; private Integer waitProcessResumeCount;
@ApiModelProperty(notes="待查看内容类型列表(1.试岗记录2.入职记录)")
private Integer waitConfirmTypes;
@ApiModelProperty(notes = "是否急招,0-非急招 1-急招")
private Byte urgent;
} }
package cn.com.glsx.dj.staff.miniprogram.response.recruitment;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
@Data
public class RecruitmentDemandPageTSResponse implements Serializable {
private static final long serialVersionUID = -6032761913055433926L;
@ApiModelProperty(notes="id")
private Integer id;
@ApiModelProperty(notes="门店id(门店和园区店商户)")
private String merchantId;
@ApiModelProperty(notes="门店名称")
private String merchantName;
@ApiModelProperty(notes="招聘数量")
private Integer recruitmentQuantity;
@ApiModelProperty(notes="业务类型值")
private String businessType;
@ApiModelProperty(notes="业务类型名称")
private String businessTypeName;
@ApiModelProperty(notes="招聘类型值")
private String recruitmentType;
@ApiModelProperty(notes="招聘类型名称")
private String recruitmentTypeName;
@ApiModelProperty(notes="状态, 0-待人事确认 1-招聘中 2-已完成 3-已驳回")
private Byte status;
@ApiModelProperty(notes = "是否急招,0-非急招 1-急招")
private Byte urgent;
}
package cn.com.glsx.dj.staff.miniprogram.response.recruitment;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
@Data
public class RecruitmentDemandTSStatResponse implements Serializable {
private static final long serialVersionUID = -3496267307927860038L;
@ApiModelProperty(notes="待审核个数")
private Integer waitCheckCount;
@ApiModelProperty(notes="待处理个数")
private Integer waitProcessCount;
@ApiModelProperty(notes="全部个数")
private Integer totalCount;
}
...@@ -34,6 +34,12 @@ public class RecruitmentResponse implements Serializable { ...@@ -34,6 +34,12 @@ public class RecruitmentResponse implements Serializable {
@ApiModelProperty(notes="招聘负责人手机号") @ApiModelProperty(notes="招聘负责人手机号")
private String recruiterPhone; private String recruiterPhone;
@ApiModelProperty(notes = "技术督导姓名")
private String technicalSupervisorName;
@ApiModelProperty(notes = "技术督导手机号")
private String technicalSupervisorPhone;
@ApiModelProperty(notes="需求描述") @ApiModelProperty(notes="需求描述")
private String requirementDescription; private String requirementDescription;
...@@ -46,4 +52,7 @@ public class RecruitmentResponse implements Serializable { ...@@ -46,4 +52,7 @@ public class RecruitmentResponse implements Serializable {
@ApiModelProperty(notes="拒绝理由") @ApiModelProperty(notes="拒绝理由")
private String recallReason; private String recallReason;
@ApiModelProperty(notes = "是否急招,0-非急招 1-急招")
private Byte urgent;
} }
...@@ -16,8 +16,11 @@ public class RecruitmentResumeResponse implements Serializable { ...@@ -16,8 +16,11 @@ public class RecruitmentResumeResponse implements Serializable {
@ApiModelProperty(notes="状态, 0-待处理 1-已完成") @ApiModelProperty(notes="状态, 0-待处理 1-已完成")
private Byte status; private Byte status;
@ApiModelProperty(notes="综合结果,0-待处理 1-人员不匹配 2 面试通过 3 面试不通过") @ApiModelProperty(notes = "处理结果,1-人员不匹配 2-人员匹配")
private Byte mixResult; private Byte processResult;
@ApiModelProperty(notes = "面试结果,0-不通过 1-通过")
private Byte interviewResult;
@ApiModelProperty(notes="人员姓名") @ApiModelProperty(notes="人员姓名")
private String personName; private String personName;
......
package cn.com.glsx.dj.staff.miniprogram.response.recruitment;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
@Data
public class RecruitmentTrialOnboardingResponse implements Serializable {
private static final long serialVersionUID = -3544687302240763529L;
@ApiModelProperty(notes = "人员姓名")
private String personName;
@ApiModelProperty(notes = "手机号")
private String phoneNumber;
@ApiModelProperty(notes = "试岗时间")
private Date trialTime;
@ApiModelProperty(notes = "招聘渠道类型值")
private String channelType;
@ApiModelProperty(notes = "招聘渠道类型名")
private String channelName;
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!