...
|
...
|
@@ -20,7 +20,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"`
|
...
|
...
|
@@ -57,7 +57,7 @@ func ToCreditAccountItem(param *allied_creation_cooperation.CreditAccount) *Cred |
|
|
SettlementTime: 0,
|
|
|
CooperationContractNumber: param.CooperationContractNumber,
|
|
|
ParticipateType: param.ParticipateType, // 参与类型
|
|
|
PaymentDocumentAttachment: param.PaymentDocumentAttachment, // 支付凭证附件
|
|
|
PaymentDocumentAttachment: nil, // 支付凭证附件
|
|
|
Company: param.Company, // 公司
|
|
|
CreatedAt: param.CreatedAt.UnixNano() / 1e6, // 创建时间
|
|
|
UpdatedAt: param.UpdatedAt.UnixNano() / 1e6, // 更新时间
|
...
|
...
|
@@ -69,6 +69,9 @@ func ToCreditAccountItem(param *allied_creation_cooperation.CreditAccount) *Cred |
|
|
if !param.SettlementTime.IsZero() {
|
|
|
data.SettlementTime = param.PaymentTime.UnixNano() / 1e6
|
|
|
}
|
|
|
if len(param.PaymentDocumentAttachment.Url) > 0 {
|
|
|
data.PaymentDocumentAttachment = ¶m.PaymentDocumentAttachment
|
|
|
}
|
|
|
data.Org.OrgID = param.Org.OrgID
|
|
|
data.Org.OrgName = param.Org.OrgName
|
|
|
data.Participator.UserName = param.Participator.UserName
|
...
|
...
|
|