|
@@ -89,7 +89,7 @@
|
|
</where>
|
|
</where>
|
|
GROUP BY signature
|
|
GROUP BY signature
|
|
) t2 ON t1.signature = t2.signature
|
|
) t2 ON t1.signature = t2.signature
|
|
- LEFT JOIN (select id, realname from sys_user) t3 on t1.uploader_id =t3.id
|
|
|
|
|
|
+ LEFT JOIN (select id, realname from sys_user) t3 on t1.user_id =t3.id
|
|
LEFT JOIN ( SELECT product_id, trade_name, sum(1)AS 'videoCount' FROM ctop_product_material
|
|
LEFT JOIN ( SELECT product_id, trade_name, sum(1)AS 'videoCount' FROM ctop_product_material
|
|
WHERE video_url is not null
|
|
WHERE video_url is not null
|
|
GROUP BY product_id,trade_name) t4 ON t1.product_id = t4.product_id AND t1.trade_name= t4.trade_name
|
|
GROUP BY product_id,trade_name) t4 ON t1.product_id = t4.product_id AND t1.trade_name= t4.trade_name
|
|
@@ -111,6 +111,7 @@
|
|
</if>
|
|
</if>
|
|
</where>
|
|
</where>
|
|
group by t1.product_id,t1.trade_name
|
|
group by t1.product_id,t1.trade_name
|
|
|
|
+ ORDER BY t1.create_time desc
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<select id="videoListTotal" resultType="java.lang.Long">
|
|
<select id="videoListTotal" resultType="java.lang.Long">
|
|
@@ -149,6 +150,7 @@
|
|
and trade_name = #{tradeName}
|
|
and trade_name = #{tradeName}
|
|
and start_month >= #{startMonth}
|
|
and start_month >= #{startMonth}
|
|
and end_month <= #{endMonth}
|
|
and end_month <= #{endMonth}
|
|
|
|
+ ORDER BY t1.create_time desc
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<select id="getVideoDetailsReportList" resultType="com.alibaba.fastjson.JSONObject">
|
|
<select id="getVideoDetailsReportList" resultType="com.alibaba.fastjson.JSONObject">
|
|
@@ -197,6 +199,7 @@
|
|
<if test="itemRun!=null">
|
|
<if test="itemRun!=null">
|
|
and t1.item_run = #{itemRun}
|
|
and t1.item_run = #{itemRun}
|
|
</if>
|
|
</if>
|
|
|
|
+ ORDER BY t1.create_time desc
|
|
</select>
|
|
</select>
|
|
|
|
|
|
</mapper>
|
|
</mapper>
|