作者 陈志颖

feat:账期结算单增加参与类型字段

不能预览此文件类型
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="CodeStream">
<option name="webViewContext" value="{&quot;chatProviderAccess&quot;:&quot;strict&quot;,&quot;currentTeamId&quot;:&quot;&quot;,&quot;currentStreamId&quot;:&quot;&quot;,&quot;pullRequestCheckoutBranch&quot;:false,&quot;isRepositioning&quot;:false,&quot;onboardStep&quot;:0,&quot;panelStack&quot;:[&quot;landing-redirect&quot;],&quot;hasFocus&quot;:false,&quot;channelFilter&quot;:&quot;all&quot;,&quot;channelsMuteAll&quot;:false,&quot;codemarkFileFilter&quot;:&quot;all&quot;,&quot;codemarkTypeFilter&quot;:&quot;all&quot;,&quot;codemarkTagFilter&quot;:&quot;all&quot;,&quot;codemarkBranchFilter&quot;:&quot;all&quot;,&quot;codemarkAuthorFilter&quot;:&quot;all&quot;,&quot;codemarksFileViewStyle&quot;:&quot;inline&quot;,&quot;codemarksShowArchived&quot;:false,&quot;codemarksShowResolved&quot;:false,&quot;codemarksWrapComments&quot;:false,&quot;showFeedbackSmiley&quot;:true,&quot;route&quot;:{&quot;name&quot;:&quot;newUserEntry&quot;,&quot;params&quot;:{}},&quot;spatialViewShowPRComments&quot;:false}" />
</component>
</project>
\ No newline at end of file
... ...
... ... @@ -4,7 +4,6 @@ go 1.16
require (
github.com/Shopify/sarama v1.25.0
github.com/Tnze/go.num/v2 v2.0.0-20191006170829-cb483d4c9152 // indirect
github.com/ajg/form v1.5.1 // indirect
github.com/beego/beego/v2 v2.0.1
github.com/fasthttp-contrib/websocket v0.0.0-20160511215533-1f3b11f56072 // indirect
... ...
... ... @@ -5,8 +5,6 @@ github.com/Shopify/sarama v1.25.0 h1:ch1ywjRLjfJtU+EaiJ+l0rWffQ6TRpyYmW4DX7Cb2SU
github.com/Shopify/sarama v1.25.0/go.mod h1:y/CFFTO9eaMTNriwu/Q+W4eioLqiDMGkA1W+gmdfj8w=
github.com/Shopify/toxiproxy v2.1.4+incompatible h1:TKdv8HiTLgE5wdJuEML90aBgNWsokNbMijUGhmcoBJc=
github.com/Shopify/toxiproxy v2.1.4+incompatible/go.mod h1:OXgGpZ6Cli1/URJOF1DMxUHB2q5Ap20/P/eIdh4G0pI=
github.com/Tnze/go.num/v2 v2.0.0-20191006170829-cb483d4c9152 h1:6Ny2zcG2k/0aOE8rLbDdLdPMr0o7lqMfdnYJe6pZj9w=
github.com/Tnze/go.num/v2 v2.0.0-20191006170829-cb483d4c9152/go.mod h1:fNGLFjpxgDvBqQPv1HYSuGi6pRuI8wdKvvspYvUQufc=
github.com/ajg/form v1.5.1 h1:t9c7v8JUKu/XxOGBU0yjNpaMloxGEJhUkqFRq0ibGeU=
github.com/ajg/form v1.5.1/go.mod h1:uL1WgH+h2mgNtvBq0339dVnzXdBETtL2LeUXaIv25UY=
github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc=
... ...
... ... @@ -22,6 +22,8 @@ type CreditAccount struct {
CooperationContractNumber string `json:"cooperationContractNumber"`
// 参与人uid,包括承接人、推荐人、关联业务员
Participator *Participator `json:"participator"`
// 参与类型
ParticipateType string `json:"participateType"`
// 支付凭证附件
PaymentDocumentAttachment *Attachment `json:"paymentDocumentAttachment"`
// 数据所属组织机构
... ...
... ... @@ -25,6 +25,8 @@ type CreditAccount struct {
CooperationContractNumber string `comment:"共创合约编号"`
// 参与人uid,包括承接人、推荐人、关联业务员
Participator *domain.Participator `comment:"参与人uid,包括承接人、推荐人、关联业务员" pg:",array"`
// 参与类型
ParticipateType string `comment:"参与类型,承接人,推荐人,业务员"`
// 支付凭证附件
PaymentDocumentAttachment *domain.Attachment `comment:"支付凭证附件"`
// 数据所属组织机构
... ...
... ... @@ -16,6 +16,7 @@ func TransformToCreditAccountDomainModelFromPgModels(creditAccountModel *models.
SettlementTime: creditAccountModel.SettlementTime,
CooperationContractNumber: creditAccountModel.CooperationContractNumber,
Participator: creditAccountModel.Participator,
ParticipateType: creditAccountModel.ParticipateType,
PaymentDocumentAttachment: creditAccountModel.PaymentDocumentAttachment,
Org: creditAccountModel.Org,
Company: creditAccountModel.Company,
... ...
... ... @@ -35,6 +35,7 @@ func (repository *CreditAccountRepository) Save(creditAccount *domain.CreditAcco
"settlement_time",
"cooperation_contract_number",
"participator",
"participate_type",
"payment_document_attachment",
"org",
"company",
... ... @@ -68,6 +69,7 @@ func (repository *CreditAccountRepository) Save(creditAccount *domain.CreditAcco
&creditAccount.SettlementTime,
&creditAccount.CooperationContractNumber,
&creditAccount.Participator,
&creditAccount.ParticipateType,
&creditAccount.PaymentDocumentAttachment,
&creditAccount.Org,
&creditAccount.Company,
... ... @@ -87,6 +89,7 @@ func (repository *CreditAccountRepository) Save(creditAccount *domain.CreditAcco
creditAccount.SettlementTime,
creditAccount.CooperationContractNumber,
creditAccount.Participator,
creditAccount.ParticipateType,
creditAccount.PaymentDocumentAttachment,
creditAccount.Org,
creditAccount.Company,
... ... @@ -110,6 +113,7 @@ func (repository *CreditAccountRepository) Save(creditAccount *domain.CreditAcco
&creditAccount.SettlementTime,
&creditAccount.CooperationContractNumber,
&creditAccount.Participator,
&creditAccount.ParticipateType,
&creditAccount.PaymentDocumentAttachment,
&creditAccount.Org,
&creditAccount.Company,
... ... @@ -129,6 +133,7 @@ func (repository *CreditAccountRepository) Save(creditAccount *domain.CreditAcco
creditAccount.SettlementTime,
creditAccount.CooperationContractNumber,
creditAccount.Participator,
creditAccount.ParticipateType,
creditAccount.PaymentDocumentAttachment,
creditAccount.Org,
creditAccount.Company,
... ...