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 42b0cd9c
authored
Sep 19, 2023
by
zhouhaibao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[+]代码测试
1 parent
b7440ddc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
124 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 @
42b0cd9
...
...
@@ -191,11 +191,11 @@ public class UserDemoService {
" public static JSON execute(JSON param) {\n"
+
" // 将JSON字符串转换为Map\n"
+
" // 将Map中的数据放入MultiValueMap中\n"
+
"
RopResponse
post=null;\n"
+
"
Object
post=null;\n"
+
" MultiValueMap<String, String> params = new LinkedMultiValueMap<String, String>();\n"
+
" params.add(\"merchantNo\", \"44210895\");\n"
+
" try {\n"
+
" post = post(params,
RopResponse
.class, baseurl, method);\n"
+
" post = post(params,
Object
.class, baseurl, method);\n"
+
" } catch (Exception e) {\n"
+
" throw new RuntimeException(e);\n"
+
" }\n"
+
...
...
@@ -342,66 +342,6 @@ public class UserDemoService {
"\n"
+
" return sign.toString();\n"
+
" }\n"
+
"\n"
+
" static class RopResponse<T> {\n"
+
" private String code;\n"
+
" private Integer errId;\n"
+
" private String message;\n"
+
" private T t;\n"
+
" private List<T> tList;\n"
+
" private Object data;\n"
+
"\n"
+
" public RopResponse() {\n"
+
" }\n"
+
"\n"
+
" public String getCode() {\n"
+
" return code;\n"
+
" }\n"
+
"\n"
+
" public void setCode(String code) {\n"
+
" this.code = code;\n"
+
" }\n"
+
"\n"
+
" public Integer getErrId() {\n"
+
" return errId;\n"
+
" }\n"
+
"\n"
+
" public void setErrId(Integer errId) {\n"
+
" this.errId = errId;\n"
+
" }\n"
+
"\n"
+
" public String getMessage() {\n"
+
" return message;\n"
+
" }\n"
+
"\n"
+
" public void setMessage(String message) {\n"
+
" this.message = message;\n"
+
" }\n"
+
"\n"
+
" public T getT() {\n"
+
" return t;\n"
+
" }\n"
+
"\n"
+
" public void setT(T t) {\n"
+
" this.t = t;\n"
+
" }\n"
+
"\n"
+
" public List<T> gettList() {\n"
+
" return tList;\n"
+
" }\n"
+
"\n"
+
" public void settList(List<T> tList) {\n"
+
" this.tList = tList;\n"
+
" }\n"
+
"\n"
+
" public Object getData() {\n"
+
" return data;\n"
+
" }\n"
+
"\n"
+
" public void setData(Object data) {\n"
+
" this.data = data;\n"
+
" }\n"
+
" }\n"
+
"}"
,
"execute"
,
new
Class
[]{
JSON
.
class
},
new
Object
[]{
jsonObject
});
}
}
platform-process/src/main/java/cn/com/glsx/process/modules/sop/java/Controller1.java
View file @
42b0cd9
...
...
@@ -29,11 +29,11 @@ public class Controller1 {
public
static
JSON
execute
(
JSON
param
)
{
// 将JSON字符串转换为Map
// 将Map中的数据放入MultiValueMap中
RopResponse
post
=
null
;
Object
post
=
null
;
MultiValueMap
<
String
,
String
>
params
=
new
LinkedMultiValueMap
<
String
,
String
>();
params
.
add
(
"merchantNo"
,
"44210895"
);
try
{
post
=
post
(
params
,
RopResponse
.
class
,
baseurl
,
method
);
post
=
post
(
params
,
Object
.
class
,
baseurl
,
method
);
}
catch
(
Exception
e
)
{
throw
new
RuntimeException
(
e
);
}
...
...
@@ -180,64 +180,4 @@ public class Controller1 {
return
sign
.
toString
();
}
static
class
RopResponse
<
T
>
{
private
String
code
;
private
Integer
errId
;
private
String
message
;
private
T
t
;
private
List
<
T
>
tList
;
private
Object
data
;
public
RopResponse
()
{
}
public
String
getCode
()
{
return
code
;
}
public
void
setCode
(
String
code
)
{
this
.
code
=
code
;
}
public
Integer
getErrId
()
{
return
errId
;
}
public
void
setErrId
(
Integer
errId
)
{
this
.
errId
=
errId
;
}
public
String
getMessage
()
{
return
message
;
}
public
void
setMessage
(
String
message
)
{
this
.
message
=
message
;
}
public
T
getT
()
{
return
t
;
}
public
void
setT
(
T
t
)
{
this
.
t
=
t
;
}
public
List
<
T
>
gettList
()
{
return
tList
;
}
public
void
settList
(
List
<
T
>
tList
)
{
this
.
tList
=
tList
;
}
public
Object
getData
()
{
return
data
;
}
public
void
setData
(
Object
data
)
{
this
.
data
=
data
;
}
}
}
\ No newline at end of file
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