|
|
@@ -9,7 +9,7 @@ import cn.com.taiji.core.entity.basic.QtkServiceHall; |
|
|
|
import cn.com.taiji.core.entity.basic.QtkServicehallLocation; |
|
|
|
import cn.com.taiji.core.entity.dict.BucketFileBus; |
|
|
|
import cn.com.taiji.core.entity.user.Staff; |
|
|
|
import cn.com.taiji.core.manager.tools.minio.MinioUtile; |
|
|
|
import cn.com.taiji.core.manager.tools.minio.MinioUtil; |
|
|
|
import cn.com.taiji.core.repo.jpa.basic.QtkAgencyRepo; |
|
|
|
import cn.com.taiji.core.repo.jpa.basic.QtkServicehallLocationRepo; |
|
|
|
import cn.com.taiji.core.repo.jpa.basic.QtkServicehallMapRepo; |
|
|
@@ -60,7 +60,7 @@ public class ServiceHallManagerImpl extends AbstractManager implements ServiceHa |
|
|
|
@Autowired |
|
|
|
private ServiceHallRegisterFullBatchListener listener; |
|
|
|
@Autowired |
|
|
|
private MinioUtile minioUtile; |
|
|
|
private MinioUtil minioUtil; |
|
|
|
@Override |
|
|
|
public Pagination query(ServiceHallPageRequestDTO reqDto) { |
|
|
|
ServiceHallPageRequest request = copyProperties(reqDto, new ServiceHallPageRequest()); |
|
|
@@ -231,7 +231,7 @@ public class ServiceHallManagerImpl extends AbstractManager implements ServiceHa |
|
|
|
public String registerFullBath(ServiceHallRegisterFullBatchRequestDTO reqDto) throws ManagerException { |
|
|
|
String path = null; |
|
|
|
File tempFile = null; |
|
|
|
tempFile = minioUtile.getFileByUrl(reqDto.getExcelFileUrl()); |
|
|
|
tempFile = minioUtil.getFileByUrl(reqDto.getExcelFileUrl()); |
|
|
|
//获取文件流 |
|
|
|
InputStream fileInputStream = null; |
|
|
|
try { |
|
|
@@ -259,7 +259,7 @@ public class ServiceHallManagerImpl extends AbstractManager implements ServiceHa |
|
|
|
} |
|
|
|
EasyExcel.write(upFile, ServiceHallRegisterData.class).sheet() |
|
|
|
.doWrite(errors); |
|
|
|
path = minioUtile.fileUploadHttp(upFile, BucketFileBus.SERVICEHALL); |
|
|
|
path = minioUtil.fileUploadHttp(upFile, BucketFileBus.SERVICEHALL); |
|
|
|
} |
|
|
|
//删除临时文件 |
|
|
|
FileUtil.del(tempFile); |
|
|
@@ -273,7 +273,7 @@ public class ServiceHallManagerImpl extends AbstractManager implements ServiceHa |
|
|
|
throw new ManagerException("网点信息不存在"); |
|
|
|
} |
|
|
|
String path = null; |
|
|
|
File tempFile = minioUtile.getFileByUrl(reqDto.getExcelFileUrl()); |
|
|
|
File tempFile = minioUtil.getFileByUrl(reqDto.getExcelFileUrl()); |
|
|
|
//获取文件流 |
|
|
|
InputStream fileInputStream = null; |
|
|
|
try { |
|
|
@@ -301,7 +301,7 @@ public class ServiceHallManagerImpl extends AbstractManager implements ServiceHa |
|
|
|
} |
|
|
|
EasyExcel.write(upFile, ServiceLocationRegisterData.class).sheet() |
|
|
|
.doWrite(errors); |
|
|
|
path = minioUtile.fileUploadHttp(upFile, BucketFileBus.SERVICEHALL); |
|
|
|
path = minioUtil.fileUploadHttp(upFile, BucketFileBus.SERVICEHALL); |
|
|
|
} |
|
|
|
|
|
|
|
//删除临时文件 |