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

调整客户操作日志

parent bbfddc77
...@@ -73,16 +73,18 @@ public class MemberUserApiImpl implements MemberUserApi { ...@@ -73,16 +73,18 @@ public class MemberUserApiImpl implements MemberUserApi {
userOperationLogService.createUserOperationLog(userOperationLogCreateReqVO); userOperationLogService.createUserOperationLog(userOperationLogCreateReqVO);
//通过memberUserId获取Customer //通过memberUserId获取Customer
CustomerDO customer = customerMapper.getByMemberUserId(userDO.getId()); CustomerDO customer = customerMapper.getByMemberUserId(userDO.getId());
CustomerOperateLogCreateReqVO customerOperateLogCreateReqVO = new CustomerOperateLogCreateReqVO() if (customer!=null) {
.setOperator(1l) CustomerOperateLogCreateReqVO customerOperateLogCreateReqVO = new CustomerOperateLogCreateReqVO()
.setOperatorName("admin") .setOperator(1l)
.setCustomerId(customer.getId()) .setOperatorName("admin")
.setNumber(customer.getNumber()) .setCustomerId(customer.getId())
.setName(customer.getName()) .setNumber(customer.getNumber())
.setOperateType(CustomerOperateTypeEnum.VERIFICATION_CODE.getValue()) .setName(customer.getName())
.setRemark(content); .setOperateType(CustomerOperateTypeEnum.VERIFICATION_CODE.getValue())
//记录日志 .setRemark(content);
customerOperateLogService.createOperateLog(customerOperateLogCreateReqVO); //记录日志
customerOperateLogService.createOperateLog(customerOperateLogCreateReqVO);
}
} }
@Override @Override
......
...@@ -139,16 +139,19 @@ public class MemberAuthServiceImpl implements MemberAuthService { ...@@ -139,16 +139,19 @@ public class MemberAuthServiceImpl implements MemberAuthService {
//通过memberUserId获取Customer //通过memberUserId获取Customer
CustomerDO customer = customerMapper.getByMemberUserId(user.getId()); CustomerDO customer = customerMapper.getByMemberUserId(user.getId());
CustomerOperateLogCreateReqVO customerOperateLogCreateReqVO = new CustomerOperateLogCreateReqVO() if (customer!=null) {
.setOperator(1l) CustomerOperateLogCreateReqVO customerOperateLogCreateReqVO = new CustomerOperateLogCreateReqVO()
.setOperatorName("admin") .setOperator(1l)
.setCustomerId(customer.getId()) .setOperatorName("admin")
.setNumber(customer.getNumber()) .setCustomerId(customer.getId())
.setName(customer.getName()) .setNumber(customer.getNumber())
.setOperateType(CustomerOperateTypeEnum.VERIFICATION_CODE.getValue()) .setName(customer.getName())
.setRemark("手机注册成功"); .setOperateType(CustomerOperateTypeEnum.VERIFICATION_CODE.getValue())
//记录日志 .setRemark("手机注册成功");
customerOperateLogService.createOperateLog(customerOperateLogCreateReqVO); //记录日志
customerOperateLogService.createOperateLog(customerOperateLogCreateReqVO);
}
//记录日志 //记录日志
UserOperationLogCreateReqVO userOperationLogCreateReqVO = new UserOperationLogCreateReqVO(); UserOperationLogCreateReqVO userOperationLogCreateReqVO = new UserOperationLogCreateReqVO();
userOperationLogCreateReqVO userOperationLogCreateReqVO
...@@ -496,16 +499,19 @@ public class MemberAuthServiceImpl implements MemberAuthService { ...@@ -496,16 +499,19 @@ public class MemberAuthServiceImpl implements MemberAuthService {
.setContent("修改放货密码成功"); .setContent("修改放货密码成功");
//通过memberUserId获取Customer //通过memberUserId获取Customer
CustomerDO customer = customerMapper.getByMemberUserId(userDO.getId()); CustomerDO customer = customerMapper.getByMemberUserId(userDO.getId());
CustomerOperateLogCreateReqVO customerOperateLogCreateReqVO = new CustomerOperateLogCreateReqVO() if (customer!=null) {
.setOperator(1l) CustomerOperateLogCreateReqVO customerOperateLogCreateReqVO = new CustomerOperateLogCreateReqVO()
.setOperatorName("admin") .setOperator(1l)
.setCustomerId(customer.getId()) .setOperatorName("admin")
.setNumber(customer.getNumber()) .setCustomerId(customer.getId())
.setName(customer.getName()) .setNumber(customer.getNumber())
.setOperateType(CustomerOperateTypeEnum.VERIFICATION_CODE.getValue()) .setName(customer.getName())
.setRemark("修改放货密码成功"); .setOperateType(CustomerOperateTypeEnum.VERIFICATION_CODE.getValue())
.setRemark("修改放货密码成功");
customerOperateLogService.createOperateLog(customerOperateLogCreateReqVO);
}
//记录日志 //记录日志
customerOperateLogService.createOperateLog(customerOperateLogCreateReqVO);
userOperationLogService.createUserOperationLog(userOperationLogCreateReqVO); userOperationLogService.createUserOperationLog(userOperationLogCreateReqVO);
} }
...@@ -531,16 +537,18 @@ public class MemberAuthServiceImpl implements MemberAuthService { ...@@ -531,16 +537,18 @@ public class MemberAuthServiceImpl implements MemberAuthService {
userOperationLogService.createUserOperationLog(userOperationLogCreateReqVO); userOperationLogService.createUserOperationLog(userOperationLogCreateReqVO);
//通过memberUserId获取Customer //通过memberUserId获取Customer
CustomerDO customer = customerMapper.getByMemberUserId(userDO.getId()); CustomerDO customer = customerMapper.getByMemberUserId(userDO.getId());
CustomerOperateLogCreateReqVO customerOperateLogCreateReqVO = new CustomerOperateLogCreateReqVO() if (customer!=null) {
.setOperator(1l) CustomerOperateLogCreateReqVO customerOperateLogCreateReqVO = new CustomerOperateLogCreateReqVO()
.setOperatorName("admin") .setOperator(1l)
.setCustomerId(customer.getId()) .setOperatorName("admin")
.setNumber(customer.getNumber()) .setCustomerId(customer.getId())
.setName(customer.getName()) .setNumber(customer.getNumber())
.setOperateType(CustomerOperateTypeEnum.VERIFICATION_CODE.getValue()) .setName(customer.getName())
.setRemark("修改密码验证码"); .setOperateType(CustomerOperateTypeEnum.VERIFICATION_CODE.getValue())
//记录日志 .setRemark("修改密码验证码");
customerOperateLogService.createOperateLog(customerOperateLogCreateReqVO); //记录日志
customerOperateLogService.createOperateLog(customerOperateLogCreateReqVO);
}
} else if (reqVO.getNodeValue().equals(SmsNodeEnum.MEMBER_LOGIN.getNodeValue())) { } else if (reqVO.getNodeValue().equals(SmsNodeEnum.MEMBER_LOGIN.getNodeValue())) {
// 检验用户是否存在 // 检验用户是否存在
MemberUserDO userDO = checkUserIfExists(reqVO.getMobile()); MemberUserDO userDO = checkUserIfExists(reqVO.getMobile());
...@@ -554,16 +562,18 @@ public class MemberAuthServiceImpl implements MemberAuthService { ...@@ -554,16 +562,18 @@ public class MemberAuthServiceImpl implements MemberAuthService {
.setContent("登录验证码"); .setContent("登录验证码");
//通过memberUserId获取Customer //通过memberUserId获取Customer
CustomerDO customer = customerMapper.getByMemberUserId(userDO.getId()); CustomerDO customer = customerMapper.getByMemberUserId(userDO.getId());
CustomerOperateLogCreateReqVO customerOperateLogCreateReqVO = new CustomerOperateLogCreateReqVO() if (customer != null) {
.setOperator(1l) CustomerOperateLogCreateReqVO customerOperateLogCreateReqVO = new CustomerOperateLogCreateReqVO()
.setOperatorName("admin") .setOperator(1l)
.setCustomerId(customer.getId()) .setOperatorName("admin")
.setNumber(customer.getNumber()) .setCustomerId(customer.getId())
.setName(customer.getName()) .setNumber(customer.getNumber())
.setOperateType(CustomerOperateTypeEnum.VERIFICATION_CODE.getValue()) .setName(customer.getName())
.setRemark("登录验证码"); .setOperateType(CustomerOperateTypeEnum.VERIFICATION_CODE.getValue())
.setRemark("登录验证码");
customerOperateLogService.createOperateLog(customerOperateLogCreateReqVO);
}
//记录日志 //记录日志
customerOperateLogService.createOperateLog(customerOperateLogCreateReqVO);
userOperationLogService.createUserOperationLog(userOperationLogCreateReqVO); 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