mirror of https://gitee.com/stylefeng/roses
【7.0.4】【c】更新刷新缓存问题
parent
b14d646352
commit
b7f8b37b01
|
@ -235,6 +235,9 @@ public class CustomerServiceImpl extends ServiceImpl<CustomerMapper, Customer> i
|
||||||
String encrypt = passwordStoredEncryptApi.encrypt(password);
|
String encrypt = passwordStoredEncryptApi.encrypt(password);
|
||||||
customer.setPassword(encrypt);
|
customer.setPassword(encrypt);
|
||||||
this.updateById(customer);
|
this.updateById(customer);
|
||||||
|
|
||||||
|
// 清除缓存中的用户信息
|
||||||
|
customerInfoCacheOperatorApi.remove(String.valueOf(customer.getCustomerId()));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -248,6 +251,9 @@ public class CustomerServiceImpl extends ServiceImpl<CustomerMapper, Customer> i
|
||||||
public void del(CustomerRequest customerRequest) {
|
public void del(CustomerRequest customerRequest) {
|
||||||
Customer customer = this.queryCustomer(customerRequest);
|
Customer customer = this.queryCustomer(customerRequest);
|
||||||
this.removeById(customer.getCustomerId());
|
this.removeById(customer.getCustomerId());
|
||||||
|
|
||||||
|
// 清除缓存中的用户信息
|
||||||
|
customerInfoCacheOperatorApi.remove(String.valueOf(customer.getCustomerId()));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -255,6 +261,9 @@ public class CustomerServiceImpl extends ServiceImpl<CustomerMapper, Customer> i
|
||||||
Customer customer = this.queryCustomer(customerRequest);
|
Customer customer = this.queryCustomer(customerRequest);
|
||||||
BeanUtil.copyProperties(customerRequest, customer);
|
BeanUtil.copyProperties(customerRequest, customer);
|
||||||
this.updateById(customer);
|
this.updateById(customer);
|
||||||
|
|
||||||
|
// 清除缓存中的用户信息
|
||||||
|
customerInfoCacheOperatorApi.remove(String.valueOf(customer.getCustomerId()));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -292,6 +301,9 @@ public class CustomerServiceImpl extends ServiceImpl<CustomerMapper, Customer> i
|
||||||
String encryptPwd = passwordStoredEncryptApi.encrypt(customerInfoRequest.getNewPassword());
|
String encryptPwd = passwordStoredEncryptApi.encrypt(customerInfoRequest.getNewPassword());
|
||||||
customer.setPassword(encryptPwd);
|
customer.setPassword(encryptPwd);
|
||||||
this.updateById(customer);
|
this.updateById(customer);
|
||||||
|
|
||||||
|
// 清除缓存中的用户信息
|
||||||
|
customerInfoCacheOperatorApi.remove(String.valueOf(customer.getCustomerId()));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -308,6 +320,9 @@ public class CustomerServiceImpl extends ServiceImpl<CustomerMapper, Customer> i
|
||||||
customer.setAvatar(customerInfoRequest.getAvatar());
|
customer.setAvatar(customerInfoRequest.getAvatar());
|
||||||
customer.setAvatarObjectName(fileInfo.getFileObjectName());
|
customer.setAvatarObjectName(fileInfo.getFileObjectName());
|
||||||
this.updateById(customer);
|
this.updateById(customer);
|
||||||
|
|
||||||
|
// 清除缓存中的用户信息
|
||||||
|
customerInfoCacheOperatorApi.remove(String.valueOf(customer.getCustomerId()));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue