|
@@ -66,7 +66,7 @@ func AddPredictEdbInfo(sourceEdbInfoId, classifyId int, edbName, dataDateType st
|
|
|
edbCode := sourceEdbInfo.EdbCode + "_" + time.Now().Format(utils.FormatShortDateTimeUnSpace)
|
|
|
|
|
|
// 根据指标名称和指标ID校验库中是否还存在其他同名指标
|
|
|
- existEdbName, err := CheckExistByEdbNameAndEdbInfoId(0, 0, edbName, lang)
|
|
|
+ existEdbName, err := CheckExistByEdbNameAndEdbInfoId(utils.PREDICT_EDB_INFO_TYPE, 0, edbName, lang)
|
|
|
if err != nil {
|
|
|
errMsg = "判断指标名称是否存在失败"
|
|
|
err = errors.New("判断指标名称是否存在失败,Err:" + err.Error())
|
|
@@ -443,7 +443,7 @@ func EditPredictEdbInfo(edbInfoId, classifyId int, edbName, dataDateType string,
|
|
|
}
|
|
|
|
|
|
// 根据指标名称和指标ID校验库中是否还存在其他同名指标
|
|
|
- existEdbName, err := CheckExistByEdbNameAndEdbInfoId(1, edbInfoId, edbName, lang)
|
|
|
+ existEdbName, err := CheckExistByEdbNameAndEdbInfoId(utils.PREDICT_EDB_INFO_TYPE, edbInfoId, edbName, lang)
|
|
|
if err != nil {
|
|
|
errMsg = "判断指标名称是否存在失败"
|
|
|
err = errors.New("判断指标名称是否存在失败,Err:" + err.Error())
|
|
@@ -1123,7 +1123,7 @@ func AddStaticPredictEdbInfo(sourceEdbInfoId, classifyId int, edbName, frequency
|
|
|
edbCode := sourceEdbInfo.EdbCode + "_" + time.Now().Format(utils.FormatShortDateTimeUnSpace)
|
|
|
|
|
|
// 根据指标名称和指标ID校验库中是否还存在其他同名指标
|
|
|
- existEdbName, err := CheckExistByEdbNameAndEdbInfoId(1, 0, edbName, lang)
|
|
|
+ existEdbName, err := CheckExistByEdbNameAndEdbInfoId(utils.PREDICT_EDB_INFO_TYPE, 0, edbName, lang)
|
|
|
if err != nil {
|
|
|
errMsg = "判断指标名称是否存在失败"
|
|
|
err = errors.New("判断指标名称是否存在失败,Err:" + err.Error())
|