...
|
...
|
@@ -21,7 +21,7 @@ type CreditAccountItem struct { |
|
|
UserType int `json:"userType"` // 用户类型,1员工,2共创用户,3公开
|
|
|
} `json:"participator"` // 参与人
|
|
|
ParticipateType string `json:"participateType"` // 参与类型
|
|
|
PaymentDocumentAttachment *domain.Attachment `json:"paymentDocumentAttachment"` // 支付凭证附件
|
|
|
PaymentDocumentAttachment []domain.Attachment `json:"paymentDocumentAttachment"` // 支付凭证附件
|
|
|
Org struct {
|
|
|
OrgID int `json:"orgId,string"`
|
|
|
OrgName string `json:"orgName"`
|
...
|
...
|
@@ -59,7 +59,7 @@ func ToCreditAccountItem(param *allied_creation_cooperation.CreditAccount, opera |
|
|
SettlementTime: 0,
|
|
|
CooperationContractNumber: param.CooperationContractNumber,
|
|
|
ParticipateType: param.ParticipateType, // 参与类型
|
|
|
PaymentDocumentAttachment: nil, // 支付凭证附件
|
|
|
PaymentDocumentAttachment: []domain.Attachment{}, // 支付凭证附件
|
|
|
Company: param.Company, // 公司
|
|
|
CreatedAt: param.CreatedAt.UnixNano() / 1e6, // 创建时间
|
|
|
UpdatedAt: param.UpdatedAt.UnixNano() / 1e6, // 更新时间
|
...
|
...
|
@@ -73,8 +73,8 @@ func ToCreditAccountItem(param *allied_creation_cooperation.CreditAccount, opera |
|
|
if !param.SettlementTime.IsZero() {
|
|
|
data.SettlementTime = param.SettlementTime.Unix() * 1e3
|
|
|
}
|
|
|
if len(param.PaymentDocumentAttachment.Url) > 0 {
|
|
|
data.PaymentDocumentAttachment = ¶m.PaymentDocumentAttachment
|
|
|
if len(param.PaymentDocumentAttachments) > 0 {
|
|
|
data.PaymentDocumentAttachment = param.PaymentDocumentAttachments
|
|
|
}
|
|
|
data.Org.OrgID = param.Org.OrgID
|
|
|
data.Org.OrgName = param.Org.OrgName
|
...
|
...
|
|