...
|
...
|
@@ -703,7 +703,7 @@ from ( |
|
|
where a.uid=%v and b.max_id=a.id and a.submit_check_status=%v and level>0
|
|
|
GROUP BY chance_id
|
|
|
)a left outer join chance b on a.chance_id = b.id
|
|
|
where b.review_status=3 and b.enable_status=1 and b.status=1 and b.check_result_status <=%v and a.level=b.audit_level and length(b.self_checks)>5
|
|
|
where b.review_status=3 and b.enable_status=1 and b.status=1 and b.check_result_status <=%v and length(b.self_checks)>5
|
|
|
)a left outer join chance_data b on a.chance_id =b.chance_id
|
|
|
%v
|
|
|
limit %v,%v`, uid, uid, submitStatus, checkResultStatus, where, offset, pageSize) //,update_at process_create_time
|
...
|
...
|
@@ -718,7 +718,7 @@ from ( |
|
|
where a.uid=%v and b.max_id=a.id and a.submit_check_status=%v and level>0
|
|
|
GROUP BY chance_id
|
|
|
)a left outer join chance b on a.chance_id = b.id
|
|
|
where b.review_status=3 and b.enable_status=1 and b.status=1 and b.check_result_status <=%v and a.level=b.audit_level and length(b.self_checks)>5
|
|
|
where b.review_status=3 and b.enable_status=1 and b.status=1 and b.check_result_status <=%v and length(b.self_checks)>5
|
|
|
)a
|
|
|
`, uid, uid, submitStatus, checkResultStatus) //and enable_status =1
|
|
|
if err = utils.ExecuteQueryOne(&total, sqlCount); err != nil {
|
...
|
...
|
@@ -747,7 +747,7 @@ from ( |
|
|
where a.uid=%v and b.max_id=a.id and a.submit_check_status=%v and level>0
|
|
|
GROUP BY chance_id
|
|
|
)a left outer join chance b on a.chance_id = b.id
|
|
|
where b.review_status=3 and b.enable_status=1 and b.status=1 and b.check_result_status =%v and a.level=b.audit_level
|
|
|
where b.review_status=3 and b.enable_status=1 and b.status=1 and b.check_result_status =%v
|
|
|
)a left outer join chance_data b on a.chance_id =b.chance_id
|
|
|
order by a.check_time desc
|
|
|
limit %v,%v`, uid, uid, submitStatus, checkResultStatus, offset, pageSize) //,update_at process_create_time
|
...
|
...
|
@@ -762,7 +762,7 @@ from ( |
|
|
where a.uid=%v and b.max_id=a.id and a.submit_check_status=%v and level>0
|
|
|
GROUP BY chance_id
|
|
|
)a left outer join chance b on a.chance_id = b.id
|
|
|
where b.review_status=3 and b.enable_status=1 and b.status=1 and b.check_result_status =%v and a.level=b.audit_level
|
|
|
where b.review_status=3 and b.enable_status=1 and b.status=1 and b.check_result_status =%v
|
|
|
)a
|
|
|
`, uid, uid, submitStatus, checkResultStatus) //and enable_status =1
|
|
|
if err = utils.ExecuteQueryOne(&total, sqlCount); err != nil {
|
...
|
...
|
|