|
@@ -12,16 +12,19 @@
|
|
<!-- 设计师展示所有自己的角色下制作的视频 -->
|
|
<!-- 设计师展示所有自己的角色下制作的视频 -->
|
|
<select id="adminProjects" resultType="org.jeecg.modules.ctop.entity.ProjectMember">
|
|
<select id="adminProjects" resultType="org.jeecg.modules.ctop.entity.ProjectMember">
|
|
select
|
|
select
|
|
- id as projectId,
|
|
|
|
- project_name as projectName,
|
|
|
|
- advertiser_id as advertiserId,
|
|
|
|
- advertiser_name as advertiserName,
|
|
|
|
- media_id as mediaId,
|
|
|
|
- max_bid as maxBid,
|
|
|
|
- advertiser_name as advertiserName ,
|
|
|
|
- responsible_name as responsibleName
|
|
|
|
|
|
+ t1.id as projectId,
|
|
|
|
+ t1.project_name as projectName,
|
|
|
|
+ t1.advertiser_id as advertiserId,
|
|
|
|
+ (
|
|
|
|
+ select name from ctop_advertiser where id = t1.advertiser_id
|
|
|
|
+ )
|
|
|
|
+ as advertiserName,
|
|
|
|
+ t1.media_id as mediaId,
|
|
|
|
+ t1.max_bid as maxBid,
|
|
|
|
+
|
|
|
|
+ t1.responsible_name as responsibleName
|
|
from
|
|
from
|
|
- ctop_project
|
|
|
|
|
|
+ ctop_project t1
|
|
where
|
|
where
|
|
media_id in
|
|
media_id in
|
|
<foreach collection="mediaIds" item="item" separator=","
|
|
<foreach collection="mediaIds" item="item" separator=","
|
|
@@ -111,7 +114,10 @@
|
|
distinct b.project_id as projectId,
|
|
distinct b.project_id as projectId,
|
|
b.project_name as projectName,
|
|
b.project_name as projectName,
|
|
a.advertiser_id as advertiserId,
|
|
a.advertiser_id as advertiserId,
|
|
- a.advertiser_name as advertiserName,
|
|
|
|
|
|
+ (
|
|
|
|
+ select name from ctop_advertiser where id = a.advertiser_id
|
|
|
|
+ )
|
|
|
|
+ as advertiserName,
|
|
(SELECT media_id from ctop_project c where c.id=a.project_id limit 1) as mediaId
|
|
(SELECT media_id from ctop_project c where c.id=a.project_id limit 1) as mediaId
|
|
from
|
|
from
|
|
ctop_user_allocation a
|
|
ctop_user_allocation a
|