Commit 1c720267 by 谢海旭

v5.7.1版本 招聘管理:移动端详情接口调整

1 parent 96143a48
......@@ -389,6 +389,32 @@ public class RecruitmentDemandService {
record.setTrialOnboardingCount(trialOnboardingStat.getTrialOnboardingCount());
}
record.setTrialOnboardingPlans(recruitmentTrialOnboardingService.listRecruitmentTrialOnboarding(trialOnboardingCondition));
// 近一月新车销量和门店地址:通过系统门店创建的实时查询,未创建系统门店的直接取记录字段
boolean hasSystemMerchant = Boolean.TRUE.equals(record.getBySystemMerchant());
if (hasSystemMerchant && StringUtils.isNotBlank(record.getMerchantId())) {
// 近一月新车销量:实时查询
record.setSalesVolume(getSalesVolume(Integer.parseInt(record.getMerchantId())));
// 门店地址:实时查询
RpcPagination<ListMerchantRequest> merchantPagination = new RpcPagination<>();
merchantPagination.setPageNum(1);
merchantPagination.setPageSize(1);
ListMerchantRequest merchantCondition = new ListMerchantRequest();
merchantCondition.setAccounttypeIdList(Arrays.asList(AccountTypeEnum.SHOP_4S.getValue(), AccountTypeEnum.YQ_SHOP.getValue(), AccountTypeEnum.VIRTUAL_YQ_SHOP.getValue()));
merchantCondition.setMerchantNoStrSet(record.getMerchantId());
merchantCondition.setStatus(String.valueOf(MerchantAccountStatusEnum.HAVE_PUBLISH.getValue()));
merchantPagination.setCondition(merchantCondition);
RpcResponse<RpcPagination<MerchantRopResponse>> merchantWithPageResp = merchantRemote.listMerchantWithPage(merchantPagination);
if (merchantWithPageResp.hasResult()) {
RpcPagination<MerchantRopResponse> merchantWithPage = merchantWithPageResp.getResult();
if (CollectionUtils.isNotEmpty(merchantWithPage.getList())) {
MerchantRopResponse merchant = merchantWithPage.getList().get(0);
if (Objects.nonNull(merchant)) {
record.setMerchantAddress(merchant.getMerchantAddress());
}
}
}
}
// else: 未创建系统门店,salesVolume/brand/merchantAddress 直接取记录中的字段就行
return record;
}catch (RpcServiceException rpcServiceException){
throw rpcServiceException;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!