Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
midjourney-proxy
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
徐少华
midjourney-proxy
Commits
d189eef9
Commit
d189eef9
authored
Jul 31, 2020
by
田超
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/erp-1' into 'master'
bug:[none] IP调用接口需要删除/api See merge request rays/pcloud-book!854
parents
11660368
1baf1ffc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
ErpConsr.java
.../src/main/java/com/pcloud/book/consumer/erp/ErpConsr.java
+5
-5
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/consumer/erp/ErpConsr.java
View file @
d189eef9
...
@@ -36,7 +36,7 @@ public class ErpConsr {
...
@@ -36,7 +36,7 @@ public class ErpConsr {
Map
<
String
,
String
>
querys
=
new
HashMap
<>();
Map
<
String
,
String
>
querys
=
new
HashMap
<>();
querys
.
put
(
"bookName"
,
bookName
);
querys
.
put
(
"bookName"
,
bookName
);
try
{
try
{
HttpResponse
response
=
HttpUtils
.
doGet
(
domain
,
"/
api/
erp/project4Third/getBookServiceLevel"
,
"GET"
,
new
HashMap
<>(),
querys
);
HttpResponse
response
=
HttpUtils
.
doGet
(
domain
,
"/erp/project4Third/getBookServiceLevel"
,
"GET"
,
new
HashMap
<>(),
querys
);
String
entityString
=
EntityUtils
.
toString
(
response
.
getEntity
());
String
entityString
=
EntityUtils
.
toString
(
response
.
getEntity
());
JSONObject
jsonObject
=
JSONObject
.
parseObject
(
entityString
);
JSONObject
jsonObject
=
JSONObject
.
parseObject
(
entityString
);
if
(
jsonObject
.
getInteger
(
"errCode"
)
!=
0
){
if
(
jsonObject
.
getInteger
(
"errCode"
)
!=
0
){
...
@@ -57,7 +57,7 @@ public class ErpConsr {
...
@@ -57,7 +57,7 @@ public class ErpConsr {
Map
<
String
,
String
>
headers
=
new
HashMap
<>();
Map
<
String
,
String
>
headers
=
new
HashMap
<>();
headers
.
put
(
"Content-Type"
,
"application/json"
);
headers
.
put
(
"Content-Type"
,
"application/json"
);
try
{
try
{
HttpResponse
response
=
HttpUtils
.
doPost
(
domain
,
"/
api/
erp/project4Third/getBookNames"
,
"POST"
,
headers
,
new
HashMap
<>(),
JSONObject
.
toJSONString
(
bookIds
));
HttpResponse
response
=
HttpUtils
.
doPost
(
domain
,
"/erp/project4Third/getBookNames"
,
"POST"
,
headers
,
new
HashMap
<>(),
JSONObject
.
toJSONString
(
bookIds
));
String
entityString
=
EntityUtils
.
toString
(
response
.
getEntity
());
String
entityString
=
EntityUtils
.
toString
(
response
.
getEntity
());
JSONObject
jsonObject
=
JSONObject
.
parseObject
(
entityString
);
JSONObject
jsonObject
=
JSONObject
.
parseObject
(
entityString
);
if
(
jsonObject
.
getInteger
(
"errCode"
)
!=
0
){
if
(
jsonObject
.
getInteger
(
"errCode"
)
!=
0
){
...
@@ -78,7 +78,7 @@ public class ErpConsr {
...
@@ -78,7 +78,7 @@ public class ErpConsr {
Map
<
String
,
String
>
querys
=
new
HashMap
<>();
Map
<
String
,
String
>
querys
=
new
HashMap
<>();
querys
.
put
(
"bookName"
,
bookName
);
querys
.
put
(
"bookName"
,
bookName
);
try
{
try
{
HttpResponse
response
=
HttpUtils
.
doGet
(
domain
,
"/
api/
erp/project4Third/getIdByBookName"
,
"GET"
,
new
HashMap
<>(),
querys
);
HttpResponse
response
=
HttpUtils
.
doGet
(
domain
,
"/erp/project4Third/getIdByBookName"
,
"GET"
,
new
HashMap
<>(),
querys
);
String
entityString
=
EntityUtils
.
toString
(
response
.
getEntity
());
String
entityString
=
EntityUtils
.
toString
(
response
.
getEntity
());
JSONObject
jsonObject
=
JSONObject
.
parseObject
(
entityString
);
JSONObject
jsonObject
=
JSONObject
.
parseObject
(
entityString
);
if
(
jsonObject
.
getInteger
(
"errCode"
)
!=
0
){
if
(
jsonObject
.
getInteger
(
"errCode"
)
!=
0
){
...
@@ -99,7 +99,7 @@ public class ErpConsr {
...
@@ -99,7 +99,7 @@ public class ErpConsr {
Map
<
String
,
String
>
querys
=
new
HashMap
<>();
Map
<
String
,
String
>
querys
=
new
HashMap
<>();
querys
.
put
(
"bookName"
,
bookName
);
querys
.
put
(
"bookName"
,
bookName
);
try
{
try
{
HttpResponse
response
=
HttpUtils
.
doGet
(
domain
,
"/
api/
erp/project4Third/getIdsByBookName"
,
"GET"
,
new
HashMap
<>(),
querys
);
HttpResponse
response
=
HttpUtils
.
doGet
(
domain
,
"/erp/project4Third/getIdsByBookName"
,
"GET"
,
new
HashMap
<>(),
querys
);
String
entityString
=
EntityUtils
.
toString
(
response
.
getEntity
());
String
entityString
=
EntityUtils
.
toString
(
response
.
getEntity
());
JSONObject
jsonObject
=
JSONObject
.
parseObject
(
entityString
);
JSONObject
jsonObject
=
JSONObject
.
parseObject
(
entityString
);
if
(
jsonObject
.
getInteger
(
"errCode"
)
!=
0
){
if
(
jsonObject
.
getInteger
(
"errCode"
)
!=
0
){
...
@@ -127,7 +127,7 @@ public class ErpConsr {
...
@@ -127,7 +127,7 @@ public class ErpConsr {
}
}
try
{
try
{
HttpResponse
response
=
HttpUtils
.
doGet
(
domain
,
"/
api/
erp/project4Third/getProjectIdByBookId"
,
"GET"
,
new
HashMap
<>(),
querys
);
HttpResponse
response
=
HttpUtils
.
doGet
(
domain
,
"/erp/project4Third/getProjectIdByBookId"
,
"GET"
,
new
HashMap
<>(),
querys
);
String
entityString
=
EntityUtils
.
toString
(
response
.
getEntity
());
String
entityString
=
EntityUtils
.
toString
(
response
.
getEntity
());
JSONObject
jsonObject
=
JSONObject
.
parseObject
(
entityString
);
JSONObject
jsonObject
=
JSONObject
.
parseObject
(
entityString
);
if
(
jsonObject
.
getInteger
(
"errCode"
)
!=
0
){
if
(
jsonObject
.
getInteger
(
"errCode"
)
!=
0
){
...
...
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