|
@@ -5,11 +5,11 @@
|
|
<select id="queryVideoReportBy" resultType="com.alibaba.fastjson.JSONObject">
|
|
<select id="queryVideoReportBy" resultType="com.alibaba.fastjson.JSONObject">
|
|
SELECT * from (SELECT
|
|
SELECT * from (SELECT
|
|
t1.signature,
|
|
t1.signature,
|
|
- t2.url,
|
|
|
|
|
|
+ t1.photo_url as url,
|
|
(SELECT u.realname FROM ctop_material_ascription t3 LEFT JOIN sys_user u on t3.clip_id=u.id where t3.material_id=t1.signature limit 1) AS clip,
|
|
(SELECT u.realname FROM ctop_material_ascription t3 LEFT JOIN sys_user u on t3.clip_id=u.id where t3.material_id=t1.signature limit 1) AS clip,
|
|
(SELECT u.realname FROM ctop_material_ascription t3 LEFT JOIN sys_user u on t3.shot_id=u.id where t3.material_id=t1.signature limit 1) AS shot,
|
|
(SELECT u.realname FROM ctop_material_ascription t3 LEFT JOIN sys_user u on t3.shot_id=u.id where t3.material_id=t1.signature limit 1) AS shot,
|
|
(SELECT u.realname FROM ctop_material_ascription t3 LEFT JOIN sys_user u on t3.plan_id=u.id where t3.material_id=t1.signature limit 1) AS plan,
|
|
(SELECT u.realname FROM ctop_material_ascription t3 LEFT JOIN sys_user u on t3.plan_id=u.id where t3.material_id=t1.signature limit 1) AS plan,
|
|
- t2.cover_url as converUrl,
|
|
|
|
|
|
+ t1.cover_url as converUrl,
|
|
t2.material_name AS materialName,
|
|
t2.material_name AS materialName,
|
|
(SELECT project_name FROM ctop_project t4 WHERE t4.id = t3.project_id) AS projectName,
|
|
(SELECT project_name FROM ctop_project t4 WHERE t4.id = t3.project_id) AS projectName,
|
|
t2.create_time as createTime,
|
|
t2.create_time as createTime,
|
|
@@ -30,9 +30,9 @@
|
|
</if>
|
|
</if>
|
|
GROUP BY t1.signature
|
|
GROUP BY t1.signature
|
|
) t
|
|
) t
|
|
- WHERE t.clip like '%${clip}%'
|
|
|
|
- AND (t.shot LIKE '%%' or t.shot is null)
|
|
|
|
- AND t.plan like '%${plan}%'
|
|
|
|
|
|
+ WHERE (t.clip LIKE '%${clip}%' or t.clip is null)
|
|
|
|
+ AND (t.shot LIKE '%${shot}%' or t.shot is null)
|
|
|
|
+ AND (t.plan LIKE '%${plan}%' or t.plan is null)
|
|
ORDER BY ${target} ${order}
|
|
ORDER BY ${target} ${order}
|
|
</select>
|
|
</select>
|
|
|
|
|
|
@@ -40,8 +40,8 @@
|
|
SELECT
|
|
SELECT
|
|
t1.stat_date as statDate,
|
|
t1.stat_date as statDate,
|
|
t1.signature,
|
|
t1.signature,
|
|
- t2.url,
|
|
|
|
- t2.cover_url as converUrl,
|
|
|
|
|
|
+ t1.photo_url as url,
|
|
|
|
+ t1.cover_url as converUrl,
|
|
t2.material_name AS materialName,
|
|
t2.material_name AS materialName,
|
|
(
|
|
(
|
|
SELECT
|
|
SELECT
|
|
@@ -75,7 +75,6 @@
|
|
#{item}
|
|
#{item}
|
|
</foreach>
|
|
</foreach>
|
|
</if>
|
|
</if>
|
|
- AND t2.url!=""
|
|
|
|
GROUP BY t1.signature,t1.stat_date
|
|
GROUP BY t1.signature,t1.stat_date
|
|
</select>
|
|
</select>
|
|
</mapper>
|
|
</mapper>
|