Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wj-datacenter-platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
jinan
wj-datacenter-platform
Commits
0a488fb9
Commit
0a488fb9
authored
Jan 22, 2025
by
duanruiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[update] 相位空放返回编码优化
parent
f716d8f9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
21 deletions
+31
-21
CrossStrategyOptServiceImpl.java
.../datacenter/service/impl/CrossStrategyOptServiceImpl.java
+31
-21
No files found.
wj-datacenter-service/src/main/java/net/wanji/datacenter/service/impl/CrossStrategyOptServiceImpl.java
View file @
0a488fb9
...
...
@@ -41,7 +41,6 @@ public class CrossStrategyOptServiceImpl implements CrossStrategyOptService {
Integer
countDown
=
idx
.
getCountDown
();
Integer
rtnType
=
idx
.
getRtnType
();
// rtnType大于0时,未执行
if
(
rtnType
<
0
)
{
Long
signalMachineStamp
=
idx
.
getSignalMachineStamp
();
Long
createStamp
=
idx
.
getCreateStamp
();
Date
date
=
new
Date
(
curStamp
);
...
...
@@ -55,7 +54,19 @@ public class CrossStrategyOptServiceImpl implements CrossStrategyOptService {
entity
.
setInsertTime
(
new
Date
(
createStamp
));
entity
.
setCountDown
(
countDown
);
entity
.
setExtendTime
(
countDown
);
if
(
rtnType
<
0
)
{
if
(
Objects
.
nonNull
(
idx
.
getResponseCode
())
&&
!
Objects
.
equals
(-
1
,
idx
.
getResponseCode
()))
{
entity
.
setResponseCode
(
idx
.
getResponseCode
());
}
else
{
entity
.
setResponseCode
(
200
);
}
}
else
{
if
(
Objects
.
nonNull
(
idx
.
getResponseCode
())
&&
!
Objects
.
equals
(-
1
,
idx
.
getResponseCode
()))
{
entity
.
setResponseCode
(
idx
.
getResponseCode
());
}
else
{
entity
.
setResponseCode
(
500
);
}
}
entity
.
setRtnType
(
rtnType
);
String
name
=
CrossInfoCache
.
getName
(
crossId
);
entity
.
setCrossName
(
name
);
...
...
@@ -64,7 +75,6 @@ public class CrossStrategyOptServiceImpl implements CrossStrategyOptService {
entity
.
setResponseContent
(
idx
.
getResponseContent
());
crossStrategyResultMapper
.
insert
(
entity
);
}
}
}
catch
(
Exception
e
)
{
log
.
error
(
"相位空放优化结果入库异常:"
,
e
);
throw
new
Exception
(
e
);
...
...
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