1. 获取当前时间: Calendar.getInstance().getTime();
2. 更新数据:
public void updateProcessLandLog(ProcessLandLog land, List<String> fields,List<Object> values) { Update update = new Update(); int size = fields.size(); for(int i = 0 ; i < size; i++){ String field = fields.get(i); Object value = values.get(i); update.set(field, value); } updateFirst(new Query(Criteria.where("id").is(land.getId())), update,ProcessLandLog.class); }