| | |
| | | @PostMapping(value = "/uploadXlsAnnex") |
| | | public ResponseMsg<Object> uploadXlsAnnex(String path, Integer[] ids, HttpServletRequest req, HttpServletResponse res) { |
| | | try { |
| | | UserEntity ue = tokenService.getCurrentUser(req); |
| | | if (ue == null) { |
| | | return fail("用户未登录", null); |
| | | } |
| | | if (null == ids || ids.length == 0) { |
| | | return fail("找不到元数据的ID集合"); |
| | | } |
| | |
| | | return fail("没有找到上传文件", null); |
| | | } |
| | | |
| | | List<KeyValueEntity> rs = uploadAttachService.uploadXlsAnnex(ms, list, path); |
| | | List<KeyValueEntity> rs = uploadAttachService.uploadXlsAnnex(ue, ms, list, path); |
| | | if (null == rs || rs.size() == 0) { |
| | | return fail("没有要更新的元数据"); |
| | | } |