|
@@ -68,7 +68,7 @@
|
|
</update>
|
|
</update>
|
|
<select id="getNewVideoByParams"
|
|
<select id="getNewVideoByParams"
|
|
resultType="org.jeecg.modules.bytedance.advertise.entity.ByteDanceVideoInfo">
|
|
resultType="org.jeecg.modules.bytedance.advertise.entity.ByteDanceVideoInfo">
|
|
- select video.*,
|
|
|
|
|
|
+ select distinct video.*,
|
|
(select count(1) from ctop_bytedance_ai_video_creative_log l where l.video_code = video.signature and l.state_date = #{now}) as creativeNum,
|
|
(select count(1) from ctop_bytedance_ai_video_creative_log l where l.video_code = video.signature and l.state_date = #{now}) as creativeNum,
|
|
(select count(1) from ctop_bytedance_creative c where c.video_id = video.vid and c.account_id = '${accountId}') as creativeCnt,
|
|
(select count(1) from ctop_bytedance_creative c where c.video_id = video.vid and c.account_id = '${accountId}') as creativeCnt,
|
|
(select count(1) from ctop_bytedance_video_slogen_info s where s.video_code = video.signature) as slogens
|
|
(select count(1) from ctop_bytedance_video_slogen_info s where s.video_code = video.signature) as slogens
|
|
@@ -84,7 +84,7 @@
|
|
limit #{videoCnt}
|
|
limit #{videoCnt}
|
|
</select>
|
|
</select>
|
|
<select id="topMatByParams" resultType="org.jeecg.modules.bytedance.advertise.entity.ByteDanceVideoInfo">
|
|
<select id="topMatByParams" resultType="org.jeecg.modules.bytedance.advertise.entity.ByteDanceVideoInfo">
|
|
- select video.*,
|
|
|
|
|
|
+ select distinct video.*,
|
|
a.totalCost,
|
|
a.totalCost,
|
|
(select count(1) from ctop_bytedance_ai_video_creative_log l where l.video_code = video.signature and l.state_date = #{now}) as creativeNum,
|
|
(select count(1) from ctop_bytedance_ai_video_creative_log l where l.video_code = video.signature and l.state_date = #{now}) as creativeNum,
|
|
(select count(1) from ctop_bytedance_creative c where c.video_id = video.vid and c.account_id = '${accountId}') as creativeCnt,
|
|
(select count(1) from ctop_bytedance_creative c where c.video_id = video.vid and c.account_id = '${accountId}') as creativeCnt,
|
|
@@ -112,7 +112,7 @@
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<select id="historyMatByParams" resultType="org.jeecg.modules.bytedance.advertise.entity.ByteDanceVideoInfo">
|
|
<select id="historyMatByParams" resultType="org.jeecg.modules.bytedance.advertise.entity.ByteDanceVideoInfo">
|
|
- select video.*,
|
|
|
|
|
|
+ select distinct video.*,
|
|
a.totalCost,
|
|
a.totalCost,
|
|
(select count(1) from ctop_bytedance_ai_video_creative_log l where l.video_code = video.signature and l.state_date = #{now}) as creativeNum,
|
|
(select count(1) from ctop_bytedance_ai_video_creative_log l where l.video_code = video.signature and l.state_date = #{now}) as creativeNum,
|
|
(select count(1) from ctop_bytedance_creative c where c.video_id = video.vid and c.account_id = '${accountId}') as creativeCnt,
|
|
(select count(1) from ctop_bytedance_creative c where c.video_id = video.vid and c.account_id = '${accountId}') as creativeCnt,
|