| | |
| | | if (null == list || list.isEmpty()) { |
| | | return fail("没有找到文件", null); |
| | | } |
| | | if (null == entity) { |
| | | return fail("元数据信息为空", null); |
| | | } |
| | | |
| | | return null; |
| | | int rows = dataUploadService.insertFiles(entity, list); |
| | | |
| | | return success("成功", rows); |
| | | } catch (Exception ex) { |
| | | return fail(ex.getMessage(), null); |
| | | } |
| | |
| | | package com.lf.server.service.data; |
| | | |
| | | import com.lf.server.entity.data.MetaEntity; |
| | | import com.lf.server.entity.data.MetaFileEntity; |
| | | import com.lf.server.service.all.BaseUploadService; |
| | | import org.springframework.stereotype.Service; |
| | |
| | | /** |
| | | * 插入文件 |
| | | */ |
| | | public int insertFiles(List<MetaFileEntity> list) { |
| | | public int insertFiles(MetaEntity entity, List<MetaFileEntity> list) { |
| | | int count = 0; |
| | | try { |
| | | String temp = pathHelper.getConfig().getTempPath(); |