代码如下,验证可行:
public Map<String,String> convertParam(Map map){
Map<String,String> queryParam = new HashMap<>();
Set<String> keys=map.keySet();
for (String key:keys){
if(map.get(key)!=null&& !JSONNull.getInstance().equals(map.get(key)))
queryParam.put(ke,map.get(key).toString());
}
return queryParam;
}
网友评论