|
@@ -47,7 +47,7 @@ func AddPredictEdb(item *EdbInfo, calculateMappingList []*EdbInfoCalculateMappin
|
|
|
calculateMappingItem.EdbInfoId = item.EdbInfoId
|
|
|
calculateMappingItem.EdbCode = item.EdbCode
|
|
|
}
|
|
|
- err = to.CreateInBatches(calculateMappingList, 500).Error
|
|
|
+ err = to.CreateInBatches(calculateMappingList, utils.MultiAddNum).Error
|
|
|
if err != nil {
|
|
|
return
|
|
|
}
|
|
@@ -86,7 +86,7 @@ func AddPredictEdb(item *EdbInfo, calculateMappingList []*EdbInfoCalculateMappin
|
|
|
vv.EdbInfoId = item.EdbInfoId
|
|
|
vv.ConfigId = v.ConfigId
|
|
|
}
|
|
|
- err = to.CreateInBatches(calculateRule.TrendsCalculateMappingList, 500).Error
|
|
|
+ err = to.CreateInBatches(calculateRule.TrendsCalculateMappingList, utils.MultiAddNum).Error
|
|
|
if err != nil {
|
|
|
return
|
|
|
}
|
|
@@ -109,7 +109,7 @@ func AddPredictEdb(item *EdbInfo, calculateMappingList []*EdbInfoCalculateMappin
|
|
|
vv.EdbInfoId = item.EdbInfoId
|
|
|
vv.ConfigId = v.ConfigId
|
|
|
}
|
|
|
- err = to.CreateInBatches(calculateRule.TrendsCalculateMappingList, 500).Error
|
|
|
+ err = to.CreateInBatches(calculateRule.TrendsCalculateMappingList, utils.MultiAddNum).Error
|
|
|
if err != nil {
|
|
|
return
|
|
|
}
|
|
@@ -197,7 +197,7 @@ func EditPredictEdb(edbInfo *EdbInfo, updateEdbInfoCol []string, calculateMappin
|
|
|
calculateMappingItem.EdbInfoId = edbInfo.EdbInfoId
|
|
|
calculateMappingItem.EdbCode = edbInfo.EdbCode
|
|
|
}
|
|
|
- err = to.CreateInBatches(calculateMappingList, 500).Error
|
|
|
+ err = to.CreateInBatches(calculateMappingList, utils.MultiAddNum).Error
|
|
|
if err != nil {
|
|
|
return
|
|
|
}
|
|
@@ -235,7 +235,7 @@ func EditPredictEdb(edbInfo *EdbInfo, updateEdbInfoCol []string, calculateMappin
|
|
|
vv.EdbInfoId = edbInfo.EdbInfoId
|
|
|
vv.ConfigId = v.ConfigId
|
|
|
}
|
|
|
- err = to.CreateInBatches(calculateRule.TrendsCalculateMappingList, 500).Error
|
|
|
+ err = to.CreateInBatches(calculateRule.TrendsCalculateMappingList, utils.MultiAddNum).Error
|
|
|
if err != nil {
|
|
|
return
|
|
|
}
|
|
@@ -258,7 +258,7 @@ func EditPredictEdb(edbInfo *EdbInfo, updateEdbInfoCol []string, calculateMappin
|
|
|
vv.EdbInfoId = edbInfo.EdbInfoId
|
|
|
vv.ConfigId = v.ConfigId
|
|
|
}
|
|
|
- err = to.CreateInBatches(calculateRule.TrendsCalculateMappingList, 500).Error
|
|
|
+ err = to.CreateInBatches(calculateRule.TrendsCalculateMappingList, utils.MultiAddNum).Error
|
|
|
if err != nil {
|
|
|
return
|
|
|
}
|