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