mirror of
https://gitee.com/dromara/RuoYi-Vue-Plus.git
synced 2026-09-19 09:55:16 +08:00
租户字典同步方法命名修正
This commit is contained in:
parent
a5904b23d8
commit
310cd4ce72
@ -139,13 +139,16 @@ public class SysDictTypeController extends BaseController {
|
|||||||
/**
|
/**
|
||||||
* 同步租户字典
|
* 同步租户字典
|
||||||
*/
|
*/
|
||||||
@GetMapping("asyncTenantDict")
|
@GetMapping("syncTenantDict")
|
||||||
@Log(title = "同步租户字典", businessType = BusinessType.INSERT)
|
@Log(title = "同步租户字典", businessType = BusinessType.INSERT)
|
||||||
@Transactional(rollbackFor = Exception.class)
|
@Transactional(rollbackFor = Exception.class)
|
||||||
@SaCheckRole("superadmin")
|
@SaCheckRole(TenantConstants.SUPER_ADMIN_ROLE_KEY)
|
||||||
public R<Void> asyncTenantDict(String tenantId) {
|
public R<Void> syncTenantDict(String tenantId) {
|
||||||
|
if (!TenantHelper.isEnable()) {
|
||||||
|
return R.fail("当前未开启租户模式");
|
||||||
|
}
|
||||||
if (TenantConstants.DEFAULT_TENANT_ID.equals(tenantId)) {
|
if (TenantConstants.DEFAULT_TENANT_ID.equals(tenantId)) {
|
||||||
throw new ServiceException("超级管理员无须同步字典");
|
return R.fail("超级管理员无须同步字典");
|
||||||
}
|
}
|
||||||
//查询超管所有字典类型
|
//查询超管所有字典类型
|
||||||
List<SysDictTypeVo> typeVos = TenantHelper.dynamic(TenantConstants.DEFAULT_TENANT_ID, dictTypeService::selectDictTypeAll);
|
List<SysDictTypeVo> typeVos = TenantHelper.dynamic(TenantConstants.DEFAULT_TENANT_ID, dictTypeService::selectDictTypeAll);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user