From 55ec6da74b281742ef8f6dd1c6d6e4ec5dbafa82 Mon Sep 17 00:00:00 2001 From: shahaibo <1023316923@qq.com> Date: Wed, 19 Mar 2025 14:13:16 +0800 Subject: [PATCH] =?UTF-8?q?TASK:AiDA=E6=A8=A1=E5=9D=97=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/ai/da/controller/SavedCollectionController.java | 4 ++-- .../ai/da/mapper/primary/entity/ToProductElement.java | 2 ++ .../java/com/ai/da/service/UserLikeGroupService.java | 2 +- .../com/ai/da/service/impl/UserLikeGroupServiceImpl.java | 9 +++++---- 4 files changed, 10 insertions(+), 7 deletions(-) diff --git a/src/main/java/com/ai/da/controller/SavedCollectionController.java b/src/main/java/com/ai/da/controller/SavedCollectionController.java index bcd07da1..030be5f7 100644 --- a/src/main/java/com/ai/da/controller/SavedCollectionController.java +++ b/src/main/java/com/ai/da/controller/SavedCollectionController.java @@ -192,8 +192,8 @@ public class SavedCollectionController { @ApiOperation(value = "toProductImageElementUpload") @PostMapping("/toProductImageElementUpload") - public Response toProductImageElementUpload(@RequestParam("file") MultipartFile file, @RequestParam(value = "userlikeGroupId") Long userLikeGroupId) { - return Response.success(userLikeGroupService.toProductImageElementUpload(file, userLikeGroupId)); + public Response toProductImageElementUpload(@RequestParam("file") MultipartFile file, @RequestParam(value = "projectId") Long projectId) { + return Response.success(userLikeGroupService.toProductImageElementUpload(file, projectId)); } @ApiOperation(value = "productImageLike") diff --git a/src/main/java/com/ai/da/mapper/primary/entity/ToProductElement.java b/src/main/java/com/ai/da/mapper/primary/entity/ToProductElement.java index d725806f..72ec9317 100644 --- a/src/main/java/com/ai/da/mapper/primary/entity/ToProductElement.java +++ b/src/main/java/com/ai/da/mapper/primary/entity/ToProductElement.java @@ -19,6 +19,8 @@ public class ToProductElement implements Serializable { @ApiModelProperty(value = "userLikeGroupId") private Long userLikeGroupId; + private Long projectId; + @ApiModelProperty(value = "url") private String url; diff --git a/src/main/java/com/ai/da/service/UserLikeGroupService.java b/src/main/java/com/ai/da/service/UserLikeGroupService.java index 085de5af..4af24898 100644 --- a/src/main/java/com/ai/da/service/UserLikeGroupService.java +++ b/src/main/java/com/ai/da/service/UserLikeGroupService.java @@ -48,7 +48,7 @@ public interface UserLikeGroupService extends IService { void toProduct(String taskId); - ToProductElementVO toProductImageElementUpload(MultipartFile file, Long userLikeGroupId); + ToProductElementVO toProductImageElementUpload(MultipartFile file, Long projectId); Boolean productImageLike(ProductImageLikeDTO productImageLikeDTO); diff --git a/src/main/java/com/ai/da/service/impl/UserLikeGroupServiceImpl.java b/src/main/java/com/ai/da/service/impl/UserLikeGroupServiceImpl.java index 99a4dec8..1c90f8f8 100644 --- a/src/main/java/com/ai/da/service/impl/UserLikeGroupServiceImpl.java +++ b/src/main/java/com/ai/da/service/impl/UserLikeGroupServiceImpl.java @@ -568,19 +568,20 @@ public class UserLikeGroupServiceImpl extends ServiceImpl