作者 陈志颖

feat:添加账期结算实体

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