修复字段定义错误的问题
This commit is contained in:
parent
9fa3f65a44
commit
65f6edf87f
@ -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
|
||||
}
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
@ -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"`
|
||||
|
Loading…
Reference in New Issue
Block a user