| | |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(),"对不起,录入数据为空!"); |
| | | } |
| | | //处理批量上传 |
| | | String proDir =systemDictDataBiz.queryByCode(Constants.SYSTEM,Constants.PLATFORM).getCode(); |
| | | String proDir =systemDictDataBiz.queryByCode(Constants.SYSTEM,Constants.PROJECTS).getCode(); |
| | | String platformDir =systemDictDataBiz.queryByCode(Constants.SYSTEM,Constants.PLATFORM).getCode(); |
| | | String basePath = systemDictDataBiz.queryByCode(Constants.SYSTEM,Constants.GOODS_IMG_DIR).getCode() |
| | | + proDir + File.separator ; |
| | | + proDir + platformDir ; |
| | | OssModel ossModel = baseDataService.initOssModel(); |
| | | for (int index = 0; index < dataList.size(); index++) { |
| | | BaseGoodsImportDTO s = dataList.get(index); |
| | |
| | | for(int i=0;i<mulFiles.size();i++){ |
| | | String str = mulFiles.get(i); |
| | | Multifile f = new Multifile(); |
| | | f.setObjType(Constants.ZERO); |
| | | f.setObjType(Constants.ONE); |
| | | f.setName(str); |
| | | f.setType(Constants.ZERO); |
| | | f.setObjId(baseGoods.getId()); |