添加遗漏的筛选条件

This commit is contained in:
徐俊杰 2023-03-24 12:23:10 +08:00
parent 62b33d09bb
commit 3bf38f5f71

View File

@ -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)
//}