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 56fb5203
authored
Oct 11, 2023
by
zhouhaibao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[+]查询接口修改
1 parent
c9145720
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
3 deletions
platform-process/src/main/java/cn/com/glsx/process/modules/sop/execute/plugin/dbconn/AbstractConnect.java
platform-process/src/main/java/cn/com/glsx/process/modules/sop/java/example/ControllerDisTasksDemo.java
platform-process/src/main/java/cn/com/glsx/process/modules/sop/java/example/ControllerFoundInsDemo.java
platform-process/src/main/java/cn/com/glsx/process/modules/sop/execute/plugin/dbconn/AbstractConnect.java
View file @
56fb520
...
@@ -24,6 +24,7 @@ import java.util.Map;
...
@@ -24,6 +24,7 @@ import java.util.Map;
import
javax.sql.DataSource
;
import
javax.sql.DataSource
;
import
org.apache.commons.dbutils.DbUtils
;
import
org.apache.commons.dbutils.DbUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.slf4j.Logger
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.slf4j.LoggerFactory
;
...
@@ -124,8 +125,10 @@ public abstract class AbstractConnect {
...
@@ -124,8 +125,10 @@ public abstract class AbstractConnect {
int
total
=
0
;
int
total
=
0
;
String
[]
split
=
sql
.
split
(
";"
);
String
[]
split
=
sql
.
split
(
";"
);
for
(
String
s
:
split
)
{
for
(
String
s
:
split
)
{
int
i
=
dbConnect
.
executeUpdate
(
s
,
para
);
if
(
StringUtils
.
isNotEmpty
(
s
))
{
total
=
total
+
i
;
int
i
=
dbConnect
.
executeUpdate
(
s
,
para
);
total
=
total
+
i
;
}
}
}
return
total
;
return
total
;
}
}
...
...
platform-process/src/main/java/cn/com/glsx/process/modules/sop/java/example/ControllerDisTasksDemo.java
View file @
56fb520
...
@@ -51,6 +51,7 @@ public class ControllerDisTasksDemo {
...
@@ -51,6 +51,7 @@ public class ControllerDisTasksDemo {
multiValueMap
.
add
(
"requestList[0].stageName"
,
SopHelper
.
getValueFromJsonString
(
nodeParam
,
"stage"
));
multiValueMap
.
add
(
"requestList[0].stageName"
,
SopHelper
.
getValueFromJsonString
(
nodeParam
,
"stage"
));
multiValueMap
.
add
(
"requestList[0].sopId"
,
sopInst
.
getInstId
());
multiValueMap
.
add
(
"requestList[0].sopId"
,
sopInst
.
getInstId
());
multiValueMap
.
add
(
"requestList[0].enterJourneyDays"
,
SopHelper
.
getValueFromJsonString
(
nodeParam
,
"day"
));
multiValueMap
.
add
(
"requestList[0].taskType"
,
SopHelper
.
getValueFromJsonString
(
nodeParam
,
"taskType"
));
multiValueMap
.
add
(
"requestList[0].taskType"
,
SopHelper
.
getValueFromJsonString
(
nodeParam
,
"taskType"
));
...
...
platform-process/src/main/java/cn/com/glsx/process/modules/sop/java/example/ControllerFoundInsDemo.java
View file @
56fb520
...
@@ -53,7 +53,7 @@ public class ControllerFoundInsDemo {
...
@@ -53,7 +53,7 @@ public class ControllerFoundInsDemo {
CustomerInfo
customerInfo
=
new
CustomerInfo
();
CustomerInfo
customerInfo
=
new
CustomerInfo
();
customerInfo
.
setVin
(
key
);
customerInfo
.
setVin
(
key
);
if
(
stringObjectMap
.
get
(
key
)!=
null
)
{
if
(
stringObjectMap
.
get
(
key
)!=
null
)
{
customerInfo
.
setArrivalDate
(
DateFormatUtils
.
format
UTC
(
Long
.
parseLong
(
s
),
"yyyy-mm-dd
mm:ss"
));
customerInfo
.
setArrivalDate
(
DateFormatUtils
.
format
(
Long
.
parseLong
(
s
),
"yyyy-MM-dd HH:
mm:ss"
));
}
}
result
.
add
(
customerInfo
);
result
.
add
(
customerInfo
);
}
}
...
@@ -65,4 +65,5 @@ public class ControllerFoundInsDemo {
...
@@ -65,4 +65,5 @@ public class ControllerFoundInsDemo {
return
JSONArray
.
parseArray
(
JSONObject
.
toJSONString
(
result
));
return
JSONArray
.
parseArray
(
JSONObject
.
toJSONString
(
result
));
}
}
}
}
\ No newline at end of file
\ 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