面试录制视频上传回调接口
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
package com.cool.store.mapper;
|
||||
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
@Mapper
|
||||
public interface TRTCVideoCallBackMapper {
|
||||
|
||||
/**
|
||||
* 在面试信息表中添加面试录制视频链接
|
||||
* @param roomId
|
||||
* @param videoUrl
|
||||
*/
|
||||
void addVideoUrl(@Param("roomId") String roomId, @Param("videoUrl") String videoUrl);
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.cool.store.mapper.TRTCVideoCallBackMapper">
|
||||
|
||||
<update id="addVideoUrl">
|
||||
UPDATE hy_partner_interview
|
||||
SET process_info = IF(process_info IS NULL, #{videoUrl}, CONCAT(process_info, ',' ,#{videoUrl}))
|
||||
WHERE interview_plan_id = (
|
||||
SELECT id
|
||||
FROM hy_partner_interview_plan
|
||||
WHERE room_id = #{roomId}
|
||||
)
|
||||
</update>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user