作者 陈志颖

feat:添加账期结算实体

version: v1
kind: Attribute
metadata:
name: actuallyPaidAmount
description: 账期结算实付金额
type:
primitive: float64
... ...
version: v1
kind: Attribute
metadata:
name: creditAccountOrderNum
description: 账期结算单号
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: paymentDocumentAttachment
description: 支付凭证附件
type:
schema: attachment
... ...
version: v1
kind: Attribute
metadata:
name: paymentStatus
description: 共创账期结算支付状态,1待支付,2已支付
type:
primitive: int32
... ...
version: v1
kind: Attribute
metadata:
name: paymentTime
description: 共创账期结算支付时间
type:
primitive: datetime
... ...
version: v1
kind: Attribute
metadata:
name: settlementAmount
description: 账期结算金额
type:
primitive: float64
... ...
version: v1
kind: Attribute
metadata:
name: settlementTime
description: 共创账期结算时间
type:
primitive: datetime
... ...
version: v1
kind: Schema
metadata:
name: creditAccount
description: 账期结算实体
attributes:
- ref: creditAccountId
required: true
- ref: actuallyPaidAmount
required: true
- ref: creditAccountOrderNum
required: true
- ref: paymentStatus
required: true
- ref: paymentTime
required: true
- ref: settlementAmount
required: true
- ref: settlementTime
required: true
- ref: cooperationContractNumber
required: true
- name: participator
description: 参与人uid,包括承接人、推荐人、关联业务员
required: true
type:
array: int64
- ref: paymentDocumentAttachment
description: 支付凭证附件
required: true
- ref: operator
required: true
- ref: operateTime
required: true
- ref: createdAt
required: true
- ref: deletedAt
required: true
- ref: updatedAt
required: true
... ...
version: v1
kind: Method
metadata:
name: createCreditAccount
type: command
description: 创建账期结算单服务
result:
- name: creditAccount
type:
schema: creditAccount
required: true
... ...
version: v1
kind: Method
metadata:
name: getCreditAccount
type: query
description: 返回账期结算单服务
payload:
- ref: creditAccountId
required: true
result:
- name: creditAccount
type:
schema: creditAccount
required: true
... ...
version: v1
kind: Method
metadata:
name: listCreditAccount
type: query
description: 返回账期结算单服务列表
payload:
- ref: offset
required: true
- ref: limit
required: true
result:
- ref: count
required: true
- name: creditAccounts
type:
array: creditAccount
required: true
... ...
version: v1
kind: Method
metadata:
name: payCreditAccount
type: command
description: 支付账期结算
payload:
- ref: actuallyPaidAmount
required: true
- ref: remarks
required: true
result:
- name: creditAccount
type:
schema: creditAccount
required: true
... ...
version: v1
kind: Method
metadata:
name: removeCreditAccount
type: command
description: 移除账期结算单服务
payload:
- ref: creditAccountId
required: true
result:
- name: creditAccount
type:
schema: creditAccount
required: true
... ...
version: v1
kind: Method
metadata:
name: searchCreditAccount
type: query
description: 查询账期结算单
payload:
- ref: creditAccountOrderNum
required: true
- name: participartorName
description: 参与人姓名
type:
primitive: string
result:
- name: creditAccount
type:
schema: creditAccount
required: true
... ...
version: v1
kind: Method
metadata:
name: updateCreditAccount
type: command
description: 更新账期结算单服务
payload:
- ref: creditAccountId
required: true
result:
- name: creditAccount
type:
schema: creditAccount
required: true
... ...
version: v1
kind: Service
metadata:
name: creditAccount
description: 账期结算单服务
... ...
... ... @@ -4,6 +4,9 @@ metadata:
name: getDividendsReturnedOrder
type: query
description: 返回分红退货单服务
payload:
- ref: dividendsReturnedOrderId
require: true
result:
- name: dividendsReturnedOrders
type:
... ...
... ... @@ -5,7 +5,7 @@ metadata:
type: query
description: 返回项目金额激励规则服务
payload:
- ref: moneyIncentivesRulesId
- ref: moneyIncentivesRuleId
required: true
result:
- name: moneyIncentivesRule
... ...