Commit 6e138ab6 authored by danfuman's avatar danfuman

Merge branch 'dev20230707' of http://192.168.60.201/root/dsk-operate-sys into dev20230707

parents 48d8e18e f6bf0f5a
...@@ -14,8 +14,8 @@ import com.dsk.common.utils.poi.ExcelUtil; ...@@ -14,8 +14,8 @@ import com.dsk.common.utils.poi.ExcelUtil;
import com.dsk.system.domain.customer.Customer; import com.dsk.system.domain.customer.Customer;
import com.dsk.system.domain.customer.dto.CustomerBusinessSearchDto; import com.dsk.system.domain.customer.dto.CustomerBusinessSearchDto;
import com.dsk.system.domain.customer.dto.CustomerSearchDto; import com.dsk.system.domain.customer.dto.CustomerSearchDto;
import com.dsk.system.searchService.BusinessOpportunityRadarService;
import com.dsk.system.service.ICustomerService; import com.dsk.system.service.ICustomerService;
import com.dsk.web.controller.search.service.BusinessOpportunityRadarService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
...@@ -39,8 +39,8 @@ public class CustomerController extends BaseController { ...@@ -39,8 +39,8 @@ public class CustomerController extends BaseController {
@Autowired @Autowired
private ICustomerService baseService; private ICustomerService baseService;
@Autowired // @Autowired
private BusinessOpportunityRadarService opportunityRadarService; // private BusinessOpportunityRadarService opportunityRadarService;
/** /**
* 查询客户列表 * 查询客户列表
...@@ -68,7 +68,6 @@ public class CustomerController extends BaseController { ...@@ -68,7 +68,6 @@ public class CustomerController extends BaseController {
@PostMapping() @PostMapping()
@RepeatSubmit @RepeatSubmit
public AjaxResult add(@RequestBody Customer customer) { public AjaxResult add(@RequestBody Customer customer) {
dealWithcustomerData(customer);
return toAjax(baseService.add(customer)); return toAjax(baseService.add(customer));
} }
...@@ -80,7 +79,6 @@ public class CustomerController extends BaseController { ...@@ -80,7 +79,6 @@ public class CustomerController extends BaseController {
@RepeatSubmit @RepeatSubmit
public AjaxResult claim(@RequestBody Customer customer) { public AjaxResult claim(@RequestBody Customer customer) {
if (ObjectUtils.isEmpty(customer.getUipId())) throw new BeanException("城投uipId不能为空"); if (ObjectUtils.isEmpty(customer.getUipId())) throw new BeanException("城投uipId不能为空");
dealWithcustomerData(customer);
boolean add = baseService.add(customer); boolean add = baseService.add(customer);
if (add) { if (add) {
Map<String, Object> map = new HashMap<>(); Map<String, Object> map = new HashMap<>();
...@@ -90,43 +88,6 @@ public class CustomerController extends BaseController { ...@@ -90,43 +88,6 @@ public class CustomerController extends BaseController {
return AjaxResult.error(); return AjaxResult.error();
} }
private void dealWithcustomerData(Customer customer) {
if (ObjectUtils.isEmpty(customer.getCompanyName())) throw new BeanException("企业名称不能为空");
if (ObjectUtils.isEmpty(customer.getCompanyId())) {
try {
Map<String, Object> map = opportunityRadarService.enterpriseByName(customer.getCompanyName());
if (!ObjectUtils.isEmpty(map.get("data"))) {
customer.setCompanyId(MapUtil.getInt(BeanUtil.beanToMap(map.get("data")), "jskEid"));
if (ObjectUtils.isEmpty(customer.getLegalPerson())) {
customer.setLegalPerson(MapUtil.getStr(map, "legalPerson"));
}
if (ObjectUtils.isEmpty(customer.getRegisterCapital())) {
customer.setRegisterCapital(MapUtil.getStr(map, "registeredCapitalStr"));
}
if (ObjectUtils.isEmpty(customer.getProvinceId())) {
customer.setProvinceId(MapUtil.getInt(map, "provinceId"));
}
if (ObjectUtils.isEmpty(customer.getCityId())) {
customer.setCityId(MapUtil.getInt(map, "cityId"));
}
if (ObjectUtils.isEmpty(customer.getDistrictId())) {
customer.setDistrictId(MapUtil.getInt(map, "countyId"));
}
if (ObjectUtils.isEmpty(customer.getRegisterAddress())) {
customer.setRegisterAddress(MapUtil.getStr(map, "domicile"));
}
if (ObjectUtils.isEmpty(customer.getCreditCode())) {
customer.setCreditCode(MapUtil.getStr(map, "creditCode"));
}
}
} catch (Exception e) {
logger.debug("获取企业id错误!error:{}", e.getMessage());
}
}
}
/** /**
* 编辑客户 * 编辑客户
*/ */
...@@ -167,21 +128,21 @@ public class CustomerController extends BaseController { ...@@ -167,21 +128,21 @@ public class CustomerController extends BaseController {
continue; continue;
} }
try { try {
Map<String, Object> map = opportunityRadarService.enterpriseByName(customer.getCompanyName()); // Map<String, Object> map = opportunityRadarService.enterpriseByName(customer.getCompanyName());
if (ObjectUtils.isEmpty(map)) { // if (ObjectUtils.isEmpty(map)) {
throw new HttpException("远程调用匹配接口失败!"); // throw new HttpException("远程调用匹配接口失败!");
} // }
Map<String, Object> obj = BeanUtil.beanToMap(map.get("data")); // Map<String, Object> obj = BeanUtil.beanToMap(map.get("data"));
if (!ObjectUtils.isEmpty(obj)) { // if (!ObjectUtils.isEmpty(obj)) {
customer.setCompanyId(MapUtil.getInt(obj, "jskEid")); // customer.setCompanyId(MapUtil.getInt(obj, "jskEid"));
customer.setLegalPerson(MapUtil.getStr(obj, "legalPerson")); // customer.setLegalPerson(MapUtil.getStr(obj, "legalPerson"));
customer.setRegisterCapital(MapUtil.getStr(obj, "registeredCapitalStr")); // customer.setRegisterCapital(MapUtil.getStr(obj, "registeredCapitalStr"));
customer.setProvinceId(MapUtil.getInt(obj, "provinceId")); // customer.setProvinceId(MapUtil.getInt(obj, "provinceId"));
customer.setCityId(MapUtil.getInt(obj, "cityId")); // customer.setCityId(MapUtil.getInt(obj, "cityId"));
customer.setDistrictId(MapUtil.getInt(obj, "countyId")); // customer.setDistrictId(MapUtil.getInt(obj, "countyId"));
customer.setRegisterAddress(MapUtil.getStr(obj, "domicile")); // customer.setRegisterAddress(MapUtil.getStr(obj, "domicile"));
customer.setCreditCode(MapUtil.getStr(obj, "creditCode")); // customer.setCreditCode(MapUtil.getStr(obj, "creditCode"));
} // }
baseService.add(customer); baseService.add(customer);
successCount++; successCount++;
} catch (Exception e) { } catch (Exception e) {
......
...@@ -3,9 +3,7 @@ package com.dsk.web.controller.search.controller; ...@@ -3,9 +3,7 @@ package com.dsk.web.controller.search.controller;
import com.alibaba.fastjson2.JSONObject; import com.alibaba.fastjson2.JSONObject;
import com.dsk.common.core.domain.AjaxResult; import com.dsk.common.core.domain.AjaxResult;
import com.dsk.common.dtos.ComposeQueryDto; import com.dsk.common.dtos.ComposeQueryDto;
import com.dsk.common.dtos.Page; import com.dsk.system.searchService.BusinessOpportunityRadarService;
import com.dsk.web.controller.search.service.BusinessOpportunityRadarService;
import com.dsk.web.controller.search.service.MarketAnalysisService;
import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
......
...@@ -4,7 +4,7 @@ import cn.hutool.json.JSONUtil; ...@@ -4,7 +4,7 @@ import cn.hutool.json.JSONUtil;
import com.alibaba.fastjson2.JSONObject; import com.alibaba.fastjson2.JSONObject;
import com.dsk.common.core.domain.AjaxResult; import com.dsk.common.core.domain.AjaxResult;
import com.dsk.common.dtos.ComposeQueryDto; import com.dsk.common.dtos.ComposeQueryDto;
import com.dsk.web.controller.search.service.BusinessOpportunityRadarService; import com.dsk.system.searchService.BusinessOpportunityRadarService;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource; import javax.annotation.Resource;
......
...@@ -4,8 +4,7 @@ import com.alibaba.fastjson2.JSONObject; ...@@ -4,8 +4,7 @@ import com.alibaba.fastjson2.JSONObject;
import com.dsk.common.core.controller.BaseController; import com.dsk.common.core.controller.BaseController;
import com.dsk.common.core.domain.AjaxResult; import com.dsk.common.core.domain.AjaxResult;
import com.dsk.common.core.page.TableDataInfo; import com.dsk.common.core.page.TableDataInfo;
import com.dsk.common.dtos.ComposeQueryDto; import com.dsk.system.searchService.MarketAnalysisService;
import com.dsk.web.controller.search.service.MarketAnalysisService;
import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
......
package com.dsk.web.controller.search.service; //package com.dsk.web.controller.search.service;
//
import com.alibaba.fastjson2.JSONObject; //import com.alibaba.fastjson2.JSONObject;
import com.dsk.common.core.domain.AjaxResult; //import com.dsk.common.core.domain.AjaxResult;
import com.dsk.common.dtos.ComposeQueryDto; //import com.dsk.common.dtos.ComposeQueryDto;
//
/** ///**
* @Author liujie // * @Author liujie
* @ClassName MarketAnalysisService // * @ClassName MarketAnalysisService
* @Date 2023/5/15 16:39 // * @Date 2023/5/15 16:39
**/ // **/
public interface BusinessOpportunityRadarService { //public interface BusinessOpportunityRadarService {
//
//
AjaxResult jskBidNewsPage(JSONObject object); // AjaxResult jskBidNewsPage(JSONObject object);
//
AjaxResult jskBidTenderPage(JSONObject object); // AjaxResult jskBidTenderPage(JSONObject object);
//
AjaxResult jskBidPage(JSONObject object); // AjaxResult jskBidPage(JSONObject object);
//
AjaxResult landMarketPage( JSONObject object); // AjaxResult landMarketPage( JSONObject object);
//
AjaxResult establishmentPage(JSONObject object); // AjaxResult establishmentPage(JSONObject object);
//
AjaxResult enterpriseIndex(JSONObject object); // AjaxResult enterpriseIndex(JSONObject object);
//
AjaxResult enterpriseByName(String keyword); // AjaxResult enterpriseByName(String keyword);
//
AjaxResult enterprisePage(JSONObject object); // AjaxResult enterprisePage(JSONObject object);
//
AjaxResult bondProjectPage( JSONObject object); // AjaxResult bondProjectPage( JSONObject object);
//
AjaxResult jskBidPlanPage( JSONObject object); // AjaxResult jskBidPlanPage( JSONObject object);
//
AjaxResult getCapitalSourceSelect(); // AjaxResult getCapitalSourceSelect();
//
AjaxResult keywordList(); // AjaxResult keywordList();
//
AjaxResult bidSourceList( JSONObject object); // AjaxResult bidSourceList( JSONObject object);
//
} //}
package com.dsk.web.controller.search.service; //package com.dsk.web.controller.search.service;
//
import com.alibaba.fastjson2.JSONObject; //import com.alibaba.fastjson2.JSONObject;
import com.dsk.common.core.domain.AjaxResult; //import com.dsk.common.core.domain.AjaxResult;
import com.dsk.common.dtos.ComposeQueryDto; //import com.dsk.common.dtos.ComposeQueryDto;
//
/** ///**
* @Author liujie // * @Author liujie
* @ClassName MarketAnalysisService // * @ClassName MarketAnalysisService
* @Date 2023/5/15 16:39 // * @Date 2023/5/15 16:39
**/ // **/
public interface MarketAnalysisService { //public interface MarketAnalysisService {
//
AjaxResult areaGroupByProvince(); // AjaxResult areaGroupByProvince();
//
AjaxResult certGroupByMajorAndLevel(); // AjaxResult certGroupByMajorAndLevel();
//
AjaxResult certGroupByMajorProvinceLevel(); // AjaxResult certGroupByMajorProvinceLevel();
//
AjaxResult countGroupByProvince(JSONObject object); // AjaxResult countGroupByProvince(JSONObject object);
//
AjaxResult countGroupByMonth(JSONObject object); // AjaxResult countGroupByMonth(JSONObject object);
//
AjaxResult bidMoneyGroupByProjectType(JSONObject object); // AjaxResult bidMoneyGroupByProjectType(JSONObject object);
//
AjaxResult bidGroupCountByProjectType(JSONObject object); // AjaxResult bidGroupCountByProjectType(JSONObject object);
} //}
package com.dsk.web.controller.search.service.impl; //package com.dsk.web.controller.search.service.impl;
//
import cn.hutool.core.bean.BeanUtil; //import cn.hutool.core.bean.BeanUtil;
import com.alibaba.fastjson2.JSONObject; //import com.alibaba.fastjson2.JSONObject;
import com.dsk.common.core.domain.AjaxResult; //import com.dsk.common.core.domain.AjaxResult;
import com.dsk.common.dtos.ComposeQueryDto; //import com.dsk.common.dtos.ComposeQueryDto;
import com.dsk.common.utils.DskOpenApiUtil; //import com.dsk.common.utils.DskOpenApiUtil;
import com.dsk.web.controller.search.service.BusinessOpportunityRadarService; //import com.dsk.web.controller.search.service.BusinessOpportunityRadarService;
import com.dsk.web.controller.search.service.MarketAnalysisService; //import com.dsk.web.controller.search.service.MarketAnalysisService;
import org.springframework.beans.factory.annotation.Autowired; //import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; //import org.springframework.stereotype.Service;
//
import java.util.HashMap; //import java.util.HashMap;
import java.util.Map; //import java.util.Map;
//
/** ///**
* @Author liujie // * @Author liujie
* @ClassName MarketAnalysisServiceImpl // * @ClassName MarketAnalysisServiceImpl
* @Date 2023/5/15 16:40 // * @Date 2023/5/15 16:40
**/ // **/
@Service //@Service
public class BusinessOpportunityRadarServiceImpl implements BusinessOpportunityRadarService { //public class BusinessOpportunityRadarServiceImpl implements BusinessOpportunityRadarService {
//
@Autowired // @Autowired
private DskOpenApiUtil dskOpenApiUtil; // private DskOpenApiUtil dskOpenApiUtil;
//
//
@Override // @Override
public AjaxResult jskBidNewsPage(JSONObject object) { // public AjaxResult jskBidNewsPage(JSONObject object) {
Map<String, Object> map = dskOpenApiUtil.requestBody("/nationzj/jskBid/news/page", object); // Map<String, Object> map = dskOpenApiUtil.requestBody("/nationzj/jskBid/news/page", object);
return BeanUtil.toBean(map, AjaxResult.class); // return BeanUtil.toBean(map, AjaxResult.class);
} // }
//
//
@Override // @Override
public AjaxResult jskBidTenderPage(JSONObject object) { // public AjaxResult jskBidTenderPage(JSONObject object) {
Map<String, Object> map = dskOpenApiUtil.requestBody("/nationzj/jskBidTender/page", object); // Map<String, Object> map = dskOpenApiUtil.requestBody("/nationzj/jskBidTender/page", object);
return BeanUtil.toBean(map, AjaxResult.class); // return BeanUtil.toBean(map, AjaxResult.class);
} // }
//
@Override // @Override
public AjaxResult establishmentPage(JSONObject object) { // public AjaxResult establishmentPage(JSONObject object) {
Map<String, Object> map = dskOpenApiUtil.requestBody("/nationzj/establishment/page", object); // Map<String, Object> map = dskOpenApiUtil.requestBody("/nationzj/establishment/page", object);
return BeanUtil.toBean(map, AjaxResult.class); // return BeanUtil.toBean(map, AjaxResult.class);
} // }
//
@Override // @Override
public AjaxResult jskBidPage(JSONObject object) { // public AjaxResult jskBidPage(JSONObject object) {
Map<String, Object> map = dskOpenApiUtil.requestBody("/nationzj/jskBid/page",object); // Map<String, Object> map = dskOpenApiUtil.requestBody("/nationzj/jskBid/page",object);
return BeanUtil.toBean(map, AjaxResult.class); // return BeanUtil.toBean(map, AjaxResult.class);
} // }
//
@Override // @Override
public AjaxResult landMarketPage(JSONObject object) { // public AjaxResult landMarketPage(JSONObject object) {
Map<String, Object> map = dskOpenApiUtil.requestBody("/nationzj/landMarket/page", object); // Map<String, Object> map = dskOpenApiUtil.requestBody("/nationzj/landMarket/page", object);
return BeanUtil.toBean(map, AjaxResult.class); // return BeanUtil.toBean(map, AjaxResult.class);
} // }
//
@Override // @Override
public AjaxResult enterpriseIndex(JSONObject object) { // public AjaxResult enterpriseIndex(JSONObject object) {
Map<String, Object> map = dskOpenApiUtil.requestBody("/nationzj/enterprice/index", object); // Map<String, Object> map = dskOpenApiUtil.requestBody("/nationzj/enterprice/index", object);
return BeanUtil.toBean(map, AjaxResult.class); // return BeanUtil.toBean(map, AjaxResult.class);
} // }
//
@Override // @Override
public AjaxResult enterprisePage(JSONObject object) { // public AjaxResult enterprisePage(JSONObject object) {
Map<String, Object> map = dskOpenApiUtil.requestBody("/nationzj/enterprice/page",object); // Map<String, Object> map = dskOpenApiUtil.requestBody("/nationzj/enterprice/page",object);
return BeanUtil.toBean(map, AjaxResult.class); // return BeanUtil.toBean(map, AjaxResult.class);
} // }
//
//
@Override // @Override
public AjaxResult enterpriseByName(String keyword){ // public AjaxResult enterpriseByName(String keyword){
Map<String,Object> params = new HashMap<>(); // Map<String,Object> params = new HashMap<>();
params.put("keyword",keyword); // params.put("keyword",keyword);
Map<String, Object> map = dskOpenApiUtil.requestBody("/nationzj/enterprice/findByName", params); // Map<String, Object> map = dskOpenApiUtil.requestBody("/nationzj/enterprice/findByName", params);
return BeanUtil.toBean(map, AjaxResult.class); // return BeanUtil.toBean(map, AjaxResult.class);
} // }
//
@Override // @Override
public AjaxResult bondProjectPage(JSONObject object) { // public AjaxResult bondProjectPage(JSONObject object) {
Map<String, Object> map = dskOpenApiUtil.requestBody("/nationzj/bondProject/page", object); // Map<String, Object> map = dskOpenApiUtil.requestBody("/nationzj/bondProject/page", object);
return BeanUtil.toBean(map, AjaxResult.class); // return BeanUtil.toBean(map, AjaxResult.class);
} // }
//
@Override // @Override
public AjaxResult jskBidPlanPage(JSONObject object) { // public AjaxResult jskBidPlanPage(JSONObject object) {
Map<String, Object> map = dskOpenApiUtil.requestBody("/nationzj/jskBidPlan/page",object); // Map<String, Object> map = dskOpenApiUtil.requestBody("/nationzj/jskBidPlan/page",object);
return BeanUtil.toBean(map, AjaxResult.class); // return BeanUtil.toBean(map, AjaxResult.class);
} // }
//
@Override // @Override
public AjaxResult getCapitalSourceSelect() { // public AjaxResult getCapitalSourceSelect() {
Map<String, Object> map = dskOpenApiUtil.requestBody("/nationzj/jskBidPlan/getCapitalSourceSelect", null); // Map<String, Object> map = dskOpenApiUtil.requestBody("/nationzj/jskBidPlan/getCapitalSourceSelect", null);
return BeanUtil.toBean(map, AjaxResult.class); // return BeanUtil.toBean(map, AjaxResult.class);
} // }
//
@Override // @Override
public AjaxResult keywordList() { // public AjaxResult keywordList() {
Map<String, Object> map = dskOpenApiUtil.requestBody("/nationzj/project/keywordList", null); // Map<String, Object> map = dskOpenApiUtil.requestBody("/nationzj/project/keywordList", null);
return BeanUtil.toBean(map, AjaxResult.class); // return BeanUtil.toBean(map, AjaxResult.class);
} // }
//
@Override // @Override
public AjaxResult bidSourceList(JSONObject object) { // public AjaxResult bidSourceList(JSONObject object) {
Map<String, Object> map = dskOpenApiUtil.requestBody("/nationzj/jskBid/source",object); // Map<String, Object> map = dskOpenApiUtil.requestBody("/nationzj/jskBid/source",object);
return BeanUtil.toBean(map, AjaxResult.class); // return BeanUtil.toBean(map, AjaxResult.class);
} // }
} //}
package com.dsk.web.controller.search.service.impl; //package com.dsk.web.controller.search.service.impl;
//
import cn.hutool.core.bean.BeanUtil; //import cn.hutool.core.bean.BeanUtil;
import com.alibaba.fastjson2.JSONObject; //import com.alibaba.fastjson2.JSONObject;
import com.dsk.common.core.domain.AjaxResult; //import com.dsk.common.core.domain.AjaxResult;
import com.dsk.common.core.domain.R; //import com.dsk.common.core.domain.R;
import com.dsk.common.dtos.ComposeQueryDto; //import com.dsk.common.dtos.ComposeQueryDto;
import com.dsk.common.utils.DskOpenApiUtil; //import com.dsk.common.utils.DskOpenApiUtil;
import com.dsk.common.utils.http.HttpUtils; //import com.dsk.common.utils.http.HttpUtils;
import com.dsk.web.controller.search.service.MarketAnalysisService; //import com.dsk.web.controller.search.service.MarketAnalysisService;
import org.springframework.beans.factory.annotation.Autowired; //import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; //import org.springframework.stereotype.Service;
//
import java.util.Map; //import java.util.Map;
//
/** ///**
* @Author liujie // * @Author liujie
* @ClassName MarketAnalysisServiceImpl // * @ClassName MarketAnalysisServiceImpl
* @Date 2023/5/15 16:40 // * @Date 2023/5/15 16:40
**/ // **/
@Service //@Service
public class MarketAnalysisServiceImpl implements MarketAnalysisService { //public class MarketAnalysisServiceImpl implements MarketAnalysisService {
//
@Autowired // @Autowired
private DskOpenApiUtil dskOpenApiUtil; // private DskOpenApiUtil dskOpenApiUtil;
@Override // @Override
public AjaxResult areaGroupByProvince() { // public AjaxResult areaGroupByProvince() {
Map<String, Object> map = dskOpenApiUtil.requestBody("/nationzj/marketAnalysis/areaGroupByProvince", null); // Map<String, Object> map = dskOpenApiUtil.requestBody("/nationzj/marketAnalysis/areaGroupByProvince", null);
return BeanUtil.toBean(map, AjaxResult.class); // return BeanUtil.toBean(map, AjaxResult.class);
} // }
//
@Override // @Override
public AjaxResult certGroupByMajorAndLevel() { // public AjaxResult certGroupByMajorAndLevel() {
Map<String, Object> map = dskOpenApiUtil.requestBody("/nationzj/marketAnalysis/certGroupByMajorAndLevel", null); // Map<String, Object> map = dskOpenApiUtil.requestBody("/nationzj/marketAnalysis/certGroupByMajorAndLevel", null);
return BeanUtil.toBean(map, AjaxResult.class); // return BeanUtil.toBean(map, AjaxResult.class);
} // }
//
//
@Override // @Override
public AjaxResult certGroupByMajorProvinceLevel() { // public AjaxResult certGroupByMajorProvinceLevel() {
Map<String, Object> map = dskOpenApiUtil.requestBody("/nationzj/marketAnalysis/certGroupByMajorProvinceLevel", null); // Map<String, Object> map = dskOpenApiUtil.requestBody("/nationzj/marketAnalysis/certGroupByMajorProvinceLevel", null);
return BeanUtil.toBean(map, AjaxResult.class); // return BeanUtil.toBean(map, AjaxResult.class);
} // }
//
//
@Override // @Override
public AjaxResult bidMoneyGroupByProjectType(JSONObject object) { // public AjaxResult bidMoneyGroupByProjectType(JSONObject object) {
Map<String, Object> map = dskOpenApiUtil.requestBody("/nationzj/marketAnalysis/bidMoneyGroupByProjectType", object); // Map<String, Object> map = dskOpenApiUtil.requestBody("/nationzj/marketAnalysis/bidMoneyGroupByProjectType", object);
return BeanUtil.toBean(map, AjaxResult.class); // return BeanUtil.toBean(map, AjaxResult.class);
} // }
//
@Override // @Override
public AjaxResult bidGroupCountByProjectType(JSONObject object) { // public AjaxResult bidGroupCountByProjectType(JSONObject object) {
Map<String, Object> map = dskOpenApiUtil.requestBody("/nationzj/marketAnalysis/bidGroupCountByProjectType", object); // Map<String, Object> map = dskOpenApiUtil.requestBody("/nationzj/marketAnalysis/bidGroupCountByProjectType", object);
return BeanUtil.toBean(map, AjaxResult.class); // return BeanUtil.toBean(map, AjaxResult.class);
} // }
//
@Override // @Override
public AjaxResult countGroupByProvince(JSONObject object) { // public AjaxResult countGroupByProvince(JSONObject object) {
Map<String, Object> map = dskOpenApiUtil.requestBody("/nationzj/marketAnalysis/countGroupByProvince", object); // Map<String, Object> map = dskOpenApiUtil.requestBody("/nationzj/marketAnalysis/countGroupByProvince", object);
return BeanUtil.toBean(map, AjaxResult.class); // return BeanUtil.toBean(map, AjaxResult.class);
} // }
//
@Override // @Override
public AjaxResult countGroupByMonth(JSONObject object) { // public AjaxResult countGroupByMonth(JSONObject object) {
Map<String, Object> map = dskOpenApiUtil.requestBody("/nationzj/marketAnalysis/countGroupByMonth", object); // Map<String, Object> map = dskOpenApiUtil.requestBody("/nationzj/marketAnalysis/countGroupByMonth", object);
return BeanUtil.toBean(map, AjaxResult.class); // return BeanUtil.toBean(map, AjaxResult.class);
} // }
} //}
...@@ -194,11 +194,11 @@ xss: ...@@ -194,11 +194,11 @@ xss:
dsk: dsk:
open: open:
endPoint: 120.27.13.145:8865 # endPoint: 120.27.13.145:8865
accessKeyId: aec7b3ff2y2q8x6t49a7e2c463ce21912
accessKeySecret: ee8a53c7ea04eb3ac311406c8f56f95b
protocol: http
# endPoint: openapi.jiansheku.com
# accessKeyId: aec7b3ff2y2q8x6t49a7e2c463ce21912 # accessKeyId: aec7b3ff2y2q8x6t49a7e2c463ce21912
# accessKeySecret: ee8a53c7ea04eb3ac311406c8f56f95b # accessKeySecret: ee8a53c7ea04eb3ac311406c8f56f95b
# protocol: https # protocol: http
endPoint: openapi.jiansheku.com
accessKeyId: aec7b3ff2y2q8x6t49a7e2c463ce21912
accessKeySecret: ee8a53c7ea04eb3ac311406c8f56f95b
protocol: https
spring: spring:
profiles: profiles:
active: pre active: test
# MyBatisPlus配置 # MyBatisPlus配置
# https://baomidou.com/config/ # https://baomidou.com/config/
......
...@@ -164,6 +164,28 @@ public class BusinessInfo extends BaseEntity ...@@ -164,6 +164,28 @@ public class BusinessInfo extends BaseEntity
/** 主管单位联系电话 */ /** 主管单位联系电话 */
@Excel(name = "主管单位联系电话") @Excel(name = "主管单位联系电话")
private String supervisorPhone; private String supervisorPhone;
/** 建设单位城投id */
@Excel(name = "建设单位城投id")
private String constructionUnitUipId;
/** 建设单位建设库id */
@Excel(name = "建设单位建设库id")
private Integer constructionUnitCid;
public String getConstructionUnitUipId() {
return constructionUnitUipId;
}
public void setConstructionUnitUipId(String constructionUnitUipId) {
this.constructionUnitUipId = constructionUnitUipId;
}
public Integer getConstructionUnitCid() {
return constructionUnitCid;
}
public void setConstructionUnitCid(Integer constructionUnitCid) {
this.constructionUnitCid = constructionUnitCid;
}
public String getConstructionUnit() { public String getConstructionUnit() {
return constructionUnit; return constructionUnit;
...@@ -514,6 +536,8 @@ public class BusinessInfo extends BaseEntity ...@@ -514,6 +536,8 @@ public class BusinessInfo extends BaseEntity
.append("supervisorUnit", getSupervisorUnit()) .append("supervisorUnit", getSupervisorUnit())
.append("supervisorPrincipal", getSupervisorPrincipal()) .append("supervisorPrincipal", getSupervisorPrincipal())
.append("supervisorPhone", getSupervisorPhone()) .append("supervisorPhone", getSupervisorPhone())
.append("constructionUnitUipId", getConstructionUnitUipId())
.append("constructionUnitCid", getConstructionUnitCid())
.toString(); .toString();
} }
} }
...@@ -2,14 +2,11 @@ package com.dsk.common.core.domain.entity; ...@@ -2,14 +2,11 @@ package com.dsk.common.core.domain.entity;
import com.dsk.common.annotation.Excel; import com.dsk.common.annotation.Excel;
import com.dsk.common.core.domain.BaseEntity; import com.dsk.common.core.domain.BaseEntity;
import com.dsk.common.utils.CheckUtils;
import lombok.Data; import lombok.Data;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle; import org.apache.commons.lang3.builder.ToStringStyle;
import javax.validation.constraints.Pattern;
/** /**
* 项目关联单位对象 business_relate_company * 项目关联单位对象 business_relate_company
* *
...@@ -29,10 +26,14 @@ public class BusinessRelateCompany extends BaseEntity ...@@ -29,10 +26,14 @@ public class BusinessRelateCompany extends BaseEntity
@Excel(name = "项目id") @Excel(name = "项目id")
private Integer businessId; private Integer businessId;
/** 单位id */ /** 单位建设库id */
@Excel(name = "单位id") @Excel(name = "单位建设库id")
private Integer companyId; private Integer companyId;
/** 单位城投id */
@Excel(name = "单位城投id")
private String companyUipId;
/** 单位名称 */ /** 单位名称 */
@Excel(name = "单位名称") @Excel(name = "单位名称")
private String companyName; private String companyName;
...@@ -71,6 +72,7 @@ public class BusinessRelateCompany extends BaseEntity ...@@ -71,6 +72,7 @@ public class BusinessRelateCompany extends BaseEntity
.append("updateTime", getUpdateTime()) .append("updateTime", getUpdateTime())
.append("depth", getDepth()) .append("depth", getDepth())
.append("companyType", getCompanyType()) .append("companyType", getCompanyType())
.append("companyUipId", getCompanyUipId())
.toString(); .toString();
} }
......
package com.dsk.common.core.domain.entity; package com.dsk.common.core.domain.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dsk.common.annotation.Excel; import com.dsk.common.annotation.Excel;
import com.dsk.common.core.domain.BaseEntity; import com.dsk.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle; import org.apache.commons.lang3.builder.ToStringStyle;
...@@ -11,11 +17,16 @@ import org.apache.commons.lang3.builder.ToStringStyle; ...@@ -11,11 +17,16 @@ import org.apache.commons.lang3.builder.ToStringStyle;
* @author lxl * @author lxl
* @date 2023-05-17 * @date 2023-05-17
*/ */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("business_user")
public class BusinessUser extends BaseEntity public class BusinessUser extends BaseEntity
{ {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/** $column.columnComment */ /** $column.columnComment */
@TableId(value = "id",type = IdType.INPUT)
private Integer id; private Integer id;
/** 项目id(business_info表id) */ /** 项目id(business_info表id) */
...@@ -24,76 +35,17 @@ public class BusinessUser extends BaseEntity ...@@ -24,76 +35,17 @@ public class BusinessUser extends BaseEntity
/** 部门id */ /** 部门id */
@Excel(name = "部门id") @Excel(name = "部门id")
private Integer deptId; private Long deptId;
/** 用户id */ /** 用户id */
@Excel(name = "用户id") @Excel(name = "用户id")
private Integer userId; private Long userId;
/** 是否创建人(1 是,0 否) */ /** 是否创建人(1 是,0 否) */
@Excel(name = "是否创建人(1 是,0 否)") @Excel(name = "是否创建人(1 是,0 否)")
private Integer isFounder; private Integer isFounder;
public void setId(Integer id) public BusinessUser(Integer businessId, Long deptId, Long userId, Integer isFounder) {
{
this.id = id;
}
public Integer getId()
{
return id;
}
public void setBusinessId(Integer businessId)
{
this.businessId = businessId;
}
public Integer getBusinessId()
{
return businessId;
}
public void setDeptId(Integer deptId)
{
this.deptId = deptId;
}
public Integer getDeptId()
{
return deptId;
}
public void setUserId(Integer userId)
{
this.userId = userId;
}
public Integer getUserId()
{
return userId;
}
public void setIsFounder(Integer isFounder)
{
this.isFounder = isFounder;
}
public Integer getIsFounder()
{
return isFounder;
}
@Override
public String toString() {
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("businessId", getBusinessId())
.append("deptId",getDeptId() )
.append("userId", getUserId())
.append("isFounder", getIsFounder())
.append("createTime", getCreateTime())
.append("updateTime", getUpdateTime())
.toString();
}
public BusinessUser(Integer businessId, Integer deptId, Integer userId, Integer isFounder) {
this.businessId = businessId; this.businessId = businessId;
this.deptId = deptId; this.deptId = deptId;
this.userId = userId; this.userId = userId;
......
...@@ -21,6 +21,8 @@ public class EnterpriseInvestmentBody extends BasePage { ...@@ -21,6 +21,8 @@ public class EnterpriseInvestmentBody extends BasePage {
private Integer hasBid; private Integer hasBid;
private double stockPercentageMin; private double stockPercentageMin;
private double stockPercentageMax; private double stockPercentageMax;
//搜索-企业名称
private String keyword;
public boolean isVaildCid() { public boolean isVaildCid() {
return 0 == cid; return 0 == cid;
......
...@@ -158,6 +158,15 @@ export function addXGQY(param) { ...@@ -158,6 +158,15 @@ export function addXGQY(param) {
}) })
} }
//编辑相关企业
export function saveXGQY(param) {
return request({
url: '/business/company/edit',
method: 'POST',
data:param
})
}
//删除相关企业 //删除相关企业
export function delXGQY(param) { export function delXGQY(param) {
return request({ return request({
......
...@@ -524,15 +524,15 @@ ul, li { ...@@ -524,15 +524,15 @@ ul, li {
line-height: 50px; line-height: 50px;
height: 50px; height: 50px;
} }
.el-tabs__item.is-disabled {
color: #C0C4CC;
cursor: not-allowed;
}
.is-active{ .is-active{
color: #0081FF; color: #0081FF;
font-weight: bold; font-weight: bold;
} }
} }
.el-tabs__item.is-disabled {
color: #C0C4CC;
cursor: not-allowed;
}
//按钮 //按钮
.btn{ .btn{
margin-left: 8px; margin-left: 8px;
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
box-shadow: 0px 0px 8px 0px rgba(0,0,0,0.12); box-shadow: 0px 0px 8px 0px rgba(0,0,0,0.12);
border-radius: 2px; border-radius: 2px;
position: absolute; position: absolute;
z-index: 3; z-index: 20;
text-align: center; text-align: center;
.words{ .words{
padding: 24px 0; padding: 24px 0;
...@@ -500,6 +500,12 @@ ...@@ -500,6 +500,12 @@
width: 80px; width: 80px;
} }
} }
.row.i{
.el-form-item__label{
line-height: 18px;
text-align: left;
}
}
} }
.popform.i{ .popform.i{
.el-input{ .el-input{
...@@ -907,6 +913,9 @@ ...@@ -907,6 +913,9 @@
.xz{ .xz{
opacity: 0.8; opacity: 0.8;
} }
.xg{
//color: #FF3C3C;
}
.sc{ .sc{
color: #FF3C3C; color: #FF3C3C;
} }
......
...@@ -104,7 +104,7 @@ ...@@ -104,7 +104,7 @@
label="注册资本金(万元)" label="注册资本金(万元)"
width="140"> width="140">
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.registerCapital || '--'}} <span v-if="scope.row.registerCapital && scope.row.registerCapital>0">{{scope.row.registerCapital}}</span><span v-else>--</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
......
...@@ -93,7 +93,7 @@ ...@@ -93,7 +93,7 @@
label="注册资本金(万元)" label="注册资本金(万元)"
width="140"> width="140">
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.registerCapital || '--'}} <span v-if="scope.row.registerCapital && scope.row.registerCapital>0">{{scope.row.registerCapital}}</span><span v-else>--</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
</div> </div>
</div> </div>
<div class="flex"> <div class="flex">
<el-card class="box-card noborder left" style="position: relative"> <el-card class="box-card noborder left" style="position: relative;padding-bottom: 0">
<div class="cardtitles">客户级别</div> <div class="cardtitles">客户级别</div>
<div class="chartsum"> <div class="chartsum">
<div class="sum">23家</div> <div class="sum">23家</div>
...@@ -67,7 +67,7 @@ ...@@ -67,7 +67,7 @@
</el-card> </el-card>
<el-card class="box-card noborder right"> <el-card class="box-card noborder right" style="padding-bottom: 0">
<div class="cardtitles">客户跟进动态 <div class="cardtitles">客户跟进动态
<div class="labels"> <div class="labels">
<div :class="{'on':datatype==1}" @click="getDT(1)">周</div> <div :class="{'on':datatype==1}" @click="getDT(1)">周</div>
...@@ -259,11 +259,11 @@ ...@@ -259,11 +259,11 @@
{ {
name: '', name: '',
type: 'bar', type: 'bar',
barWidth: '12px', barWidth: '18px',
data: [100, 152, 200, 334, 390, 330, 220,256,178], data: [100, 152, 200, 334, 390, 330, 220,256,178],
itemStyle:{ itemStyle:{
normal: { normal: {
barBorderRadius: [4, 4, 0, 0], barBorderRadius: [9, 9, 0, 0],
color: '#165DFF' color: '#165DFF'
} }
} }
...@@ -316,11 +316,11 @@ ...@@ -316,11 +316,11 @@
{ {
name: '', name: '',
type: 'bar', type: 'bar',
barWidth: '12px', barWidth: '18px',
data: [110, 112, 190, 234, 310, 350, 220,276,198], data: [110, 112, 190, 234, 310, 350, 220,276,198],
itemStyle:{ itemStyle:{
normal:{ normal:{
barBorderRadius:[4,4,0,0], barBorderRadius:[9,9,0,0],
color:'#14C9C9' color:'#14C9C9'
}, },
} }
...@@ -367,7 +367,7 @@ ...@@ -367,7 +367,7 @@
left:'8%', left:'8%',
top:'8%', top:'8%',
right:'5%', right:'5%',
bottom:'10%', bottom:'42px',
}, },
tooltip:{ tooltip:{
axisPointer:{ //悬浮于圆点展示标签 axisPointer:{ //悬浮于圆点展示标签
......
...@@ -107,7 +107,7 @@ export default { ...@@ -107,7 +107,7 @@ export default {
{title: '商务信息', pathName: 'business'}, {title: '商务信息', pathName: 'business'},
{title: '招标偏好', pathName: 'preference'}, {title: '招标偏好', pathName: 'preference'},
{title: '合作情况', pathName: 'cooperate'}, {title: '合作情况', pathName: 'cooperate'},
{title: '决策链条', pathName: 'decisionMaking'}, {title: '联系人', pathName: 'decisionMaking'},
{title: '跟进记录', pathName: 'gjjl'} {title: '跟进记录', pathName: 'gjjl'}
], ],
defaultRoute: [], defaultRoute: [],
......
...@@ -266,6 +266,17 @@ export default { ...@@ -266,6 +266,17 @@ export default {
this.ifEmpty = true this.ifEmpty = true
} }
this.tableData = res.rows this.tableData = res.rows
this.tableData.forEach(item=>{
let investmentAmount = item.investmentAmount
if(investmentAmount){
investmentAmount = parseFloat(investmentAmount)
if(investmentAmount<=0){
item.investmentAmount = null
}
}else{
item.investmentAmount = null
}
})
this.tableDataTotal = res.total this.tableDataTotal = res.total
this.tableLoading = false this.tableLoading = false
} }
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
<!-- 弹窗添加联系人 --> <!-- 弹窗添加联系人 -->
<el-dialog <el-dialog
class="popups1" class="popups"
:visible.sync="dialogVisible" :visible.sync="dialogVisible"
:before-close="cancel" :before-close="cancel"
width="464px"> width="464px">
...@@ -41,25 +41,28 @@ ...@@ -41,25 +41,28 @@
<img src="@/assets/images/economies/icon.png"> <img src="@/assets/images/economies/icon.png">
<span>{{ companyInfo && companyInfo.companyName || customerInfo.companyName }}</span> <span>{{ companyInfo && companyInfo.companyName || customerInfo.companyName }}</span>
</div> </div>
<el-form :model="addRorm" :rules="addRules" ref="addRorm" class="popform" label-width="90px"> <el-form :model="addRorm" :rules="addRules" ref="addRorm" class="popform" label-width="137px">
<el-form-item label="姓名:" prop="name"> <el-form-item label="联系人姓名:" prop="name" class="row">
<el-input v-model="addRorm.name" placeholder="请输入"></el-input> <el-input v-model="addRorm.name" placeholder="请输入"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="角色:" prop="role"> <el-form-item label="联系人性别:" class="row">
<el-radio-group v-model="addRorm.sex">
<el-radio label=1></el-radio>
<el-radio label=0></el-radio>
</el-radio-group>
</el-form-item>
<el-form-item label="联系人角色:" prop="role" class="row">
<el-input v-model="addRorm.role" placeholder="请输入"></el-input> <el-input v-model="addRorm.role" placeholder="请输入"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="职位:" prop="workUnit"> <el-form-item label="关联企业:" class="row">
<el-input v-model="addRorm.workUnit" placeholder="请输入"></el-input> <el-input type="text" v-model="addRorm.office" placeholder="请输入"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="公司/机关:" prop="position"> <el-form-item label="联系人职位:" prop="workUnit" class="row">
<el-input v-model="addRorm.position" placeholder="请输入"></el-input> <el-input v-model="addRorm.position" placeholder="请输入"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="联系方式:" prop="contactInformation"> <el-form-item label="联系方式:" prop="contactInformation" class="row">
<el-input v-model="addRorm.contactInformation" placeholder="请输入"></el-input> <el-input v-model="addRorm.contactInformation" placeholder="请输入"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="备注:" prop="remark">
<el-input v-model="addRorm.remark" placeholder="请输入"></el-input>
</el-form-item>
<div class="popbot"> <div class="popbot">
<div class="btn btn_cancel h32" @click="cancel">返回</div> <div class="btn btn_cancel h32" @click="cancel">返回</div>
<div class="btn btn_primary h32" @click="add">保存</div> <div class="btn btn_primary h32" @click="add">保存</div>
...@@ -93,20 +96,21 @@ export default { ...@@ -93,20 +96,21 @@ export default {
forData: [ forData: [
{label: '姓名', prop: 'name', width: '124'}, {label: '姓名', prop: 'name', width: '124'},
{label: '角色', prop: 'role', width: '110'}, {label: '角色', prop: 'role', width: '110'},
{label: '公司/机关', prop: 'position', width: '268'}, // {label: '公司/机关', prop: 'position', width: '268'},
{label: '职位', prop: 'workUnit', width: '110'}, {label: '职位', prop: 'position', width: '110'},
{label: '联系方式', prop: 'contactInformation', width: '105'}, {label: '联系方式', prop: 'contactInformation', width: '105'},
{label: '内部维护人', prop: 'updateBy', width: '100'}, {label: '内部维护人', prop: 'updateBy', width: '100'},
{label: '备注', prop: 'remark'}, {label: '来源', prop: 'remark'},
], ],
addRorm: { addRorm: {
customerId:this.customerIds, customerId:this.customerIds,
name:'', name:'',
role:'', role:'',
workUnit:'', sex:"1",
position:'', position:'',
// position:'',
contactInformation:'', contactInformation:'',
remark:'', // remark:'',
}, },
addRules:{ addRules:{
name: [ name: [
...@@ -151,7 +155,9 @@ export default { ...@@ -151,7 +155,9 @@ export default {
add(){ add(){
this.$refs.addRorm.validate((valid) => { this.$refs.addRorm.validate((valid) => {
if (valid) { if (valid) {
addChain(this.addRorm).then((res) => { let param = JSON.parse(JSON.stringify(this.addRorm))
param.sex = parseInt(param.sex)
addChain(param).then((res) => {
if(res.data){ if(res.data){
this.$message({ this.$message({
message: '新增成功', message: '新增成功',
...@@ -263,59 +269,59 @@ export default { ...@@ -263,59 +269,59 @@ export default {
margin-top: 10px; margin-top: 10px;
} }
// 弹窗 // 弹窗
.popups1{ /*.popups1{*/
.poptitle { /*.poptitle {*/
line-height: 48px; /*line-height: 48px;*/
border-bottom: 1px solid #E1E1E1; /*border-bottom: 1px solid #E1E1E1;*/
height: 48px; /*height: 48px;*/
position: absolute; /*position: absolute;*/
top: 0; /*top: 0;*/
left: 0; /*left: 0;*/
width: 100%; /*width: 100%;*/
img { /*img {*/
width: 17px; /*width: 17px;*/
margin: 16px; /*margin: 16px;*/
float: left; /*float: left;*/
} /*}*/
span { /*span {*/
font-weight: bold; /*font-weight: bold;*/
font-size: 16px; /*font-size: 16px;*/
color: #232323; /*color: #232323;*/
font-family: Microsoft YaHei-Bold, Microsoft YaHei; /*font-family: Microsoft YaHei-Bold, Microsoft YaHei;*/
width: 385px; /*width: 385px;*/
display: block; /*display: block;*/
overflow: hidden; /*overflow: hidden;*/
white-space: nowrap; /*white-space: nowrap;*/
text-overflow: ellipsis; /*text-overflow: ellipsis;*/
} /*}*/
} /*}*/
::v-deep .el-dialog__body{ /*::v-deep .el-dialog__body{*/
padding: 24px 24px 18px; /*padding: 24px 24px 18px;*/
} /*}*/
.popform { /*.popform {*/
padding-top: 14px; /*padding-top: 14px;*/
::v-deep .el-form-item__label{ /*::v-deep .el-form-item__label{*/
padding:0; /*padding:0;*/
} /*}*/
.row { /*.row {*/
padding-bottom: 16px; /*padding-bottom: 16px;*/
.left { /*.left {*/
width: 137px; /*width: 137px;*/
display: inline-block; /*display: inline-block;*/
text-align: right; /*text-align: right;*/
opacity: 0.8; /*opacity: 0.8;*/
} /*}*/
::v-deep .el-input { /*::v-deep .el-input {*/
display: inline-block; /*display: inline-block;*/
width: 240px; /*width: 240px;*/
} /*}*/
} /*}*/
.popbot { /*.popbot {*/
text-align: right; /*text-align: right;*/
padding-top: 8px; /*padding-top: 8px;*/
} /*}*/
} /*}*/
} /*}*/
} }
::v-deep .el-table__fixed::before, ::v-deep .el-table__fixed-right::before{ ::v-deep .el-table__fixed::before, ::v-deep .el-table__fixed-right::before{
background-color:unset; background-color:unset;
......
...@@ -61,6 +61,7 @@ export default { ...@@ -61,6 +61,7 @@ export default {
], ],
formData: [ formData: [
{ type: 3, fieldName: 'keys', value: '', placeholder: '输入项目名称关键词查询', options: [], width: 220}, { type: 3, fieldName: 'keys', value: '', placeholder: '输入项目名称关键词查询', options: [], width: 220},
{ type: 4, fieldName: 'isProjcet', value: '', placeholder: '是否为民间推介项目', options: []},
], ],
//列表 //列表
tableLoading:false, tableLoading:false,
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<div class="app-container detail-container"> <div class="app-container detail-container">
<el-tabs v-model="activeName" @tab-click="handleClick" class="detail-tab"> <el-tabs v-model="activeName" @tab-click="handleClick" class="detail-tab">
<el-tab-pane label="工商信息" name="first"></el-tab-pane> <el-tab-pane label="工商信息" name="first"></el-tab-pane>
<el-tab-pane label="工商变更" name="second"></el-tab-pane> <el-tab-pane label="工商变更" :disabled="tableDataTotal>0" name="second"></el-tab-pane>
</el-tabs> </el-tabs>
...@@ -91,11 +91,13 @@ export default { ...@@ -91,11 +91,13 @@ export default {
], ],
//列表 //列表
tableLoading:false, tableLoading:false,
tableData:[] tableData:[],
tableDataTotal:0
} }
}, },
created() { created() {
this.handleQuery() this.handleQuery();
this.handleQuery1();
}, },
methods: { methods: {
handleClick(){ handleClick(){
...@@ -103,13 +105,20 @@ export default { ...@@ -103,13 +105,20 @@ export default {
}, },
async handleQuery() { async handleQuery() {
this.tableLoading = true this.tableLoading = true
let param = this.activeName == 'first' ? this.baseParams : this.queryParams let param = this.baseParams;
let res = this.activeName == 'first' ? await icInfo(param) : await changeInfo(param) let res = await icInfo(param);
this.tableLoading = false this.tableLoading = false
if(res.code==200){ if(res.code==200){
this.activeName == 'first' ? this.forInfo = res.data : this.tableData = res.rows this.forInfo = res.data
}
},
async handleQuery1() {
let param = this.queryParams
let res = await changeInfo(param)
if(res.code==200){
this.tableData = res.rows;
this.tableDataTotal = res.total
} }
this.activeName == 'first' ? '' : this.tableDataTotal = res.total
}, },
showRegion(region){ showRegion(region){
if(region) { if(region) {
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<div class="common-title">关系企业</div> <div class="common-title">关系企业</div>
<el-tabs v-model="activeName" @tab-click="handleClick" class="tabpane selfTab"> <el-tabs v-model="activeName" @tab-click="handleClick" class="tabpane selfTab">
<el-tab-pane label="股东" name="first"></el-tab-pane> <el-tab-pane label="股东" name="first"></el-tab-pane>
<el-tab-pane label="对外投资" name="second"></el-tab-pane> <el-tab-pane label="对外投资" :disabled="shipTotal<1" name="second"></el-tab-pane>
<el-tab-pane label="分支机构" :disabled="affiliatesTotal<1" name="third"></el-tab-pane> <el-tab-pane label="分支机构" :disabled="affiliatesTotal<1" name="third"></el-tab-pane>
</el-tabs> </el-tabs>
<div class="table-item"> <div class="table-item">
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
/> />
<el-tabs v-model="activeName" @tab-click="handleClick" class="detail-tab"> <el-tabs v-model="activeName" @tab-click="handleClick" class="detail-tab">
<el-tab-pane label="股东信息" name="first"></el-tab-pane> <el-tab-pane label="股东信息" name="first"></el-tab-pane>
<el-tab-pane label="历史股东" name="second"></el-tab-pane> <el-tab-pane label="历史股东" :disabled="disabled" name="second"></el-tab-pane>
</el-tabs> </el-tabs>
<tables <tables
...@@ -65,11 +65,13 @@ export default { ...@@ -65,11 +65,13 @@ export default {
tableLoading:false, tableLoading:false,
tableData:[], tableData:[],
tableDataTotal:0, tableDataTotal:0,
disabled:false,
labelArr:['失信联合惩戒企业','严重行政处罚','司法纠纷','注销', '注销企业'], labelArr:['失信联合惩戒企业','严重行政处罚','司法纠纷','注销', '注销企业'],
} }
}, },
created() { created() {
this.handleQuery() this.handleQuery();
this.handleQuery1();
}, },
methods: { methods: {
handleClick(){ handleClick(){
...@@ -85,6 +87,17 @@ export default { ...@@ -85,6 +87,17 @@ export default {
this.tableData = res.rows this.tableData = res.rows
} }
this.tableDataTotal = res.total this.tableDataTotal = res.total
},
async handleQuery1(params) {
let param = params?params:this.queryParams
param.isHistory = 1
let res = await bestStockPage(param)
this.tableLoading = false
if(res.code==200){
if(res.total<1){
this.disabled = true
}
}
} }
} }
} }
......
...@@ -82,7 +82,8 @@ export default { ...@@ -82,7 +82,8 @@ export default {
{name:'不到5%',value:'0~0.05'} {name:'不到5%',value:'0~0.05'}
], ],
width: 130 width: 130
} },
{ type: 3, fieldName: 'investName', value: '', placeholder: '输入企业名称查询'},
], ],
//列表 //列表
tableLoading:false, tableLoading:false,
......
...@@ -253,7 +253,6 @@ export default { ...@@ -253,7 +253,6 @@ export default {
weekdata1.length = time weekdata1.length = time
weekdata2.length = time weekdata2.length = time
weekdata3.length = time weekdata3.length = time
console.log(time)
for(var i=0;i<7;i++){ for(var i=0;i<7;i++){
if(i > time){ if(i > time){
weekdata1.push('') weekdata1.push('')
...@@ -304,8 +303,6 @@ export default { ...@@ -304,8 +303,6 @@ export default {
default: default:
break; break;
} }
console.log(datas)
console.log(labels)
this.initDT(datas,labels) this.initDT(datas,labels)
}, },
resizeEcharts (){ resizeEcharts (){
...@@ -350,8 +347,8 @@ export default { ...@@ -350,8 +347,8 @@ export default {
// trigger: 'axis' // trigger: 'axis'
}, },
legend: { legend: {
right: '20px', right: '155px',
top:"30px", top:"2px",
data: ['成交金额', '储备项目', '跟进动态'], data: ['成交金额', '储备项目', '跟进动态'],
itemHeight: 8, // 修改icon图形大小 itemHeight: 8, // 修改icon图形大小
itemGap: 20 itemGap: 20
......
...@@ -12,7 +12,10 @@ ...@@ -12,7 +12,10 @@
</div> </div>
<el-form class="popform j" :model="queryParam" :rules="rules" ref="ruleForm" label-width="130px"> <el-form class="popform j" :model="queryParam" :rules="rules" ref="ruleForm" label-width="130px">
<el-form-item label="项目名称:" class="row" prop="projectName"> <el-form-item label="项目名称:" class="row" prop="projectName">
<el-input type="text" placeholder="请输入" v-model="queryParam.projectName"></el-input> <el-input type="text" placeholder="请输入" v-model="queryParam.projectName" @input="getProject"></el-input>
<div class="resultlist" v-if="proList.length>0" id="box1">
<div v-for="(item,index) in proList" @click="selProject(item)"><span v-html="item"></span></div>
</div>
</el-form-item> </el-form-item>
<el-form-item label="业主单位:" class="row" prop="ownerCompany"> <el-form-item label="业主单位:" class="row" prop="ownerCompany">
<el-input type="text" placeholder="请输入" v-model="queryParam.ownerCompany" @input="getCompany"></el-input> <el-input type="text" placeholder="请输入" v-model="queryParam.ownerCompany" @input="getCompany"></el-input>
...@@ -56,6 +59,7 @@ ...@@ -56,6 +59,7 @@
<script> <script>
import {getEnterprise,getDictType,} from '@/api/main' import {getEnterprise,getDictType,} from '@/api/main'
import {addProject} from '@/api/project/project' import {addProject} from '@/api/project/project'
import {queryProject} from '@/api/detail/party-a/cooperate'
export default { export default {
name: 'addProject', name: 'addProject',
data(){ data(){
...@@ -90,6 +94,7 @@ ...@@ -90,6 +94,7 @@
projectStage:[],//项目阶段 projectStage:[],//项目阶段
projectType:[],//项目类型 projectType:[],//项目类型
projectCategory:[],//项目类别 projectCategory:[],//项目类别
proList:[],//项目列表
} }
}, },
mounted(){ mounted(){
...@@ -119,6 +124,12 @@ ...@@ -119,6 +124,12 @@
this.showlist = false this.showlist = false
} }
} }
var two = document.getElementById("box1");
if(two){
if(!two.contains(event.target)){
this.proList = []
}
}
}, },
//获取建设库客户 //获取建设库客户
getCompany(value){ getCompany(value){
...@@ -139,11 +150,31 @@ ...@@ -139,11 +150,31 @@
}) })
} }
}, },
//获取项目名称
getProject(value){
if (value.length>=2){
let param = {
projectName:value,
}
queryProject(JSON.stringify(param)).then(result=>{
if(result.code != 200){
this.proList = []
return false
}
this.proList = result.data
})
}
},
selCompany(item){ selCompany(item){
this.queryParam.companyId = item.jskEid this.queryParam.companyId = item.jskEid
this.queryParam.ownerCompany = item.name.replace(/<[^>]+>/g, '') this.queryParam.ownerCompany = item.name.replace(/<[^>]+>/g, '')
this.showlist = false this.showlist = false
}, },
selProject(item){
// this.queryParam.companyId = item.jskEid
// this.queryParam.ownerCompany = item.name.replace(/<[^>]+>/g, '')
this.proList = []
},
//添加客户 //添加客户
submitForm(formName) { submitForm(formName) {
this.queryParam.userId = this.$store.state.user.userId this.queryParam.userId = this.$store.state.user.userId
......
...@@ -64,7 +64,7 @@ ...@@ -64,7 +64,7 @@
</div> </div>
</div> </div>
<div class="con i"> <div class="con i">
<span>建设单位 :</span> <span>业主单位 :</span>
<div class="inputxt" id="inputxt3" :style="{width:rig1}"> <div class="inputxt" id="inputxt3" :style="{width:rig1}">
<div class="flex" v-if="nowedit == 3 && isDisabled == false"> <div class="flex" v-if="nowedit == 3 && isDisabled == false">
<el-input placeholder="待添加" v-model="xmsldata.constructionUnit"></el-input> <el-input placeholder="待添加" v-model="xmsldata.constructionUnit"></el-input>
...@@ -93,7 +93,7 @@ ...@@ -93,7 +93,7 @@
</div> </div>
</div> </div>
<div class="con i"> <div class="con i">
<span>建设单位负责人 :</span> <span>业主单位负责人 :</span>
<div class="inputxt" id="inputxt5"> <div class="inputxt" id="inputxt5">
<div class="flex" v-if="nowedit == 5 && isDisabled == false"> <div class="flex" v-if="nowedit == 5 && isDisabled == false">
<el-input placeholder="待添加" v-model="xmsldata.constructionPrincipal"></el-input> <el-input placeholder="待添加" v-model="xmsldata.constructionPrincipal"></el-input>
...@@ -121,7 +121,7 @@ ...@@ -121,7 +121,7 @@
</div> </div>
</div> </div>
<div class="con i"> <div class="con i">
<span>建设单位联系电话 :</span> <span>业主单位联系电话 :</span>
<div class="inputxt" id="inputxt7"> <div class="inputxt" id="inputxt7">
<div class="flex" v-if="nowedit == 7 && isDisabled == false"> <div class="flex" v-if="nowedit == 7 && isDisabled == false">
<el-input placeholder="待添加" v-model="xmsldata.constructionPhone"></el-input> <el-input placeholder="待添加" v-model="xmsldata.constructionPhone"></el-input>
......
...@@ -129,7 +129,7 @@ ...@@ -129,7 +129,7 @@
<span>项目类型:</span> <span>项目类型:</span>
<span>{{item.projectType}}</span> <span>{{item.projectType}}</span>
</div> </div>
<div class="det-con" v-if="item.investmentAmount"> <div class="det-con" v-if="item.investmentAmount&&item.investmentAmount>0">
<span>投资估算(万元):</span> <span>投资估算(万元):</span>
<span>{{item.investmentAmount}}</span> <span>{{item.investmentAmount}}</span>
</div> </div>
...@@ -139,7 +139,7 @@ ...@@ -139,7 +139,7 @@
</div> </div>
<div class="det-con" v-if="item.ownerCompany "> <div class="det-con" v-if="item.ownerCompany ">
<span>业主单位:</span> <span>业主单位:</span>
<span class="wordprimary">{{item.ownerCompany}}</span> <span class="wordprimary" @click="toEnterprise(item)">{{item.ownerCompany}}</span>
</div> </div>
</div> </div>
<el-divider v-if="index != datalist.length-1"></el-divider> <el-divider v-if="index != datalist.length-1"></el-divider>
...@@ -185,6 +185,7 @@ ...@@ -185,6 +185,7 @@
import addproject from './component/addProject' import addproject from './component/addProject'
import batchimport from './component/batchImport' import batchimport from './component/batchImport'
import skeleton from './component/skeleton' import skeleton from './component/skeleton'
import {encodeStr} from "@/assets/js/common.js"
export default { export default {
name: 'ProjectList', name: 'ProjectList',
components:{addproject,batchimport,skeleton}, components:{addproject,batchimport,skeleton},
...@@ -387,6 +388,13 @@ export default { ...@@ -387,6 +388,13 @@ export default {
toDetail(id,tag){ toDetail(id,tag){
this.$router.push({ path: '/project/projectList/detail', query: {id:id,tag:tag} }); this.$router.push({ path: '/project/projectList/detail', query: {id:id,tag:tag} });
}, },
toEnterprise(item){
if(item.ownerCompanyUipId){
this.$router.push({ path: '/enterprise/'+this.encodeStr(item.ownerCompanyUipId)});
}else{
this.$router.push({ path: '/company/'+this.encodeStr(item.ownerCompanyCid)});
}
},
handleClick(){ handleClick(){
this.reset() this.reset()
}, },
......
...@@ -18,7 +18,7 @@ public class BusinessAddDto { ...@@ -18,7 +18,7 @@ public class BusinessAddDto {
/** /**
* 用户id * 用户id
*/ */
private Integer userId; private Long userId;
/** /**
* 项目类型 * 项目类型
......
...@@ -48,6 +48,16 @@ public class BusinessListVo { ...@@ -48,6 +48,16 @@ public class BusinessListVo {
*/ */
private String ownerCompany; private String ownerCompany;
/**
* 业主单位城投id
*/
private String ownerCompanyUipId;
/**
* 业主单位建设库id
*/
private Integer ownerCompanyCid;
/** /**
* 最后跟进时间 * 最后跟进时间
*/ */
......
...@@ -145,9 +145,35 @@ public class EnterpriseService { ...@@ -145,9 +145,35 @@ public class EnterpriseService {
} }
public TableDataInfo investment(EnterpriseInvestmentBody body) throws Exception { public TableDataInfo investment(EnterpriseInvestmentBody body) throws Exception {
if (body.isVaildCid()) return new TableDataInfo(new ArrayList<>(), 0); if (body.isVaildCid()) {
return new TableDataInfo(new ArrayList<>(), 0);
}
Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterprise/investment", BeanUtil.beanToMap(body, false, false)); Map<String, Object> map = dskOpenApiUtil.requestBody("/operate/enterprise/investment", BeanUtil.beanToMap(body, false, false));
return dskOpenApiUtil.responsePage(map); Integer code = MapUtils.getInteger(map, "code", 300);
if (!code.equals(HttpStatus.OK.value())) {
throw new RuntimeException();
}
Map data = MapUtils.getMap(map, "data", null);
List<Object> list = CommonUtils.assertAsArray(MapUtils.getObject(data, "list", ""));
if (CollectionUtils.isEmpty(list)) {
return new TableDataInfo(list, 0);
}
List<Object> newList = new ArrayList<>(20);
for (Object companyObj : list) {
Map<String, Object> companyMap = CommonUtils.assertAsMap(companyObj);
String businessStatus = MapUtils.getString(companyMap, "businessStatus");
if (!"注销".equals(businessStatus)) {
newList.add(companyMap);
}
}
for (Object companyObj : list) {
Map<String, Object> companyMap = CommonUtils.assertAsMap(companyObj);
String businessStatus = MapUtils.getString(companyMap, "businessStatus");
if ("注销".equals(businessStatus)) {
newList.add(companyMap);
}
}
return new TableDataInfo(newList, MapUtils.getInteger(data, "totalCount", 0));
} }
public TableDataInfo affiliates(EnterpriseAffiliatesBody body) throws Exception { public TableDataInfo affiliates(EnterpriseAffiliatesBody body) throws Exception {
......
...@@ -96,7 +96,7 @@ public interface BusinessInfoMapper extends BaseMapper<BusinessInfo> ...@@ -96,7 +96,7 @@ public interface BusinessInfoMapper extends BaseMapper<BusinessInfo>
* @param userId * @param userId
* @return * @return
*/ */
int isRepetitionProjectName(@Param("projectName") String projectName,@Param("userId") Integer userId); int isRepetitionProjectName(@Param("projectName") String projectName,@Param("userId") Long userId);
int selectCountByStatusAndCustomerId(@Param("status") Integer status,@Param("customerId") String customerId); int selectCountByStatusAndCustomerId(@Param("status") Integer status,@Param("customerId") String customerId);
......
package com.dsk.system.searchService;
import cn.hutool.core.bean.BeanUtil;
import com.alibaba.fastjson2.JSONObject;
import com.dsk.common.core.domain.AjaxResult;
import com.dsk.common.utils.DskOpenApiUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.HashMap;
import java.util.Map;
/**
* @Author liujie
* @ClassName MarketAnalysisServiceImpl
* @Date 2023/5/15 16:40
**/
@Service
public class BusinessOpportunityRadarService {
@Autowired
private DskOpenApiUtil dskOpenApiUtil;
public AjaxResult jskBidNewsPage(JSONObject object) {
Map<String, Object> map = dskOpenApiUtil.requestBody("/nationzj/jskBid/news/page", object);
return BeanUtil.toBean(map, AjaxResult.class);
}
public AjaxResult jskBidTenderPage(JSONObject object) {
Map<String, Object> map = dskOpenApiUtil.requestBody("/nationzj/jskBidTender/page", object);
return BeanUtil.toBean(map, AjaxResult.class);
}
public AjaxResult establishmentPage(JSONObject object) {
Map<String, Object> map = dskOpenApiUtil.requestBody("/nationzj/establishment/page", object);
return BeanUtil.toBean(map, AjaxResult.class);
}
public AjaxResult jskBidPage(JSONObject object) {
Map<String, Object> map = dskOpenApiUtil.requestBody("/nationzj/jskBid/page", object);
return BeanUtil.toBean(map, AjaxResult.class);
}
public AjaxResult landMarketPage(JSONObject object) {
Map<String, Object> map = dskOpenApiUtil.requestBody("/nationzj/landMarket/page", object);
return BeanUtil.toBean(map, AjaxResult.class);
}
public AjaxResult enterpriseIndex(JSONObject object) {
Map<String, Object> map = dskOpenApiUtil.requestBody("/nationzj/enterprice/index", object);
return BeanUtil.toBean(map, AjaxResult.class);
}
public AjaxResult enterprisePage(JSONObject object) {
Map<String, Object> map = dskOpenApiUtil.requestBody("/nationzj/enterprice/page", object);
return BeanUtil.toBean(map, AjaxResult.class);
}
public AjaxResult enterpriseByName(String keyword) {
Map<String, Object> params = new HashMap<>();
params.put("keyword", keyword);
Map<String, Object> map = dskOpenApiUtil.requestBody("/nationzj/enterprice/findByName", params);
return BeanUtil.toBean(map, AjaxResult.class);
}
public AjaxResult bondProjectPage(JSONObject object) {
Map<String, Object> map = dskOpenApiUtil.requestBody("/nationzj/bondProject/page", object);
return BeanUtil.toBean(map, AjaxResult.class);
}
public AjaxResult jskBidPlanPage(JSONObject object) {
Map<String, Object> map = dskOpenApiUtil.requestBody("/nationzj/jskBidPlan/page", object);
return BeanUtil.toBean(map, AjaxResult.class);
}
public AjaxResult getCapitalSourceSelect() {
Map<String, Object> map = dskOpenApiUtil.requestBody("/nationzj/jskBidPlan/getCapitalSourceSelect", null);
return BeanUtil.toBean(map, AjaxResult.class);
}
public AjaxResult keywordList() {
Map<String, Object> map = dskOpenApiUtil.requestBody("/nationzj/project/keywordList", null);
return BeanUtil.toBean(map, AjaxResult.class);
}
public AjaxResult bidSourceList(JSONObject object) {
Map<String, Object> map = dskOpenApiUtil.requestBody("/nationzj/jskBid/source", object);
return BeanUtil.toBean(map, AjaxResult.class);
}
}
package com.dsk.system.searchService;
import cn.hutool.core.bean.BeanUtil;
import com.alibaba.fastjson2.JSONObject;
import com.dsk.common.core.domain.AjaxResult;
import com.dsk.common.utils.DskOpenApiUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.Map;
/**
* @Author liujie
* @ClassName MarketAnalysisServiceImpl
* @Date 2023/5/15 16:40
**/
@Service
public class MarketAnalysisService {
@Autowired
private DskOpenApiUtil dskOpenApiUtil;
public AjaxResult areaGroupByProvince() {
Map<String, Object> map = dskOpenApiUtil.requestBody("/nationzj/marketAnalysis/areaGroupByProvince", null);
return BeanUtil.toBean(map, AjaxResult.class);
}
public AjaxResult certGroupByMajorAndLevel() {
Map<String, Object> map = dskOpenApiUtil.requestBody("/nationzj/marketAnalysis/certGroupByMajorAndLevel", null);
return BeanUtil.toBean(map, AjaxResult.class);
}
public AjaxResult certGroupByMajorProvinceLevel() {
Map<String, Object> map = dskOpenApiUtil.requestBody("/nationzj/marketAnalysis/certGroupByMajorProvinceLevel", null);
return BeanUtil.toBean(map, AjaxResult.class);
}
public AjaxResult bidMoneyGroupByProjectType(JSONObject object) {
Map<String, Object> map = dskOpenApiUtil.requestBody("/nationzj/marketAnalysis/bidMoneyGroupByProjectType", object);
return BeanUtil.toBean(map, AjaxResult.class);
}
public AjaxResult bidGroupCountByProjectType(JSONObject object) {
Map<String, Object> map = dskOpenApiUtil.requestBody("/nationzj/marketAnalysis/bidGroupCountByProjectType", object);
return BeanUtil.toBean(map, AjaxResult.class);
}
public AjaxResult countGroupByProvince(JSONObject object) {
Map<String, Object> map = dskOpenApiUtil.requestBody("/nationzj/marketAnalysis/countGroupByProvince", object);
return BeanUtil.toBean(map, AjaxResult.class);
}
public AjaxResult countGroupByMonth(JSONObject object) {
Map<String, Object> map = dskOpenApiUtil.requestBody("/nationzj/marketAnalysis/countGroupByMonth", object);
return BeanUtil.toBean(map, AjaxResult.class);
}
}
...@@ -10,8 +10,8 @@ import com.dsk.system.domain.vo.BusinessBrowseVo; ...@@ -10,8 +10,8 @@ import com.dsk.system.domain.vo.BusinessBrowseVo;
import com.dsk.system.domain.vo.BusinessListVo; import com.dsk.system.domain.vo.BusinessListVo;
import org.springframework.web.multipart.MultipartFile; import org.springframework.web.multipart.MultipartFile;
import javax.servlet.http.HttpServletResponse;
import java.util.List; import java.util.List;
import java.util.Map;
/** /**
* 项目详情Service接口 * 项目详情Service接口
...@@ -99,4 +99,11 @@ public interface IBusinessInfoService ...@@ -99,4 +99,11 @@ public interface IBusinessInfoService
List<CustomerBusinessListVo> selectCustomerBusinessList(CustomerBusinessSearchDto dto); List<CustomerBusinessListVo> selectCustomerBusinessList(CustomerBusinessSearchDto dto);
/**
* 查询企业的城投id和建设库id
* @param companyName
* @return
*/
Map queryUipIdOrCid (String companyName);
} }
package com.dsk.system.service; package com.dsk.system.service;
import com.dsk.common.core.domain.AjaxResult;
import com.dsk.common.core.domain.entity.BusinessRelateCompany; import com.dsk.common.core.domain.entity.BusinessRelateCompany;
import com.dsk.system.domain.BusinessIdDto; import com.dsk.system.domain.BusinessIdDto;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import java.util.List; import java.util.List;
......
...@@ -39,4 +39,6 @@ public interface ICustomerService { ...@@ -39,4 +39,6 @@ public interface ICustomerService {
boolean historyClaim(String companyName); boolean historyClaim(String companyName);
Customer selectByCompanyNameAndUserId(String companyName);
} }
...@@ -5,12 +5,15 @@ import com.dsk.common.core.domain.entity.BusinessRelateCompany; ...@@ -5,12 +5,15 @@ import com.dsk.common.core.domain.entity.BusinessRelateCompany;
import com.dsk.common.utils.DateUtils; import com.dsk.common.utils.DateUtils;
import com.dsk.system.domain.BusinessIdDto; import com.dsk.system.domain.BusinessIdDto;
import com.dsk.system.mapper.BusinessRelateCompanyMapper; import com.dsk.system.mapper.BusinessRelateCompanyMapper;
import com.dsk.system.service.IBusinessInfoService;
import com.dsk.system.service.IBusinessRelateCompanyService; import com.dsk.system.service.IBusinessRelateCompanyService;
import org.apache.commons.collections4.MapUtils;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.List; import java.util.List;
import java.util.Map;
import java.util.stream.Collectors; import java.util.stream.Collectors;
/** /**
...@@ -24,6 +27,8 @@ public class BusinessRelateCompanyServiceImpl implements IBusinessRelateCompanyS ...@@ -24,6 +27,8 @@ public class BusinessRelateCompanyServiceImpl implements IBusinessRelateCompanyS
{ {
@Resource @Resource
private BusinessRelateCompanyMapper businessRelateCompanyMapper; private BusinessRelateCompanyMapper businessRelateCompanyMapper;
@Resource
private IBusinessInfoService businessInfoService;
/** /**
* 查询项目关联单位 * 查询项目关联单位
...@@ -61,6 +66,14 @@ public class BusinessRelateCompanyServiceImpl implements IBusinessRelateCompanyS ...@@ -61,6 +66,14 @@ public class BusinessRelateCompanyServiceImpl implements IBusinessRelateCompanyS
{ {
// if(!CheckUtils.isPhone(businessRelateCompany.getPhone())) throw new BaseException("500","请输入正确的电话号码"); // if(!CheckUtils.isPhone(businessRelateCompany.getPhone())) throw new BaseException("500","请输入正确的电话号码");
businessRelateCompany.setCreateTime(DateUtils.getNowDate()); businessRelateCompany.setCreateTime(DateUtils.getNowDate());
//查询企业的城投id和建设库id
Map map = businessInfoService.queryUipIdOrCid(businessRelateCompany.getCompanyName());
if(map.containsKey("jskEid")){
businessRelateCompany.setCompanyId(MapUtils.getInteger(map,"jskEid",null));
}else {
businessRelateCompany.setCompanyUipId(MapUtils.getString(map,"uipId",null));
businessRelateCompany.setCompanyId(MapUtils.getInteger(map,"companyId",null));
}
return businessRelateCompanyMapper.insertBusinessRelateCompany(businessRelateCompany); return businessRelateCompanyMapper.insertBusinessRelateCompany(businessRelateCompany);
} }
...@@ -76,6 +89,14 @@ public class BusinessRelateCompanyServiceImpl implements IBusinessRelateCompanyS ...@@ -76,6 +89,14 @@ public class BusinessRelateCompanyServiceImpl implements IBusinessRelateCompanyS
{ {
// if(!CheckUtils.isPhone(businessRelateCompany.getPhone())) throw new BaseException("500","请输入正确的电话号码"); // if(!CheckUtils.isPhone(businessRelateCompany.getPhone())) throw new BaseException("500","请输入正确的电话号码");
businessRelateCompany.setUpdateTime(DateUtils.getNowDate()); businessRelateCompany.setUpdateTime(DateUtils.getNowDate());
//查询企业的城投id和建设库id
Map map = businessInfoService.queryUipIdOrCid(businessRelateCompany.getCompanyName());
if(map.containsKey("jskEid")){
businessRelateCompany.setCompanyId(MapUtils.getInteger(map,"jskEid",null));
}else {
businessRelateCompany.setCompanyUipId(MapUtils.getString(map,"uipId",null));
businessRelateCompany.setCompanyId(MapUtils.getInteger(map,"companyId",null));
}
return businessRelateCompanyMapper.updateBusinessRelateCompany(businessRelateCompany); return businessRelateCompanyMapper.updateBusinessRelateCompany(businessRelateCompany);
} }
......
...@@ -15,6 +15,7 @@ import com.dsk.system.domain.customer.vo.*; ...@@ -15,6 +15,7 @@ import com.dsk.system.domain.customer.vo.*;
import com.dsk.system.dskService.EnterpriseService; import com.dsk.system.dskService.EnterpriseService;
import com.dsk.system.mapper.CustomerMapper; import com.dsk.system.mapper.CustomerMapper;
import com.dsk.system.mapper.CustomerUserMapper; import com.dsk.system.mapper.CustomerUserMapper;
import com.dsk.system.searchService.BusinessOpportunityRadarService;
import com.dsk.system.service.IBusinessInfoService; import com.dsk.system.service.IBusinessInfoService;
import com.dsk.system.service.ICustomerService; import com.dsk.system.service.ICustomerService;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
...@@ -25,6 +26,7 @@ import org.springframework.util.ObjectUtils; ...@@ -25,6 +26,7 @@ import org.springframework.util.ObjectUtils;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.List; import java.util.List;
import java.util.Map;
/** /**
* 客户信息表(Customer)表服务实现类 * 客户信息表(Customer)表服务实现类
...@@ -44,6 +46,8 @@ public class CustomerServiceImpl implements ICustomerService { ...@@ -44,6 +46,8 @@ public class CustomerServiceImpl implements ICustomerService {
private IBusinessInfoService businessInfoService; private IBusinessInfoService businessInfoService;
@Autowired @Autowired
private EnterpriseService enterpriseService; private EnterpriseService enterpriseService;
@Autowired
private BusinessOpportunityRadarService opportunityRadarService;
@Override @Override
public List<CustomerListVo> selectList(CustomerSearchDto dto) { public List<CustomerListVo> selectList(CustomerSearchDto dto) {
...@@ -65,6 +69,7 @@ public class CustomerServiceImpl implements ICustomerService { ...@@ -65,6 +69,7 @@ public class CustomerServiceImpl implements ICustomerService {
@Override @Override
@Transactional(rollbackFor = Exception.class) @Transactional(rollbackFor = Exception.class)
public boolean add(Customer customer) { public boolean add(Customer customer) {
dealWithcustomerData(customer);
if (ObjectUtils.isEmpty(customer.getUipId())) { if (ObjectUtils.isEmpty(customer.getUipId())) {
try { try {
R res = enterpriseService.getUipId(customer.getCompanyName()); R res = enterpriseService.getUipId(customer.getCompanyName());
...@@ -153,6 +158,11 @@ public class CustomerServiceImpl implements ICustomerService { ...@@ -153,6 +158,11 @@ public class CustomerServiceImpl implements ICustomerService {
return updateClaimStatus(companyName, 0); return updateClaimStatus(companyName, 0);
} }
@Override
public Customer selectByCompanyNameAndUserId(String companyName) {
return baseMapper.selectByCompanyNameAndUserId(companyName, SecurityUtils.getUserId());
}
//修改客户认领状态 //修改客户认领状态
private boolean updateClaimStatus(String companyName, Integer status) { private boolean updateClaimStatus(String companyName, Integer status) {
Customer cus = baseMapper.selectByCompanyNameAndUserId(companyName, SecurityUtils.getUserId()); Customer cus = baseMapper.selectByCompanyNameAndUserId(companyName, SecurityUtils.getUserId());
...@@ -167,5 +177,39 @@ public class CustomerServiceImpl implements ICustomerService { ...@@ -167,5 +177,39 @@ public class CustomerServiceImpl implements ICustomerService {
return customerUserMapper.updateById(customerUser) == 1; return customerUserMapper.updateById(customerUser) == 1;
} }
private void dealWithcustomerData(Customer customer) {
if (ObjectUtils.isEmpty(customer.getCompanyName())) throw new BeanException("企业名称不能为空");
if (ObjectUtils.isEmpty(customer.getCompanyId())) {
try {
Map<String, Object> map = opportunityRadarService.enterpriseByName(customer.getCompanyName());
if (!ObjectUtils.isEmpty(map.get("data"))) {
customer.setCompanyId(MapUtil.getInt(BeanUtil.beanToMap(map.get("data")), "jskEid"));
if (ObjectUtils.isEmpty(customer.getLegalPerson())) {
customer.setLegalPerson(MapUtil.getStr(map, "legalPerson"));
}
if (ObjectUtils.isEmpty(customer.getRegisterCapital())) {
customer.setRegisterCapital(MapUtil.getStr(map, "registeredCapitalStr"));
}
if (ObjectUtils.isEmpty(customer.getProvinceId())) {
customer.setProvinceId(MapUtil.getInt(map, "provinceId"));
}
if (ObjectUtils.isEmpty(customer.getCityId())) {
customer.setCityId(MapUtil.getInt(map, "cityId"));
}
if (ObjectUtils.isEmpty(customer.getDistrictId())) {
customer.setDistrictId(MapUtil.getInt(map, "countyId"));
}
if (ObjectUtils.isEmpty(customer.getRegisterAddress())) {
customer.setRegisterAddress(MapUtil.getStr(map, "domicile"));
}
if (ObjectUtils.isEmpty(customer.getCreditCode())) {
customer.setCreditCode(MapUtil.getStr(map, "creditCode"));
}
}
} catch (Exception e) {
log.debug("获取企业id错误!error:{}", e.getMessage());
}
}
}
} }
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
ORDER BY create_time DESC ORDER BY create_time DESC
</select> </select>
<select id="selectBusinessBacklogById" parameterType="Long" resultMap="BusinessBacklogResult"> <select id="selectBusinessBacklogById" resultMap="BusinessBacklogResult">
<include refid="selectBusinessBacklogVo"/> <include refid="selectBusinessBacklogVo"/>
where id = #{id} where id = #{id}
</select> </select>
......
...@@ -78,7 +78,9 @@ ...@@ -78,7 +78,9 @@
construction_phone, construction_phone,
supervisor_unit, supervisor_unit,
supervisor_principal, supervisor_principal,
supervisor_phone supervisor_phone,
construction_unit_uip_id,
construction_unit_cid
from business_info from business_info
</sql> </sql>
...@@ -92,6 +94,8 @@ ...@@ -92,6 +94,8 @@
i.district_name districtName, i.district_name districtName,
i.investment_amount investmentAmount, i.investment_amount investmentAmount,
i.construction_unit ownerCompany, i.construction_unit ownerCompany,
i.construction_unit_uip_id ownerCompanyUipId,
i.construction_unit_cid ownerCompanyCid,
MAX(f.creat_time) followTime, MAX(f.creat_time) followTime,
u.nick_name nickName, u.nick_name nickName,
GROUP_CONCAT(DISTINCT l.label) label GROUP_CONCAT(DISTINCT l.label) label
...@@ -284,6 +288,8 @@ ...@@ -284,6 +288,8 @@
<if test="supervisorUnit != null">supervisor_unit,</if> <if test="supervisorUnit != null">supervisor_unit,</if>
<if test="supervisorPrincipal != null">supervisor_principal,</if> <if test="supervisorPrincipal != null">supervisor_principal,</if>
<if test="supervisorPhone != null">supervisor_phone,</if> <if test="supervisorPhone != null">supervisor_phone,</if>
<if test="constructionUnitUipId != null">construction_unit_uip_id,</if>
<if test="constructionUnitCid != null">construction_unit_cid,</if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="projectName != null">#{projectName},</if> <if test="projectName != null">#{projectName},</if>
...@@ -321,6 +327,8 @@ ...@@ -321,6 +327,8 @@
<if test="supervisorUnit != null">#{supervisorUnit},</if> <if test="supervisorUnit != null">#{supervisorUnit},</if>
<if test="supervisorPrincipal != null">#{supervisorPrincipal},</if> <if test="supervisorPrincipal != null">#{supervisorPrincipal},</if>
<if test="supervisorPhone != null">#{supervisorPhone},</if> <if test="supervisorPhone != null">#{supervisorPhone},</if>
<if test="constructionUnitUipId != null">#{constructionUnitUipId},</if>
<if test="constructionUnitCid != null">#{constructionUnitCid},</if>
</trim> </trim>
</insert> </insert>
...@@ -343,6 +351,8 @@ ...@@ -343,6 +351,8 @@
city_id = #{cityId}, city_id = #{cityId},
district_name = #{districtName}, district_name = #{districtName},
district_id = #{districtId}, district_id = #{districtId},
construction_unit_uip_id = #{constructionUnitUipId},
construction_unit_cid = #{constructionUnitCid},
<if test="projectType != null">project_type = #{projectType},</if> <if test="projectType != null">project_type = #{projectType},</if>
<if test="projectCategory != null">project_category = #{projectCategory},</if> <if test="projectCategory != null">project_category = #{projectCategory},</if>
<if test="isPrivate != null">is_private = #{isPrivate},</if> <if test="isPrivate != null">is_private = #{isPrivate},</if>
......
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
<result property="updateTime" column="update_time"/> <result property="updateTime" column="update_time"/>
<result property="depth" column="depth"/> <result property="depth" column="depth"/>
<result property="companyType" column="company_type"/> <result property="companyType" column="company_type"/>
<result property="companyUipId" column="company_uip_id"/>
</resultMap> </resultMap>
<sql id="selectBusinessRelateCompanyVo"> <sql id="selectBusinessRelateCompanyVo">
...@@ -29,7 +30,8 @@ ...@@ -29,7 +30,8 @@
depth, depth,
create_time, create_time,
update_time, update_time,
company_type company_type,
company_uip_id
from business_relate_company from business_relate_company
</sql> </sql>
...@@ -68,9 +70,8 @@ ...@@ -68,9 +70,8 @@
<if test="companyRole != null">company_role,</if> <if test="companyRole != null">company_role,</if>
<if test="responsiblePerson != null">responsible_person,</if> <if test="responsiblePerson != null">responsible_person,</if>
<if test="phone != null">phone,</if> <if test="phone != null">phone,</if>
<if test="createTime != null">create_time,</if>
<if test="updateTime != null">update_time,</if>
<if test="companyType != null">company_type,</if> <if test="companyType != null">company_type,</if>
<if test="companyUipId != null">company_uip_id,</if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="businessId != null">#{businessId},</if> <if test="businessId != null">#{businessId},</if>
...@@ -80,9 +81,8 @@ ...@@ -80,9 +81,8 @@
<if test="companyRole != null">#{companyRole},</if> <if test="companyRole != null">#{companyRole},</if>
<if test="responsiblePerson != null">#{responsiblePerson},</if> <if test="responsiblePerson != null">#{responsiblePerson},</if>
<if test="phone != null">#{phone},</if> <if test="phone != null">#{phone},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="companyType != null">#{companyType},</if> <if test="companyType != null">#{companyType},</if>
<if test="companyUipId != null">#{companyUipId},</if>
</trim> </trim>
</insert> </insert>
...@@ -90,7 +90,8 @@ ...@@ -90,7 +90,8 @@
update business_relate_company update business_relate_company
<trim prefix="SET" suffixOverrides=","> <trim prefix="SET" suffixOverrides=",">
<if test="businessId != null">business_id = #{businessId},</if> <if test="businessId != null">business_id = #{businessId},</if>
<if test="companyId != null">company_id = #{companyId},</if> company_id = #{companyId},
company_uip_id = #{companyUipId},
<if test="companyName != null">company_name = #{companyName},</if> <if test="companyName != null">company_name = #{companyName},</if>
<if test="depth != null">depth = #{depth},</if> <if test="depth != null">depth = #{depth},</if>
<if test="companyRole != null">company_role = #{companyRole},</if> <if test="companyRole != null">company_role = #{companyRole},</if>
......
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