Commit f8cfffa0 by 谢海旭

招聘管理:12月优化版本内容

1 parent c51d0275
...@@ -41,6 +41,7 @@ import cn.hutool.core.date.DateUtil; ...@@ -41,6 +41,7 @@ import cn.hutool.core.date.DateUtil;
import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSON;
import com.github.pagehelper.Page; import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper; import com.github.pagehelper.PageHelper;
import com.google.common.collect.Lists;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.apache.commons.collections.CollectionUtils; import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
...@@ -381,7 +382,7 @@ public class RecruitmentDemandService { ...@@ -381,7 +382,7 @@ public class RecruitmentDemandService {
} }
// 查询门店主营品牌信息 // 查询门店主营品牌信息
Map<Integer, String> merchantBrandMap = merchantService.getMerchantBrandMap(Arrays.asList(Integer.parseInt(merchantId)), true); Map<Integer, String> merchantBrandMap = merchantService.getMerchantBrandMap(Lists.newArrayList(Integer.parseInt(merchantId)), true);
if (CollectionUtil.isNotEmpty(merchantBrandMap)) { if (CollectionUtil.isNotEmpty(merchantBrandMap)) {
detailDTO.setBrand(merchantBrandMap.get(Integer.parseInt(merchantId))); detailDTO.setBrand(merchantBrandMap.get(Integer.parseInt(merchantId)));
} }
...@@ -406,7 +407,7 @@ public class RecruitmentDemandService { ...@@ -406,7 +407,7 @@ public class RecruitmentDemandService {
log.info("查询商户日报参数:{}", JSON.toJSONString(reportQueryParam)); log.info("查询商户日报参数:{}", JSON.toJSONString(reportQueryParam));
RpcResponse<List<MerchantDailyReportHuaweiDTO>> dailyReportResp = merchantDailyReportHuaweiRemote.listMerchantDailyReportHuawei(reportQueryParam); RpcResponse<List<MerchantDailyReportHuaweiDTO>> dailyReportResp = merchantDailyReportHuaweiRemote.listMerchantDailyReportHuawei(reportQueryParam);
log.info("查询商户日报结果:{}", JSON.toJSONString(dailyReportResp)); log.info("查询商户日报结果:{}", JSON.toJSONString(dailyReportResp));
List<MerchantDailyReportHuaweiDTO> dailyReports = null; List<MerchantDailyReportHuaweiDTO> dailyReports;
if (dailyReportResp.hasResult() && CollectionUtils.isNotEmpty(dailyReportResp.getResult())) { if (dailyReportResp.hasResult() && CollectionUtils.isNotEmpty(dailyReportResp.getResult())) {
dailyReports = dailyReportResp.getResult(); dailyReports = dailyReportResp.getResult();
salesVolume = getMerchantSalesVolume(dailyReports); salesVolume = getMerchantSalesVolume(dailyReports);
...@@ -540,7 +541,7 @@ public class RecruitmentDemandService { ...@@ -540,7 +541,7 @@ public class RecruitmentDemandService {
Integer merchantId = env.getProperty("new.demand.qw.message.merchant.id", Integer.class, 44211276); Integer merchantId = env.getProperty("new.demand.qw.message.merchant.id", Integer.class, 44211276);
String agentId = env.getProperty("new.demand.qw.message.agentId"); String agentId = env.getProperty("new.demand.qw.message.agentId");
if (merchantId == null || StringUtils.isBlank(agentId)) { if (StringUtils.isBlank(agentId)) {
log.error("新增招聘需求推送企微消息参数缺失"); log.error("新增招聘需求推送企微消息参数缺失");
return; return;
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!