作者 tangxvhui

修正警告

... ... @@ -328,3 +328,5 @@ func sendSmsEvalation(param []domain.SummaryEvaluation) error {
}
return nil
}
//
... ...
... ... @@ -433,6 +433,9 @@ func (srv *SummaryEvaluationService) EvaluationHRBPList(param *command.QueryEval
// 必须是HRBP权限的人才能编辑操作
hrbp, err := service.GetHRBP(transactionContext, param.CompanyId, param.UserId)
if err != nil {
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
}
if hrbp != 1 {
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "没有操作权限")
}
... ... @@ -481,9 +484,8 @@ func (srv *SummaryEvaluationService) EvaluationHRBPList(param *command.QueryEval
positionIds := make([]int, 0)
for i := range users {
userMap[users[i].Id] = users[i]
for _, pid := range users[i].PositionId {
positionIds = append(positionIds, pid)
}
positionIds = append(positionIds, users[i].PositionId...)
}
if len(positionIds) > 0 {
_, positions, err := positionRepo.Find(map[string]interface{}{"ids": positionIds, "companyId": param.CompanyId})
... ... @@ -674,6 +676,9 @@ func (srv *SummaryEvaluationService) EditEvaluationHRBP(param *command.EditEvalu
// 必须是HRBP权限的人才能编辑操作
hrbp, err := service.GetHRBP(transactionContext, param.CompanyId, param.ExecutorId)
if err != nil {
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
}
if hrbp != 1 {
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "没有操作权限")
}
... ...
... ... @@ -14,7 +14,7 @@ type LogSms struct {
CreatedAt time.Time
}
// 周期综合自评 短信消息提醒
// 每日自评 短信消息提醒
func (sms *LogSms) SummaryEvaluationMessage(phone string, name string) {
*sms = LogSms{
Id: 0,
... ...