Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
apps-collaboration
Project
Project
Details
Activity
Releases
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
高燕
apps-collaboration
Commits
8a8e7b7c
Commit
8a8e7b7c
authored
Sep 25, 2020
by
chenfeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加流程暂停状态
parent
8b960103
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
11 deletions
+12
-11
CollaborationController.java
...pps/collaboration/controller/CollaborationController.java
+8
-8
FalseDoTimer.java
src/main/java/com/seeyon/apps/timer/FalseDoTimer.java
+4
-3
No files found.
src/main/java/com/seeyon/apps/collaboration/controller/CollaborationController.java
View file @
8a8e7b7c
...
...
@@ -2383,10 +2383,10 @@ public class CollaborationController extends BaseController {
try
{
Map
<
String
,
Object
>
respnose
=
restTemplate
.
postForObject
(
DIC_DATA_URL
,
null
,
Map
.
class
);
if
(!(
Boolean
)
respnose
.
get
(
"success"
)){
colManager
.
updateColSummaryGeneralStateBySource
(
code
,
4
);
colManager
.
updateColSummaryGeneralStateBySource
(
code
,
5
);
}
}
catch
(
Exception
e
){
colManager
.
updateColSummaryGeneralStateBySource
(
code
,
4
);
colManager
.
updateColSummaryGeneralStateBySource
(
code
,
5
);
}
}
// 判断是外部调用下单的流程
...
...
@@ -2562,10 +2562,10 @@ public class CollaborationController extends BaseController {
// restTemplate.getMessageConverters().add(new StringHttpMessageConverter(Charset.forName("utf-8")));
Map
<
String
,
Object
>
respnose
=
restTemplate
.
postForObject
(
DIC_DATA_URL
,
null
,
Map
.
class
);
if
(!(
Boolean
)
respnose
.
get
(
"success"
)){
colManager
.
updateColSummaryGeneralStateBySource
(
code
,
4
);
colManager
.
updateColSummaryGeneralStateBySource
(
code
,
5
);
}
}
catch
(
Exception
e
){
colManager
.
updateColSummaryGeneralStateBySource
(
code
,
4
);
colManager
.
updateColSummaryGeneralStateBySource
(
code
,
5
);
}
}
...
...
@@ -2792,10 +2792,10 @@ public class CollaborationController extends BaseController {
try
{
Map
<
String
,
Object
>
respnose
=
restTemplate
.
postForObject
(
DIC_DATA_URL
,
null
,
Map
.
class
);
if
(!(
Boolean
)
respnose
.
get
(
"success"
)){
colManager
.
updateColSummaryGeneralStateBySource
(
code
,
5
);
colManager
.
updateColSummaryGeneralStateBySource
(
code
,
6
);
}
}
catch
(
Exception
e
){
colManager
.
updateColSummaryGeneralStateBySource
(
code
,
5
);
colManager
.
updateColSummaryGeneralStateBySource
(
code
,
6
);
}
}
else
if
(
null
!=
ctpTemplate
.
getTempleteNumber
()
&&
"XDLC"
.
equals
(
ctpTemplate
.
getTempleteNumber
())){
String
filePath
=
SystemEnvironment
.
getApplicationFolder
()
+
File
.
separator
+
"fkmap"
+
File
.
separator
+
"url.properties"
;
...
...
@@ -2809,10 +2809,10 @@ public class CollaborationController extends BaseController {
try
{
Map
<
String
,
Object
>
respnose
=
restTemplate
.
postForObject
(
DIC_DATA_URL
,
null
,
Map
.
class
);
if
(!(
Boolean
)
respnose
.
get
(
"success"
)){
colManager
.
updateColSummaryGeneralStateBySource
(
code
,
5
);
colManager
.
updateColSummaryGeneralStateBySource
(
code
,
6
);
}
}
catch
(
Exception
e
){
colManager
.
updateColSummaryGeneralStateBySource
(
code
,
5
);
colManager
.
updateColSummaryGeneralStateBySource
(
code
,
6
);
}
}
}
...
...
src/main/java/com/seeyon/apps/timer/FalseDoTimer.java
View file @
8a8e7b7c
...
...
@@ -74,14 +74,15 @@ public class FalseDoTimer {
Timer
timer
=
new
Timer
();
timer
.
schedule
(
new
TimerTask
()
{
public
void
run
()
{
//System.out.println("定时器启动");
RestTemplate
restTemplate
=
new
RestTemplate
();
ColSummary
summary
=
null
;
List
<
ColSummary
>
data
=
null
;
Map
<
String
,
Object
>
respnose
=
new
HashMap
<>();
try
{
List
<
Integer
>
genneral
=
new
ArrayList
<>();
genneral
.
add
(
4
);
genneral
.
add
(
5
);
genneral
.
add
(
6
);
data
=
colManager
.
getFalseData
(
genneral
);
for
(
ColSummary
coldata
:
data
)
{
...
...
@@ -93,7 +94,7 @@ public class FalseDoTimer {
//校稿流程
if
(
"JGLC"
.
equals
(
ctpTemplate
.
getTempleteNumber
()))
{
if
(
oastate
==
4
)
{
if
(
oastate
==
5
)
{
String
filePath
=
SystemEnvironment
.
getApplicationFolder
()
+
File
.
separator
+
"fkmap"
+
File
.
separator
+
"url.properties"
;
InputStream
in
=
new
BufferedInputStream
(
new
FileInputStream
(
filePath
));
Properties
p
=
new
Properties
();
...
...
@@ -109,7 +110,7 @@ public class FalseDoTimer {
}
else
if
(
oastate
==
5
)
{
//终止流程
}
else
if
(
oastate
==
6
)
{
//终止流程
String
filePath
=
SystemEnvironment
.
getApplicationFolder
()
+
File
.
separator
+
"fkmap"
+
File
.
separator
+
"url.properties"
;
InputStream
in
=
new
BufferedInputStream
(
new
FileInputStream
(
filePath
));
Properties
p
=
new
Properties
();
...
...
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