相关方关联分公司功能
parent
c2b835ebfa
commit
81450f048a
|
@ -97,4 +97,20 @@ public class OpenApiController extends BaseController {
|
|||
map.put("result", errInfo);
|
||||
return map;
|
||||
}
|
||||
|
||||
/**列表
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping(value="/corp/findById")
|
||||
@ResponseBody
|
||||
public Object findById() throws Exception{
|
||||
Map<String,Object> map = new HashMap<String,Object>();
|
||||
String errInfo = "success";
|
||||
PageData pd = new PageData();
|
||||
pd = this.getPageData();
|
||||
pd = corpInfoService.findById(pd); //列出Post列表
|
||||
map.put("pd", pd);
|
||||
map.put("result", errInfo);
|
||||
return map;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,78 @@
|
|||
package com.zcloud.controller.xgf;
|
||||
|
||||
import com.zcloud.controller.base.BaseController;
|
||||
import com.zcloud.entity.Page;
|
||||
import com.zcloud.entity.PageData;
|
||||
import com.zcloud.util.HttpClientService;
|
||||
import com.zcloud.util.Jurisdiction;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @author fangjiakai
|
||||
* @date 2023/05/15 11:09
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/corpFgs")
|
||||
public class CorpFgsController extends BaseController {
|
||||
|
||||
@Value("${preventionxgf.api.url}")
|
||||
private String xgfUrl;
|
||||
|
||||
/**
|
||||
* 相关方单位列表
|
||||
* @param page
|
||||
* @return
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping(value="/corpFgsList")
|
||||
@ResponseBody
|
||||
public Object batchList(Page page) throws Exception{
|
||||
PageData pd = new PageData();
|
||||
pd = this.getPageData();
|
||||
Map result = HttpClientService.doPost(xgfUrl + "/openApi/corpFgs/corpFgsList" +getPageUrl(page), pd);
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* 相关方单位人员列表
|
||||
* @param page
|
||||
* @return
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping(value="/corpUserFgsList")
|
||||
@ResponseBody
|
||||
public Object batchUserList(Page page) throws Exception{
|
||||
PageData pd = new PageData();
|
||||
pd = this.getPageData();
|
||||
Map result = HttpClientService.doPost(xgfUrl + "/openApi/corpUserFgs/corpUserFgsList" +getPageUrl(page), pd);
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* 相关方单位人员-人员基础信息管理-人员详细信息
|
||||
* @return
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping(value="/getCorpUserDetail")
|
||||
@ResponseBody
|
||||
public Object getCorpUserDetail() throws Exception{
|
||||
Map<String,Object> map = new HashMap<String,Object>();
|
||||
String errInfo = "success";
|
||||
PageData pd = new PageData();
|
||||
pd = this.getPageData();
|
||||
Map result = HttpClientService.doPost(xgfUrl + "/openApi/corpUserFgs/corpUserDetailInfoById", pd);
|
||||
return result;
|
||||
}
|
||||
|
||||
private String getPageUrl(Page page){
|
||||
return "?showCount=" +page.getShowCount() + "¤tPage=" + page.getUrlCurrentPage();
|
||||
}
|
||||
|
||||
|
||||
}
|
Loading…
Reference in New Issue