Commit 02b1ba3c authored by chenyuefang's avatar chenyuefang

咨询机构

parent a8cec427
......@@ -98,13 +98,19 @@ public class AdvisoryBodyVo {
*/
@ExcelProperty(value = "合同金额", index = 10)
private BigDecimal contractValue;
/**
* 业主单位cid
*/
private Integer ownerCid;
/**
* 业主单位
*/
@ExcelProperty(value = "业主单位", index = 11)
private String ownerName;
/**
* 项目承接单位cid
*/
private Integer contractOrgCid;
/**
* 项目承接单位
*/
......
......@@ -134,6 +134,24 @@ public class CustomerInfoServiceImpl extends ServiceImpl<DCustomerMapper, DCusto
public TableDataInfo<AdvisoryBodyVo> queryAdvisoryList(AdvisoryBodyBo bo, PageQuery query) {
bo.setContractOrgId(AdvisoryBodyManageQueryConstants.LEVEL1_COMPANY_ID);
Page<AdvisoryBodyVo> page = advisoryBodyMapper.queryListByBo(query.build(),bo);
page.getRecords().parallelStream().forEach(vo -> {
try {
Map<String, Object> map = opportunityRadarService.enterpriseByName(vo.getOwnerName());
if (!ObjectUtils.isEmpty(map.get("data"))) {
Map<String, Object> data = BeanUtil.beanToMap(map.get("data"));
Integer companyId = MapUtil.getInt(data, "jskEid");
vo.setOwnerCid(companyId);
}
map = opportunityRadarService.enterpriseByName(vo.getContractOrgName());
if (!ObjectUtils.isEmpty(map.get("data"))) {
Map<String, Object> data = BeanUtil.beanToMap(map.get("data"));
Integer companyId = MapUtil.getInt(data, "jskEid");
vo.setContractOrgCid(companyId);
}
} catch (Exception e) {
log.error("CustomerInfoServiceImpl.queryAdvisoryList() error:" + e);
}
});
return TableDataInfo.build(page);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment