作者 yangfu

机会成果修改

... ... @@ -78,6 +78,9 @@ func GetAchievementAll(uid, cid int64, chanceTypeId int, lastId int64, departmen
if len(departmentId) > 0 {
filter.Where(fmt.Sprintf("department_id in (%v)", utils.JoinInts(departmentId, ",")))
}
if uid > 0 {
filter.Where(fmt.Sprintf("user_company_id =%v", uid))
}
sql := fmt.Sprintf(`
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
%v
... ...