作者 tangxvhui

bug 修复

... ... @@ -2,12 +2,12 @@ package protocol
//ProviderData 成果提供者
type AchievementProvider struct {
UserDepartmentId int64 `json:"user_department_id"` //前端需要的唯一id标识,使用user_department表的id
UserCompanyId int64 `json:"user_company_id"` //用户的id
UserName string `json:"user_name"`
DepartmentId int64 `json:"department_id"` //部门id
DepartmentName string `json:"department_name"`
UserGraspScore float64 `json:"user_grasp_score"` //把握人得分
UserDepartmentId int64 `json:"user_department_id" orm:"-"` //前端需要的唯一id标识,使用user_department表的id
UserCompanyId int64 `json:"user_company_id" orm:"column(user_company_id)"` //用户的id
NickName string `json:"nick_name" orm:"column(nick_name)"`
DepartmentId int64 `json:"department_id" orm:"column(department_id)" ` //部门id
DepartmentName string `json:"department_name" orm:"column(department_name)"`
UserGraspScore float64 `json:"user_grasp_score" orm:"column(user_grasp_score)"` //把握人得分
}
//AchievementChance 成果的机会列表
... ...
... ... @@ -346,7 +346,7 @@ func GetAchievementInfo(id int64, companyId int64) *protocol.ResponseAchievement
func getAchievementProvider(achievementId int64) []protocol.AchievementProvider {
sql := `SELECT a.achievement_id,a.department_id,a.user_company_id,a.user_grasp_score
,b.nick_name,c.name
,b.nick_name,c.name As department_name
FROM achievement_provider AS a
LEFT JOIN user_company AS b on a.user_company_id = b.id
LEFT JOIN department AS c ON a.department_id = c.id
... ...