体系文件批量上传

pull/14/head
liulixin 2024-01-18 18:00:04 +08:00
parent 4962d4be11
commit 095be8743d
1 changed files with 4 additions and 1 deletions

View File

@ -140,6 +140,7 @@ public class MfolderController extends BaseController {
@RequestParam(value = "SHARE", required = false) String SHARE) throws Exception {
Map<String, Object> map = new HashMap<>();
ArrayList<String> pictureList = new ArrayList<>();
List<PageData> mfolderServiceList = new ArrayList();
String errInfo = "success";
PageData pd = new PageData();
if (files != null && files.length > 0) {
@ -179,13 +180,15 @@ public class MfolderController extends BaseController {
pictureList.add(Const.FILEPATHFILE + Jurisdiction.getCORPINFO_ID() + "/" + ffile + "/" + fileName+
"@@"
+fileName);
mfolderServiceList.add(pd);
mfolderService.save(pd); // 存入数据库表
} else {
errInfo = "fail";
}
}
}
map.put("sendPicturesList", JSON.toJSONString(pictureList));
map.put("sendPicturesList", JSON.toJSONString(mfolderServiceList));
map.put("mfolderServiceList", JSON.toJSONString(pictureList));
map.put("dockData", JSON.toJSONString(pd));
map.put("result", errInfo); // 返回结果
return map;