fix
This commit is contained in:
@@ -78,8 +78,6 @@ type GetProductTemplateListByParamsReq struct {
|
||||
GroupBy string
|
||||
OrderBy string
|
||||
Fields string
|
||||
SortNeq *int64
|
||||
TitleKeyword string
|
||||
Status *int64
|
||||
}
|
||||
func (t *FsProductTemplateV2Model) GetProductTemplateListByParams(ctx context.Context, req GetProductTemplateListByParamsReq) (resp []FsProductTemplateV2, err error) {
|
||||
@@ -96,12 +94,6 @@ func (t *FsProductTemplateV2Model) GetProductTemplateListByParams(ctx context.Co
|
||||
if req.Fields != ""{
|
||||
db = db.Select(req.Fields)
|
||||
}
|
||||
if req.SortNeq != nil{
|
||||
db = db.Where("`sort` != ?",req.SortNeq)
|
||||
}
|
||||
if req.TitleKeyword != ""{
|
||||
db = db.Where("title like ?",`%`+req.TitleKeyword+`%`)
|
||||
}
|
||||
if req.Status != nil{
|
||||
db = db.Where("`status` = ?",req.Status)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user