fix: 修复TaskItemMapper关联表名错误,demand_type改为task_type
This commit is contained in:
parent
b8b6f2ce9f
commit
638d8e2451
@ -44,7 +44,7 @@ public interface TaskItemMapper extends BaseMapper<TaskItem> {
|
||||
"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' " +
|
||||
"<if test='taskTypeId != null'> AND ti.task_type_id = #{taskTypeId}</if> " +
|
||||
"<if test='keyword != null and keyword != \"\"'> " +
|
||||
@ -76,7 +76,7 @@ public interface TaskItemMapper extends BaseMapper<TaskItem> {
|
||||
"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<TaskItem> {
|
||||
"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<TaskItem> {
|
||||
@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<TaskItem> selectByTaskId(@Param("taskId") Long taskId);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user