diff --git a/cmd/internal/dao/artistInfo_user.go b/cmd/internal/dao/artistInfo_user.go index 783170e..f9031b9 100644 --- a/cmd/internal/dao/artistInfo_user.go +++ b/cmd/internal/dao/artistInfo_user.go @@ -764,9 +764,6 @@ func UpdateUserData(req *artistInfoUser.UserInfo) (rep *artistInfoUser.CommonNoP if req.RealName.IdNum != "" { realName.IdNum = req.RealName.IdNum } - if req.RealName.TelNum != "" { - realName.TelNum = req.RealName.TelNum - } if req.RealName.IdCardFront != "" { realName.IdCardFront = req.RealName.IdCardFront } diff --git a/cmd/internal/dao/artistinfo_statement.go b/cmd/internal/dao/artistinfo_statement.go index 34cbaac..dc5a08e 100644 --- a/cmd/internal/dao/artistinfo_statement.go +++ b/cmd/internal/dao/artistinfo_statement.go @@ -3,28 +3,26 @@ package dao import ( "github.com/fonchain/fonchain-artistinfo/cmd/model" "github.com/fonchain/fonchain-artistinfo/pb/artistinfoStatement" - db "github.com/fonchain/fonchain-artistinfo/pkg/db" - "gorm.io/gorm/clause" ) // ===================================== // // 对账单批次 func CreateStatementBatch(in *artistinfoStatement.StatementBatchRequest) (res model.StatementBatch, err error) { - res = model.StatementBatch{ - StType: in.StType, - ArtistUid: in.ArtistUid, - ArtistRealName: in.ArtistRealName, - FlowStatus: in.FlowStatus, - BatchTime: in.BatchTime, - MinPrice: in.MinPrice, - GuaranteePrice: in.GuaranteePrice, - FileUrl: in.FileUrl, - } - err = db.DB.Clauses(clause.OnConflict{ - Columns: []clause.Column{{Name: "st_type"}, {Name: "artist_uid"}, {Name: "batch_time"}}, - UpdateAll: true, - }).Create(&res).Error + // res = model.StatementBatch{ + // StType: in.StType, + // ArtistUid: in.ArtistUid, + // ArtistRealName: in.ArtistRealName, + // FlowStatus: in.FlowStatus, + // BatchTime: in.BatchTime, + // MinPrice: in.MinPrice, + // GuaranteePrice: in.GuaranteePrice, + // FileUrl: in.FileUrl, + // } + // err = db.DB.Clauses(clause.OnConflict{ + // Columns: []clause.Column{{Name: "st_type"}, {Name: "artist_uid"}, {Name: "batch_time"}}, + // UpdateAll: true, + // }).Create(&res).Error return } diff --git a/cmd/model/user.go b/cmd/model/user.go index ec2786d..050031b 100644 --- a/cmd/model/user.go +++ b/cmd/model/user.go @@ -34,7 +34,7 @@ type User struct { Htmltype string `gorm:"html_type" json:"htmltype"` Envtype string `gorm:"env_type" json:"envtype"` - OldMgmtId int64 `gorm:"column:old_mgmt_id,comment:老管理系统用户id;"` + OldMgmtId int64 `gorm:"column:old_mgmt_id;comment:老管理系统用户id;"` //IsFdd int64 `gorm:"column:is_fdd;not null;comment:"` //Account string `gorm:"type:varchar(256) not null"` //Name string `gorm:"type:varchar(20) not null"`