|
@@ -657,7 +657,7 @@
|
|
where startTime <#{releaseTime} and endTime >#{releaseTime} and status=1
|
|
where startTime <#{releaseTime} and endTime >#{releaseTime} and status=1
|
|
</select>
|
|
</select>
|
|
<select id="getPublishedVideoList" resultType="com.caimei.model.vo.ChallengeRoundVo">
|
|
<select id="getPublishedVideoList" resultType="com.caimei.model.vo.ChallengeRoundVo">
|
|
- select cr.id,cr.userName,cr.itemId,cr.title,cr.ossName,cr.ossUrl,cr.cover,cr.releaseTime,cr.status,cr.shareId,cr.authId,cba.authParty,cr.dyCommand
|
|
|
|
|
|
+ select cr.id,cr.userName,cr.itemId,cr.title,cr.ossName,cr.ossUrl,cr.cover,cr.releaseTime,cr.status,cr.shareId,cr.authId,cba.authParty,cr.dyCommand,cr.diggCount,cr.playCount
|
|
from cm_challenge_round cr
|
|
from cm_challenge_round cr
|
|
left join cm_brand_auth cba on cr.authId=cba.id
|
|
left join cm_brand_auth cba on cr.authId=cba.id
|
|
left join cm_challenge_activity cca on cca.authUserId=cr.authUserId
|
|
left join cm_challenge_activity cca on cca.authUserId=cr.authUserId
|
|
@@ -669,7 +669,7 @@
|
|
and cr.releaseTime >#{startTime} and cr.releaseTime<#{endTime}
|
|
and cr.releaseTime >#{startTime} and cr.releaseTime<#{endTime}
|
|
</select>
|
|
</select>
|
|
<select id="getPublishedVideoListNoRanking" resultType="com.caimei.model.vo.ChallengeRoundVo">
|
|
<select id="getPublishedVideoListNoRanking" resultType="com.caimei.model.vo.ChallengeRoundVo">
|
|
- select cr.id,cr.userName,cr.itemId,cr.title,cr.ossName,cr.ossUrl,cr.cover,cr.releaseTime,cr.status,cr.shareId,cr.authId,cba.authParty,cr.dyCommand
|
|
|
|
|
|
+ select cr.id,cr.userName,cr.itemId,cr.title,cr.ossName,cr.ossUrl,cr.cover,cr.releaseTime,cr.status,cr.shareId,cr.authId,cba.authParty,cr.dyCommand,cr.diggCount,cr.playCount
|
|
from cm_challenge_round cr
|
|
from cm_challenge_round cr
|
|
left join cm_brand_auth cba on cr.authId=cba.id
|
|
left join cm_brand_auth cba on cr.authId=cba.id
|
|
left join cm_challenge_activity cca on cca.authUserId=cr.authUserId
|
|
left join cm_challenge_activity cca on cca.authUserId=cr.authUserId
|
|
@@ -681,7 +681,7 @@
|
|
and (cr.releaseTime <#{startTime} or cr.releaseTime >#{endTime})
|
|
and (cr.releaseTime <#{startTime} or cr.releaseTime >#{endTime})
|
|
</select>
|
|
</select>
|
|
<select id="getPublishedVideo" resultType="com.caimei.model.vo.ChallengeRoundVo">
|
|
<select id="getPublishedVideo" resultType="com.caimei.model.vo.ChallengeRoundVo">
|
|
- select cr.id,cr.userName,cr.itemId,cr.title,cr.ossName,cr.ossUrl,cr.cover,cr.releaseTime,cr.status,cr.shareId,cr.authId,cba.authParty,cr.dyCommand
|
|
|
|
|
|
+ select cr.id,cr.userName,cr.itemId,cr.title,cr.ossName,cr.ossUrl,cr.cover,cr.releaseTime,cr.status,cr.shareId,cr.authId,cba.authParty,cr.dyCommand,cr.diggCount,cr.playCount
|
|
from cm_challenge_round cr
|
|
from cm_challenge_round cr
|
|
left join cm_brand_auth cba on cr.authId=cba.id
|
|
left join cm_brand_auth cba on cr.authId=cba.id
|
|
left join cm_challenge_activity cca on cca.authUserId=cr.authUserId
|
|
left join cm_challenge_activity cca on cca.authUserId=cr.authUserId
|
|
@@ -698,7 +698,7 @@
|
|
</if>
|
|
</if>
|
|
</select>
|
|
</select>
|
|
<select id="getPublishedVideoNoRanking" resultType="com.caimei.model.vo.ChallengeRoundVo">
|
|
<select id="getPublishedVideoNoRanking" resultType="com.caimei.model.vo.ChallengeRoundVo">
|
|
- select cr.id,cr.userName,cr.itemId,cr.title,cr.ossName,cr.ossUrl,cr.cover,cr.releaseTime,cr.status,cr.shareId,cr.authId,cba.authParty,cr.dyCommand
|
|
|
|
|
|
+ select cr.id,cr.userName,cr.itemId,cr.title,cr.ossName,cr.ossUrl,cr.cover,cr.releaseTime,cr.status,cr.shareId,cr.authId,cba.authParty,cr.dyCommand,cr.diggCount,cr.playCount
|
|
from cm_challenge_round cr
|
|
from cm_challenge_round cr
|
|
left join cm_brand_auth cba on cr.authId=cba.id
|
|
left join cm_brand_auth cba on cr.authId=cba.id
|
|
left join cm_challenge_activity cca on cca.authUserId=cr.authUserId
|
|
left join cm_challenge_activity cca on cca.authUserId=cr.authUserId
|
|
@@ -767,7 +767,7 @@
|
|
where authId=#{authId}
|
|
where authId=#{authId}
|
|
</update>
|
|
</update>
|
|
<select id="getAuthPartylist" resultType="com.caimei.model.vo.ChallengeRoundVo">
|
|
<select id="getAuthPartylist" resultType="com.caimei.model.vo.ChallengeRoundVo">
|
|
- select cr.id,cr.userName,cr.itemId,cr.title,cr.ossName,cr.ossUrl,cr.cover,cr.releaseTime,cr.status,cr.shareId, cr.authId,cba.authParty,cr.dyCommand
|
|
|
|
|
|
+ select cr.id,cr.userName,cr.itemId,cr.title,cr.ossName,cr.ossUrl,cr.cover,cr.releaseTime,cr.status,cr.shareId, cr.authId,cba.authParty,cr.dyCommand,cr.diggCount,cr.playCount
|
|
from cm_challenge_round cr left join cm_brand_auth cba
|
|
from cm_challenge_round cr left join cm_brand_auth cba
|
|
on cr.authId=cba.id
|
|
on cr.authId=cba.id
|
|
where cr.authUserId=#{authUserId}
|
|
where cr.authUserId=#{authUserId}
|
|
@@ -783,7 +783,7 @@
|
|
where id = #{videoID}
|
|
where id = #{videoID}
|
|
</delete>
|
|
</delete>
|
|
<select id="getChallengeRoundInfo" resultType="com.caimei.model.vo.ChallengeRoundVo">
|
|
<select id="getChallengeRoundInfo" resultType="com.caimei.model.vo.ChallengeRoundVo">
|
|
- select cr.id,cr.userName,cr.itemId,cr.title,cr.ossName,cr.ossUrl,cr.cover,cr.releaseTime,cr.status,cr.shareId, cr.authId,cr.dyCommand
|
|
|
|
|
|
+ select cr.id,cr.userName,cr.itemId,cr.title,cr.ossName,cr.ossUrl,cr.cover,cr.releaseTime,cr.status,cr.shareId, cr.authId,cr.dyCommand,cr.diggCount,cr.playCount
|
|
from cm_challenge_round cr
|
|
from cm_challenge_round cr
|
|
where cr.id=#{videoID}
|
|
where cr.id=#{videoID}
|
|
</select>
|
|
</select>
|
|
@@ -797,4 +797,14 @@
|
|
from cm_challenge_round cr
|
|
from cm_challenge_round cr
|
|
where cr.userName=#{userName}
|
|
where cr.userName=#{userName}
|
|
</select>
|
|
</select>
|
|
|
|
+ <select id="getRoundlist" resultType="com.caimei.model.vo.ChallengeRoundVo">
|
|
|
|
+ select cr.id,cr.userName,cr.itemId,cr.title,cr.ossName,cr.ossUrl,cr.cover,cr.releaseTime,cr.status,cr.shareId, cr.authId,cr.dyCommand,cr.diggCount,cr.playCount
|
|
|
|
+ from cm_challenge_round cr
|
|
|
|
+ </select>
|
|
|
|
+ <update id="upVidoInfoById">
|
|
|
|
+ update cm_challenge_round set
|
|
|
|
+ diggCount=#{diggCount},
|
|
|
|
+ playCount=#{playCount}
|
|
|
|
+ where id=#{videoId}
|
|
|
|
+ </update>
|
|
</mapper>
|
|
</mapper>
|