| | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * 数据入库 |
| | |
| | | public class UploadController extends QueryController { |
| | | @Autowired |
| | | UploadService uploadService; |
| | | |
| | | @Autowired |
| | | UploadAttachService uploadAttachService; |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "查询路径") |
| | |
| | | if (null == list || list.isEmpty()) { |
| | | return fail("没有找到上传文件", null); |
| | | } |
| | | |
| | | uploadService.copePath(list); |
| | | |
| | | return success(list); |
| | | } catch (Exception ex) { |
| | |
| | | return fail("没有找到上传文件", null); |
| | | } |
| | | |
| | | return success(list); |
| | | Map<String, Integer> map = uploadAttachService.uploadXlsAnnex(ms, list); |
| | | if (null == map || map.size() == 0) { |
| | | return fail("没有要更新的元数据"); |
| | | } |
| | | |
| | | return success(map); |
| | | } catch (Exception ex) { |
| | | return fail(ex.getMessage(), null); |
| | | } |