diff --git a/src/main/java/com/ai/da/common/security/filter/AuthenticationFilter.java b/src/main/java/com/ai/da/common/security/filter/AuthenticationFilter.java index 444f27a7..14027e39 100644 --- a/src/main/java/com/ai/da/common/security/filter/AuthenticationFilter.java +++ b/src/main/java/com/ai/da/common/security/filter/AuthenticationFilter.java @@ -61,10 +61,7 @@ public class AuthenticationFilter extends OncePerRequestFilter { , "/api/account/schoolLogin", "/api/account/enterpriseLogin", "/api/account/organizationNameSearch", "/api/llm/stream", //GlobalAwardController - "/api/global-award/uploads/pdf/init", "/api/global-award/uploads/pdf/chunk", "/api/global-award/uploads/pdf/complete", "/api/global-award/uploads/pdf/status", - "/api/global-award/uploads/video/init", "/api/global-award/uploads/video/chunk", "/api/global-award/uploads/video/complete", "/api/global-award/uploads/video/status", - "/api/global-award/contestants/save", "/api/global-award/contestants/by-email", "/api/global-award/checkEmail", "/api/global-award/checkCode","/api/global-award/contestants/export", - "/api/global-award/contestants/export/files", "/api/global-award/contestants/count" + "/api/global-award" ); @Override diff --git a/src/main/java/com/ai/da/mapper/primary/entity/Contestant.java b/src/main/java/com/ai/da/mapper/primary/entity/Contestant.java index 0e7241bb..6592df21 100644 --- a/src/main/java/com/ai/da/mapper/primary/entity/Contestant.java +++ b/src/main/java/com/ai/da/mapper/primary/entity/Contestant.java @@ -68,6 +68,9 @@ public class Contestant { @TableField("pdf_size") private Long pdfSize; + @TableField("portfolio_url") + private String portfolioUrl; + @TableField("created_at") private LocalDateTime createdAt; diff --git a/src/main/java/com/ai/da/service/impl/DesignServiceImpl.java b/src/main/java/com/ai/da/service/impl/DesignServiceImpl.java index b18d3b4f..3109a912 100644 --- a/src/main/java/com/ai/da/service/impl/DesignServiceImpl.java +++ b/src/main/java/com/ai/da/service/impl/DesignServiceImpl.java @@ -756,7 +756,7 @@ public class DesignServiceImpl extends ServiceImpl impleme print.setPosition("[0.0,0.0]"); // print.setScale(1d); // todo mark 将print默认scale置为0.3 - print.setScale(Arrays.toString(new Float[]{0.3f, 0.3f})); + print.setScale(Arrays.toString(new Float[]{1.0f, 1.0f})); print.setAngle(0.0); print.setPriority(1); QueryWrapper getPrintboardLevel2TypeQw = new QueryWrapper<>(); diff --git a/src/main/java/com/ai/da/service/impl/GlobalAwardServiceImpl.java b/src/main/java/com/ai/da/service/impl/GlobalAwardServiceImpl.java index e4bc7d01..804c10cd 100644 --- a/src/main/java/com/ai/da/service/impl/GlobalAwardServiceImpl.java +++ b/src/main/java/com/ai/da/service/impl/GlobalAwardServiceImpl.java @@ -186,6 +186,7 @@ public class GlobalAwardServiceImpl implements GlobalAwardService { .videoSize(request.getVideoSize()) .pdfSize(request.getPdfSize()) .contestantNumber(nextNumber) + .portfolioUrl(request.getPortfolioUrl()) .createdAt(now) .updatedAt(now) .build(); @@ -226,6 +227,7 @@ public class GlobalAwardServiceImpl implements GlobalAwardService { existing.setVideoDuration(request.getVideoDuration()); existing.setVideoSize(request.getVideoSize()); existing.setPdfSize(request.getPdfSize()); + existing.setPortfolioUrl(request.getPortfolioUrl()); existing.setUpdatedAt(now); contestantMapper.updateById(existing); resp.put("success", true); @@ -243,7 +245,7 @@ public class GlobalAwardServiceImpl implements GlobalAwardService { String[] headers = new String[] { "contestantNumber", "email", "firstName", "lastName", "gender", "occupation", "age", "countryRegionCity", "phoneNumber", "designTitle", "designDescription", - "pdfPath", "videoPath", "videoDuration", "videoSizeMB", "pdfSizeMB", "createdAt", "updatedAt" + "pdfPath", "videoPath", "videoDuration", "videoSizeMB", "pdfSizeMB", "portfolioUrl", "createdAt", "updatedAt" }; for (int i = 0; i < headers.length; i++) { Cell c = header.createCell(i); @@ -279,6 +281,7 @@ public class GlobalAwardServiceImpl implements GlobalAwardService { double pMb = cst.getPdfSize() / 1024.0 / 1024.0; r.createCell(ci++).setCellValue(String.format("%.2f", pMb)); } + r.createCell(ci++).setCellValue(cst.getPortfolioUrl() == null ? "" : cst.getPortfolioUrl()); r.createCell(ci++).setCellValue(cst.getCreatedAt() == null ? "" : cst.getCreatedAt().toString()); r.createCell(ci++).setCellValue(cst.getUpdatedAt() == null ? "" : cst.getUpdatedAt().toString()); } @@ -308,7 +311,7 @@ public class GlobalAwardServiceImpl implements GlobalAwardService { String[] headers = new String[] { "contestantNumber", "email", "firstName", "lastName", "gender", "occupation", "age", "countryRegionCity", "phoneNumber", "designTitle", "designDescription", - "pdfPath", "videoPath", "videoDuration", "videoSizeMB", "pdfSizeMB", "createdAt", "updatedAt" + "pdfPath", "videoPath", "videoDuration", "videoSizeMB", "pdfSizeMB", "portfolioUrl", "createdAt", "updatedAt" }; for (int i = 0; i < headers.length; i++) { Cell c = header.createCell(i); @@ -344,6 +347,7 @@ public class GlobalAwardServiceImpl implements GlobalAwardService { double pMb = cst.getPdfSize() / 1024.0 / 1024.0; r.createCell(ci++).setCellValue(String.format("%.2f", pMb)); } + r.createCell(ci++).setCellValue(cst.getPortfolioUrl() == null ? "" : cst.getPortfolioUrl()); r.createCell(ci++).setCellValue(cst.getCreatedAt() == null ? "" : cst.getCreatedAt().toString()); r.createCell(ci++).setCellValue(cst.getUpdatedAt() == null ? "" : cst.getUpdatedAt().toString()); } @@ -382,6 +386,7 @@ public class GlobalAwardServiceImpl implements GlobalAwardService { dto.setVideoDuration(existing.getVideoDuration()); dto.setPdfSize(existing.getPdfSize()); dto.setVideoSize(existing.getVideoSize()); + dto.setPortfolioUrl(existing.getPortfolioUrl()); return dto; } @@ -543,6 +548,7 @@ public class GlobalAwardServiceImpl implements GlobalAwardService { sb.append("Video Path: ").append(nullSafe(videoPath)).append("\n"); sb.append("Video Duration (seconds): ").append(contestant.getVideoDuration() != null ? contestant.getVideoDuration() : "N/A").append("\n"); sb.append("Video Size (bytes): ").append(contestant.getVideoSize() != null ? contestant.getVideoSize() : "N/A").append("\n"); + sb.append("Portfolio URL: ").append(nullSafe(contestant.getPortfolioUrl())).append("\n"); sb.append("Created At: ").append(contestant.getCreatedAt() != null ? contestant.getCreatedAt() : "N/A").append("\n"); sb.append("Updated At: ").append(contestant.getUpdatedAt() != null ? contestant.getUpdatedAt() : "N/A").append("\n");