|
|
|
|
|
|
|
|
for (QtkServiceHall qtkServiceHall : all) { |
|
|
for (QtkServiceHall qtkServiceHall : all) { |
|
|
if (qtkServiceHall.getSuperServiceHallId() == null) { |
|
|
if (qtkServiceHall.getSuperServiceHallId() == null) { |
|
|
top.add(qtkServiceHall); |
|
|
top.add(qtkServiceHall); |
|
|
}else { |
|
|
|
|
|
|
|
|
} else { |
|
|
son.add(qtkServiceHall); |
|
|
son.add(qtkServiceHall); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
public String registerFullBath(ServiceHallRegisterFullBatchRequestDTO reqDto) throws ManagerException { |
|
|
public String registerFullBath(ServiceHallRegisterFullBatchRequestDTO reqDto) throws ManagerException { |
|
|
String path = null; |
|
|
String path = null; |
|
|
File tempFile = null; |
|
|
|
|
|
tempFile = minioUtil.getFileByUrl(reqDto.getExcelFileUrl()); |
|
|
|
|
|
|
|
|
File tempFile = minioUtil.getFileByUrl(reqDto.getExcelFileUrl()); |
|
|
//获取文件流 |
|
|
//获取文件流 |
|
|
InputStream fileInputStream = null; |
|
|
InputStream fileInputStream = null; |
|
|
try { |
|
|
try { |
|
|
|
|
|
|
|
|
.doWrite(errors); |
|
|
.doWrite(errors); |
|
|
path = minioUtil.fileUploadHttp(upFile, BucketFileBus.SERVICEHALL); |
|
|
path = minioUtil.fileUploadHttp(upFile, BucketFileBus.SERVICEHALL); |
|
|
} |
|
|
} |
|
|
return path; |
|
|
|
|
|
|
|
|
return path == null ? null : minioUtil.getOuterUrl(path); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//删除临时文件 |
|
|
//删除临时文件 |
|
|
FileUtil.del(tempFile); |
|
|
FileUtil.del(tempFile); |
|
|
return path; |
|
|
|
|
|
|
|
|
return path == null ? null : minioUtil.getOuterUrl(path); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
private Long getServiceHallId(String agencyId) { |
|
|
private Long getServiceHallId(String agencyId) { |