|
|
@@ -4,12 +4,7 @@
|
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
<mapper namespace="com.video.script.admin.mapper.VideoScriptTaskMapper">
|
|
|
|
|
|
- <select id="selectList" resultType="com.video.script.admin.entity.VideoScriptTask">
|
|
|
- select t.id, t.task_name, t.video_url, t.video_urls, t.script_type, t.status, t.prompt_hint, t.transcript, t.video_content, t.omni_content, t.analysis_content, t.script_content,
|
|
|
- t.summary, t.codedesk_task_id, t.use_omni_analysis, t.error_message, t.creator_id, u.nickname as creator_name,
|
|
|
- t.create_time, t.update_time
|
|
|
- from video_script_task t
|
|
|
- left join sys_user u on t.creator_id = u.id
|
|
|
+ <sql id="taskListWhere">
|
|
|
<where>
|
|
|
<if test="keyword != null and keyword != ''">
|
|
|
and (t.task_name like concat('%', #{keyword}, '%') or t.video_url like concat('%', #{keyword}, '%'))
|
|
|
@@ -18,7 +13,23 @@
|
|
|
and t.status = #{status}
|
|
|
</if>
|
|
|
</where>
|
|
|
+ </sql>
|
|
|
+
|
|
|
+ <select id="selectList" resultType="com.video.script.admin.entity.VideoScriptTask">
|
|
|
+ select t.id, t.task_name, t.video_url, t.video_urls, t.script_type, t.status, t.prompt_hint,
|
|
|
+ t.analysis_content, t.summary, t.codedesk_task_id, t.use_omni_analysis, t.creator_id, u.nickname as creator_name,
|
|
|
+ t.create_time, t.update_time
|
|
|
+ from video_script_task t
|
|
|
+ left join sys_user u on t.creator_id = u.id
|
|
|
+ <include refid="taskListWhere"/>
|
|
|
order by t.create_time desc, t.id desc
|
|
|
+ limit #{pageSize} offset #{offset}
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="countList" resultType="long">
|
|
|
+ select count(1)
|
|
|
+ from video_script_task t
|
|
|
+ <include refid="taskListWhere"/>
|
|
|
</select>
|
|
|
|
|
|
<select id="selectById" resultType="com.video.script.admin.entity.VideoScriptTask">
|