作者 tangxvhui

bug 修复

... ... @@ -153,12 +153,11 @@ func EditAchievement(editData *protocol.RequestEditAchievement, companyid int64)
achievementData.AuditTemplateId = editData.AuditTemplateId
achievementData.SourceContent = editData.SourceContent
achievementData.GraspScore = editData.GraspScore
achievementData.UpdateAt = nowTime
achievementData.UserGraspScore = editData.UserGraspScore
achievementData.GraspScoreRemain = newRamain
cols := []string{
"UpdateAt", "ChanceTypeId", "AuditTemplateId", "SourceContent", "GraspScore",
"UserGraspScore",
"UserGraspScore", "GraspScoreRemain",
}
o := orm.NewOrm()
o.Begin()
... ...
... ... @@ -16,7 +16,7 @@ type CommonProtocol struct {
var actionmap = map[string]PlatformAction{
"department": ModuleDeparmentData{},
"position": ModulePositionData{},
"emplayee": ModuleEmployee{},
"employee": ModuleEmployee{},
"company": ModuleCompanytData{},
}
... ...
... ... @@ -180,9 +180,10 @@ func AddPosition(data ModulePositionData) error {
return errors.New("无效公司")
}
positioninfo := &models.Position{
Id: data.Id,
Name: data.Name,
CompanyId: companyinfo.Id,
Id: data.Id,
Name: data.Name,
CompanyId: companyinfo.Id,
BusinessPositionId: data.Id,
}
var (
parentPosition *models.Position
... ...
... ... @@ -449,8 +449,7 @@ func deleteRankRangeDataByRelation(rankTypeId int64, rangeType int8, relationId
_, err := om.QueryTable(&models.RankRangeData{}).
Filter("rank_type_id", rankTypeId).
Filter("range_type", rangeType).
Filter("relation_id__in", relationId).
Delete()
Filter("relation_id__in", relationId).Delete()
if err != nil {
log.Error("删除rank_range_data数据失败:%s", err)
return err
... ...