|
@@ -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())
|
|
@@ -993,7 +993,7 @@ func checkExistByEdbName(edbInfoType int, edbName, lang string) (has bool, err e
|
|
|
var pars []interface{}
|
|
|
|
|
|
condition += " AND edb_info_type=? "
|
|
|
- pars = append(pars, 0)
|
|
|
+ pars = append(pars, edbInfoType)
|
|
|
|
|
|
switch lang {
|
|
|
case utils.EnLangVersion:
|