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