This commit is contained in:
TinyAnts
2022-04-12 18:28:08 +08:00
parent bc41d7362b
commit a4f44c4d8e
6 changed files with 121 additions and 3 deletions

View File

@@ -22,6 +22,7 @@ public class SystemMenu implements Serializable {
private String menuIcon;
private Integer menuSort;
private String perms;
private String component;
private Integer isDisable;
private Long createTime;
private Long updateTime;

View File

@@ -156,6 +156,23 @@ public class ToolsUtil {
return JSON.parseObject(json, type);
}
/**
* JSON转map
*
* @author fzr
* @param object 对象
* @return Map<String, String>
*/
public static Map<String, String> objectToMap(Object object){
Type type = new TypeToken<Map<String, String>>() {}.getType();
return JSON.parseObject(JSONObject.toJSONString(object), type);
}
public static List<Map<String, String>> stringToList(String s) {
Type type = new TypeToken<List<Map<String, String>>>() {}.getType();
return JSON.parseObject(s, type);
}
/**
* map合并
*