正在显示
1 个修改的文件
包含
3 行增加
和
1 行删除
@@ -269,7 +269,8 @@ select * from ( | @@ -269,7 +269,8 @@ select * from ( | ||
269 | ##公司公开的机会 | 269 | ##公司公开的机会 |
270 | select id,user_id,create_at,source_content,review_status,audit_template_id,chance_type_id,comment_total,zan_total,view_total,enable_status,department_id from chance | 270 | select id,user_id,create_at,source_content,review_status,audit_template_id,chance_type_id,comment_total,zan_total,view_total,enable_status,department_id from chance |
271 | where company_id = %v and publish_status = 2 | 271 | where company_id = %v and publish_status = 2 |
272 | - | 272 | + UNION |
273 | + | ||
273 | ##指定部门-机会提交的部门 | 274 | ##指定部门-机会提交的部门 |
274 | select id,user_id,create_at,source_content,review_status,audit_template_id,chance_type_id,comment_total,zan_total,view_total,enable_status,department_id from chance | 275 | select id,user_id,create_at,source_content,review_status,audit_template_id,chance_type_id,comment_total,zan_total,view_total,enable_status,department_id from chance |
275 | where department_id in (%v) | 276 | where department_id in (%v) |
@@ -296,6 +297,7 @@ select count(0) from ( | @@ -296,6 +297,7 @@ select count(0) from ( | ||
296 | ##公司公开的机会 | 297 | ##公司公开的机会 |
297 | select id,user_id,create_at,source_content,review_status,audit_template_id,chance_type_id,comment_total,zan_total,view_total,enable_status,department_id from chance | 298 | select id,user_id,create_at,source_content,review_status,audit_template_id,chance_type_id,comment_total,zan_total,view_total,enable_status,department_id from chance |
298 | where company_id = %v and publish_status = 2 | 299 | where company_id = %v and publish_status = 2 |
300 | + UNION | ||
299 | 301 | ||
300 | ##指定部门-机会提交的部门 | 302 | ##指定部门-机会提交的部门 |
301 | select id,user_id,create_at,source_content,review_status,audit_template_id,chance_type_id,comment_total,zan_total,view_total,enable_status,department_id from chance | 303 | select id,user_id,create_at,source_content,review_status,audit_template_id,chance_type_id,comment_total,zan_total,view_total,enable_status,department_id from chance |
-
请 注册 或 登录 后发表评论