Browse Source

(测试环境-1回)营业状态(提测0624):注销前设置店铺状态暂停营业,走注销流程后再取消注销,店铺状态正常营业

liudongzhi 1 day ago
parent
commit
86c953dcbc

+ 3 - 1
alien-store/src/main/java/shop/alien/store/service/impl/StoreLogoutSyncServiceImpl.java

@@ -63,7 +63,9 @@ public class StoreLogoutSyncServiceImpl implements StoreLogoutSyncService {
         storeInfoMapper.update(null, new LambdaUpdateWrapper<StoreInfo>()
                 .eq(StoreInfo::getId, store.getId())
                 .set(StoreInfo::getLogoutFlag, StoreInfo.LOGOUT_FLAG_NORMAL)
-                .set(StoreInfo::getBusinessStatus, StoreInfo.BUSINESS_STATUS_NORMAL)
+                // 暂停营业,当撤销注销时,营业状态变成暂停营业,不管注销之前或者是注销之后的状态是什么,都改为暂停营业
+//                .set(StoreInfo::getBusinessStatus, StoreInfo.BUSINESS_STATUS_NORMAL)
+                .set(StoreInfo::getBusinessStatus, 1)
                 .set(StoreInfo::getStoreStatus, 1)
                 .set(StoreInfo::getLogoutReason, "")
                 .set(StoreInfo::getLogoutCode, "")