分页搜索新增编号搜索
This commit is contained in:
parent
d3e5526ffc
commit
eec6e56567
@ -149,6 +149,9 @@ func (r *ArticleDao) GetArticlePageSearch(req requests.GetArticlePage, page, pag
|
||||
// 标题
|
||||
orQuery := global.Db.Model(&model.Article{}).Or("article_title LIKE ?", keyword)
|
||||
|
||||
// 编号
|
||||
orQuery = orQuery.Or("article_number LIKE ?", keyword)
|
||||
|
||||
// 医院名称
|
||||
hospitalSubQuery := global.Db.Model(&model.BaseHospital{}).
|
||||
Select("hospital_id").
|
||||
|
||||
@ -149,6 +149,9 @@ func (r *VideoDao) GetVideoPageSearch(req requests.GetVideoPage, page, pageSize
|
||||
// 标题
|
||||
orQuery := global.Db.Model(&model.Video{}).Or("video_title LIKE ?", keyword)
|
||||
|
||||
// 编号
|
||||
orQuery = orQuery.Or("video_number LIKE ?", keyword)
|
||||
|
||||
// 医院名称
|
||||
hospitalSubQuery := global.Db.Model(&model.BaseHospital{}).
|
||||
Select("hospital_id").
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user