Commit 43120630 by 黄炜

feat(recruitment): 招聘详情

1 parent eb24d118
......@@ -112,6 +112,11 @@ public interface RecruitmentDemandRemote {
@ApiResponse("审批后的试岗记录最新数据")
RpcResponse<RecruitmentTrialOnboarding> trialOnboardingApproval(@NotNull RecruitmentTrialOnboardingDTO dto);
@ApiMethod("查询试岗人员详情")
@ApiParam(name = "dto", notes = "试岗记录ID,id必填", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)
@ApiResponse("试岗人员详情(基础信息+审批信息)")
RpcResponse<RecruitmentTrialOnboardingDTO> getTrialOnboardingDetail(@NotNull RecruitmentTrialOnboardingDTO dto);
@ApiMethod("查询省份HRBP关系列表(不分页)")
@ApiParam(name = "condition", notes = "查询条件,provinceName/provinceCode/hrbpName/hrbpPhone", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)
@ApiResponse("省份HRBP关系列表")
......
......@@ -424,6 +424,20 @@ public class RecruitmentDemandRemoteImpl implements RecruitmentDemandRemote{
}
@Override
public RpcResponse<RecruitmentTrialOnboardingDTO> getTrialOnboardingDetail(RecruitmentTrialOnboardingDTO dto) {
try {
RecruitmentTrialOnboardingDTO detail = recruitmentDemandService.getTrialOnboardingDetail(dto.getId());
return RpcResponse.success(detail);
} catch (RpcServiceException e) {
log.error(e.getMessage(), e);
return RpcResponse.error(e);
} catch (Exception e) {
log.error(e.getMessage(), e);
return RpcResponse.error(e);
}
}
@Override
public RpcResponse<List<RecruitmentProvinceHrbpRelation>> listProvinceHrbpRelation(RecruitmentProvinceHrbpRelation condition) {
try {
List<RecruitmentProvinceHrbpRelation> list = recruitmentDemandService.listProvinceHrbpRelation(condition);
......
......@@ -525,6 +525,8 @@ public class RecruitmentDemandService {
MerchantRopResponse merchant = merchantWithPage.getList().get(0);
if (Objects.nonNull(merchant)) {
record.setMerchantAddress(merchant.getMerchantAddress());
// 详细地址:已创建系统门店,取门店上架时维护的详细地址
record.setMerchantAddressDetail(merchant.getMerchantFullAddress());
}
}
}
......@@ -2254,6 +2256,22 @@ public class RecruitmentDemandService {
}
/**
* 试岗人员详情:基础信息(人员姓名、手机号、招聘渠道、试岗时间、试岗门店、业务场景、驻店类型)
* + 审批信息(审批结果、驳回原因)
*
* @param id 试岗记录ID
* @return 试岗详情
*/
public RecruitmentTrialOnboardingDTO getTrialOnboardingDetail(Integer id) {
RpcAssert.assertNotNull(id, DefaultErrorEnum.DATA_NULL, "id not be null");
RecruitmentTrialOnboarding trial = recruitmentTrialOnboardingMapper.selectByPrimaryKey(id);
if (trial == null || BaseModel.DeletedFlagEnum.D.name().equals(trial.getDeletedFlag())) {
throw new RpcServiceException(RpcErrorEnum.BUSINESS_ERROR, "试岗记录不存在");
}
return BeanUtil.copyProperties(trial, RecruitmentTrialOnboardingDTO.class);
}
/**
* 试岗审批结果通知区域运营
*
* @param trialOnboardingId 试岗记录ID
......
......@@ -106,7 +106,7 @@
<select id="listRecruitmentDemand" resultMap="DTOResultMap">
select dclrd.id, dclrd.urgent, dclrd.merchant_name, dclrd.merchant_id, dclrd.brand, dclrd.connection_flag,
dclrd.by_system_merchant, dclrd.sales_volume, dclrd.merchant_address, dclrd.region_operation_id, dclrd.region_operation_name,
dclrd.by_system_merchant, dclrd.sales_volume, dclrd.merchant_address, dclrd.merchant_address_detail, dclrd.region_operation_id, dclrd.region_operation_name,
dclrd.business_type, dclrd.business_type_name, dclrd.recruitment_quantity, dclrd.recruitment_type,
dclrd.recruitment_type_name, dclrd.requirement_description, dclrd.recruiter_name, dclrd.recruiter_phone,
dclrd.recall_reason, dclrd.status, dclrd.confirm_flag, dclrd.created_date, dclrd.technical_supervisor_name,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!