作者 tangxvhui

bug 修复

... ... @@ -314,18 +314,22 @@ func GetAchievementInfo(id int64, companyId int64) *protocol.ResponseAchievement
)
departmentData, err = models.GetDepartmentById(rspData.DepartmentId)
if err == nil {
rspData.DepartmentId = departmentData.Id
rspData.DeparmentName = departmentData.Name
}
usercompanyData, err = models.GetUserCompanyById(rspData.UserCompanyId)
if err == nil {
rspData.UserCompanyId = usercompanyData.Id
rspData.UserName = usercompanyData.NickName
}
chaneTypeData, err = models.GetChanceTypeById(int(rspData.ChanceTypeId))
if err == nil {
rspData.ChanceTypeId = int64(chaneTypeData.Id)
rspData.ChanceTypeName = chaneTypeData.Name
}
auditTempData, err = models.GetAuditTemplateById(rspData.AuditTemplateId)
if err == nil {
rspData.AuditTemplateId = auditTempData.Id
rspData.AuditTemplateName = auditTempData.Name
}
return rspData
... ...