浏览代码

更新

master
huangjiajun 1 个月前
父节点
当前提交
370920be3d
共有 1 个文件被更改,包括 5 次插入2 次删除
  1. +5
    -2
      src/super/implement/medium_list_implement.go

+ 5
- 2
src/super/implement/medium_list_implement.go 查看文件

@@ -52,10 +52,13 @@ func (m MediumListDb) UpdateMediumList(medium *model.MediumList, columns ...stri
}
return affected, nil
}
func (m MediumListDb) FindMediumList(uuid, name, state string, minState, page, limit int) (list []model.MediumList, total int64, err error) {
func (m MediumListDb) FindMediumList(uuid, name, mediumId, state string, minState, page, limit int) (list []model.MediumList, total int64, err error) {
sess := m.Db.Desc("id").Limit(limit, (page-1)*limit)
if mediumId != "" {
sess.In("medium_id", strings.Split(mediumId, ","))
}
if name != "" {
sess.In("medium_id", name)
sess.And("company_name like ?", "%"+name+"%")
}
if state != "" {
sess.And("state = ?", state)


正在加载...
取消
保存