|
|
|
@ -8,6 +8,7 @@ import org.apache.ibatis.annotations.Select; |
|
|
|
import org.springframework.data.repository.query.Param; |
|
|
|
|
|
|
|
import java.util.List; |
|
|
|
import java.util.Set; |
|
|
|
|
|
|
|
@Mapper |
|
|
|
public interface TaskMapper extends BaseMapper<TaskEntity> { |
|
|
|
@ -55,4 +56,17 @@ public interface TaskMapper extends BaseMapper<TaskEntity> { |
|
|
|
@Param("lineId") Long lineId, |
|
|
|
@Param("businessId") Long businessId, |
|
|
|
@Param("subLineName") String subLineName); |
|
|
|
|
|
|
|
@Select({ |
|
|
|
"<script>", |
|
|
|
"select t.id, e.name as subLineName,t.short_answer_score ", |
|
|
|
"from evaluator_task t ", |
|
|
|
"left join evaluator_product_line e on e.id = t.sub_line_id ", |
|
|
|
"where t.id in ", |
|
|
|
"<foreach collection='taskIds' item='id' open='(' separator=',' close=')'>", |
|
|
|
"#{id}", |
|
|
|
"</foreach>", |
|
|
|
"</script>" |
|
|
|
}) |
|
|
|
List<TaskDTO> getSubLineByTaskIDS(@Param("taskIds") Set<Long> taskIds); |
|
|
|
} |
|
|
|
|