作者 tangxvhui

Revert "修复bug:批量移动榜单参与人时参与人类型错误变更。"

This reverts commit ebf3aa42.
@@ -826,9 +826,9 @@ func RankRangeMove(fromId int64, toId int64, relationId []int64, companyid int64 @@ -826,9 +826,9 @@ func RankRangeMove(fromId int64, toId int64, relationId []int64, companyid int64
826 826
827 typeIn := map[int8]int{ 827 typeIn := map[int8]int{
828 models.RANK_RANGE_TYPE_DEPARTMENT: 1, 828 models.RANK_RANGE_TYPE_DEPARTMENT: 1,
829 - //models.RANK_RANGE_TYPE_DEPARTMENTALL: 1, 829 + models.RANK_RANGE_TYPE_DEPARTMENTALL: 1,
830 models.RANK_RANGE_TYPE_EMPLAYEE: 2, 830 models.RANK_RANGE_TYPE_EMPLAYEE: 2,
831 - // models.RANK_RANGE_TYPE_EMPLAYEEALL: 2, 831 + models.RANK_RANGE_TYPE_EMPLAYEEALL: 2,
832 } 832 }
833 var ( 833 var (
834 fromTypeFlag int 834 fromTypeFlag int
@@ -875,7 +875,6 @@ func RankRangeMove(fromId int64, toId int64, relationId []int64, companyid int64 @@ -875,7 +875,6 @@ func RankRangeMove(fromId int64, toId int64, relationId []int64, companyid int64
875 o.Rollback() 875 o.Rollback()
876 return protocol.NewErrWithMessage("1") 876 return protocol.NewErrWithMessage("1")
877 } 877 }
878 -  
879 // cnt, err := o.QueryTable(&models.RankRangeData{}).Filter("rank_range_id", fromId).Count() 878 // cnt, err := o.QueryTable(&models.RankRangeData{}).Filter("rank_range_id", fromId).Count()
880 // if err != nil { 879 // if err != nil {
881 // log.Error("统计rank_range_data 数据失败:%s", err) 880 // log.Error("统计rank_range_data 数据失败:%s", err)