master:档口存到redis时机调整;

pull/1121/head
liujiang 2025-10-01 20:57:34 +08:00
parent a5f73729f4
commit 008189aa4d
2 changed files with 2 additions and 2 deletions

View File

@ -250,8 +250,6 @@ public class StoreCertificateServiceImpl implements IStoreCertificateService {
assetService.createInternalAccountIfNotExists(store.getId()); assetService.createInternalAccountIfNotExists(store.getId());
// 档口用户绑定 // 档口用户绑定
userService.refreshRelStore(store.getUserId(), ESystemRole.SUPPLIER.getId()); userService.refreshRelStore(store.getUserId(), ESystemRole.SUPPLIER.getId());
// 放到redis中
redisCache.setCacheObject(CacheConstants.STORE_KEY + store.getId(), store);
return store; return store;
} }

View File

@ -161,6 +161,8 @@ public class StoreServiceImpl implements IStoreService {
this.updateStoreCert(auditDTO.getStoreCert()); this.updateStoreCert(auditDTO.getStoreCert());
store.setStoreStatus(StoreStatus.TRIAL_PERIOD.getValue()); store.setStoreStatus(StoreStatus.TRIAL_PERIOD.getValue());
store.setRejectReason(""); store.setRejectReason("");
// 将store存到redis中
redisCache.setCacheObject(CacheConstants.STORE_KEY + store.getId(), store);
} else { } else {
store.setStoreStatus(StoreStatus.AUDIT_REJECTED.getValue()); store.setStoreStatus(StoreStatus.AUDIT_REJECTED.getValue());
store.setRejectReason(auditDTO.getRejectReason()); store.setRejectReason(auditDTO.getRejectReason());