...
|
...
|
@@ -316,6 +316,7 @@ func GetAchievementInfo(id int64, companyId int64) *protocol.ResponseAchievement |
|
|
chaneTypeData *models.ChanceType
|
|
|
auditTempData *models.AuditTemplate
|
|
|
)
|
|
|
|
|
|
departmentData, err = models.GetDepartmentById(rspData.DepartmentId)
|
|
|
if err == nil {
|
|
|
rspData.DepartmentId = departmentData.Id
|
...
|
...
|
@@ -354,5 +355,11 @@ func getAchievementProvider(achievementId int64) []protocol.AchievementProvider |
|
|
if err != nil {
|
|
|
log.Error("SQL EXECUTE ERR:%s", err)
|
|
|
}
|
|
|
for i := range sqldata {
|
|
|
userDepartment, err := models.GetUserDepartment(sqldata[i].DepartmentId, sqldata[i].UserCompanyId)
|
|
|
if err == nil {
|
|
|
sqldata[i].Id = userDepartment.Id
|
|
|
}
|
|
|
}
|
|
|
return sqldata
|
|
|
} |
...
|
...
|
|