|
|
@@ -241,7 +241,6 @@ public class docManage extends Controller {
|
|
|
|
|
|
public String uploadSuccess() {
|
|
|
String obsfilename = content.getString("obsfilename");
|
|
|
-
|
|
|
if (!obsfilemap.containsKey(obsfilename)) {
|
|
|
return getErrReturnObject().setErrMsg("找不到对应的云存储文件").toString();
|
|
|
}
|
|
|
@@ -282,6 +281,7 @@ public class docManage extends Controller {
|
|
|
mpctaskid = mpcFactory.createMpcTask(siteid, obsfilename);
|
|
|
}
|
|
|
ArrayList<String> SQlist = new ArrayList<>();
|
|
|
+
|
|
|
/**
|
|
|
* 本地信息插入
|
|
|
*/
|
|
|
@@ -356,6 +356,20 @@ public class docManage extends Controller {
|
|
|
if (ftype.equalsIgnoreCase("headportrait")) {
|
|
|
headPicMap.remove(userid);//清除头像缓存
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 自动删除指定的附件信息
|
|
|
+ */
|
|
|
+ if (content.containsKey("deleteattachmentids")) {
|
|
|
+ JSONArray deleteattachmentids = content.getJSONArray("deleteattachmentids");//需要删除的附件信息id
|
|
|
+ for (Object o : deleteattachmentids) {
|
|
|
+ long id = (long) o;
|
|
|
+ content.put("ownertable", ownertable);
|
|
|
+ content.put("ownerid", ownerid);
|
|
|
+ content.put("tattachmentid", id);
|
|
|
+ deleteDoc();
|
|
|
+ }
|
|
|
+ }
|
|
|
} catch (Exception exception) {
|
|
|
resultObject.put("code", 0);
|
|
|
resultObject.put("msg", exception.getMessage());
|