This commit is contained in:
laodaming 2023-09-01 15:55:22 +08:00
parent 41f6f60f87
commit a6bd0cc6dd

View File

@ -126,7 +126,7 @@ func (t *FsProductTemplateV2Model) FindOneCloudRenderByProductIdModelIdTemplateT
// 获取开启云渲染模板2
func (t *FsProductTemplateV2Model) FindOneCloudRenderByProductIdTemplateTag(ctx context.Context, productId int64, templateTag string) (resp *FsProductTemplateV2, err error) {
err = t.db.WithContext(ctx).Model(&FsProductTemplateV2{}).
Where("product_id = ? and element_model_id > ? ", productId, templateTag, 0).
Where("product_id = ? and template_tag = ? and element_model_id > ? ", productId, templateTag, 0).
Where("status = ? and is_del = ?", 1, 0).
Order("sort ASC").
Take(&resp).Error