From cdfbd81ed9045a579e1cd50af4da256dd2148ff4 Mon Sep 17 00:00:00 2001 From: jjxu <428192774@qq.com> Date: Tue, 11 Apr 2023 16:42:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=B2=A1=E6=9C=89=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E7=94=BB=E5=AE=B6id=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cmd/internal/dao/artistInfo_user.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/internal/dao/artistInfo_user.go b/cmd/internal/dao/artistInfo_user.go index b16b7b4..f19343e 100644 --- a/cmd/internal/dao/artistInfo_user.go +++ b/cmd/internal/dao/artistInfo_user.go @@ -816,6 +816,9 @@ func UpdateUserData(req *artistInfoUser.UserInfo) (rep *artistInfoUser.CommonNoP if req.WxAccount != "" { preUpdateData.WxAccount = req.WxAccount } + if req.MgmtArtistId != 0 { + preUpdateData.MgmtArtistId = req.MgmtArtistId + } tx := db.DB.Begin() err = tx.Save(&preUpdateData).Error