...
|
...
|
@@ -695,6 +695,7 @@ func GetSiftingChance(uid int64, submitStatus int, checkResultStatus int, offset |
|
|
sql := fmt.Sprintf(`select a.*,b.images,b.speechs,b.videos
|
|
|
from (
|
|
|
select a.*,b.user_id chance_user_id,b.source_content,b.enable_status,b.review_status,b.audit_template_id,b.chance_type_id,b.create_at,
|
|
|
b.view_total,
|
|
|
b.update_at,b.approve_time chance_approve_time,b.status,b.self_checks,b.check_result_status,b.check_time
|
|
|
from (
|
|
|
select max(id) id,approve_time,approve_data,uid,chance_id,submit_check_status,submit_check_time,level
|
...
|
...
|
@@ -738,7 +739,8 @@ func GetSiftingResults(uid int64, submitStatus, checkResultStatus int, offset in |
|
|
sql := fmt.Sprintf(`select a.*,b.images,b.speechs,b.videos
|
|
|
from (
|
|
|
select a.*,b.user_id chance_user_id,b.source_content,b.enable_status,b.review_status,b.audit_template_id,b.chance_type_id,b.create_at,
|
|
|
b.update_at,b.approve_time chance_approve_time,b.status,b.self_checks,b.check_result_status,b.check_time
|
|
|
b.view_total,
|
|
|
b.update_at,b.approve_time chance_approve_time,b.status,b.self_checks,b.check_result_status,b.check_time
|
|
|
from (
|
|
|
select max(id) id,approve_time,approve_data,uid,chance_id,submit_check_status,submit_check_time,level
|
|
|
from audit_flow_process a,(select MAX(id) AS max_id from audit_flow_process as t where t.uid=%v group by chance_id) b
|
...
|
...
|
|