提交文件路径

来源:互联网 发布:开淘宝店身份证照片 编辑:程序博客网 时间:2024/04/30 01:39
//提交文件路径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;}

0 0