正在显示
1 个修改的文件
包含
4 行增加
和
4 行删除
| @@ -703,7 +703,7 @@ from ( | @@ -703,7 +703,7 @@ from ( | ||
| 703 | where a.uid=%v and b.max_id=a.id and a.submit_check_status=%v and level>0 | 703 | where a.uid=%v and b.max_id=a.id and a.submit_check_status=%v and level>0 |
| 704 | GROUP BY chance_id | 704 | GROUP BY chance_id |
| 705 | )a left outer join chance b on a.chance_id = b.id | 705 | )a left outer join chance b on a.chance_id = b.id |
| 706 | - 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 | 706 | + 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 |
| 707 | )a left outer join chance_data b on a.chance_id =b.chance_id | 707 | )a left outer join chance_data b on a.chance_id =b.chance_id |
| 708 | %v | 708 | %v |
| 709 | limit %v,%v`, uid, uid, submitStatus, checkResultStatus, where, offset, pageSize) //,update_at process_create_time | 709 | limit %v,%v`, uid, uid, submitStatus, checkResultStatus, where, offset, pageSize) //,update_at process_create_time |
| @@ -718,7 +718,7 @@ from ( | @@ -718,7 +718,7 @@ from ( | ||
| 718 | where a.uid=%v and b.max_id=a.id and a.submit_check_status=%v and level>0 | 718 | where a.uid=%v and b.max_id=a.id and a.submit_check_status=%v and level>0 |
| 719 | GROUP BY chance_id | 719 | GROUP BY chance_id |
| 720 | )a left outer join chance b on a.chance_id = b.id | 720 | )a left outer join chance b on a.chance_id = b.id |
| 721 | - 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 | 721 | + 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 |
| 722 | )a | 722 | )a |
| 723 | `, uid, uid, submitStatus, checkResultStatus) //and enable_status =1 | 723 | `, uid, uid, submitStatus, checkResultStatus) //and enable_status =1 |
| 724 | if err = utils.ExecuteQueryOne(&total, sqlCount); err != nil { | 724 | if err = utils.ExecuteQueryOne(&total, sqlCount); err != nil { |
| @@ -747,7 +747,7 @@ from ( | @@ -747,7 +747,7 @@ from ( | ||
| 747 | where a.uid=%v and b.max_id=a.id and a.submit_check_status=%v and level>0 | 747 | where a.uid=%v and b.max_id=a.id and a.submit_check_status=%v and level>0 |
| 748 | GROUP BY chance_id | 748 | GROUP BY chance_id |
| 749 | )a left outer join chance b on a.chance_id = b.id | 749 | )a left outer join chance b on a.chance_id = b.id |
| 750 | - 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 | 750 | + where b.review_status=3 and b.enable_status=1 and b.status=1 and b.check_result_status =%v |
| 751 | )a left outer join chance_data b on a.chance_id =b.chance_id | 751 | )a left outer join chance_data b on a.chance_id =b.chance_id |
| 752 | order by a.check_time desc | 752 | order by a.check_time desc |
| 753 | limit %v,%v`, uid, uid, submitStatus, checkResultStatus, offset, pageSize) //,update_at process_create_time | 753 | limit %v,%v`, uid, uid, submitStatus, checkResultStatus, offset, pageSize) //,update_at process_create_time |
| @@ -762,7 +762,7 @@ from ( | @@ -762,7 +762,7 @@ from ( | ||
| 762 | where a.uid=%v and b.max_id=a.id and a.submit_check_status=%v and level>0 | 762 | where a.uid=%v and b.max_id=a.id and a.submit_check_status=%v and level>0 |
| 763 | GROUP BY chance_id | 763 | GROUP BY chance_id |
| 764 | )a left outer join chance b on a.chance_id = b.id | 764 | )a left outer join chance b on a.chance_id = b.id |
| 765 | - 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 | 765 | + where b.review_status=3 and b.enable_status=1 and b.status=1 and b.check_result_status =%v |
| 766 | )a | 766 | )a |
| 767 | `, uid, uid, submitStatus, checkResultStatus) //and enable_status =1 | 767 | `, uid, uid, submitStatus, checkResultStatus) //and enable_status =1 |
| 768 | if err = utils.ExecuteQueryOne(&total, sqlCount); err != nil { | 768 | if err = utils.ExecuteQueryOne(&total, sqlCount); err != nil { |
-
请 注册 或 登录 后发表评论