| | |
| | | import com.lf.server.annotation.SysLog; |
| | | import com.lf.server.entity.all.ResponseMsg; |
| | | import com.lf.server.entity.all.StaticData; |
| | | import com.lf.server.entity.ctrl.KeyValueEntity; |
| | | import com.lf.server.entity.data.DirEntity; |
| | | import com.lf.server.entity.data.MetaEntity; |
| | | import com.lf.server.entity.data.MetaFileEntity; |
| | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * 数据入库 |
| | |
| | | return fail("没有找到上传文件", null); |
| | | } |
| | | |
| | | Map<String, Integer> map = uploadAttachService.uploadXlsAnnex(ms, list, path); |
| | | if (null == map || map.size() == 0) { |
| | | List<KeyValueEntity> rs = uploadAttachService.uploadXlsAnnex(ms, list, path); |
| | | if (null == rs || rs.size() == 0) { |
| | | return fail("没有要更新的元数据"); |
| | | } |
| | | |
| | | return success(map); |
| | | return success(rs); |
| | | } catch (Exception ex) { |
| | | return fail(ex.getMessage(), null); |
| | | } |