master:档口存到redis时机调整;
parent
a5f73729f4
commit
008189aa4d
|
|
@ -250,8 +250,6 @@ public class StoreCertificateServiceImpl implements IStoreCertificateService {
|
|||
assetService.createInternalAccountIfNotExists(store.getId());
|
||||
// 档口用户绑定
|
||||
userService.refreshRelStore(store.getUserId(), ESystemRole.SUPPLIER.getId());
|
||||
// 放到redis中
|
||||
redisCache.setCacheObject(CacheConstants.STORE_KEY + store.getId(), store);
|
||||
return store;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -161,6 +161,8 @@ public class StoreServiceImpl implements IStoreService {
|
|||
this.updateStoreCert(auditDTO.getStoreCert());
|
||||
store.setStoreStatus(StoreStatus.TRIAL_PERIOD.getValue());
|
||||
store.setRejectReason("");
|
||||
// 将store存到redis中
|
||||
redisCache.setCacheObject(CacheConstants.STORE_KEY + store.getId(), store);
|
||||
} else {
|
||||
store.setStoreStatus(StoreStatus.AUDIT_REJECTED.getValue());
|
||||
store.setRejectReason(auditDTO.getRejectReason());
|
||||
|
|
|
|||
Loading…
Reference in New Issue