|
@@ -103,13 +103,13 @@ func (a *EtaTrainingVideoController) VideoPageList(c *gin.Context) {
|
|
|
pars := make([]interface{}, 0)
|
|
|
pars = append(pars, 1)
|
|
|
{
|
|
|
- // 关键词
|
|
|
+ // 关键词-标题/简介
|
|
|
keyword := strings.TrimSpace(req.Keyword)
|
|
|
keyword = template.HTMLEscapeString(keyword)
|
|
|
if keyword != "" {
|
|
|
kw := fmt.Sprint("%", keyword, "%")
|
|
|
- cond += fmt.Sprintf(` AND (%s LIKE ?)`, crm.EtaTrainingVideoColumns.Title)
|
|
|
- pars = append(pars, kw)
|
|
|
+ cond += fmt.Sprintf(` AND (%s LIKE ? OR %s LIKE ?)`, crm.EtaTrainingVideoColumns.Title, crm.EtaTrainingVideoColumns.Introduce)
|
|
|
+ pars = append(pars, kw, kw)
|
|
|
}
|
|
|
|
|
|
// 分类ID
|