|
@@ -658,19 +658,23 @@
|
|
</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
|
|
- from cm_challenge_round cr left join cm_brand_auth cba
|
|
|
|
- on cr.authId=cba.id
|
|
|
|
- where 1=1
|
|
|
|
|
|
+ from cm_challenge_round cr
|
|
|
|
+ left join cm_brand_auth cba on cr.authId=cba.id
|
|
|
|
+ left join cm_challenge_activity cca on cca.authUserId=cr.authUserId
|
|
|
|
+ where cr.authUserId=#{authUserId}
|
|
<if test="clubUserName != null and clubUserName != ''">
|
|
<if test="clubUserName != null and clubUserName != ''">
|
|
and (cr.userName like concat('%', #{clubUserName})
|
|
and (cr.userName like concat('%', #{clubUserName})
|
|
or cba.authParty=#{clubUserName})
|
|
or cba.authParty=#{clubUserName})
|
|
</if>
|
|
</if>
|
|
|
|
+ and cr.releaseTime >#{startTime} and 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
|
|
- from cm_challenge_round cr left join cm_brand_auth cba
|
|
|
|
- on cr.authId=cba.id
|
|
|
|
|
|
+ from cm_challenge_round cr
|
|
|
|
+ left join cm_brand_auth cba on cr.authId=cba.id
|
|
|
|
+ left join cm_challenge_activity cca on cca.authUserId=cr.authUserId
|
|
where cr.authUserId=#{authUserId}
|
|
where cr.authUserId=#{authUserId}
|
|
|
|
+ and cr.releaseTime >#{startTime} and cr.releaseTime<#{endTime}
|
|
<if test="mobile != null and mobile != ''">
|
|
<if test="mobile != null and mobile != ''">
|
|
and cr.userName like concat('%', #{mobile})
|
|
and cr.userName like concat('%', #{mobile})
|
|
</if>
|
|
</if>
|