Commit b76fb273 by 叶立庆

Merge branch 'v5.5.3' into 'master'

上线合并

See merge request !2
2 parents 9ee3c476 49484b3a
Showing 22 changed files with 458 additions and 45 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>
......
package cn.com.glsx.dj.staff.miniprogram.controller.recruitment; package cn.com.glsx.dj.staff.miniprogram.controller.recruitment;
import cn.com.glsx.dj.staff.dto.recruitment.RecruitmentDemandDTO; import cn.com.glsx.dj.staff.dto.recruitment.RecruitmentDemandDTO;
import cn.com.glsx.dj.staff.miniprogram.convert.RecruitmentDemandDTOConvert;
import cn.com.glsx.dj.staff.miniprogram.request.common.CommonIdRequest; import cn.com.glsx.dj.staff.miniprogram.request.common.CommonIdRequest;
import cn.com.glsx.dj.staff.miniprogram.request.recruitment.RecruitmentDemandAddRequest; import cn.com.glsx.dj.staff.miniprogram.request.recruitment.RecruitmentDemandAddRequest;
import cn.com.glsx.dj.staff.miniprogram.request.recruitment.RecruitmentDemandPageRequest; import cn.com.glsx.dj.staff.miniprogram.request.recruitment.RecruitmentDemandPageRequest;
...@@ -41,10 +42,12 @@ public class RecruitmentDemandController { ...@@ -41,10 +42,12 @@ public class RecruitmentDemandController {
@ApiOperation("招聘需求分页查询") @ApiOperation("招聘需求分页查询")
@ServiceMethod(method = "dj.api.staff.miniprogram.recruitment.page", needInSession = NeedInSessionType.YES) @ServiceMethod(method = "dj.api.staff.miniprogram.recruitment.page", needInSession = NeedInSessionType.YES)
public RopResponse<RpcPagination<RecruitmentDemandPageResponse>> pageRecruitmentDemand(RecruitmentDemandPageRequest request){ public RopResponse<RpcPagination<RecruitmentDemandPageResponse>> pageRecruitmentDemand(RecruitmentDemandPageRequest request){
return recruitmentDemandService.pageRecruitmentDemand(request); RpcPagination<RecruitmentDemandDTO> pagination = CommonUtil.getRpcPagination(RecruitmentDemandDTO.class);
pagination.getCondition().setRegionOperationId(CommonUtil.getLoginUserInfo().getUuid());
return CommonUtil.convertPaginationRopResponse(recruitmentDemandService.pageRecruitmentDemand(pagination), RecruitmentDemandDTOConvert.INSTANCE::toRecruitmentDemandPageResponse);
} }
@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.dto.recruitment.RecruitmentDemandDTO;
import cn.com.glsx.dj.staff.dto.recruitment.RecruitmentDemandDetailDTO;
import cn.com.glsx.dj.staff.dto.recruitment.RecruitmentResumeDTO;
import cn.com.glsx.dj.staff.enums.RecruitmentDemandStatusEnum;
import cn.com.glsx.dj.staff.miniprogram.convert.RecruitmentDemandDTOConvert;
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.dj.staff.miniprogram.service.recruitment.RecruitmentResumeService;
import cn.com.glsx.dj.staff.miniprogram.util.CommonUtil;
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;
@Autowired
private RecruitmentResumeService recruitmentResumeService;
@ApiOperation("招聘需求统计")
@ServiceMethod(method = "dj.api.staff.h5.recruitment.demand.technicalSupervisor.stat", needInSession = NeedInSessionType.NO)
public RopResponse<RecruitmentDemandTSStatResponse> statTSRecruitmentDemand(
RecruitmentDemandTSStatRequest request) {
RecruitmentDemandDTO dto = RecruitmentDemandDTO.builder()
.technicalSupervisorPhone(request.getTechnicalSupervisorPhone())
.build();
return recruitmentDemandService.statTSRecruitmentDemand(dto);
}
@ApiOperation("招聘需求分页查询")
@ServiceMethod(method = "dj.api.staff.h5.recruitment.demand.technicalSupervisor.page", needInSession = NeedInSessionType.NO)
public RopResponse<RpcPagination<RecruitmentDemandPageTSResponse>> pageTSRecruitmentDemand(
RecruitmentDemandTSPageRequest request) {
RpcPagination<RecruitmentDemandDTO> pagination = CommonUtil.getRpcPagination(RecruitmentDemandDTO.class);
pagination.getCondition().setTechnicalSupervisorPhone(request.getTechnicalSupervisorPhone());
if (request.getDataType() == 2) {
pagination.getCondition().setOnlyTSWaiting(true);
}
if (request.getDataType() == 1) {
pagination.getCondition().setStatus(RecruitmentDemandStatusEnum.WAIT_SUPERVISOR_CONFIRM.getValue());
}
return CommonUtil.convertPaginationRopResponse(recruitmentDemandService.pageRecruitmentDemand(pagination), RecruitmentDemandDTOConvert.INSTANCE::toRecruitmentDemandPageTSResponse);
}
@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.demand.checkDetail", needInSession = NeedInSessionType.NO)
public RopResponse<RecruitmentDemandDetailDTO> getRecruitmentDemandDetailForCheck(CommonIdRequest request) {
return CommonUtil.convertRopResponse(recruitmentDemandService.getRecruitmentDemandDetailForCheck(request));
}
@ApiOperation("招聘需求-确认/驳回")
@ServiceMethod(method = "dj.api.staff.h5.recruitment.demand.technicalSupervisor.status.update", needInSession = NeedInSessionType.NO)
public RopResponse<String> recruitmentDemandStatusUpdate(RecruitmentDemandStatusTSUpdateRequest request) {
if (request.getStatus() == null || (request.getStatus() != 1 && request.getStatus() != 3)) {
return RopResponse.error("status 只能为 1 或 3");
}
RecruitmentDemandDTO requestDTO = CommonUtil.convertRequest(RecruitmentDemandDTO.class);
requestDTO.setUpdatedBy(request.getTechnicalSupervisorName());
return recruitmentDemandService.recruitmentDemandStatusUpdate(requestDTO);
}
@ApiOperation("简历处理")
@ServiceMethod(method = "dj.api.staff.h5.recruitment.resume.technicalSupervisor.process", needInSession = NeedInSessionType.NO)
public RopResponse<Boolean> processResume(RecruitmentResumeProcessTSRequest request) {
RecruitmentResumeDTO dto = CommonUtil.convertRequest(RecruitmentResumeDTO.class);
dto.setUpdatedBy(request.getTechnicalSupervisorPhone());
dto.setProcessorName(request.getTechnicalSupervisorName());
return recruitmentResumeService.processResume(dto);
}
}
package cn.com.glsx.dj.staff.miniprogram.controller.recruitment; package cn.com.glsx.dj.staff.miniprogram.controller.recruitment;
import cn.com.glsx.dj.staff.dto.recruitment.RecruitmentResumeDTO;
import cn.com.glsx.dj.staff.miniprogram.request.recruitment.RecruitmentResumeProcessRequest; import cn.com.glsx.dj.staff.miniprogram.request.recruitment.RecruitmentResumeProcessRequest;
import cn.com.glsx.dj.staff.miniprogram.service.recruitment.RecruitmentResumeService; import cn.com.glsx.dj.staff.miniprogram.service.recruitment.RecruitmentResumeService;
import cn.com.glsx.dj.staff.miniprogram.util.CommonUtil;
import cn.com.glsx.framework.rop.response.RopResponse; import cn.com.glsx.framework.rop.response.RopResponse;
import com.rop.annotation.NeedInSessionType; import com.rop.annotation.NeedInSessionType;
import com.rop.annotation.ServiceMethod; import com.rop.annotation.ServiceMethod;
...@@ -21,6 +23,9 @@ public class RecruitmentResumeController { ...@@ -21,6 +23,9 @@ public class RecruitmentResumeController {
@ApiOperation("简历处理") @ApiOperation("简历处理")
@ServiceMethod(method = "dj.api.staff.miniprogram.recruitment.resume.process", needInSession = NeedInSessionType.YES) @ServiceMethod(method = "dj.api.staff.miniprogram.recruitment.resume.process", needInSession = NeedInSessionType.YES)
public RopResponse<Boolean> processResume(RecruitmentResumeProcessRequest request){ public RopResponse<Boolean> processResume(RecruitmentResumeProcessRequest request){
return recruitmentResumeService.processResume(request); RecruitmentResumeDTO dto = CommonUtil.convertRequest(RecruitmentResumeDTO.class);
dto.setUpdatedBy(CommonUtil.getAccountName());
dto.setProcessorName(CommonUtil.getUserName());
return recruitmentResumeService.processResume(dto);
} }
} }
package cn.com.glsx.dj.staff.miniprogram.convert; package cn.com.glsx.dj.staff.miniprogram.convert;
import cn.com.glsx.dj.staff.dto.recruitment.RecruitmentDemandDTO; import cn.com.glsx.dj.staff.dto.recruitment.RecruitmentDemandDTO;
import cn.com.glsx.dj.staff.miniprogram.response.recruitment.RecruitmentDemandDetailResponse; import cn.com.glsx.dj.staff.miniprogram.response.recruitment.*;
import cn.com.glsx.dj.staff.miniprogram.response.recruitment.RecruitmentDemandPageResponse;
import cn.com.glsx.dj.staff.miniprogram.response.recruitment.RecruitmentDemandStatResponse;
import cn.com.glsx.dj.staff.miniprogram.response.recruitment.RecruitmentResponse;
import org.mapstruct.Mapper; import org.mapstruct.Mapper;
import org.mapstruct.Mapping; import org.mapstruct.Mapping;
import org.mapstruct.Mappings; import org.mapstruct.Mappings;
import org.mapstruct.factory.Mappers; import org.mapstruct.factory.Mappers;
@Mapper(uses = {RecruitmentResumeDTOConvert.class, RecruitmentOnboardingPlanDTOConvert.class}) @Mapper(uses = { RecruitmentResumeDTOConvert.class, RecruitmentOnboardingPlanDTOConvert.class, RecruitmentTrialOnboardingDTOConvert.class})
public interface RecruitmentDemandDTOConvert { public interface RecruitmentDemandDTOConvert {
RecruitmentDemandDTOConvert INSTANCE = Mappers.getMapper(RecruitmentDemandDTOConvert.class); RecruitmentDemandDTOConvert INSTANCE = Mappers.getMapper(RecruitmentDemandDTOConvert.class);
RecruitmentDemandStatResponse toRecruitmentDemandStatResponse(RecruitmentDemandDTO sourceEntity); RecruitmentDemandStatResponse toRecruitmentDemandStatResponse(RecruitmentDemandDTO sourceEntity);
@Mappings({
@Mapping(source = "waitTSCheckCount", target = "waitCheckCount"),
@Mapping(source = "waitTSProcessCount", target = "waitProcessCount")
})
RecruitmentDemandTSStatResponse toRecruitmentDemandTSStatResponse(RecruitmentDemandDTO sourceEntity);
RecruitmentDemandPageResponse toRecruitmentDemandPageResponse(RecruitmentDemandDTO dto); RecruitmentDemandPageResponse toRecruitmentDemandPageResponse(RecruitmentDemandDTO dto);
RecruitmentDemandPageTSResponse toRecruitmentDemandPageTSResponse(RecruitmentDemandDTO dto);
@Mappings({ @Mappings({
@Mapping(source = "dto", target = "recruitment"), @Mapping(source = "dto", target = "recruitment"),
@Mapping(source = "resumes", target = "recruitmentPlans"), @Mapping(source = "resumes", target = "recruitmentPlans"),
@Mapping(source = "onboardingPlans", target = "onboardingPlans"), @Mapping(source = "onboardingPlans", target = "onboardingPlans"),
@Mapping(source = "recruitmentQuantity", target = "stat.recruitmentQuantity"), @Mapping(source = "trialOnboardingPlans", target = "trialOnboardingPlans"),
@Mapping(source = "resumeCount", target = "stat.resumeCount"), @Mapping(source = "recruitmentQuantity", target = "stat.recruitmentQuantity"),
@Mapping(source = "processResumeCount", target = "stat.processResumeCount"), @Mapping(source = "resumeCount", target = "stat.resumeCount"),
@Mapping(source = "entryCount", target = "stat.entryCount") @Mapping(source = "trialOnboardingCount", target = "stat.trialOnboardingCount"),
@Mapping(source = "processResumeCount", target = "stat.processResumeCount"),
@Mapping(source = "entryCount", target = "stat.entryCount")
}) })
RecruitmentDemandDetailResponse toRecruitmentDemandDetailResponse(RecruitmentDemandDTO dto); RecruitmentDemandDetailResponse toRecruitmentDemandDetailResponse(RecruitmentDemandDTO dto);
......
package cn.com.glsx.dj.staff.miniprogram.convert;
import cn.com.glsx.dj.staff.dto.recruitment.RecruitmentTrialOnboardingDTO;
import cn.com.glsx.dj.staff.miniprogram.response.recruitment.RecruitmentTrialOnboardingResponse;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
@Mapper
public interface RecruitmentTrialOnboardingDTOConvert {
RecruitmentTrialOnboardingDTOConvert INSTANCE = Mappers.getMapper(RecruitmentTrialOnboardingDTOConvert.class);
RecruitmentTrialOnboardingResponse toRecruitmentTrialOnboardingResponse(RecruitmentTrialOnboardingDTO sourceEntity);
}
...@@ -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,20 +17,26 @@ public class RecruitmentResumeProcessRequest extends AbstractRopRequest { ...@@ -17,20 +17,26 @@ 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-面试不通过")
@ApiModelProperty(notes="处理结果,1-人员不匹配 2-已完成面试", required = true)
private Byte processResult; private Byte processResult;
@Size(max = 255, message = "说明长度不能超过255字符")
@ApiModelProperty(notes="说明")
private String description;
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(notes = "预计面试时间")
private Date expectedInterviewTime;
@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-通过")
@ApiModelProperty(notes="面试结果,0-不通过 1-通过") @ApiModelProperty(notes="面试结果,0-不通过 1-通过")
private Byte interviewResult; private Byte interviewResult;
@Size(max = 255, message = "说明长度不能超过255字符") @ApiModelProperty(notes = "面试反馈说明")
@ApiModelProperty(notes="说明") private String interviewExplanation;
private String description;
} }
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;
@Size(max = 255, message = "说明长度不能超过255字符")
@ApiModelProperty(notes="处理结果说明")
private String description;
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(notes="面试时间")
private Date interviewTime;
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(notes = "预计面试时间")
private Date expectedInterviewTime;
@Range(min = 0, max = 1, message = "面试结果取值范围:0-不通过 1-通过")
@ApiModelProperty(notes="面试结果,0-不通过 1-通过")
private Byte interviewResult;
@ApiModelProperty(notes = "面试反馈说明")
private String interviewExplanation;
}
...@@ -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,13 @@ public class RecruitmentDemandPageResponse implements Serializable { ...@@ -41,4 +41,13 @@ public class RecruitmentDemandPageResponse implements Serializable {
@ApiModelProperty(notes="待处理简历数量") @ApiModelProperty(notes="待处理简历数量")
private Integer waitProcessResumeCount; private Integer waitProcessResumeCount;
@ApiModelProperty(notes = "待确认入职计划数量")
private Integer onboardingWaitConfirmCount;
@ApiModelProperty(notes = "待确认试岗计划数量")
private Integer trialWaitConfirmCount;
@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-已驳回 4-待督导确认")
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;
} }
...@@ -13,11 +13,11 @@ public class RecruitmentResumeResponse implements Serializable { ...@@ -13,11 +13,11 @@ public class RecruitmentResumeResponse implements Serializable {
@ApiModelProperty(notes="id") @ApiModelProperty(notes="id")
private Integer id; private Integer id;
@ApiModelProperty(notes="状态, 0-待处理 1-已完成") @ApiModelProperty(notes = "处理结果,1-人员不匹配 2-人员匹配")
private Byte status; private Byte processResult;
@ApiModelProperty(notes="综合结果,0-待处理 1-人员不匹配 2 面试通过 3 面试不通过") @ApiModelProperty(notes = "面试结果,0-不通过 1-通过")
private Byte mixResult; 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;
}
...@@ -8,15 +8,16 @@ import cn.com.glsx.dj.smartcarlife.enums.DirectorTypeEnum; ...@@ -8,15 +8,16 @@ import cn.com.glsx.dj.smartcarlife.enums.DirectorTypeEnum;
import cn.com.glsx.dj.smartcarlife.remote.SceneMerchantRefRemote; import cn.com.glsx.dj.smartcarlife.remote.SceneMerchantRefRemote;
import cn.com.glsx.dj.smartcarlife.remote.ShopMerchantDirectorConfigRemote; import cn.com.glsx.dj.smartcarlife.remote.ShopMerchantDirectorConfigRemote;
import cn.com.glsx.dj.staff.dto.recruitment.RecruitmentDemandDTO; import cn.com.glsx.dj.staff.dto.recruitment.RecruitmentDemandDTO;
import cn.com.glsx.dj.staff.dto.recruitment.RecruitmentDemandDetailDTO;
import cn.com.glsx.dj.staff.enums.recruitment.RecruitmentDemandBusinessTypeEnum;
import cn.com.glsx.dj.staff.miniprogram.convert.RecruitmentDemandDTOConvert; import cn.com.glsx.dj.staff.miniprogram.convert.RecruitmentDemandDTOConvert;
import cn.com.glsx.dj.staff.miniprogram.enums.RopErrorEnum; import cn.com.glsx.dj.staff.miniprogram.enums.RopErrorEnum;
import cn.com.glsx.dj.staff.miniprogram.request.common.CommonIdRequest; import cn.com.glsx.dj.staff.miniprogram.request.common.CommonIdRequest;
import cn.com.glsx.dj.staff.miniprogram.request.recruitment.RecruitmentDemandPageRequest;
import cn.com.glsx.dj.staff.miniprogram.request.recruitment.RecruitmentDemandStoreListRequest; import cn.com.glsx.dj.staff.miniprogram.request.recruitment.RecruitmentDemandStoreListRequest;
import cn.com.glsx.dj.staff.miniprogram.response.recruitment.RecruitmentDemandDetailResponse; import cn.com.glsx.dj.staff.miniprogram.response.recruitment.RecruitmentDemandDetailResponse;
import cn.com.glsx.dj.staff.miniprogram.response.recruitment.RecruitmentDemandPageResponse;
import cn.com.glsx.dj.staff.miniprogram.response.recruitment.RecruitmentDemandStatResponse; import cn.com.glsx.dj.staff.miniprogram.response.recruitment.RecruitmentDemandStatResponse;
import cn.com.glsx.dj.staff.miniprogram.response.recruitment.RecruitmentDemandStoreListResponse; import cn.com.glsx.dj.staff.miniprogram.response.recruitment.RecruitmentDemandStoreListResponse;
import cn.com.glsx.dj.staff.miniprogram.response.recruitment.RecruitmentDemandTSStatResponse;
import cn.com.glsx.dj.staff.miniprogram.util.CommonUtil; import cn.com.glsx.dj.staff.miniprogram.util.CommonUtil;
import cn.com.glsx.dj.staff.remote.RecruitmentDemandRemote; import cn.com.glsx.dj.staff.remote.RecruitmentDemandRemote;
import cn.com.glsx.framework.core.beans.rpc.RpcPagination; import cn.com.glsx.framework.core.beans.rpc.RpcPagination;
...@@ -50,7 +51,7 @@ public class RecruitmentDemandService { ...@@ -50,7 +51,7 @@ public class RecruitmentDemandService {
* 门店列表 * 门店列表
* *
* @param request * @param request
* @return cn.com.glsx.framework.rop.response.RopResponse<java.util.List<cn.com.glsx.dj.staff.miniprogram.response.recruitment.RecruitmentDemandStoreListResponse>> * @return cn.com.glsx.framework.rop.response.RopResponse<java.util.List < cn.com.glsx.dj.staff.miniprogram.response.recruitment.RecruitmentDemandStoreListResponse>>
* @author caiym * @author caiym
* @date 2025年10月20日 15:19:14 * @date 2025年10月20日 15:19:14
*/ */
...@@ -108,17 +109,28 @@ public class RecruitmentDemandService { ...@@ -108,17 +109,28 @@ public class RecruitmentDemandService {
/** /**
* 技术督导招聘需求统计
*
* @param dto
* @return
*/
public RopResponse<RecruitmentDemandTSStatResponse> statTSRecruitmentDemand(RecruitmentDemandDTO dto) {
log.info("statTSRecruitmentDemand dto:{}", dto);
return CommonUtil.convertRopResponse(recruitmentDemandRemote.statRecruitmentDemand(dto),
RecruitmentDemandDTOConvert.INSTANCE::toRecruitmentDemandTSStatResponse);
}
/**
* 分页查询招聘需求 * 分页查询招聘需求
* *
* @param request * @param pagination
* @return cn.com.glsx.framework.rop.response.RopResponse<cn.com.glsx.framework.core.beans.rpc.RpcPagination<cn.com.glsx.dj.staff.miniprogram.response.recruitment.RecruitmentDemandPageResponse>> * @return cn.com.glsx.framework.rop.response.RopResponse<cn.com.glsx.framework.core.beans.rpc.RpcPagination < cn.com.glsx.dj.staff.miniprogram.response.recruitment.RecruitmentDemandPageResponse>>
* @author caiym * @author caiym
* @date 2025年10月20日 15:19:37 * @date 2025年10月20日 15:19:37
*/ */
public RopResponse<RpcPagination<RecruitmentDemandPageResponse>> pageRecruitmentDemand(RecruitmentDemandPageRequest request) { public RpcResponse<RpcPagination<RecruitmentDemandDTO>> pageRecruitmentDemand(RpcPagination<RecruitmentDemandDTO> pagination) {
RpcPagination<RecruitmentDemandDTO> pagination = CommonUtil.getRpcPagination(RecruitmentDemandDTO.class); return recruitmentDemandRemote.pageRecruitmentDemand(pagination);
pagination.getCondition().setRegionOperationId(CommonUtil.getLoginUserInfo().getUuid());
return CommonUtil.convertPaginationRopResponse(recruitmentDemandRemote.pageRecruitmentDemand(pagination), RecruitmentDemandDTOConvert.INSTANCE::toRecruitmentDemandPageResponse);
} }
...@@ -157,16 +169,44 @@ public class RecruitmentDemandService { ...@@ -157,16 +169,44 @@ public class RecruitmentDemandService {
* @author caiym * @author caiym
* @date 2025年10月22日 16:55:16 * @date 2025年10月22日 16:55:16
*/ */
public RopResponse<Boolean> addRecruitmentDemand(RecruitmentDemandDTO dto) { public RopResponse<Boolean> addRecruitmentDemand(RecruitmentDemandDTO dto) {
dto.setUpdatedBy(CommonUtil.getUserName()); dto.setUpdatedBy(CommonUtil.getUserName());
LoginUserInfoResponse loginUserInfo = CommonUtil.getLoginUserInfo(); LoginUserInfoResponse loginUserInfo = CommonUtil.getLoginUserInfo();
dto.setRegionOperationId(loginUserInfo.getUuid()); if (!RecruitmentDemandBusinessTypeEnum.USED_CAR_INSPECTOR.getValue().equals(dto.getBusinessType())) {
dto.setRegionOperationName(loginUserInfo.getName()); dto.setRegionOperationId(loginUserInfo.getUuid());
dto.setRegionOperationName(loginUserInfo.getName());
}
RpcResponse<RecruitmentDemandDTO> response = recruitmentDemandRemote.recruitmentDemandAdd(dto); RpcResponse<RecruitmentDemandDTO> response = recruitmentDemandRemote.recruitmentDemandAdd(dto);
if (!response.isSuccess()) { if (!response.isSuccess()) {
return RopResponse.error(response.getError()); return RopResponse.error(response.getError());
} }
return RopResponse.success(response.getResult().getId() != null); return RopResponse.success(response.getResult().getId() != null);
} }
/**
* 招聘需求状态更新(确认、驳回)
*
* @param requestDTO
* @return cn.com.glsx.framework.rop.response.RopResponse<java.lang.String>
* @author caiym
* @date 2026年01月08日 21:00:46
*/
public RopResponse<String> recruitmentDemandStatusUpdate(RecruitmentDemandDTO requestDTO) {
return CommonUtil.convertRopResponse(recruitmentDemandRemote.recruitmentDemandStatusUpdate(requestDTO));
}
/**
* 待审核详情
*
* @param request
* @return cn.com.glsx.framework.core.beans.rpc.RpcResponse<cn.com.glsx.dj.staff.dto.recruitment.RecruitmentDemandDetailDTO>
* @author caiym
* @date 2026年01月12日 10:49:01
*/
public RpcResponse<RecruitmentDemandDetailDTO> getRecruitmentDemandDetailForCheck(CommonIdRequest request) {
return recruitmentDemandRemote.recruitmentDemandDetail(request.getId());
}
} }
package cn.com.glsx.dj.staff.miniprogram.service.recruitment; package cn.com.glsx.dj.staff.miniprogram.service.recruitment;
import cn.com.glsx.dj.staff.dto.recruitment.RecruitmentResumeDTO; import cn.com.glsx.dj.staff.dto.recruitment.RecruitmentResumeDTO;
import cn.com.glsx.dj.staff.miniprogram.request.recruitment.RecruitmentResumeProcessRequest;
import cn.com.glsx.dj.staff.miniprogram.util.CommonUtil; import cn.com.glsx.dj.staff.miniprogram.util.CommonUtil;
import cn.com.glsx.dj.staff.remote.RecruitmentResumeRemote; import cn.com.glsx.dj.staff.remote.RecruitmentResumeRemote;
import cn.com.glsx.framework.core.exception.RpcServiceException; import cn.com.glsx.framework.core.exception.RpcServiceException;
...@@ -19,10 +18,7 @@ public class RecruitmentResumeService { ...@@ -19,10 +18,7 @@ public class RecruitmentResumeService {
@Autowired @Autowired
private RecruitmentResumeRemote recruitmentResumeRemote; private RecruitmentResumeRemote recruitmentResumeRemote;
public RopResponse<Boolean> processResume(RecruitmentResumeProcessRequest request) { public RopResponse<Boolean> processResume(RecruitmentResumeDTO dto) {
RecruitmentResumeDTO dto = CommonUtil.convertRequest(RecruitmentResumeDTO.class);
dto.setUpdatedBy(CommonUtil.getAccountName());
dto.setProcessorName(CommonUtil.getUserName());
return CommonUtil.convertRopResponse(recruitmentResumeRemote.processResume(dto)); return CommonUtil.convertRopResponse(recruitmentResumeRemote.processResume(dto));
} }
} }
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!