作者 yangfu

我审核的机会

@@ -43,7 +43,7 @@ func (s SuplusApprove) NewApproveInstance(header *protocol.RequestHeader, proces @@ -43,7 +43,7 @@ func (s SuplusApprove) NewApproveInstance(header *protocol.RequestHeader, proces
43 relativeId int64 43 relativeId int64
44 userCompany *models.UserCompany 44 userCompany *models.UserCompany
45 ) 45 )
46 - if userCompany, err = models.GetUserCompanyByUserId(header.UserId, header.CompanyId); err != nil { 46 + if userCompany, err = models.GetUserCompanyByUserId(header.Uid, header.CompanyId); err != nil {
47 log.Error(err) 47 log.Error(err)
48 return 48 return
49 } 49 }
@@ -386,6 +386,7 @@ func ChanceUpdate(header *protocol.RequestHeader, request *protocol.ChanceSubmit @@ -386,6 +386,7 @@ func ChanceUpdate(header *protocol.RequestHeader, request *protocol.ChanceSubmit
386 //6.更新文件 386 //6.更新文件
387 { 387 {
388 if chanceData, err = models.GetChanceDataByChanceId(chance.Id); err == nil { 388 if chanceData, err = models.GetChanceDataByChanceId(chance.Id); err == nil {
  389 +
389 if err = utils.UpdateTableByMapWithOrmer(orm, chanceData, map[string]interface{}{ 390 if err = utils.UpdateTableByMapWithOrmer(orm, chanceData, map[string]interface{}{
390 "Speechs": common.AssertJson(request.Speechs), 391 "Speechs": common.AssertJson(request.Speechs),
391 "Images": common.AssertJson(request.Pictures), 392 "Images": common.AssertJson(request.Pictures),