Commit ba1ab954 authored by honghy's avatar honghy Committed by wux

调整客户操作日志

parent bbfddc77
......@@ -73,6 +73,7 @@ public class MemberUserApiImpl implements MemberUserApi {
userOperationLogService.createUserOperationLog(userOperationLogCreateReqVO);
//通过memberUserId获取Customer
CustomerDO customer = customerMapper.getByMemberUserId(userDO.getId());
if (customer!=null) {
CustomerOperateLogCreateReqVO customerOperateLogCreateReqVO = new CustomerOperateLogCreateReqVO()
.setOperator(1l)
.setOperatorName("admin")
......@@ -84,6 +85,7 @@ public class MemberUserApiImpl implements MemberUserApi {
//记录日志
customerOperateLogService.createOperateLog(customerOperateLogCreateReqVO);
}
}
@Override
public PageResult<UserRespDTO> getUserList(UserSelectReqVO userSelectReqVO) {
......
......@@ -139,6 +139,7 @@ public class MemberAuthServiceImpl implements MemberAuthService {
//通过memberUserId获取Customer
CustomerDO customer = customerMapper.getByMemberUserId(user.getId());
if (customer!=null) {
CustomerOperateLogCreateReqVO customerOperateLogCreateReqVO = new CustomerOperateLogCreateReqVO()
.setOperator(1l)
.setOperatorName("admin")
......@@ -149,6 +150,8 @@ public class MemberAuthServiceImpl implements MemberAuthService {
.setRemark("手机注册成功");
//记录日志
customerOperateLogService.createOperateLog(customerOperateLogCreateReqVO);
}
//记录日志
UserOperationLogCreateReqVO userOperationLogCreateReqVO = new UserOperationLogCreateReqVO();
userOperationLogCreateReqVO
......@@ -496,6 +499,7 @@ public class MemberAuthServiceImpl implements MemberAuthService {
.setContent("修改放货密码成功");
//通过memberUserId获取Customer
CustomerDO customer = customerMapper.getByMemberUserId(userDO.getId());
if (customer!=null) {
CustomerOperateLogCreateReqVO customerOperateLogCreateReqVO = new CustomerOperateLogCreateReqVO()
.setOperator(1l)
.setOperatorName("admin")
......@@ -504,8 +508,10 @@ public class MemberAuthServiceImpl implements MemberAuthService {
.setName(customer.getName())
.setOperateType(CustomerOperateTypeEnum.VERIFICATION_CODE.getValue())
.setRemark("修改放货密码成功");
//记录日志
customerOperateLogService.createOperateLog(customerOperateLogCreateReqVO);
}
//记录日志
userOperationLogService.createUserOperationLog(userOperationLogCreateReqVO);
}
......@@ -531,6 +537,7 @@ public class MemberAuthServiceImpl implements MemberAuthService {
userOperationLogService.createUserOperationLog(userOperationLogCreateReqVO);
//通过memberUserId获取Customer
CustomerDO customer = customerMapper.getByMemberUserId(userDO.getId());
if (customer!=null) {
CustomerOperateLogCreateReqVO customerOperateLogCreateReqVO = new CustomerOperateLogCreateReqVO()
.setOperator(1l)
.setOperatorName("admin")
......@@ -541,6 +548,7 @@ public class MemberAuthServiceImpl implements MemberAuthService {
.setRemark("修改密码验证码");
//记录日志
customerOperateLogService.createOperateLog(customerOperateLogCreateReqVO);
}
} else if (reqVO.getNodeValue().equals(SmsNodeEnum.MEMBER_LOGIN.getNodeValue())) {
// 检验用户是否存在
MemberUserDO userDO = checkUserIfExists(reqVO.getMobile());
......@@ -554,6 +562,7 @@ public class MemberAuthServiceImpl implements MemberAuthService {
.setContent("登录验证码");
//通过memberUserId获取Customer
CustomerDO customer = customerMapper.getByMemberUserId(userDO.getId());
if (customer != null) {
CustomerOperateLogCreateReqVO customerOperateLogCreateReqVO = new CustomerOperateLogCreateReqVO()
.setOperator(1l)
.setOperatorName("admin")
......@@ -562,8 +571,9 @@ public class MemberAuthServiceImpl implements MemberAuthService {
.setName(customer.getName())
.setOperateType(CustomerOperateTypeEnum.VERIFICATION_CODE.getValue())
.setRemark("登录验证码");
//记录日志
customerOperateLogService.createOperateLog(customerOperateLogCreateReqVO);
}
//记录日志
userOperationLogService.createUserOperationLog(userOperationLogCreateReqVO);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment