Commit 19cac8ac by 谢海旭

招聘管理:新增试岗-查询小场景

1 parent 10db360e
package cn.com.glsx.dj.staff.dto.recruitment;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import java.io.Serializable;
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
@Data
public class RecruitmentSubSceneDTO implements Serializable {
private static final long serialVersionUID = 1L;
@ApiModelProperty(notes = "门店商户号(查询条件)")
private Integer merchantId;
@ApiModelProperty(notes = "招聘需求业务类型值(查询条件)")
private Integer businessType;
@ApiModelProperty(notes = "场景编码")
private String sceneCode;
@ApiModelProperty(notes = "场景名称")
private String sceneName;
}
......@@ -116,4 +116,9 @@ public interface RecruitmentDemandRemote {
@ApiParam(name = "condition", notes = "查询条件,provinceName/provinceCode/hrbpName/hrbpPhone", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)
@ApiResponse("省份HRBP关系列表")
RpcResponse<List<RecruitmentProvinceHrbpRelation>> listProvinceHrbpRelation(@NotNull RecruitmentProvinceHrbpRelation condition);
@ApiMethod("查询小场景列表")
@ApiParam(name = "dto", notes = "查询条件,merchantId/businessType", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)
@ApiResponse("小场景列表")
RpcResponse<List<RecruitmentSubSceneDTO>> listSubScenes(@NotNull RecruitmentSubSceneDTO dto);
}
......@@ -41,7 +41,7 @@
<dependency>
<groupId>cn.com.glsx.dj</groupId>
<artifactId>rpc-dj-smartcarlife-api</artifactId>
<version>5.6.4-SNAPSHOT</version>
<version>5.8.3-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>cn.com.glsx.entmicro</groupId>
......
......@@ -21,6 +21,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
import java.util.concurrent.CompletableFuture;
import java.util.stream.Collectors;
@Slf4j
......@@ -28,6 +29,7 @@ import java.util.stream.Collectors;
public class RecruitmentDemandRemoteImpl implements RecruitmentDemandRemote{
@Autowired
private RecruitmentDemandService recruitmentDemandService;
@Override
public RpcResponse<RecruitmentDemandDTO> statRecruitmentDemand(RecruitmentDemandDTO dto) {
try{
......@@ -343,6 +345,13 @@ public class RecruitmentDemandRemoteImpl implements RecruitmentDemandRemote{
public RpcResponse<RecruitmentTrialOnboarding> trialOnboardingApproval(RecruitmentTrialOnboardingDTO dto) {
try {
RecruitmentTrialOnboarding result = recruitmentDemandService.trialOnboardingApproval(dto);
// 异步推送企微消息给区域运营
CompletableFuture.runAsync(() ->
recruitmentDemandService.sendTrialApprovalRegionOperationMessage(result.getId()));
// 异步推送企微消息给线上运营
CompletableFuture.runAsync(() ->
recruitmentDemandService.sendTrialApprovalOnlineOperationMessage(result.getId()));
return RpcResponse.success(result);
} catch (RpcServiceException e) {
log.error(e.getMessage(), e);
......@@ -366,4 +375,18 @@ public class RecruitmentDemandRemoteImpl implements RecruitmentDemandRemote{
return RpcResponse.error(e);
}
}
@Override
public RpcResponse<List<RecruitmentSubSceneDTO>> listSubScenes(RecruitmentSubSceneDTO dto) {
try {
List<RecruitmentSubSceneDTO> list = recruitmentDemandService.listSubScenes(dto);
return RpcResponse.success(list);
} catch (RpcServiceException e) {
log.error(e.getMessage(), e);
return RpcResponse.error(e);
} catch (Exception e) {
log.error(e.getMessage(), e);
return RpcResponse.error(e);
}
}
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!