作者 yangfu

批量转移修改

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