|
@@ -2836,6 +2836,7 @@ public class UserSubscribeServiceImpl extends ServiceImpl<UserSubscribeMapper, U
|
|
|
public String subRecordUserExport(SubUserExportBo bo) {
|
|
|
String tenantId = ServletUtils.getRequest().getHeader("TenantId");
|
|
|
SysTenant sysTenant = iSysTenantService.getById(Long.valueOf(tenantId));
|
|
|
+ String schoolName = ObjectUtils.isNotNull(sysTenant.getSchoolName()) ? sysTenant.getSchoolName() : "广东省祥粤建设职业培训学校";
|
|
|
if (ObjectUtils.isNotNull(sysTenant.getExamRoom()) && sysTenant.getExamRoom() == 1) {
|
|
|
//公用祥粤考场
|
|
|
List<SysTenant> list = iSysTenantService
|
|
@@ -2866,7 +2867,7 @@ public class UserSubscribeServiceImpl extends ServiceImpl<UserSubscribeMapper, U
|
|
|
if (!dirw.exists()) {
|
|
|
dirw.mkdirs();
|
|
|
}
|
|
|
- String photoPath = majorPath + "/" + "广东省祥粤建设职业培训学校";
|
|
|
+ String photoPath = majorPath + "/" + schoolName;
|
|
|
File dirw2 = new File(photoPath);
|
|
|
if (!dirw2.exists()) {
|
|
|
dirw2.mkdirs();
|
|
@@ -2932,7 +2933,7 @@ public class UserSubscribeServiceImpl extends ServiceImpl<UserSubscribeMapper, U
|
|
|
examApplyExports.add(export);
|
|
|
});
|
|
|
//打包zip
|
|
|
- String zipPath = majorPath + "/" + "广东省祥粤建设职业培训学校.zip";
|
|
|
+ String zipPath = majorPath + "/" + String.format("%s.zip",schoolName);
|
|
|
FileUtils.toZip(zipPath, photoPath, true);
|
|
|
//删除本地资源
|
|
|
Path pathStr = Paths.get(photoPath);
|