作者 陈志颖

feat:账期结算单增加结算明细

package domain
type AccountDetail struct {
// 承接人分红预算单号
DividendsEstimateOrderNumber string `json:"dividendsEstimateOrderNumber"`
// 分红类型
DividendsType string `json:"dividendsType"`
// 分红金额
DividendsAmount float64 `json:"dividendsAmount"`
}
... ...
... ... @@ -24,6 +24,8 @@ type CreditAccount struct {
Participator *Participator `json:"participator"`
// 参与类型
ParticipateType string `json:"participateType"`
// 结算明细
AccountDetail *AccountDetail `json:"accountDetail"`
// 支付凭证附件
PaymentDocumentAttachment *Attachment `json:"paymentDocumentAttachment"`
// 数据所属组织机构
... ...
... ... @@ -27,6 +27,8 @@ type CreditAccount struct {
Participator *domain.Participator `comment:"参与人uid,包括承接人、推荐人、关联业务员" pg:",array"`
// 参与类型
ParticipateType string `comment:"参与类型,承接人,推荐人,业务员"`
// 结算明细
AccountDetail *domain.AccountDetail `comment:"结算明细"`
// 支付凭证附件
PaymentDocumentAttachment *domain.Attachment `comment:"支付凭证附件"`
// 数据所属组织机构
... ...
... ... @@ -17,6 +17,7 @@ func TransformToCreditAccountDomainModelFromPgModels(creditAccountModel *models.
CooperationContractNumber: creditAccountModel.CooperationContractNumber,
Participator: creditAccountModel.Participator,
ParticipateType: creditAccountModel.ParticipateType,
AccountDetail: creditAccountModel.AccountDetail,
PaymentDocumentAttachment: creditAccountModel.PaymentDocumentAttachment,
Org: creditAccountModel.Org,
Company: creditAccountModel.Company,
... ...
... ... @@ -36,6 +36,7 @@ func (repository *CreditAccountRepository) Save(creditAccount *domain.CreditAcco
"cooperation_contract_number",
"participator",
"participate_type",
"account_detail",
"payment_document_attachment",
"org",
"company",
... ... @@ -70,6 +71,7 @@ func (repository *CreditAccountRepository) Save(creditAccount *domain.CreditAcco
&creditAccount.CooperationContractNumber,
&creditAccount.Participator,
&creditAccount.ParticipateType,
&creditAccount.AccountDetail,
&creditAccount.PaymentDocumentAttachment,
&creditAccount.Org,
&creditAccount.Company,
... ... @@ -90,6 +92,7 @@ func (repository *CreditAccountRepository) Save(creditAccount *domain.CreditAcco
creditAccount.CooperationContractNumber,
creditAccount.Participator,
creditAccount.ParticipateType,
creditAccount.AccountDetail,
creditAccount.PaymentDocumentAttachment,
creditAccount.Org,
creditAccount.Company,
... ... @@ -114,6 +117,7 @@ func (repository *CreditAccountRepository) Save(creditAccount *domain.CreditAcco
&creditAccount.CooperationContractNumber,
&creditAccount.Participator,
&creditAccount.ParticipateType,
&creditAccount.AccountDetail,
&creditAccount.PaymentDocumentAttachment,
&creditAccount.Org,
&creditAccount.Company,
... ... @@ -134,6 +138,7 @@ func (repository *CreditAccountRepository) Save(creditAccount *domain.CreditAcco
creditAccount.CooperationContractNumber,
creditAccount.Participator,
creditAccount.ParticipateType,
creditAccount.AccountDetail,
creditAccount.PaymentDocumentAttachment,
creditAccount.Org,
creditAccount.Company,
... ...