|
|
@ -55,14 +55,20 @@ public class DictDataController { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Inner(false) |
|
|
|
@Inner(false) |
|
|
|
@GetMapping("/dictType") |
|
|
|
@GetMapping("/anonymousGetDictType") |
|
|
|
@Cacheable(value = CacheConstants.DICT_DETAILS, keyGenerator = "universalCacheKeyGeneratorUtil") |
|
|
|
public R anonymousGetDictType(String type, String tenantId) { |
|
|
|
public R dictType(String type, String tenantId) { |
|
|
|
|
|
|
|
return R.ok(dictDataService.list(Wrappers.<DictData>query().lambda() |
|
|
|
return R.ok(dictDataService.list(Wrappers.<DictData>query().lambda() |
|
|
|
.eq(DictData::getDictType, type) |
|
|
|
.eq(DictData::getDictType, type) |
|
|
|
.eq(StrUtil.isNotBlank(tenantId), DictData::getTenantId, tenantId))); |
|
|
|
.eq(StrUtil.isNotBlank(tenantId), DictData::getTenantId, tenantId))); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@GetMapping("/dictType") |
|
|
|
|
|
|
|
@Cacheable(value = CacheConstants.DICT_DETAILS, keyGenerator = "universalCacheKeyGeneratorUtil") |
|
|
|
|
|
|
|
public R dictType(String type) { |
|
|
|
|
|
|
|
return R.ok(dictDataService.list(Wrappers.<DictData>query().lambda() |
|
|
|
|
|
|
|
.eq(DictData::getDictType, type))); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@SysLog("字典数据新增") |
|
|
|
@SysLog("字典数据新增") |
|
|
|
@PostMapping("/save") |
|
|
|
@PostMapping("/save") |
|
|
|
@PreAuthorize("@pms.hasPermission('dictData_add')") |
|
|
|
@PreAuthorize("@pms.hasPermission('dictData_add')") |
|
|
|