Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
map-parent
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
常超
map-parent
Commits
0366053e
Commit
0366053e
authored
Jun 15, 2023
by
yangyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
人员常口调整(湖南)
parent
9c9695c3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
service/publicapi/src/main/java/com/founder/publicapi/controller/SkInterface/RyxxQgInterface.java
+15
-2
No files found.
service/publicapi/src/main/java/com/founder/publicapi/controller/SkInterface/RyxxQgInterface.java
View file @
0366053e
...
@@ -3,8 +3,10 @@ package com.founder.publicapi.controller.SkInterface;
...
@@ -3,8 +3,10 @@ package com.founder.publicapi.controller.SkInterface;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
com.founder.commonutils.model.newPublicEntity.MapRestResult
;
import
com.founder.commonutils.model.newPublicEntity.MapRestResult
;
import
com.founder.commonutils.model.newPublicEntity.SkRegionalsPerson
;
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.model.newPublicEntity.TbStRy
;
import
com.founder.commonutils.util.HttpUtil
;
import
com.founder.commonutils.util.HttpUtil
;
import
com.founder.commonutils.util.NetworkUtil
;
import
com.founder.publicapi.mapper.mysqlMapper.SysDictitemMapper
;
import
com.founder.publicapi.mapper.mysqlMapper.SysDictitemMapper
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
...
@@ -15,7 +17,10 @@ import org.dom4j.Element;
...
@@ -15,7 +17,10 @@ import org.dom4j.Element;
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
org.springframework.web.bind.annotation.PostMapping
;
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.DateFormat
;
import
java.text.SimpleDateFormat
;
import
java.text.SimpleDateFormat
;
import
java.util.*
;
import
java.util.*
;
...
@@ -44,12 +49,20 @@ public class RyxxQgInterface {
...
@@ -44,12 +49,20 @@ public class RyxxQgInterface {
// } catch (Exception e) {
// } catch (Exception e) {
// return MapRestResult.error("失败"+e);
// return MapRestResult.error("失败"+e);
// }
// }
HttpServletRequest
request
=
((
ServletRequestAttributes
)
RequestContextHolder
.
getRequestAttributes
()).
getRequest
();
SysUser
user
=
(
SysUser
)
request
.
getAttribute
(
"user"
);
Map
<
String
,
String
>
map
=
new
HashMap
();
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
=
""
;
String
resultStr
=
""
;
try
{
try
{
System
.
out
.
println
(
"常口调用开始==============="
+
zjhm
);
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
)){
if
(
StringUtils
.
isNotBlank
(
resultStr
)){
System
.
out
.
println
(
"常口调用成功==============="
+
zjhm
);
System
.
out
.
println
(
"常口调用成功==============="
+
zjhm
);
JSONObject
jsonObject
=
JSONObject
.
parseObject
(
resultStr
);
JSONObject
jsonObject
=
JSONObject
.
parseObject
(
resultStr
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment