|
@@ -226,7 +226,7 @@ func (this *CalculateController) Edit() {
|
|
|
}
|
|
|
|
|
|
// 根据指标名称和指标ID校验库中是否还存在其他同名指标
|
|
|
- existEdbName, err := logic.CheckExistByEdbNameAndEdbInfoId(0, req.EdbInfoId, req.EdbName, this.Lang)
|
|
|
+ existEdbName, err := logic.CheckExistByEdbNameAndEdbInfoId(utils.EDB_INFO_TYPE, req.EdbInfoId, req.EdbName, this.Lang)
|
|
|
if err != nil {
|
|
|
br.Msg = "判断指标名称是否存在失败"
|
|
|
br.ErrMsg = "判断指标名称是否存在失败,Err:" + err.Error()
|
|
@@ -514,7 +514,7 @@ func (this *CalculateController) BatchSave() {
|
|
|
//加入缓存机制,避免创建同一个名称的指标 end
|
|
|
|
|
|
// 根据指标名称和指标ID校验库中是否还存在其他同名指标
|
|
|
- existEdbName, err := logic.CheckExistByEdbNameAndEdbInfoId(0, req.EdbInfoId, req.EdbName, this.Lang)
|
|
|
+ existEdbName, err := logic.CheckExistByEdbNameAndEdbInfoId(utils.EDB_INFO_TYPE, req.EdbInfoId, req.EdbName, this.Lang)
|
|
|
if err != nil {
|
|
|
br.Msg = "判断指标名称是否存在失败"
|
|
|
br.ErrMsg = "判断指标名称是否存在失败,Err:" + err.Error()
|
|
@@ -882,7 +882,7 @@ func (this *CalculateController) BatchEdit() {
|
|
|
}
|
|
|
|
|
|
// 根据指标名称和指标ID校验库中是否还存在其他同名指标
|
|
|
- existEdbName, err := logic.CheckExistByEdbNameAndEdbInfoId(0, req.EdbInfoId, req.EdbName, this.Lang)
|
|
|
+ existEdbName, err := logic.CheckExistByEdbNameAndEdbInfoId(utils.EDB_INFO_TYPE, req.EdbInfoId, req.EdbName, this.Lang)
|
|
|
if err != nil {
|
|
|
br.Msg = "判断指标名称是否存在失败"
|
|
|
br.ErrMsg = "判断指标名称是否存在失败,Err:" + err.Error()
|