...
|
...
|
@@ -820,7 +820,7 @@ func RankRangeMove(fromId int64, toId int64, relationId []int64, companyid int64 |
|
|
return protocol.NewErrWithMessage("1")
|
|
|
}
|
|
|
if err = removeRanks(o, companyid, fromRankRange.RankTypeId, fromRankRange.Id, relationId); err != nil {
|
|
|
log.Error("更新rank_range数据失败:%s", err)
|
|
|
log.Error("更新rank数据失败:%s", err)
|
|
|
o.Rollback()
|
|
|
return protocol.NewErrWithMessage("1")
|
|
|
}
|
...
|
...
|
@@ -841,7 +841,6 @@ where company_id=? and rank_type_id=? and rank_range_id=? and rank_period_id in |
|
|
if _, err = o.Raw(sqlRemoveRanks, companyId, rankTypeId, rankRangeId,
|
|
|
companyId, rankTypeId,
|
|
|
).Exec(); err != nil {
|
|
|
log.Error("%v", err.Error())
|
|
|
return
|
|
|
}
|
|
|
return
|
...
|
...
|
|