fix
This commit is contained in:
parent
2b1728aac5
commit
791121c574
|
@ -65,7 +65,7 @@ func (t *FsProductTemplateV2Model) FindAllByProductIdModelIds(ctx context.Contex
|
|||
if len(modelIds) == 0 {
|
||||
return
|
||||
}
|
||||
err = t.db.WithContext(ctx).Debug().Model(&FsProductTemplateV2{}).Where("`model_id` in (?) and `product_id` = ? ", modelIds, productId).Find(&resp).Error
|
||||
err = t.db.WithContext(ctx).Model(&FsProductTemplateV2{}).Where("`model_id` in (?) and `product_id` = ? ", modelIds, productId).Find(&resp).Error
|
||||
return resp, err
|
||||
}
|
||||
func (t *FsProductTemplateV2Model) FindOneByModelId(ctx context.Context, modelId int64) (resp *FsProductTemplateV2, err error) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user