修复字段定义错误的问题
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 != "" {
|
if req.RealName.IdNum != "" {
|
||||||
realName.IdNum = req.RealName.IdNum
|
realName.IdNum = req.RealName.IdNum
|
||||||
}
|
}
|
||||||
if req.RealName.TelNum != "" {
|
|
||||||
realName.TelNum = req.RealName.TelNum
|
|
||||||
}
|
|
||||||
if req.RealName.IdCardFront != "" {
|
if req.RealName.IdCardFront != "" {
|
||||||
realName.IdCardFront = req.RealName.IdCardFront
|
realName.IdCardFront = req.RealName.IdCardFront
|
||||||
}
|
}
|
||||||
|
@ -3,28 +3,26 @@ package dao
|
|||||||
import (
|
import (
|
||||||
"github.com/fonchain/fonchain-artistinfo/cmd/model"
|
"github.com/fonchain/fonchain-artistinfo/cmd/model"
|
||||||
"github.com/fonchain/fonchain-artistinfo/pb/artistinfoStatement"
|
"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) {
|
func CreateStatementBatch(in *artistinfoStatement.StatementBatchRequest) (res model.StatementBatch, err error) {
|
||||||
res = model.StatementBatch{
|
// res = model.StatementBatch{
|
||||||
StType: in.StType,
|
// StType: in.StType,
|
||||||
ArtistUid: in.ArtistUid,
|
// ArtistUid: in.ArtistUid,
|
||||||
ArtistRealName: in.ArtistRealName,
|
// ArtistRealName: in.ArtistRealName,
|
||||||
FlowStatus: in.FlowStatus,
|
// FlowStatus: in.FlowStatus,
|
||||||
BatchTime: in.BatchTime,
|
// BatchTime: in.BatchTime,
|
||||||
MinPrice: in.MinPrice,
|
// MinPrice: in.MinPrice,
|
||||||
GuaranteePrice: in.GuaranteePrice,
|
// GuaranteePrice: in.GuaranteePrice,
|
||||||
FileUrl: in.FileUrl,
|
// FileUrl: in.FileUrl,
|
||||||
}
|
// }
|
||||||
err = db.DB.Clauses(clause.OnConflict{
|
// err = db.DB.Clauses(clause.OnConflict{
|
||||||
Columns: []clause.Column{{Name: "st_type"}, {Name: "artist_uid"}, {Name: "batch_time"}},
|
// Columns: []clause.Column{{Name: "st_type"}, {Name: "artist_uid"}, {Name: "batch_time"}},
|
||||||
UpdateAll: true,
|
// UpdateAll: true,
|
||||||
}).Create(&res).Error
|
// }).Create(&res).Error
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -34,7 +34,7 @@ type User struct {
|
|||||||
Htmltype string `gorm:"html_type" json:"htmltype"`
|
Htmltype string `gorm:"html_type" json:"htmltype"`
|
||||||
Envtype string `gorm:"env_type" json:"envtype"`
|
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:"`
|
//IsFdd int64 `gorm:"column:is_fdd;not null;comment:"`
|
||||||
//Account string `gorm:"type:varchar(256) not null"`
|
//Account string `gorm:"type:varchar(256) not null"`
|
||||||
//Name string `gorm:"type:varchar(20) not null"`
|
//Name string `gorm:"type:varchar(20) not null"`
|
||||||
|
Loading…
Reference in New Issue
Block a user