credit_account.go 1.9 KB
package models

import (
	"gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/domain"
	"time"
)

type CreditAccount struct {
	tableName string `comment:"账期结算单实体" pg:"credit_accounts,alias:credit_account"`
	// 账期结算单ID
	CreditAccountId int64 `comment:"账期结算单ID" pg:"pk:credit_account_id"`
	// 账期结算实付金额
	ActuallyPaidAmount float64 `comment:"账期结算实付金额"`
	// 账期结算单号
	CreditAccountOrderNum string `comment:"账期结算单号"`
	// 账期结算支付状态,1待支付,2已支付
	PaymentStatus int32 `comment:"账期结算支付状态,1待支付,2已支付"`
	// 共创账期结算支付时间
	PaymentTime time.Time `comment:"共创账期结算支付时间"`
	// 账期结算金额
	SettlementAmount float64 `comment:"账期结算金额"`
	// 共创账期结算时间
	SettlementTime time.Time `comment:"共创账期结算时间"`
	// 共创合约编号
	CooperationContractNumber string `comment:"共创合约编号"`
	// 参与人uid,包括承接人、推荐人、关联业务员
	Participator *domain.Participator `comment:"参与人uid,包括承接人、推荐人、关联业务员" pg:",array"`
	// 参与类型
	ParticipateType string `comment:"参与类型,承接人,推荐人,业务员"`
	// 结算明细
	AccountDetail *domain.AccountDetail `comment:"结算明细"`
	// 支付凭证附件
	PaymentDocumentAttachment *domain.Attachment `comment:"支付凭证附件"`
	// 数据所属组织机构
	Org *domain.Org `comment:"数据所属组织机构"`
	// 公司
	Company *domain.Company `comment:"公司"`
	// 操作人
	Operator *domain.User `comment:"操作人"`
	// 操作时间
	OperateTime time.Time `comment:"操作时间"`
	// 创建时间
	CreatedAt time.Time `comment:"创建时间"`
	// 删除时间
	DeletedAt time.Time `comment:"删除时间"`
	// 更新时间
	UpdatedAt time.Time `comment:"更新时间"`
}