|
@@ -44,14 +44,15 @@
|
|
<result property="camerafixed" column="camerafixed" />
|
|
<result property="camerafixed" column="camerafixed" />
|
|
<result property="quantity" column="quantity" />
|
|
<result property="quantity" column="quantity" />
|
|
<result property="is_collect" column="is_collect" />
|
|
<result property="is_collect" column="is_collect" />
|
|
- <result property="create_time" column="create_time" />
|
|
|
|
- <result property="update_time" column="update_time" />
|
|
|
|
|
|
+ <result property="create_time" column="create_time" typeHandler="com.backendsys.config.Mybatis.handler.timezone.LocalDateTimeHandler" />
|
|
|
|
+ <result property="update_time" column="update_time" typeHandler="com.backendsys.config.Mybatis.handler.timezone.LocalDateTimeHandler" />
|
|
|
|
+ <result property="param_user_id" column="param_user_id"/>
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<!-- 任务映射 -->
|
|
<!-- 任务映射 -->
|
|
<resultMap id="resultMapTask" type="com.backendsys.modules.ai.volcengine.entity.VolcengineVideoTask" extends="baseTaskMap">
|
|
<resultMap id="resultMapTask" type="com.backendsys.modules.ai.volcengine.entity.VolcengineVideoTask" extends="baseTaskMap">
|
|
<collection select="queryDetailById" property="detail_list" javaType="java.util.List"
|
|
<collection select="queryDetailById" property="detail_list" javaType="java.util.List"
|
|
- ofType="com.backendsys.modules.ai.volcengine.entity.VolcengineVideoTaskDetail" column="{id=id, user_id=user_id}">
|
|
|
|
|
|
+ ofType="com.backendsys.modules.ai.volcengine.entity.VolcengineVideoTaskDetail" column="{id=id, param_user_id=param_user_id}">
|
|
<id property="id" column="id" />
|
|
<id property="id" column="id" />
|
|
<result property="user_id" column="user_id" />
|
|
<result property="user_id" column="user_id" />
|
|
<result property="task_id" column="task_id" />
|
|
<result property="task_id" column="task_id" />
|
|
@@ -63,8 +64,8 @@
|
|
<result property="video_url" column="video_url"/>
|
|
<result property="video_url" column="video_url"/>
|
|
<result property="object_key" column="object_key"/>
|
|
<result property="object_key" column="object_key"/>
|
|
<result property="error_msg" column="error_msg" />
|
|
<result property="error_msg" column="error_msg" />
|
|
- <result property="create_time" column="create_time" />
|
|
|
|
- <result property="update_time" column="update_time" />
|
|
|
|
|
|
+ <result property="create_time" column="create_time" typeHandler="com.backendsys.config.Mybatis.handler.timezone.LocalDateTimeHandler" />
|
|
|
|
+ <result property="update_time" column="update_time" typeHandler="com.backendsys.config.Mybatis.handler.timezone.LocalDateTimeHandler" />
|
|
<result property="is_collect" column="is_collect" />
|
|
<result property="is_collect" column="is_collect" />
|
|
</collection>
|
|
</collection>
|
|
</resultMap>
|
|
</resultMap>
|
|
@@ -72,7 +73,7 @@
|
|
<!-- 收藏任务映射 -->
|
|
<!-- 收藏任务映射 -->
|
|
<resultMap id="resultMapTaskCollect" type="com.backendsys.modules.ai.volcengine.entity.VolcengineVideoTask" extends="baseTaskMap">
|
|
<resultMap id="resultMapTaskCollect" type="com.backendsys.modules.ai.volcengine.entity.VolcengineVideoTask" extends="baseTaskMap">
|
|
<collection select="queryDetailCollectById" property="detail_list" javaType="java.util.List"
|
|
<collection select="queryDetailCollectById" property="detail_list" javaType="java.util.List"
|
|
- ofType="com.backendsys.modules.ai.volcengine.entity.VolcengineVideoTaskDetail" column="{id=id, user_id=user_id}">
|
|
|
|
|
|
+ ofType="com.backendsys.modules.ai.volcengine.entity.VolcengineVideoTaskDetail" column="{id=id, param_user_id=param_user_id}">
|
|
<id property="id" column="id" />
|
|
<id property="id" column="id" />
|
|
<result property="user_id" column="user_id" />
|
|
<result property="user_id" column="user_id" />
|
|
<result property="task_id" column="task_id" />
|
|
<result property="task_id" column="task_id" />
|
|
@@ -84,8 +85,8 @@
|
|
<result property="video_url" column="video_url"/>
|
|
<result property="video_url" column="video_url"/>
|
|
<result property="object_key" column="object_key"/>
|
|
<result property="object_key" column="object_key"/>
|
|
<result property="error_msg" column="error_msg" />
|
|
<result property="error_msg" column="error_msg" />
|
|
- <result property="create_time" column="create_time" />
|
|
|
|
- <result property="update_time" column="update_time" />
|
|
|
|
|
|
+ <result property="create_time" column="create_time" typeHandler="com.backendsys.config.Mybatis.handler.timezone.LocalDateTimeHandler" />
|
|
|
|
+ <result property="update_time" column="update_time" typeHandler="com.backendsys.config.Mybatis.handler.timezone.LocalDateTimeHandler" />
|
|
<result property="is_collect" column="is_collect" />
|
|
<result property="is_collect" column="is_collect" />
|
|
</collection>
|
|
</collection>
|
|
</resultMap>
|
|
</resultMap>
|
|
@@ -94,7 +95,8 @@
|
|
<select id="selectTaskList" resultMap="resultMapTask">
|
|
<select id="selectTaskList" resultMap="resultMapTask">
|
|
SELECT
|
|
SELECT
|
|
<include refid="includeVolcengineVideoTask" />
|
|
<include refid="includeVolcengineVideoTask" />
|
|
- , IF(avc.task_id IS NOT NULL, 1, -1) AS is_collect
|
|
|
|
|
|
+ , IF(avc.task_id IS NOT NULL, 1, -1) AS is_collect,
|
|
|
|
+ #{dto.user_id} as param_user_id
|
|
FROM ai_volcengine_video_task avvt
|
|
FROM ai_volcengine_video_task avvt
|
|
LEFT JOIN (
|
|
LEFT JOIN (
|
|
SELECT
|
|
SELECT
|
|
@@ -125,7 +127,7 @@
|
|
LEFT JOIN ai_volcengine_video_collect avc
|
|
LEFT JOIN ai_volcengine_video_collect avc
|
|
ON avc.task_id = avvtd.task_id
|
|
ON avc.task_id = avvtd.task_id
|
|
AND avc.task_detail_id = avvtd.id
|
|
AND avc.task_detail_id = avvtd.id
|
|
- AND avc.user_id = #{user_id}
|
|
|
|
|
|
+ AND avc.user_id = #{param_user_id}
|
|
WHERE avvtd.task_id = #{id}
|
|
WHERE avvtd.task_id = #{id}
|
|
ORDER BY update_time DESC
|
|
ORDER BY update_time DESC
|
|
</select>
|
|
</select>
|
|
@@ -135,7 +137,8 @@
|
|
resultMap="resultMapTaskCollect">
|
|
resultMap="resultMapTaskCollect">
|
|
SELECT
|
|
SELECT
|
|
<include refid="includeVolcengineVideoTask" />
|
|
<include refid="includeVolcengineVideoTask" />
|
|
- , 1 AS is_collect
|
|
|
|
|
|
+ , 1 AS is_collect,
|
|
|
|
+ #{dto.user_id} as param_user_id
|
|
FROM ai_volcengine_video_task avvt
|
|
FROM ai_volcengine_video_task avvt
|
|
INNER JOIN (
|
|
INNER JOIN (
|
|
SELECT
|
|
SELECT
|
|
@@ -166,7 +169,7 @@
|
|
INNER JOIN ai_volcengine_video_collect avc
|
|
INNER JOIN ai_volcengine_video_collect avc
|
|
ON avc.task_id = avvtd.task_id
|
|
ON avc.task_id = avvtd.task_id
|
|
AND avc.task_detail_id = avvtd.id
|
|
AND avc.task_detail_id = avvtd.id
|
|
- AND avc.user_id = #{user_id}
|
|
|
|
|
|
+ AND avc.user_id = #{param_user_id}
|
|
WHERE avvtd.task_id = #{id}
|
|
WHERE avvtd.task_id = #{id}
|
|
ORDER BY update_time DESC
|
|
ORDER BY update_time DESC
|
|
</select>
|
|
</select>
|