正在显示
1 个修改的文件
包含
4 行增加
和
0 行删除
@@ -314,18 +314,22 @@ func GetAchievementInfo(id int64, companyId int64) *protocol.ResponseAchievement | @@ -314,18 +314,22 @@ func GetAchievementInfo(id int64, companyId int64) *protocol.ResponseAchievement | ||
314 | ) | 314 | ) |
315 | departmentData, err = models.GetDepartmentById(rspData.DepartmentId) | 315 | departmentData, err = models.GetDepartmentById(rspData.DepartmentId) |
316 | if err == nil { | 316 | if err == nil { |
317 | + rspData.DepartmentId = departmentData.Id | ||
317 | rspData.DeparmentName = departmentData.Name | 318 | rspData.DeparmentName = departmentData.Name |
318 | } | 319 | } |
319 | usercompanyData, err = models.GetUserCompanyById(rspData.UserCompanyId) | 320 | usercompanyData, err = models.GetUserCompanyById(rspData.UserCompanyId) |
320 | if err == nil { | 321 | if err == nil { |
322 | + rspData.UserCompanyId = usercompanyData.Id | ||
321 | rspData.UserName = usercompanyData.NickName | 323 | rspData.UserName = usercompanyData.NickName |
322 | } | 324 | } |
323 | chaneTypeData, err = models.GetChanceTypeById(int(rspData.ChanceTypeId)) | 325 | chaneTypeData, err = models.GetChanceTypeById(int(rspData.ChanceTypeId)) |
324 | if err == nil { | 326 | if err == nil { |
327 | + rspData.ChanceTypeId = int64(chaneTypeData.Id) | ||
325 | rspData.ChanceTypeName = chaneTypeData.Name | 328 | rspData.ChanceTypeName = chaneTypeData.Name |
326 | } | 329 | } |
327 | auditTempData, err = models.GetAuditTemplateById(rspData.AuditTemplateId) | 330 | auditTempData, err = models.GetAuditTemplateById(rspData.AuditTemplateId) |
328 | if err == nil { | 331 | if err == nil { |
332 | + rspData.AuditTemplateId = auditTempData.Id | ||
329 | rspData.AuditTemplateName = auditTempData.Name | 333 | rspData.AuditTemplateName = auditTempData.Name |
330 | } | 334 | } |
331 | return rspData | 335 | return rspData |
-
请 注册 或 登录 后发表评论