Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
FrontEndProcessor
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
CrossProvincialPlatform
FrontEndProcessor
Commits
41eb2865
Commit
41eb2865
authored
Jan 25, 2024
by
张俊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
市监局前端转发开发
parent
ffd08ffa
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
105 additions
and
41 deletions
+105
-41
src/main/java/net/cdkj/gjj/adapter/controller/ProvidentFundServicesController.java
...j/adapter/controller/ProvidentFundServicesController.java
+93
-18
src/main/resources/application.properties
src/main/resources/application.properties
+12
-23
No files found.
src/main/java/net/cdkj/gjj/adapter/controller/ProvidentFundServicesController.java
View file @
41eb2865
...
...
@@ -14,6 +14,7 @@ import javax.servlet.http.HttpServletRequest;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Properties
;
import
java.util.logging.Logger
;
import
static
net
.
cdkj
.
gjj
.
adapter
.
domain
.
GzipUtil
.
unzipString
;
import
static
net
.
cdkj
.
gjj
.
adapter
.
domain
.
GzipUtil
.
zipString
;
...
...
@@ -25,8 +26,12 @@ import static net.cdkj.gjj.adapter.domain.GzipUtil.zipString;
@RequestMapping
(
value
=
"FrontEndProcessor"
)
public
class
ProvidentFundServicesController
{
// log4j 日志实现
private
static
final
Logger
logger
=
Logger
.
getLogger
(
ProvidentFundServicesController
.
class
.
toString
());
/**
*
公积金系统服务
接口
*
拉取单位开户数据
接口
*/
@ResponseBody
@PostMapping
(
"ProvidentFundServices"
)
...
...
@@ -38,10 +43,97 @@ public class ProvidentFundServicesController {
String
token
=
huoqutoken
();
String
provifunserviurl
=
PropertyUtil
.
getPropValue
(
prop
,
"provifunserviurl"
)
+
token
;
System
.
out
.
println
(
provifunserviurl
);
logger
.
info
(
"单位开户拉取url:"
+
provifunserviurl
);
// 发起 post 请求,并对出参进行解压缩
return
HttpUtil
.
sendPost
(
provifunserviurl
,
data
);
}
/**
* 推送单位开户数据接口
*/
@ResponseBody
@PostMapping
(
"BusinessProcessing"
)
public
static
String
BusinessProcessing
(
HttpServletRequest
request
)
{
Properties
prop
=
PropertyUtil
.
getConfig
(
"application.properties"
);
// 获取请求入参
String
str
=
HttpUtil
.
getReqData
(
request
);
// 调用获取token的方法
String
token
=
huoqutoken
();
String
bussiniprourl
=
PropertyUtil
.
getPropValue
(
prop
,
"bussiniprourl"
)
+
token
;
logger
.
info
(
"单位开户推送url:"
+
bussiniprourl
);
// 发起 post 请求,并对出参进行解压缩
return
HttpUtil
.
sendPost
(
bussiniprourl
,
str
);
}
/**
* 拉取单位变更数据接口
*/
@ResponseBody
@PostMapping
(
"/dwxxbgPull"
)
public
static
String
dwxxbgPull
(
HttpServletRequest
request
)
{
Properties
prop
=
PropertyUtil
.
getConfig
(
"application.properties"
);
// 获取请求入参
String
data
=
HttpUtil
.
getReqData
(
request
);
// 调用获取token的方法
String
token
=
huoqutoken
();
String
provifunserviurl
=
PropertyUtil
.
getPropValue
(
prop
,
"dwxxbgPullUrl"
)
+
token
;
logger
.
info
(
"单位信息变跟拉取url:"
+
provifunserviurl
);
// 发起 post 请求,并对出参进行解压缩
return
HttpUtil
.
sendPost
(
provifunserviurl
,
data
);
}
/**
* 推送单位变更数据接口
*/
@ResponseBody
@PostMapping
(
"/dwxxbgPush"
)
public
static
String
dwxxbgPush
(
HttpServletRequest
request
)
{
Properties
prop
=
PropertyUtil
.
getConfig
(
"application.properties"
);
// 获取请求入参
String
str
=
HttpUtil
.
getReqData
(
request
);
// 调用获取token的方法
String
token
=
huoqutoken
();
String
bussiniprourl
=
PropertyUtil
.
getPropValue
(
prop
,
"dwxxbgPushUrl"
)
+
token
;
logger
.
info
(
"单位信息变跟推送url:"
+
bussiniprourl
);
// 发起 post 请求,并对出参进行解压缩
return
HttpUtil
.
sendPost
(
bussiniprourl
,
str
);
}
/**
* 拉取单位销户数据接口
*/
@ResponseBody
@PostMapping
(
"/dwxhPull"
)
public
static
String
dwxhPull
(
HttpServletRequest
request
)
{
Properties
prop
=
PropertyUtil
.
getConfig
(
"application.properties"
);
// 获取请求入参
String
data
=
HttpUtil
.
getReqData
(
request
);
// 调用获取token的方法
String
token
=
huoqutoken
();
String
provifunserviurl
=
PropertyUtil
.
getPropValue
(
prop
,
"dwxhPullUrl"
)
+
token
;
logger
.
info
(
"单位销户拉取url:"
+
provifunserviurl
);
// 发起 post 请求,并对出参进行解压缩
return
HttpUtil
.
sendPost
(
provifunserviurl
,
data
);
}
/**
* 推送单位销户数据接口
*/
@ResponseBody
@PostMapping
(
"/dwxhPush"
)
public
static
String
dwxhPush
(
HttpServletRequest
request
)
{
Properties
prop
=
PropertyUtil
.
getConfig
(
"application.properties"
);
// 获取请求入参
String
str
=
HttpUtil
.
getReqData
(
request
);
// 调用获取token的方法
String
token
=
huoqutoken
();
String
bussiniprourl
=
PropertyUtil
.
getPropValue
(
prop
,
"dwxhPushUrl"
)
+
token
;
logger
.
info
(
"单位销户推送url:"
+
bussiniprourl
);
// 发起 post 请求,并对出参进行解压缩
return
HttpUtil
.
sendPost
(
bussiniprourl
,
str
);
}
/**
* 模拟公积金系统服务接口请求第三方,获取第三方返回的单位开户信息测试接口
...
...
@@ -83,23 +175,6 @@ public class ProvidentFundServicesController {
return
token
;
}
/**
* 住建部门返回公积金办理进度数据接口方法
*/
@ResponseBody
@PostMapping
(
"BusinessProcessing"
)
public
static
String
BusinessProcessing
(
HttpServletRequest
request
)
{
Properties
prop
=
PropertyUtil
.
getConfig
(
"application.properties"
);
System
.
out
.
println
(
"继续调前置机的进度第二个接口"
);
// 获取请求入参
String
str
=
HttpUtil
.
getReqData
(
request
);
// 调用获取token的方法
String
token
=
huoqutoken
();
String
bussiniprourl
=
PropertyUtil
.
getPropValue
(
prop
,
"bussiniprourl"
)
+
token
;
System
.
out
.
println
(
bussiniprourl
);
// 发起 post 请求,并对出参进行解压缩
return
HttpUtil
.
sendPost
(
bussiniprourl
,
str
);
}
/**
* 模拟住建部门返回公积金办理进度数据接口请求第三方,获取第三方返回的数据
...
...
src/main/resources/application.properties
View file @
41eb2865
# ????
spring.application.name
=
adapter
# ???? WEB ????
server.port
=
808
0
server.port
=
808
1
#server.servlet.context-path=/FrontEndProcessor
#?????????????????
#获取认证
tokenurl
:
http://59.208.149.225:18080/sjzt/api/oauth2/token
#
????????????????????
#
单位开户拉取url
provifunserviurl
:
http://59.208.149.225:18080/sjzt/api/dx/e39a08e0a52b413897f9d23359540b27/GJJ?access_token=
#?????????????????
#单位开户推送url
bussiniprourl
:
http://59.208.149.225:18080/sjzt/api/retGjjProgData?access_token=
#单位信息变跟拉取url
dwxxbgPullUrl
:
http://59.208.149.225:18080/sjzt/api/dx/e39a08e0a52b413897f9d23359540b27/GJJ?access_token=
#单位信息变跟推送url
dwxxbgPushUrl
:
http://59.208.149.225:18080/sjzt/api/retGjjProgData?access_token=
#?????????????????
#tokenurl:https://scjg.hubei.gov.cn/sjzt/api/oauth2/token
#????????????????????
#provifunserviurl:http://59.208.149.225:18080/sjzt/api/dx/e39a08e0a52b413897f9d23359540b27/GJJ?access_token=
#?????????????????
#bussiniprourl:http://59.208.149.225:18080/sjzt/api/testretGjjProgData?access_token=
#?????????????????
#tokenurl:http://127.0.0.1:8080/FrontEndProcessor/FrontEndProcessor/token2
#????????????????????
#provifunserviurl:http://127.0.0.1:8080/FrontEndProcessor/FrontEndProcessor/ProvidentFundServices2?access_token=
#单位销户拉取url
dwxhPullUrl
:
http://59.208.149.225:18080/sjzt/api/dx/e39a08e0a52b413897f9d23359540b27/GJJ?access_token=
#单位销户推送url
dwxhPushUrl
:
http://59.208.149.225:18080/sjzt/api/retGjjProgData?access_token=
#?????????????????
#bussiniprourl:http://127.0.0.1:8080/FrontEndProcessor/FrontEndProcessor/BusinessProcessing2?access_token=
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