Commit 0fd611cf by 谢海旭

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

1 parent da1aae9b
......@@ -265,7 +265,7 @@ public class RecruitmentDemandController {
return CommonUtil.convertRopResponse(response);
}
@ApiOperation("新增试岗-门店列表(根据区域运营uuid查询)")
@ApiOperation("新增试岗-4s门店列表(根据区域运营uuid查询)")
@ServiceMethod(method = "dj.staff.api.recruitment.demand.store.list", needInSession = NeedInSessionType.YES)
public RopResponse<List<RecruitmentDemandStoreListDTO>> listStore(RecruitmentDemandStoreListRequest request) {
// 1. 查询区域运营管辖的门店
......@@ -284,22 +284,17 @@ public class RecruitmentDemandController {
.collect(Collectors.collectingAndThen(
Collectors.toMap(RecruitmentDemandStoreListDTO::getMerchantId, o -> o, (o1, o2) -> o1),
m -> new ArrayList<>(m.values())));
if (CollectionUtils.isEmpty(storeList)) {
return RopResponse.success(storeList);
}
// 2. 查询关联园区店
List<Integer> shopMerchantIds = storeList.stream().map(RecruitmentDemandStoreListDTO::getMerchantId).distinct().collect(Collectors.toList());
SceneMerchantRefDTO refDTO = SceneMerchantRefDTO.builder().mainMerchantIdList(shopMerchantIds).subMerchantName(request.getMerchantName()).build();
RpcResponse<List<MerchantListDTO>> yqResp = sceneMerchantRefRemote.queryYqShopBy4s(refDTO);
if (yqResp.hasResult() && CollectionUtils.isNotEmpty(yqResp.getResult())) {
List<RecruitmentDemandStoreListDTO> yqList = yqResp.getResult().stream()
.filter(o -> o != null && o.getYqMerchantId() != null)
.map(o -> RecruitmentDemandStoreListDTO.builder()
.merchantId(o.getYqMerchantId()).merchantName(o.getYqMerchantName()).build())
.collect(Collectors.toList());
storeList.addAll(yqList);
}
return RopResponse.success(storeList);
}
@ApiOperation("新增试岗-小场景列表查询")
@ServiceMethod(method = "dj.staff.api.recruitment.demand.sub.scene.list", needInSession = NeedInSessionType.YES)
public RopResponse<List<RecruitmentSubSceneDTO>> listSubScene(RecruitmentSubSceneListRequest request) {
RecruitmentSubSceneDTO dto = RecruitmentSubSceneDTO.builder()
.merchantId(request.getMerchantId())
.businessType(request.getBusinessType())
.build();
RpcResponse<List<RecruitmentSubSceneDTO>> response = recruitmentDemandRemote.listSubScenes(dto);
return CommonUtil.convertRopResponse(response);
}
}
package cn.com.glsx.dj.staff.request.recruitment;
import com.rop.AbstractRopRequest;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
@Data
public class RecruitmentSubSceneListRequest extends AbstractRopRequest {
@ApiModelProperty(notes = "门店商户号", required = true)
private Integer merchantId;
@ApiModelProperty(notes = "招聘需求业务类型值", required = true)
private Integer businessType;
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!