作者 陈志颖

feat:添加分红订单模型,服务以及接口

正在显示 30 个修改的文件 包含 367 行增加6 行删除
  1 +version: v1
  2 +kind: HttpApi
  3 +metadata:
  4 + service: dividendsOrder
  5 + path: /dividends-orders
  6 + endpoints:
  7 + - method: createDividendsOrder
  8 + route:
  9 + post: /
  10 + - method: updateDividendsOrder
  11 + route:
  12 + put: /{dividendsOrderId}
  13 + - method: getDividendsOrder
  14 + route:
  15 + get: /{dividendsOrderId}
  16 + - method: removeDividendsOrder
  17 + route:
  18 + delete: /{dividendsOrderId}
  19 + - method: searchDividendsOrder
  20 + route:
  21 + post: /search
  22 + - method: listDividendsOrder
  23 + route:
  24 + get: /
  25 + params:
  26 + - name: offset
  27 + - name: limit
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: customerName
  5 + description: 客户名称
  6 + type:
  7 + primitive: string
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: dividendStatus
  5 + description: 分红订单分红状态,1待分红,2已分红,3部分分红
  6 + type:
  7 + primitive: int32
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: dividendTime
  5 + description: 分红订单分红时间
  6 + type:
  7 + primitive: datetime
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: dividendsOrderAmount
  5 + description: 分红订单金额
  6 + type:
  7 + primitive: float64
@@ -2,6 +2,6 @@ version: v1 @@ -2,6 +2,6 @@ version: v1
2 kind: Attribute 2 kind: Attribute
3 metadata: 3 metadata:
4 name: dividendsOrderNumber 4 name: dividendsOrderNumber
5 - description: 分红订单源单 5 + description: 分红订单号
6 type: 6 type:
7 primitive: int64 7 primitive: int64
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: dividendsOriginalOrderNum
  5 + description: 分红订单原单号
  6 + type:
  7 + primitive: string
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: orderSalesman
  5 + description: 订单业务员
  6 + type:
  7 + schema: user
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: orderTime
  5 + description: 订单产生时间
  6 + type:
  7 + primitive: datetime
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: region
  5 + description: 区域
  6 + type:
  7 + schema: regionInfo
1 version: v1 1 version: v1
2 kind: Attribute 2 kind: Attribute
3 metadata: 3 metadata:
4 - name: orderNum 4 + name: dividendsOriginalReturnedOrderNum
5 description: 来源单号,源单号,订单号 5 description: 来源单号,源单号,订单号
6 type: 6 type:
7 primitive: string 7 primitive: string
1 version: v1 1 version: v1
2 kind: Attribute 2 kind: Attribute
3 metadata: 3 metadata:
4 - name: dividendsReturnedId 4 + name: dividendsReturnedOrderId
5 description: 分红退货单记录ID 5 description: 分红退货单记录ID
6 type: 6 type:
7 primitive: string 7 primitive: string
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: orderGoodAmount
  5 + description: 订单产品金额
  6 + type:
  7 + primitive: float64
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: orderGoodExpense
  5 + description: 订单产品费用
  6 + type:
  7 + primitive: float64
1 version: v1 1 version: v1
2 kind: Attribute 2 kind: Attribute
3 metadata: 3 metadata:
4 - name: regionId  
5 - description: 区域ID 4 + name: orderGoodId
  5 + description: 订单产品
6 type: 6 type:
7 primitive: int64 7 primitive: int64
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: orderGoodName
  5 + description: 订单产品名称
  6 + type:
  7 + primitive: string
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: orderGoodPrice
  5 + description: 订单产品单价
  6 + type:
  7 + primitive: float64
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: orderGoodQuantity
  5 + description: 订单产品数量
  6 + type:
  7 + primitive: int64
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: regionNumber
  5 + description: 区域编号
  6 + type:
  7 + primitive: string
  1 +version: v1
  2 +kind: Schema
  3 +metadata:
  4 + name: dividendsOrder
  5 + description: 分红订单实体
  6 + attributes:
  7 + - ref: dividendsOrderId
  8 + required: true
  9 + - ref: dividendsOrderNumber
  10 + required: true
  11 + - ref: dividendsOriginalOrderNum
  12 + required: true
  13 + - ref: dividendsOrderAmount
  14 + required: true
  15 + - ref: orderSalesman
  16 + required: true
  17 + - ref: orderTime
  18 + required: true
  19 + - ref: dividendTime
  20 + required: true
  21 + - ref: dividendStatus
  22 + required: true
  23 + - ref: region
  24 + required: true
  25 + - ref: customerName
  26 + description: 客户姓名
  27 + required: true
  28 + - ref: createdAt
  29 + required: true
  30 + - ref: deletedAt
  31 + required: true
  32 + - ref: updatedAt
  33 + required: true
  34 + - ref: operateTime
  35 + required: true
  36 + - ref: operator
  37 + required: true
  1 +version: v1
  2 +kind: Schema
  3 +metadata:
  4 + name: orderGood
  5 + description: 订单产品领域实体
  6 + attributes:
  7 + - ref: orderGoodId
  8 + required: true
  9 + - ref: orderGoodAmount
  10 + required: true
  11 + - ref: orderGoodName
  12 + required: true
  13 + - ref: orderGoodPrice
  14 + required: true
  15 + - ref: orderGoodQuantity
  16 + required: true
  17 + - ref: dividendsOrderNumber
  18 + description: 关联分红订单号
  19 + required: true
  20 + - ref: cooperationContractNumber
  21 + description: 关联的共创合约编号
  22 + required: true
  23 + - ref: orderGoodExpense
  24 + description: 订单产品费用
  25 + required: true
  26 + - ref: createdAt
  27 + required: true
  28 + - ref: deletedAt
  29 + required: true
  30 + - ref: updatedAt
  31 + required: true
  1 +version: v1
  2 +kind: Schema
  3 +metadata:
  4 + name: orderGood
  5 + description: 订单产品对象
  6 + attributes:
  7 + - ref: orderGoodAmount
  8 + required: true
  9 + - ref: orderGoodName
  10 + required: true
  11 + - ref: orderGoodPrice
  12 + required: true
  13 + - ref: orderGoodQuantity
  14 + required: true
  15 + - ref: dividendsOrderNumber
  16 + description: 关联分红订单号
  17 + required: true
  18 + - ref: cooperationContractNumber
  19 + description: 关联的共创合约编号
  20 + required: true
  21 + - ref: orderGoodExpense
  22 + description: 订单产品费用
  23 + required: true
  24 + - ref: createdAt
  25 + required: true
  26 + - ref: deletedAt
  27 + required: true
  28 + - ref: updatedAt
  29 + required: true
@@ -4,7 +4,7 @@ metadata: @@ -4,7 +4,7 @@ metadata:
4 name: regionInfo 4 name: regionInfo
5 description: 区域信息值对象 5 description: 区域信息值对象
6 attributes: 6 attributes:
7 - - ref: regionId 7 + - ref: regionNumber
8 required: true 8 required: true
9 - ref: regionName 9 - ref: regionName
10 required: true 10 required: true
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: createDividendsOrder
  5 + type: command
  6 + description: 创建分红订单实体对象
  7 + payload:
  8 + - ref: customerName
  9 + required: true
  10 + - ref: dividendsOrderAmount
  11 + required: true
  12 + - ref: dividendsOrderNumber
  13 + required: true
  14 + - ref: dividendsOriginalOrderNum
  15 + required: true
  16 + - ref: orderTime
  17 + required: true
  18 + - ref: remarks
  19 + required: true
  20 + - name: salesmanUid
  21 + description: 订单业务员uid
  22 + type:
  23 + primitive: string
  24 + - name: operatorUid
  25 + description: 订单操作人uid
  26 + type:
  27 + primitive: string
  28 + - name: orderGoods
  29 + description: 订单产品列表
  30 + type:
  31 + array: orderGoods
  32 + result:
  33 + - name: dividendsOrder
  34 + type:
  35 + schema: dividendsOrder
  36 + required: true
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: getDividendsOrder
  5 + type: query
  6 + description: 返回分红订单实体对象
  7 + payload:
  8 + - ref: dividendsOrderId
  9 + required: true
  10 + result:
  11 + - name: dividendsOrder
  12 + type:
  13 + schema: dividendsOrder
  14 + required: true
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: listDividendsOrders
  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: dividendsOrders
  16 + type:
  17 + array: dividendsOrder
  18 + required: true
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: removeDividendsOrder
  5 + type: command
  6 + description: 移除分红订单实体对象
  7 + payload:
  8 + - ref: dividendsOrderId
  9 + required: true
  10 + result:
  11 + - name: dividendsOrder
  12 + type:
  13 + schema: dividendsOrder
  14 + required: true
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: searchDividendsOrder
  5 + type: query
  6 + description: 查询分红订单方法
  7 + payload:
  8 + - ref: dividendsOrderNumber
  9 + required: false
  10 + - ref: customerName
  11 + required: false
  12 + - ref: pageSize
  13 + required: false
  14 + - ref: pageNumber
  15 + required: false
  16 + result:
  17 + - name: dividendsOrders
  18 + type:
  19 + array: dividendsOrder
  20 + required: true
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: updateDividendsOrder
  5 + type: command
  6 + description: 更新分红订单实体对象
  7 + payload:
  8 + - ref: customerName
  9 + required: true
  10 + - ref: dividendsOrderAmount
  11 + required: true
  12 + - ref: dividendsOrderNumber
  13 + required: true
  14 + - ref: dividendsOriginalOrderNum
  15 + required: true
  16 + - ref: orderTime
  17 + required: true
  18 + - ref: remarks
  19 + required: true
  20 + - name: salesmanUid
  21 + description: Attribute描述
  22 + type:
  23 + primitive: string
  24 + - name: operatorUid
  25 + description: Attribute描述
  26 + type:
  27 + primitive: string
  28 + result:
  29 + - name: dividendsOrder
  30 + type:
  31 + schema: dividendsOrder
  32 + required: true
  1 +version: v1
  2 +kind: Service
  3 +metadata:
  4 + name: dividendsOrder
  5 + description: 分红订单实体对象