|
@@ -51,7 +51,7 @@ type RaiServeCoverageRateResp struct {
|
|
|
}
|
|
|
|
|
|
// 服务类型列表
|
|
|
-func GetRaiServeSearchTagRespList(keywords string) (items []*RaiServeTagResp, err error) {
|
|
|
+func GetRaiServeSearchTagRespList(keywords, conditionindustrial, conditionsubject string) (items []*RaiServeTagResp, err error) {
|
|
|
o := orm.NewOrmUsingDB("hz_cygx")
|
|
|
sql := `SELECT
|
|
|
1 AS tag_type,
|
|
@@ -63,7 +63,7 @@ func GetRaiServeSearchTagRespList(keywords string) (items []*RaiServeTagResp, er
|
|
|
WHERE
|
|
|
1 = 1
|
|
|
AND i.chart_permission_id IN ( 19, 20, 21, 22 )
|
|
|
- AND i.industry_name LIKE '%` + keywords + `%' UNION ALL
|
|
|
+ AND (i.industry_name LIKE '%` + keywords + `%' ` + conditionindustrial + ` ) UNION ALL
|
|
|
SELECT
|
|
|
2 AS tag_type,
|
|
|
s.industrial_subject_id AS tag_id,
|
|
@@ -75,7 +75,7 @@ func GetRaiServeSearchTagRespList(keywords string) (items []*RaiServeTagResp, er
|
|
|
WHERE
|
|
|
1 = 1
|
|
|
AND i.chart_permission_id IN ( 19, 20, 21, 22 )
|
|
|
- AND s.subject_name LIKE '%` + keywords + `%'
|
|
|
+ AND ( s.subject_name LIKE '%` + keywords + `%' ` + conditionsubject + ` )
|
|
|
ORDER BY
|
|
|
create_time ASC `
|
|
|
_, err = o.Raw(sql).QueryRows(&items)
|