perf:移除hutool-json,直接使用fastjson
This commit is contained in:
@@ -5,7 +5,7 @@ import cn.hutool.core.collection.CollUtil;
|
||||
import cn.hutool.core.lang.Validator;
|
||||
import cn.hutool.core.map.MapUtil;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import cn.hutool.json.JSONUtil;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.tiesheng.role.mapper.*;
|
||||
import com.tiesheng.role.pojos.dao.CoreRoleAuthority;
|
||||
@@ -124,7 +124,7 @@ public class CoreRoleService extends TsServiceBase<CoreRoleGroupMapper, CoreRole
|
||||
coreRoleGroupRx.setType("bind");
|
||||
list.add(coreRoleGroupRx);
|
||||
|
||||
List<String> deps = JSONUtil.toList(authority.getDeps(), String.class);
|
||||
List<String> deps = JSON.parseArray(authority.getDeps(), String.class);
|
||||
for (String dep : deps) {
|
||||
CoreRoleGroupRx depRx = new CoreRoleGroupRx();
|
||||
depRx.setGroupId(roleGroup.getId());
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package com.tiesheng.role.service;
|
||||
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import cn.hutool.json.JSONUtil;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.tiesheng.annotation.role.RoleAuthority;
|
||||
import com.tiesheng.role.mapper.CoreRoleAuthorityMapper;
|
||||
@@ -76,7 +76,7 @@ public class RoleAuthorityHandler implements TsAuthorityHandler {
|
||||
menuAuthority.setPlatform(menuPlatform);
|
||||
menuAuthority.setVersion(version);
|
||||
menuAuthority.setSource("auto");
|
||||
menuAuthority.setDeps(JSONUtil.toJsonStr(menu.deps()));
|
||||
menuAuthority.setDeps(JSON.toJSONString(menu.deps()));
|
||||
menuAuthority.setId(StrUtil.join("_", menuAuthority.getService(), menuAuthority.getNo()));
|
||||
list.add(menuAuthority);
|
||||
|
||||
@@ -91,7 +91,7 @@ public class RoleAuthorityHandler implements TsAuthorityHandler {
|
||||
point.setParent(menuAuthority.getId());
|
||||
point.setVersion(version);
|
||||
point.setSource("auto");
|
||||
point.setDeps(JSONUtil.toJsonStr(authority.deps()));
|
||||
point.setDeps(JSON.toJSONString(authority.deps()));
|
||||
point.setPlatform(StrUtil.emptyToDefault(authority.platform(), menuPlatform));
|
||||
point.setId(StrUtil.join("_", point.getService(), point.getNo()));
|
||||
list.add(point);
|
||||
|
||||
Reference in New Issue
Block a user