Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
platform
/
platform-process-server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit c8a245a7
authored
Sep 19, 2023
by
zhouhaibao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[+]代码测试
1 parent
3253570f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
platform-process/src/main/java/cn/com/glsx/process/modules/service/UserDemoService.java
platform-process/src/main/java/cn/com/glsx/process/modules/sop/java/Controller1.java
platform-process/src/main/java/cn/com/glsx/process/modules/service/UserDemoService.java
View file @
c8a245a
...
@@ -177,7 +177,7 @@ public class UserDemoService {
...
@@ -177,7 +177,7 @@ public class UserDemoService {
"import java.util.*;\n"
+
"import java.util.*;\n"
+
"\n"
+
"\n"
+
"\n"
+
"\n"
+
"public class Controller
1
{\n"
+
"public class Controller {\n"
+
"\n"
+
"\n"
+
"\n"
+
"\n"
+
" private final static String appKey = \"48e5e13229b82c1b4e6e8c96151f0637\";\n"
+
" private final static String appKey = \"48e5e13229b82c1b4e6e8c96151f0637\";\n"
+
...
...
platform-process/src/main/java/cn/com/glsx/process/modules/sop/java/Controller1.java
View file @
c8a245a
...
@@ -27,18 +27,18 @@ public class Controller1 {
...
@@ -27,18 +27,18 @@ public class Controller1 {
private
final
static
String
method
=
"merchants.api.open.findStaffListByMerchantNo"
;
private
final
static
String
method
=
"merchants.api.open.findStaffListByMerchantNo"
;
public
static
JSON
execute
(
JSON
param
)
{
public
static
JSON
execute
(
JSON
param
)
{
JSON
post
=
null
;
// 将JSON字符串转换为Map
// 将JSON字符串转换为Map
// 将Map中的数据放入MultiValueMap中
// 将Map中的数据放入MultiValueMap中
RopResponse
post
=
null
;
MultiValueMap
<
String
,
String
>
params
=
new
LinkedMultiValueMap
<
String
,
String
>();
MultiValueMap
<
String
,
String
>
params
=
new
LinkedMultiValueMap
<
String
,
String
>();
params
.
add
(
"merchantNo"
,
"44210895"
);
params
.
add
(
"merchantNo"
,
"44210895"
);
try
{
try
{
post
=
post
(
params
,
JSON
.
class
,
baseurl
,
method
);
post
=
post
(
params
,
RopResponse
.
class
,
baseurl
,
method
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
throw
new
RuntimeException
(
e
);
throw
new
RuntimeException
(
e
);
}
}
System
.
out
.
println
(
JSON
.
toJSONString
(
post
));
System
.
out
.
println
(
JSON
.
toJSONString
(
post
));
return
p
ost
;
return
p
aram
;
}
}
private
static
void
addBaseParam
(
MultiValueMap
<
String
,
String
>
paramsMap
,
String
method
)
{
private
static
void
addBaseParam
(
MultiValueMap
<
String
,
String
>
paramsMap
,
String
method
)
{
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment