正在显示
1 个修改的文件
包含
3 行增加
和
0 行删除
@@ -78,6 +78,9 @@ func GetAchievementAll(uid, cid int64, chanceTypeId int, lastId int64, departmen | @@ -78,6 +78,9 @@ func GetAchievementAll(uid, cid int64, chanceTypeId int, lastId int64, departmen | ||
78 | if len(departmentId) > 0 { | 78 | if len(departmentId) > 0 { |
79 | filter.Where(fmt.Sprintf("department_id in (%v)", utils.JoinInts(departmentId, ","))) | 79 | filter.Where(fmt.Sprintf("department_id in (%v)", utils.JoinInts(departmentId, ","))) |
80 | } | 80 | } |
81 | + if uid > 0 { | ||
82 | + filter.Where(fmt.Sprintf("user_company_id =%v", uid)) | ||
83 | + } | ||
81 | sql := fmt.Sprintf(` | 84 | sql := fmt.Sprintf(` |
82 | select id,user_company_id,create_at,source_content,audit_template_id,chance_type_id,grasp_score,user_grasp_score,comment_total,zan_total,view_total,images from achievement | 85 | select id,user_company_id,create_at,source_content,audit_template_id,chance_type_id,grasp_score,user_grasp_score,comment_total,zan_total,view_total,images from achievement |
83 | %v | 86 | %v |
-
请 注册 或 登录 后发表评论