作者 yangfu

机会成果修改

@@ -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