...
|
...
|
@@ -107,9 +107,10 @@ func GetChanceMyChance(uid, cid int64, reviewStatus []int8, lastId int64, pageSi |
|
|
from (
|
|
|
select id,user_id,create_at,update_at,approve_time chance_approve_time,source_content,approve_data,review_status from chance
|
|
|
where user_id=? and company_id=? and review_status in (?) and (?=0 or id<?)
|
|
|
order by create_at desc
|
|
|
) a left JOIN chance_data b on a.id =b.chance_id
|
|
|
order by update_at desc
|
|
|
limit ?
|
|
|
) a left JOIN chance_data b on a.id =b.chance_id`
|
|
|
`
|
|
|
//update_at
|
|
|
sqlCount := fmt.Sprintf(`select count(0) from (
|
|
|
select id,user_id,create_at,source_content from chance
|
...
|
...
|
|