Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
attendance-performance-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
attendance-performance-platform
Commits
849c1b01
Commit
849c1b01
authored
Jul 18, 2023
by
廖旭伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改禅道bug,绩效反馈列表状态与详情状态不一致的bug
parent
fff9fdfb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
attendance-performance-manager/src/main/java/com/mortals/xhx/module/feedback/web/FeedbackController.java
...m/mortals/xhx/module/feedback/web/FeedbackController.java
+19
-0
No files found.
attendance-performance-manager/src/main/java/com/mortals/xhx/module/feedback/web/FeedbackController.java
View file @
849c1b01
package
com.mortals.xhx.module.feedback.web
;
import
cn.hutool.core.date.DateUtil
;
import
com.mortals.framework.annotation.UnAuth
;
import
com.mortals.framework.common.Rest
;
import
com.mortals.framework.exception.AppException
;
...
...
@@ -88,6 +89,24 @@ public class FeedbackController extends BaseCRUDJsonBodyMappingController<Feedba
}
}
if
(
entity
!=
null
)
{
Date
feedbackTimeStart
=
entity
.
getFeedbackTimeStart
();
Date
feedbackTimeEnd
=
entity
.
getFeedbackTimeEnd
();
if
(
DateUtil
.
compare
(
new
Date
(),
feedbackTimeStart
)
<
0
)
{
entity
.
setProcessStatus
(
0
);
}
boolean
in
=
DateUtil
.
isIn
(
new
Date
(),
entity
.
getFeedbackTimeStart
(),
entity
.
getFeedbackTimeEnd
());
if
(
in
)
{
entity
.
setProcessStatus
(
1
);
}
if
(
DateUtil
.
compare
(
new
Date
(),
feedbackTimeEnd
)
>
0
)
{
entity
.
setProcessStatus
(
2
);
}
}
return
super
.
infoAfter
(
id
,
model
,
entity
,
context
);
}
...
...
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