| | |
| | | |
| | | public static final String DOMAIN = "OSS"; |
| | | public static final String BUCKET_NAME = "bucketName"; |
| | | public static final String ERROR_FOLDER = "导入错误记录/"; // 错误文件存储目录 |
| | | public static final String ERROR_FOLDER = "小区车辆进出场导入文件异常地址"; // 错误文件存储目录 |
| | | |
| | | @Autowired |
| | | private ICommunityInnerServiceSMO communityInnerServiceSMO; |
| | |
| | | } |
| | | |
| | | // 构建小区在OSS中的文件夹路径 |
| | | String communityFolder = "小区车辆进出场明细/" + communityName + "/"; |
| | | String communityFolder = MappingCache.getValue("OSS", "小区车辆进出场导入文件地址") + communityName + "/"; |
| | | |
| | | // 检查该小区文件夹是否存在 |
| | | if (!doesFolderExist(ossClient, bucketName, communityFolder)) { |
| | |
| | | // 创建错误文件名,在原文件名前加"错误_" |
| | | String errorFileName = "错误_" + originalFileName; |
| | | // 错误文件存储路径 |
| | | String errorFileKey = ERROR_FOLDER + communityName + "/" + errorFileName; |
| | | String errorFileKey = MappingCache.getValue(DOMAIN, ERROR_FOLDER) + communityName + "/" + errorFileName; |
| | | |
| | | // 生成错误Excel文件 |
| | | ByteArrayOutputStream out = new ByteArrayOutputStream(); |