|
@@ -5,7 +5,7 @@
|
|
|
<select id="queryProjectList" resultType="com.alibaba.fastjson.JSONObject">
|
|
|
SELECT t1.*,
|
|
|
(SELECT COUNT(1) FROM ctop_user_allocation WHERE account_status = 0 and t1.projectId = project_id) as 'allAccountCount',
|
|
|
- (SELECT COUNT(1) FROM ctop_user_allocation WHERE account_status = 0 and t1.projectId = project_id and project_strategy = 1) as 'successCount',
|
|
|
+ (SELECT COUNT(1) FROM ctop_user_allocation WHERE account_status = 0 and t1.projectId = project_id and auto_delivery = 1) as 'successCount',
|
|
|
IFNULL(SUM(t2.charge),0) as 'charge',
|
|
|
IFNULL(SUM(t2.photo_show),0) as 'photoShow',
|
|
|
IFNULL(SUM(t2.photo_click),0) as 'photoClick',
|