06 2016 档案
摘要:插入整数 阿里云db.app_config.update({"name":"goldingot"},{$set:{"number"NumberInt(10)}}) 本地db.getCollection('app_config').insert({ name:"goldingot", number:1
阅读全文
摘要:int intTime=Integer.valueOf(time); int h=intTime/3600; int m=(intTime%3600)/60; int s=(intTime%3600)%60;
阅读全文
摘要:/** * 将Json对象转换成Map * * @param jsonObject * json对象 * @return Map对象 * @throws JSONException */ public static Map toMap(String jsonString) throws JSONEx
阅读全文
摘要:以sadd序列化后存进缓存: for (Room room : roomList) { String strrid=room.getRid();//获取房间id Map parse = Document.parse(JSON.toJSONString(room));//转map<String,Str
阅读全文
摘要:Room需要先实现序列化implements Serializable ArrayList<Room> list=null; roomList = getDaoRoomListData(filterParams, sort, order, skip, limit); List<String> rid
阅读全文
摘要:list排序: //对list排序 @SuppressWarnings("rawtypes") public void order(List<Room> list){ Collections.sort(list,new Comparator<Room>() { @Override public in
阅读全文