Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-api-boot-master
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
lanbaoming
jiedao-api-boot-master
Commits
ba1ab954
Commit
ba1ab954
authored
Jan 02, 2025
by
honghy
Committed by
wux
Jan 02, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整客户操作日志
parent
bbfddc77
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
60 additions
and
48 deletions
+60
-48
MemberUserApiImpl.java
...coder/yudao/module/member/api/user/MemberUserApiImpl.java
+12
-10
MemberAuthServiceImpl.java
...dao/module/member/service/auth/MemberAuthServiceImpl.java
+48
-38
No files found.
yudao-module-member/yudao-module-member-impl/src/main/java/cn/iocoder/yudao/module/member/api/user/MemberUserApiImpl.java
View file @
ba1ab954
...
...
@@ -73,16 +73,18 @@ public class MemberUserApiImpl implements MemberUserApi {
userOperationLogService
.
createUserOperationLog
(
userOperationLogCreateReqVO
);
//通过memberUserId获取Customer
CustomerDO
customer
=
customerMapper
.
getByMemberUserId
(
userDO
.
getId
());
CustomerOperateLogCreateReqVO
customerOperateLogCreateReqVO
=
new
CustomerOperateLogCreateReqVO
()
.
setOperator
(
1
l
)
.
setOperatorName
(
"admin"
)
.
setCustomerId
(
customer
.
getId
())
.
setNumber
(
customer
.
getNumber
())
.
setName
(
customer
.
getName
())
.
setOperateType
(
CustomerOperateTypeEnum
.
VERIFICATION_CODE
.
getValue
())
.
setRemark
(
content
);
//记录日志
customerOperateLogService
.
createOperateLog
(
customerOperateLogCreateReqVO
);
if
(
customer
!=
null
)
{
CustomerOperateLogCreateReqVO
customerOperateLogCreateReqVO
=
new
CustomerOperateLogCreateReqVO
()
.
setOperator
(
1
l
)
.
setOperatorName
(
"admin"
)
.
setCustomerId
(
customer
.
getId
())
.
setNumber
(
customer
.
getNumber
())
.
setName
(
customer
.
getName
())
.
setOperateType
(
CustomerOperateTypeEnum
.
VERIFICATION_CODE
.
getValue
())
.
setRemark
(
content
);
//记录日志
customerOperateLogService
.
createOperateLog
(
customerOperateLogCreateReqVO
);
}
}
@Override
...
...
yudao-module-member/yudao-module-member-impl/src/main/java/cn/iocoder/yudao/module/member/service/auth/MemberAuthServiceImpl.java
View file @
ba1ab954
...
...
@@ -139,16 +139,19 @@ public class MemberAuthServiceImpl implements MemberAuthService {
//通过memberUserId获取Customer
CustomerDO
customer
=
customerMapper
.
getByMemberUserId
(
user
.
getId
());
CustomerOperateLogCreateReqVO
customerOperateLogCreateReqVO
=
new
CustomerOperateLogCreateReqVO
()
.
setOperator
(
1
l
)
.
setOperatorName
(
"admin"
)
.
setCustomerId
(
customer
.
getId
())
.
setNumber
(
customer
.
getNumber
())
.
setName
(
customer
.
getName
())
.
setOperateType
(
CustomerOperateTypeEnum
.
VERIFICATION_CODE
.
getValue
())
.
setRemark
(
"手机注册成功"
);
//记录日志
customerOperateLogService
.
createOperateLog
(
customerOperateLogCreateReqVO
);
if
(
customer
!=
null
)
{
CustomerOperateLogCreateReqVO
customerOperateLogCreateReqVO
=
new
CustomerOperateLogCreateReqVO
()
.
setOperator
(
1
l
)
.
setOperatorName
(
"admin"
)
.
setCustomerId
(
customer
.
getId
())
.
setNumber
(
customer
.
getNumber
())
.
setName
(
customer
.
getName
())
.
setOperateType
(
CustomerOperateTypeEnum
.
VERIFICATION_CODE
.
getValue
())
.
setRemark
(
"手机注册成功"
);
//记录日志
customerOperateLogService
.
createOperateLog
(
customerOperateLogCreateReqVO
);
}
//记录日志
UserOperationLogCreateReqVO
userOperationLogCreateReqVO
=
new
UserOperationLogCreateReqVO
();
userOperationLogCreateReqVO
...
...
@@ -496,16 +499,19 @@ public class MemberAuthServiceImpl implements MemberAuthService {
.
setContent
(
"修改放货密码成功"
);
//通过memberUserId获取Customer
CustomerDO
customer
=
customerMapper
.
getByMemberUserId
(
userDO
.
getId
());
CustomerOperateLogCreateReqVO
customerOperateLogCreateReqVO
=
new
CustomerOperateLogCreateReqVO
()
.
setOperator
(
1
l
)
.
setOperatorName
(
"admin"
)
.
setCustomerId
(
customer
.
getId
())
.
setNumber
(
customer
.
getNumber
())
.
setName
(
customer
.
getName
())
.
setOperateType
(
CustomerOperateTypeEnum
.
VERIFICATION_CODE
.
getValue
())
.
setRemark
(
"修改放货密码成功"
);
if
(
customer
!=
null
)
{
CustomerOperateLogCreateReqVO
customerOperateLogCreateReqVO
=
new
CustomerOperateLogCreateReqVO
()
.
setOperator
(
1
l
)
.
setOperatorName
(
"admin"
)
.
setCustomerId
(
customer
.
getId
())
.
setNumber
(
customer
.
getNumber
())
.
setName
(
customer
.
getName
())
.
setOperateType
(
CustomerOperateTypeEnum
.
VERIFICATION_CODE
.
getValue
())
.
setRemark
(
"修改放货密码成功"
);
customerOperateLogService
.
createOperateLog
(
customerOperateLogCreateReqVO
);
}
//记录日志
customerOperateLogService
.
createOperateLog
(
customerOperateLogCreateReqVO
);
userOperationLogService
.
createUserOperationLog
(
userOperationLogCreateReqVO
);
}
...
...
@@ -531,16 +537,18 @@ public class MemberAuthServiceImpl implements MemberAuthService {
userOperationLogService
.
createUserOperationLog
(
userOperationLogCreateReqVO
);
//通过memberUserId获取Customer
CustomerDO
customer
=
customerMapper
.
getByMemberUserId
(
userDO
.
getId
());
CustomerOperateLogCreateReqVO
customerOperateLogCreateReqVO
=
new
CustomerOperateLogCreateReqVO
()
.
setOperator
(
1
l
)
.
setOperatorName
(
"admin"
)
.
setCustomerId
(
customer
.
getId
())
.
setNumber
(
customer
.
getNumber
())
.
setName
(
customer
.
getName
())
.
setOperateType
(
CustomerOperateTypeEnum
.
VERIFICATION_CODE
.
getValue
())
.
setRemark
(
"修改密码验证码"
);
//记录日志
customerOperateLogService
.
createOperateLog
(
customerOperateLogCreateReqVO
);
if
(
customer
!=
null
)
{
CustomerOperateLogCreateReqVO
customerOperateLogCreateReqVO
=
new
CustomerOperateLogCreateReqVO
()
.
setOperator
(
1
l
)
.
setOperatorName
(
"admin"
)
.
setCustomerId
(
customer
.
getId
())
.
setNumber
(
customer
.
getNumber
())
.
setName
(
customer
.
getName
())
.
setOperateType
(
CustomerOperateTypeEnum
.
VERIFICATION_CODE
.
getValue
())
.
setRemark
(
"修改密码验证码"
);
//记录日志
customerOperateLogService
.
createOperateLog
(
customerOperateLogCreateReqVO
);
}
}
else
if
(
reqVO
.
getNodeValue
().
equals
(
SmsNodeEnum
.
MEMBER_LOGIN
.
getNodeValue
()))
{
// 检验用户是否存在
MemberUserDO
userDO
=
checkUserIfExists
(
reqVO
.
getMobile
());
...
...
@@ -554,16 +562,18 @@ public class MemberAuthServiceImpl implements MemberAuthService {
.
setContent
(
"登录验证码"
);
//通过memberUserId获取Customer
CustomerDO
customer
=
customerMapper
.
getByMemberUserId
(
userDO
.
getId
());
CustomerOperateLogCreateReqVO
customerOperateLogCreateReqVO
=
new
CustomerOperateLogCreateReqVO
()
.
setOperator
(
1
l
)
.
setOperatorName
(
"admin"
)
.
setCustomerId
(
customer
.
getId
())
.
setNumber
(
customer
.
getNumber
())
.
setName
(
customer
.
getName
())
.
setOperateType
(
CustomerOperateTypeEnum
.
VERIFICATION_CODE
.
getValue
())
.
setRemark
(
"登录验证码"
);
if
(
customer
!=
null
)
{
CustomerOperateLogCreateReqVO
customerOperateLogCreateReqVO
=
new
CustomerOperateLogCreateReqVO
()
.
setOperator
(
1
l
)
.
setOperatorName
(
"admin"
)
.
setCustomerId
(
customer
.
getId
())
.
setNumber
(
customer
.
getNumber
())
.
setName
(
customer
.
getName
())
.
setOperateType
(
CustomerOperateTypeEnum
.
VERIFICATION_CODE
.
getValue
())
.
setRemark
(
"登录验证码"
);
customerOperateLogService
.
createOperateLog
(
customerOperateLogCreateReqVO
);
}
//记录日志
customerOperateLogService
.
createOperateLog
(
customerOperateLogCreateReqVO
);
userOperationLogService
.
createUserOperationLog
(
userOperationLogCreateReqVO
);
}
...
...
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