Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
bigdatainterservice
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
曹鹏
bigdatainterservice
Commits
b20be83e
Commit
b20be83e
authored
May 24, 2019
by
chang_chao@founder.com.cn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改积分串并
parent
d914e082
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/main/java/com/founder/interservice/gwdq/Controller/GwdqfxtjController.java
+4
-4
No files found.
src/main/java/com/founder/interservice/gwdq/Controller/GwdqfxtjController.java
View file @
b20be83e
...
...
@@ -38,6 +38,7 @@ public class GwdqfxtjController {
//passWord解密
passWord
=
getDecryptPsw
(
passWord
);
//登录采集
CloseableHttpClient
httpclient
=
gwdqService
.
getCjxm
(
userName
,
passWord
,
sfzh
,
userCode
);
//response返回的相应实体
...
...
@@ -80,15 +81,14 @@ public class GwdqfxtjController {
@RequestMapping
(
value
=
"/tojfcb"
,
method
=
{
RequestMethod
.
GET
,
RequestMethod
.
POST
})
@ResponseBody
public
List
<
TbStJfcb
>
getJfcb
(
String
asjbh
,
String
userName
,
String
passWord
,
String
sfzh
,
String
userCode
){
List
<
TbStJfcb
>
list
=
new
ArrayList
<>();
if
(!
""
.
equals
(
asjbh
)&&
null
!=
asjbh
){
//passWord解密
passWord
=
getDecryptPsw
(
passWord
);
//登录采集
CloseableHttpClient
httpclient
=
gwdqService
.
getCjxm
(
userName
,
passWord
,
sfzh
,
userCode
);
//response返回的相应实体
UrlEncodedFormEntity
reqEntity
=
null
;
//建立一个NameValuePair数组,用于存储欲传送的参数
List
<
NameValuePair
>
formparams
=
new
ArrayList
<>();
formparams
.
clear
();
...
...
@@ -100,7 +100,6 @@ public class GwdqfxtjController {
}
HttpPost
post
=
new
HttpPost
(
cjJfcbUrl
);
post
.
setEntity
(
reqEntity
);
List
<
TbStJfcb
>
list
=
new
ArrayList
<>();
String
content
=
gwdqService
.
RequestUtil
(
httpclient
,
post
).
trim
();
System
.
out
.
println
(
"content=="
+
content
);
if
(
null
!=
content
&&
!
""
.
equals
(
content
)){
...
...
@@ -109,6 +108,7 @@ public class GwdqfxtjController {
list
=
jsonArray
.
toJavaList
(
TbStJfcb
.
class
);
}
}
}
return
list
;
}
...
...
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