Commit c9e52f1d authored by fulixin's avatar fulixin

重点项目清单前十企业接口 添加

parent f65545c3
......@@ -254,7 +254,19 @@ public class IndexController {
/**
*
*
* 重点项目清单查询-前十企业--刘杰那边的接口
* /nationzj/landMarket/companyStatis
* @param object
* @return {@link AjaxResult }
* @throws Exception
*/
@PostMapping(value = "/zdxmqdtopten")
public AjaxResult zdxmqdtopten(@RequestBody JSONObject object) {
return enterpriseService.zdxmqdtopten(object);
}
......
......@@ -77,7 +77,18 @@ public class IndexService {
public AjaxResult zdxmqdtopten(JSONObject object) {
JSONObject page = object.getJSONObject("page");
if(ObjectUtil.isEmpty(page)){
return AjaxResult.error("page对象不能为空");
}
Integer pageIndex = page.getInt("page"),pageSize = page.getInt("limit");
if(ObjectUtil.isEmpty(pageIndex) || ObjectUtil.isEmpty(pageSize)){
return AjaxResult.error("page、limit都不能为空");
}
Map<String, Object> map = dskOpenApiUtil.requestBody("/nationzj/bondProject/importantCompanyStatis", object);
return BeanUtil.toBean(map, AjaxResult.class);
}
public AjaxResult zdxmqdjctj(JSONObject object) {
......
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