|
@@ -137,14 +137,14 @@ func GetChanceMyApproveChance(uid, cid int64, reviewStatus []int8, lastId int64, |
|
@@ -137,14 +137,14 @@ func GetChanceMyApproveChance(uid, cid int64, reviewStatus []int8, lastId int64, |
137
|
sql := fmt.Sprintf(`select a.*,b.images,b.speechs,b.videos from (
|
137
|
sql := fmt.Sprintf(`select a.*,b.images,b.speechs,b.videos from (
|
138
|
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,b.status from (
|
138
|
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,b.status from (
|
139
|
select id,approve_time,approve_data,uid,chance_id,approve_message,update_at process_create_time
|
139
|
select id,approve_time,approve_data,uid,chance_id,approve_message,update_at process_create_time
|
140
|
-from audit_flow_process where uid=? and enable_status =1 and review_status in (%v) and (?=0 or id<?)
|
140
|
+from audit_flow_process where uid=? and review_status in (%v) and (?=0 or id<?)
|
141
|
)a left outer join chance b on a.chance_id = b.id
|
141
|
)a left outer join chance b on a.chance_id = b.id
|
142
|
)a left outer join chance_data b on a.chance_id =b.chance_id
|
142
|
)a left outer join chance_data b on a.chance_id =b.chance_id
|
143
|
order by process_create_time desc
|
143
|
order by process_create_time desc
|
144
|
-LIMIT ?`, utils.JoinInt8s(reviewStatus, ","))
|
144
|
+LIMIT ?`, utils.JoinInt8s(reviewStatus, ",")) //and enable_status =1 //就算已经删除了,列表上面还是要体现已经删除
|
145
|
|
145
|
|
146
|
sqlCount := fmt.Sprintf(`select count(0)
|
146
|
sqlCount := fmt.Sprintf(`select count(0)
|
147
|
-from audit_flow_process where uid=? and enable_status =1 and review_status in (%v) `, utils.JoinInt8s(reviewStatus, ","))
|
147
|
+from audit_flow_process where uid=? and review_status in (%v) `, utils.JoinInt8s(reviewStatus, ",")) //and enable_status =1
|
148
|
if err = utils.ExecuteQueryOne(&total, sqlCount, uid); err != nil {
|
148
|
if err = utils.ExecuteQueryOne(&total, sqlCount, uid); err != nil {
|
149
|
return
|
149
|
return
|
150
|
}
|
150
|
}
|