From 638d8e2451ef6d82f623af1275ddbf367cc48a01 Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 7 Jan 2026 00:03:26 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8DTaskItemMapper?= =?UTF-8?q?=E5=85=B3=E8=81=94=E8=A1=A8=E5=90=8D=E9=94=99=E8=AF=AF=EF=BC=8C?= =?UTF-8?q?demand=5Ftype=E6=94=B9=E4=B8=BAtask=5Ftype?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/designhub/mapper/TaskItemMapper.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/backend/src/main/java/com/designhub/mapper/TaskItemMapper.java b/backend/src/main/java/com/designhub/mapper/TaskItemMapper.java index 1c2edcc..4ff4494 100644 --- a/backend/src/main/java/com/designhub/mapper/TaskItemMapper.java +++ b/backend/src/main/java/com/designhub/mapper/TaskItemMapper.java @@ -44,7 +44,7 @@ public interface TaskItemMapper extends BaseMapper { "LEFT JOIN brand b ON t.brand_id = b.id " + "LEFT JOIN category c ON t.category_id = c.id " + "LEFT JOIN platform p ON t.platform_id = p.id " + - "LEFT JOIN demand_type dt ON ti.task_type_id = dt.id " + + "LEFT JOIN task_type dt ON ti.task_type_id = dt.id " + "WHERE ti.status = 'pending' AND ti.is_locked = 0 AND t.deleted = 0 AND t.approval_status = 'approved' " + " AND ti.task_type_id = #{taskTypeId} " + " " + @@ -76,7 +76,7 @@ public interface TaskItemMapper extends BaseMapper { "LEFT JOIN brand b ON t.brand_id = b.id " + "LEFT JOIN category c ON t.category_id = c.id " + "LEFT JOIN platform p ON t.platform_id = p.id " + - "LEFT JOIN demand_type dt ON ti.task_type_id = dt.id " + + "LEFT JOIN task_type dt ON ti.task_type_id = dt.id " + "LEFT JOIN sys_user u ON t.publisher_id = u.id " + "WHERE ti.status = 'in_progress' " + " AND t.deleted = 0 " + @@ -104,7 +104,7 @@ public interface TaskItemMapper extends BaseMapper { "LEFT JOIN brand b ON t.brand_id = b.id " + "LEFT JOIN category c ON t.category_id = c.id " + "LEFT JOIN platform p ON t.platform_id = p.id " + - "LEFT JOIN demand_type dt ON ti.task_type_id = dt.id " + + "LEFT JOIN task_type dt ON ti.task_type_id = dt.id " + "LEFT JOIN sys_user u ON t.publisher_id = u.id " + "WHERE ti.status = 'completed' " + " AND t.deleted = 0 " + @@ -120,7 +120,7 @@ public interface TaskItemMapper extends BaseMapper { @Select("SELECT ti.*, " + " dt.type_name AS taskTypeName " + "FROM task_item ti " + - "LEFT JOIN demand_type dt ON ti.task_type_id = dt.id " + + "LEFT JOIN task_type dt ON ti.task_type_id = dt.id " + "WHERE ti.task_id = #{taskId} " + "ORDER BY ti.sort_order ASC") List selectByTaskId(@Param("taskId") Long taskId);