Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
chuanshan_gov_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
廖旭伟
chuanshan_gov_platform
Commits
920d332c
Commit
920d332c
authored
Mar 13, 2023
by
廖旭伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
纠错管理bug修改
parent
ed872caf
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
226 additions
and
415 deletions
+226
-415
knowledge-base/doc/api.md
knowledge-base/doc/api.md
+200
-414
knowledge-base/src/main/java/com/mortals/xhx/module/error/service/impl/ErrorRecoveryServiceImpl.java
...x/module/error/service/impl/ErrorRecoveryServiceImpl.java
+26
-1
No files found.
knowledge-base/doc/api.md
View file @
920d332c
This diff is collapsed.
Click to expand it.
knowledge-base/src/main/java/com/mortals/xhx/module/error/service/impl/ErrorRecoveryServiceImpl.java
View file @
920d332c
package
com.mortals.xhx.module.error.service.impl
;
import
com.mortals.xhx.common.utils.StringUtils
;
import
org.springframework.stereotype.Service
;
import
com.mortals.framework.service.impl.AbstractCRUDServiceImpl
;
import
com.mortals.framework.exception.AppException
;
...
...
@@ -6,6 +7,9 @@ import com.mortals.framework.model.Context;
import
com.mortals.xhx.module.error.dao.ErrorRecoveryDao
;
import
com.mortals.xhx.module.error.model.ErrorRecoveryEntity
;
import
com.mortals.xhx.module.error.service.ErrorRecoveryService
;
import
java.util.Date
;
/**
* ErrorRecoveryService
* 纠错管理 service实现
...
...
@@ -16,4 +20,25 @@ import com.mortals.xhx.module.error.service.ErrorRecoveryService;
@Service
(
"errorRecoveryService"
)
public
class
ErrorRecoveryServiceImpl
extends
AbstractCRUDServiceImpl
<
ErrorRecoveryDao
,
ErrorRecoveryEntity
,
Long
>
implements
ErrorRecoveryService
{
@Override
protected
void
saveBefore
(
ErrorRecoveryEntity
entity
,
Context
context
)
throws
AppException
{
entity
.
setSubmitDate
(
new
Date
());
if
(
context
!=
null
&&
context
.
getUser
()!=
null
)
{
entity
.
setSubmitUserId
(
context
.
getUser
().
getId
());
entity
.
setSubmitUserName
(
context
.
getUser
().
getRealName
());
}
super
.
saveBefore
(
entity
,
context
);
}
@Override
protected
void
updateBefore
(
ErrorRecoveryEntity
entity
,
Context
context
)
throws
AppException
{
if
(
StringUtils
.
isNotEmpty
(
entity
.
getFormalReply
())){
entity
.
setStatus
(
1
);
if
(
context
!=
null
&&
context
.
getUser
()!=
null
)
{
entity
.
setAnswerUserId
(
context
.
getUser
().
getId
());
entity
.
setAnswerUserName
(
context
.
getUser
().
getRealName
());
}
}
super
.
updateBefore
(
entity
,
context
);
}
}
\ No newline at end of file
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