...
|
...
|
@@ -129,7 +129,7 @@ where user_id=? and company_id=? and review_status in (%v) |
|
|
func GetChanceMyApproveChance(uid, cid int64, reviewStatus []int8, lastId int64, pageSize int, v interface{}) (total int, err error) {
|
|
|
sql := fmt.Sprintf(`select a.*,b.images,b.speechs,b.videos from (
|
|
|
select a.*,b.user_id,b.source_content,b.enable_status,b.review_status,b.create_at,b.update_at,b.approve_time chance_approve_time from (
|
|
|
select id,approve_time,approve_data,uid,chance_id,approve_message,create_at process_create_time
|
|
|
select id,approve_time,approve_data,uid,chance_id,approve_message,update_at process_create_time
|
|
|
from audit_flow_process where uid=? and enable_status =1 and review_status in (%v) and (?=0 or id<?)
|
|
|
)a left outer join chance b on a.chance_id = b.id
|
|
|
)a left outer join chance_data b on a.chance_id =b.chance_id
|
...
|
...
|
|