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

调整客户操作日志

parent bbfddc77
......@@ -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(1l)
.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(1l)
.setOperatorName("admin")
.setCustomerId(customer.getId())
.setNumber(customer.getNumber())
.setName(customer.getName())
.setOperateType(CustomerOperateTypeEnum.VERIFICATION_CODE.getValue())
.setRemark(content);
//记录日志
customerOperateLogService.createOperateLog(customerOperateLogCreateReqVO);
}
}
@Override
......
......@@ -139,16 +139,19 @@ public class MemberAuthServiceImpl implements MemberAuthService {
//通过memberUserId获取Customer
CustomerDO customer = customerMapper.getByMemberUserId(user.getId());
CustomerOperateLogCreateReqVO customerOperateLogCreateReqVO = new CustomerOperateLogCreateReqVO()
.setOperator(1l)
.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(1l)
.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(1l)
.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(1l)
.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(1l)
.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(1l)
.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(1l)
.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(1l)
.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);
}
......
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