修改生产环境配置
This commit is contained in:
parent
7a364b9102
commit
cfc57aecba
@ -1,25 +1,42 @@
|
|||||||
package model
|
package model
|
||||||
|
|
||||||
// 对账单批次
|
// 对账单委托画作批次
|
||||||
type StatementBatch struct {
|
type StatementBatch struct {
|
||||||
Model
|
Model
|
||||||
StType int32 `gorm:"column:st_type;unqiueIndex:sttype_uid_batchtime_idx;comment:对账单类型 1=版权 2=物权;"`
|
// StType int32 `gorm:"column:st_type;unqiueIndex:sttype_uid_batchtime_idx;comment:对账单类型 1=版权 2=物权;"`
|
||||||
ArtistUid string `gorm:"column:artist_uid;unqiueIndex:sttype_uid_batchtime_idx;comment:画家uid"`
|
ArtistUid string `gorm:"column:artist_uid;unqiueIndex:sttype_uid_batchtime_idx;comment:画家uid"`
|
||||||
ArtistRealName string `gorm:"column:artist_real_name;comment:画家真实姓名;"`
|
// ArtistRealName string `gorm:"column:artist_real_name;comment:画家真实姓名;"`
|
||||||
FlowStatus int32 `gorm:"column:flow_status;default:1;comment:流程状态 1=未生成 2=已生成未签署 3=已签署"`
|
|
||||||
BatchTime string `gorm:"column:batch_time;unqiueIndex:sttype_uid_batchtime_idx;comment:批次时间;"`
|
BatchTime string `gorm:"column:batch_time;unqiueIndex:sttype_uid_batchtime_idx;comment:批次时间;"`
|
||||||
MinPrice float32 `gorm:"column:min_price;comment:委托销售底价"`
|
FlowStatus int32 `gorm:"column:flow_status;default:1;comment:流程状态 1=未生成 2=已生成未签署 3=已签署"`
|
||||||
GuaranteePrice float32 `gorm:"column:guarantee_price;comment:以收取保证金;"`
|
|
||||||
FileUrl string `gorm:"column:file_url,comment:对账单文件地址;"`
|
FileUrl string `gorm:"column:file_url,comment:对账单文件地址;"`
|
||||||
ArtworkList []StatementDetail `gorm:"foreignKey:BatchId"`
|
|
||||||
|
EntrustList []ArtworkEntrustDetail `gorm:"foreignKey:BatchId"`
|
||||||
|
SalesList []ArtworkSalesDetail `gorm:"foreignKey:BatchId"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (StatementBatch) TableName() string {
|
func (StatementBatch) TableName() string {
|
||||||
return "statement_batch"
|
return "statement_batch"
|
||||||
}
|
}
|
||||||
|
|
||||||
// 对账单批次详情
|
// 对账单画作委托详情
|
||||||
type StatementDetail struct {
|
type ArtworkEntrustDetail struct {
|
||||||
|
Model
|
||||||
|
BatchId int64 `gorm:"column:batch_id;unqiueIndex:batchid_tfnum_idx;comment:批次id;"`
|
||||||
|
TfNum string `gorm:"column:tf_num;unqiueIndex:batchid_tfnum_idx;comment:"泰丰画作编号"`
|
||||||
|
ArtworkName string `gorm:"column:artwork_name;comment:画作名称"`
|
||||||
|
Ruler string `gorm:"column:ruler;comment:平尺"`
|
||||||
|
SaleNo string `gorm:"column:sale_no;comment:销售单号"`
|
||||||
|
CompleteDate string `gorm:"column:complete_date;comment:成交日期"`
|
||||||
|
MinPrice float32 `gorm:"column:min_price;comment:委托销售底价"`
|
||||||
|
GuaranteePrice float32 `gorm:"column:guarantee_price;comment:已收取保证金;"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (ArtworkEntrustDetail) TableName() string {
|
||||||
|
return "artwork_entrust_detail"
|
||||||
|
}
|
||||||
|
|
||||||
|
//对账单画作销售详情
|
||||||
|
type ArtworkSalesDetail struct {
|
||||||
Model
|
Model
|
||||||
BatchId int64 `gorm:"column:batch_id;unqiueIndex:batchid_tfnum_idx;comment:批次id;"`
|
BatchId int64 `gorm:"column:batch_id;unqiueIndex:batchid_tfnum_idx;comment:批次id;"`
|
||||||
TfNum string `gorm:"column:tf_num;unqiueIndex:batchid_tfnum_idx;comment:"泰丰画作编号"`
|
TfNum string `gorm:"column:tf_num;unqiueIndex:batchid_tfnum_idx;comment:"泰丰画作编号"`
|
||||||
@ -29,6 +46,6 @@ type StatementDetail struct {
|
|||||||
CompleteDate string `gorm:"column:complete_date;comment:成交日期"`
|
CompleteDate string `gorm:"column:complete_date;comment:成交日期"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (StatementDetail) TableName() string {
|
func (ArtworkSalesDetail) TableName() string {
|
||||||
return "statement_detail"
|
return "artwork_sales_detail"
|
||||||
}
|
}
|
||||||
|
@ -7,7 +7,7 @@ DbHost = mysql
|
|||||||
DbPort = 3306
|
DbPort = 3306
|
||||||
DbUser = fonchain
|
DbUser = fonchain
|
||||||
DbPassWord = C250PflXIWv2SQm
|
DbPassWord = C250PflXIWv2SQm
|
||||||
DbName = artistmgmt
|
DbName = artistmgmtProd
|
||||||
|
|
||||||
[redis]
|
[redis]
|
||||||
RedisDB = 2
|
RedisDB = 2
|
||||||
|
@ -11,7 +11,7 @@ dubbo:
|
|||||||
# address: 127.0.0.1:2181
|
# address: 127.0.0.1:2181
|
||||||
# address: 121.229.45.214:9004
|
# address: 121.229.45.214:9004
|
||||||
# address: 114.218.158.24:2181
|
# address: 114.218.158.24:2181
|
||||||
address: 172.16.100.93:2181
|
address: zookeeper:2181
|
||||||
protocols:
|
protocols:
|
||||||
triple: #triple
|
triple: #triple
|
||||||
name: tri
|
name: tri
|
||||||
|
Loading…
Reference in New Issue
Block a user