|
|
@@ -481,13 +481,16 @@
|
|
|
</if>
|
|
|
</select>
|
|
|
<!-- 查看单个信息 -->
|
|
|
- <select id="selectById" parameterType="java.lang.String" resultType="com.goafanti.admin.bo.AdminVideoBo">
|
|
|
+ <select id="selectById" parameterType="com.goafanti.common.model.JtVideo" resultType="com.goafanti.admin.bo.AdminVideoBo">
|
|
|
select
|
|
|
v.id, v.name, url, type, owner, v.create_time as createTime, v.status, summary, cover_url as coverUrl,
|
|
|
release_time as releaseTime, transcoding, md5, v.position, a.name as ownerName
|
|
|
from jt_video v
|
|
|
left join admin a on v.owner = a.id
|
|
|
- where v.id = #{id,jdbcType=VARCHAR}
|
|
|
+ where v.id = #{id,jdbcType=VARCHAR}
|
|
|
+ <if test="status != null">
|
|
|
+ and v.status = #{status,jdbcType=INTEGER}
|
|
|
+ </if>
|
|
|
</select>
|
|
|
<!-- 根据url 修改数据 -->
|
|
|
<update id="updateByUrl" parameterType="com.goafanti.common.model.JtVideo">
|