|
@@ -5377,17 +5377,11 @@ func (this *EdbInfoController) SmmExistCheck() {
|
|
|
types := this.GetString("Types")
|
|
|
frequency := this.GetString("Frequency")
|
|
|
dataState := this.GetString("DataState")
|
|
|
- keyword := this.GetString("Keyword")
|
|
|
edbCode := this.GetString("EdbCode")
|
|
|
edbCode = strings.Trim(edbCode, "\t")
|
|
|
edbCode = strings.Trim(edbCode, " ")
|
|
|
edbCode = strings.Replace(edbCode, "\t", "", -1)
|
|
|
|
|
|
- if edbCode == "" {
|
|
|
- br.Msg = "请输入指标ID"
|
|
|
- return
|
|
|
- }
|
|
|
-
|
|
|
var edbCodeArr []string
|
|
|
|
|
|
if selectAll {
|
|
@@ -5414,10 +5408,6 @@ func (this *EdbInfoController) SmmExistCheck() {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- if keyword != "" {
|
|
|
- condition += " AND (index_name LIKE ? OR index_code LIKE ?) "
|
|
|
- pars = utils.GetLikeKeywordPars(pars, keyword, 2)
|
|
|
- }
|
|
|
|
|
|
if frequency != "" {
|
|
|
condition += " AND frequency = ? "
|
|
@@ -5446,6 +5436,11 @@ func (this *EdbInfoController) SmmExistCheck() {
|
|
|
return
|
|
|
}
|
|
|
|
|
|
+ if len(edbCodeArr) <= 0 {
|
|
|
+ br.Msg = "无符合指标或指标代码错误"
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
indexList, err := data_manage.GetEdbInfoByEdbCodeList(utils.DATA_SOURCE_YS, edbCodeArr)
|
|
|
if err != nil && err.Error() != utils.ErrNoRow() {
|
|
|
br.Msg = "校验指标是否存在失败"
|