|
@@ -143,7 +143,7 @@ public class TkDictItemController extends BaseController {
|
|
|
@PreAuthorize("@check.checkPermissions({'SYS_ADMIN','PLATFORM_ADMIN'},{'api:yt:dictItem:post'})")
|
|
|
public ResponseResult<SysDictItemDTO> saveSysDictItem(
|
|
|
HttpServletRequest servletRequest,
|
|
|
- @Validated SysDictItemDTO sysDictItemDTO)
|
|
|
+ @RequestBody SysDictItemDTO sysDictItemDTO)
|
|
|
throws ThingsboardException {
|
|
|
removeRedisKey();
|
|
|
|
|
@@ -169,7 +169,7 @@ public class TkDictItemController extends BaseController {
|
|
|
@PreAuthorize("@check.checkPermissions({'SYS_ADMIN','PLATFORM_ADMIN'},{'api:yt:dictItem:update'})")
|
|
|
public ResponseResult<SysDictItemDTO> updateSysDictItem(
|
|
|
HttpServletRequest servletRequest,
|
|
|
- SysDictItemDTO SysDictItemDTO) {
|
|
|
+ @RequestBody SysDictItemDTO SysDictItemDTO) {
|
|
|
|
|
|
removeRedisKey();
|
|
|
|
|
@@ -186,9 +186,15 @@ public class TkDictItemController extends BaseController {
|
|
|
|
|
|
public void removeRedisKey(){
|
|
|
Set<String> keys = redisTemplate.keys(dict_prefix + "*");
|
|
|
- if(keys!=null && keys.size()>0){
|
|
|
- redisTemplate.opsForHash().delete(keys);
|
|
|
+ if(keys!=null &&keys.size()>0){
|
|
|
+ redisTemplate.delete(keys);
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ for (String key : keys) {
|
|
|
+
|
|
|
+ }
|
|
|
+ }*/
|
|
|
+
|
|
|
}
|
|
|
}
|