|
@@ -129,37 +129,6 @@ func (this *ReportController) IndustryList() {
|
|
|
condition += ` AND is_deep_label = ` + isDeepLabel
|
|
|
}
|
|
|
if keyWord != "" {
|
|
|
- //keyWordArr, err := services.GetIndustryMapNameSliceV2(keyWord)
|
|
|
- //if err != nil {
|
|
|
- // br.Msg = "获取信息失败"
|
|
|
- // br.ErrMsg = "获取品种信息失败,Err:" + err.Error()
|
|
|
- // return
|
|
|
- //}
|
|
|
- //var conditionkeyWord string
|
|
|
- //conditionkeyWord += ` subject_names LIKE '%` + keyWord + `%'`
|
|
|
- //keyWordArr = services.RemoveDuplicatesAndEmpty(keyWordArr)
|
|
|
- //keyWordLen := len(keyWordArr)
|
|
|
- //if keyWordLen <= 0 {
|
|
|
- // keyWordArr = append(keyWordArr, keyWord)
|
|
|
- // keyWordLen = len(keyWordArr)
|
|
|
- //}
|
|
|
- //for _, v := range keyWordArr {
|
|
|
- // conditionkeyWord += ` OR subject_names LIKE '%` + v + `%'`
|
|
|
- //}
|
|
|
- //industrialManagementIds, err := models.GetIndustrialManagementIdsBykeyWord(conditionkeyWord)
|
|
|
- //if err != nil {
|
|
|
- // br.Msg = "获取信息失败"
|
|
|
- // br.ErrMsg = "获取客户信息失败,Err:" + err.Error()
|
|
|
- // return
|
|
|
- //}
|
|
|
- //if industrialManagementIds == "" {
|
|
|
- // br.Ret = 200
|
|
|
- // br.Success = true
|
|
|
- // br.Msg = "获取成功"
|
|
|
- // br.Data = resp
|
|
|
- // return
|
|
|
- //}
|
|
|
- //condition += ` AND man.industrial_management_id IN (` + industrialManagementIds + `)`
|
|
|
condition += ` AND subject_names LIKE '%` + keyWord + `%'`
|
|
|
}
|
|
|
var sqlChartPermissionId string
|