如果我要查询单个女神的信息,那map.put("value", "???");这个要怎么写
因为""里面是字符串,填任何值的话都变成字符串了,该怎么做呢。。
else if (OPERATION_GET.equals(in.toUpperCase()) || OPERATION_GET.substring(0, 1).equals(in.toUpperCase())){
List<Map<String, Object>> params = new ArrayList<>();
Map<String, Object> map = new HashMap<>();
System.out.println("请输入您要查询女神的id:");
String s = scan.nextLine().toString();
map.put("name","user_name");
map.put("rela","=");
map.put("value", "???");
params.add(map);
List<Goddess> list;
try {
list = action.query(params);
for (int i = 0; i < list.size(); i++) {
System.out.println(list.get(i).getId() + " " + list.get(i).getUser_name());
}
} catch (Exception e) {
e.printStackTrace();
}
}