|
@@ -1974,7 +1974,7 @@ func GetMoveEdbChartList(source, subSource, userId int, keyword, classify string
|
|
|
|
|
|
// MoveEdbChart 转移指标/图表创建人
|
|
|
// @param source 来源 :1:手工数据指标 2:钢联化工数据库 3:ETA指标库 4:ETA预测指标 5:图库 6:ETA表格
|
|
|
-func MoveEdbChart(source, subSource, oldUserId, newUserId int, isSelectAll bool, dataId []string, keyword, classify string) (err error, errMsg string) {
|
|
|
+func MoveEdbChart(source, subSource, oldUserId, newUserId int, isSelectAll bool, dataId, noDataId []string, keyword, classify string) (err error, errMsg string) {
|
|
|
adminInfo, err := system.GetSysAdminById(newUserId)
|
|
|
if err != nil {
|
|
|
return
|
|
@@ -1983,9 +1983,9 @@ func MoveEdbChart(source, subSource, oldUserId, newUserId int, isSelectAll bool,
|
|
|
// 如果勾选全部数据,那么
|
|
|
if isSelectAll {
|
|
|
// 找出不要的指标ID列表
|
|
|
- dataIdMap := make(map[string]string, 0)
|
|
|
- for _, v := range dataId {
|
|
|
- dataIdMap[v] = v
|
|
|
+ noDataIdMap := make(map[string]string, 0)
|
|
|
+ for _, v := range noDataId {
|
|
|
+ noDataIdMap[v] = v
|
|
|
}
|
|
|
|
|
|
// 需要转义的指标/图表ID列表
|
|
@@ -1997,7 +1997,7 @@ func MoveEdbChart(source, subSource, oldUserId, newUserId int, isSelectAll bool,
|
|
|
return
|
|
|
}
|
|
|
for _, v := range list {
|
|
|
- if _, ok := dataIdMap[v.DataId]; !ok {
|
|
|
+ if _, ok := noDataIdMap[v.DataId]; !ok {
|
|
|
dataId = append(dataId, v.DataId)
|
|
|
}
|
|
|
}
|