This commit is contained in:
laodaming 2023-07-06 17:55:59 +08:00
parent 2b1728aac5
commit 791121c574

View File

@ -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) {