Commit 0366053e by yangyang

人员常口调整(湖南)

parent 9c9695c3
......@@ -3,8 +3,10 @@ package com.founder.publicapi.controller.SkInterface;
import com.alibaba.fastjson.JSONObject;
import com.founder.commonutils.model.newPublicEntity.MapRestResult;
import com.founder.commonutils.model.newPublicEntity.SkRegionalsPerson;
import com.founder.commonutils.model.newPublicEntity.SysUser;
import com.founder.commonutils.model.newPublicEntity.TbStRy;
import com.founder.commonutils.util.HttpUtil;
import com.founder.commonutils.util.NetworkUtil;
import com.founder.publicapi.mapper.mysqlMapper.SysDictitemMapper;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
......@@ -15,7 +17,10 @@ import org.dom4j.Element;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.context.request.RequestContextHolder;
import org.springframework.web.context.request.ServletRequestAttributes;
import javax.servlet.http.HttpServletRequest;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.*;
......@@ -44,12 +49,20 @@ public class RyxxQgInterface {
// } catch (Exception e) {
// return MapRestResult.error("失败"+e);
// }
HttpServletRequest request = ((ServletRequestAttributes) RequestContextHolder.getRequestAttributes()).getRequest();
SysUser user = (SysUser)request.getAttribute("user");
Map<String,String> map=new HashMap();
map.put("zjhm",zjhm);
map.put("cxhm",zjhm);
map.put("yymc","时空大数据平台");
map.put("qqrXm",user.getTrueName());
map.put("qqrGmsfzh",user.getIdentitycard());
map.put("qqrJgmc",user.getUnitname());
map.put("qqrJgdm",user.getUnitcode());
map.put("qqrIp", NetworkUtil.getIpAddr(request));
String resultStr="";
try {
System.out.println("常口调用开始==============="+zjhm);
resultStr=HttpUtil.doPost("http://65.26.2.184:1005/getRyxxByQgck",map);
resultStr=HttpUtil.doPost("http://65.26.106.172:1005/qgck/getRyxxByQgck",map);
if(StringUtils.isNotBlank(resultStr)){
System.out.println("常口调用成功==============="+zjhm);
JSONObject jsonObject=JSONObject.parseObject(resultStr);
......
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