//提交文件路径
public Map<String, Object> commitFilePath(JSONObject jsonObject){
String filePath=jsonObject.getString("filePath");
String fileName=jsonObject.getString("fileName");
String userId=jsonObject.getString("userId");
System.err.println(filePath);
System.err.println(userId);
//0表示未审核,1表示已审核
boolean flag=new Document().dao.set("user_id",userId).set("file_name",fileName).set("file_path", filePath).set("status", "0").set("create_date",getCurrentTime()).save();
Map<String, Object> result = new HashMap<String, Object>();
if (flag) {
result.put("flag", "1");
} else {
result.put("flag", "0");
}
return result;
}