Commit 20c00609 authored by lcl's avatar lcl

企业接口

parent 34550292
......@@ -11,7 +11,7 @@ import javax.annotation.Resource;
/**
* 模糊查企业
* 查企业
* @author Administrator
*
*/
......@@ -24,11 +24,18 @@ public class CompanySearchController {
BusinessOpportunityRadarService opportunityRadarService;
/*
* 土地交易
* 模糊查询企业名称
*/
@RequestMapping("/index")
public AjaxResult landMarketPage(@RequestBody ComposeQueryDto compose) {
return opportunityRadarService.enterprisePage(compose);
}
/*
* 完全匹配企业名称
*/
@RequestMapping("/findByName")
public AjaxResult findByName(@RequestBody ComposeQueryDto compose) {
return opportunityRadarService.enterpriseByName(compose);
}
}
......@@ -58,6 +58,7 @@ public class BusinessOpportunityRadarServiceImpl implements BusinessOpportunityR
@Override
public AjaxResult enterpriseByName(ComposeQueryDto compose){
Map<String, Object> map = dskOpenApiUtil.requestBody("/api/nationzj/enterprice/findByName", BeanUtil.beanToMap(compose, false, false));
// Map<String, Object> map = dskOpenApiUtil.requestBody("/nationzj/enterprice/findByName", BeanUtil.beanToMap(compose, false, false));
return BeanUtil.toBean(map, AjaxResult.class);
}
}
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