From 3bf38f5f71c8e45b54e3950dbd338f4e06b98603 Mon Sep 17 00:00:00 2001 From: dorlolo <428192774@qq.com> Date: Fri, 24 Mar 2023 12:23:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=81=97=E6=BC=8F=E7=9A=84?= =?UTF-8?q?=E7=AD=9B=E9=80=89=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cmd/internal/dao/artistinfo_artshow_artistSupplement.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/internal/dao/artistinfo_artshow_artistSupplement.go b/cmd/internal/dao/artistinfo_artshow_artistSupplement.go index d0d0721..64e4519 100644 --- a/cmd/internal/dao/artistinfo_artshow_artistSupplement.go +++ b/cmd/internal/dao/artistinfo_artshow_artistSupplement.go @@ -81,6 +81,9 @@ func (a artistSupplement) GetDataList(req *artistinfoArtshow.GetArtistSupplement if req.AuditStatus != 0 { tx = tx.Where("audit_status = ?", req.AuditStatus) } + if req.ArtistName != "" { + tx = tx.Where(fmt.Sprintf("artist_name = '%%%v%%'", req.ArtistName)) + } //if req.AuditMark1 != "" { // tx = tx.Where("audit_mark1 = ?", req.AuditMark1) //}