Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
二
二医大银行收款回单
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
JAVA
二医大银行收款回单
Merge requests
!487
3
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
3
jiangxiaoming
into
dev
Overview
0
Commits
1
Pipelines
0
Changes
1
Merged
jiangxiaoming
requested to merge
jiangxiaoming
into
dev
7 months ago
Overview
0
Commits
1
Pipelines
0
Changes
1
Expand
0
0
Merge request reports
Compare
dev
dev (base)
and
latest version
latest version
1e57ce72
1 commit,
7 months ago
1 file
+
15
−
0
Expand all files
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
ServiceSite/src/main/java/com/seasky/ledgerincome/aspect/LogAspect.java
+
15
−
0
Options
@@ -57,6 +57,21 @@ public class LogAspect{
@Pointcut
(
"@annotation(com.seasky.ledgerincome.annotation.LogOperation)"
)
public
void
logPointcut
()
{}
@AfterThrowing
(
pointcut
=
"logPointcut()"
,
throwing
=
"ex"
)
public
void
afterThrowing
(
JoinPoint
joinPoint
,
Throwable
ex
){
String
methodName
=
joinPoint
.
getSignature
().
getName
();
Object
[]
args
=
joinPoint
.
getArgs
();
if
(
methodName
.
equals
(
"queryInvoice"
)){
UserInfoOut
infoOut
=
userInfoUtil
.
getLoginInfoOut
();
String
userName
=
infoOut
.
getUserName
();
Long
incomeId
=
((
SendInvoiceCmd
)
args
[
0
]).
getIncomeId
();
String
desc
=
"查询接口反馈信息:"
+
ex
.
getMessage
();
String
personName
=
infoOut
.
getPersonName
();
LogPo
log
=
new
LogPo
(
incomeId
,
"开票结果查询"
,
personName
,
userName
,
desc
,
new
Date
());
logMapper
.
insert
(
log
);
}
}
@Around
(
"execution(* com.seasky.ledgerincome.interfaces.controller.*.*(..))"
)
public
Object
doAroundAdvice
(
ProceedingJoinPoint
point
)
throws
Throwable
{
String
userName
=
""
;