|
|
@@ -20,6 +20,7 @@ import com.usky.system.service.vo.SysTenantVo;
|
|
|
import com.usky.system.service.vo.TenantPlatformVo;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
+import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
import java.time.LocalDateTime;
|
|
|
import java.util.List;
|
|
|
@@ -135,6 +136,7 @@ public class SysTenantServiceImpl extends AbstractCrudService<SysTenantMapper, S
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
+ @Transactional(rollbackFor = Exception.class)
|
|
|
public void cloneTenantData(SysTenant sysTenant) {
|
|
|
Integer originalTenantId = sysTenant.getOriginalTenantId();
|
|
|
|
|
|
@@ -213,6 +215,7 @@ public class SysTenantServiceImpl extends AbstractCrudService<SysTenantMapper, S
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
+ @Transactional(rollbackFor = Exception.class)
|
|
|
public void delTenantData(Integer tenantId) {
|
|
|
sysTenantMapper.delSysTenant(tenantId);
|
|
|
sysTenantMapper.delBaseSpace(tenantId);
|