作者 tangxuhui

数据结构调整

... ... @@ -23,6 +23,7 @@ type UpdateDividendsOrderCommand struct {
RegionName string `json:"regionName"`
//订单产品列表
OrderGoods []struct {
OrderGoodId int `json:"orderGoodId,string"`
CooperationContractNumber string `json:"cooperationContractNumber"` //关联的共创合约编号
DividendsOrderNumber string `json:"dividendsOrderNumber"` //关联分红订单号
// OrderGoodAmount float64 `json:"orderGoodAmount"` //订单产品金额
... ...
... ... @@ -109,9 +109,10 @@ func (dividendsOrderService *DividendsOrderService) UpdateDividendsOrder(updateD
// if err := updateDividendsOrderCommand.ValidateCommand(); err != nil {
// return nil, application.ThrowError(application.ARG_ERROR, err.Error())
// }
orderGoods := []allied_creation_cooperation.DividendsOrderGoods{}
orderGoods := []allied_creation_cooperation.DividendsOrderGoodAdd{}
for _, v := range updateDividendsOrderCommand.OrderGoods {
good := allied_creation_cooperation.DividendsOrderGoods{
good := allied_creation_cooperation.DividendsOrderGoodAdd{
OrderGoodId: int64(v.OrderGoodId),
CooperationContractNumber: v.CooperationContractNumber,
DividendsOrderNumber: v.DividendsOrderNumber,
OrderGoodExpense: v.OrderGoodExpense,
... ...
... ... @@ -101,19 +101,19 @@ type (
//更新分红订单
type (
ReqDividendsOrderUpdate struct {
DividendsOrderId int `json:"dividendsOrderId,string"`
CompanyId int `json:"companyId,string"`
CustomerName string `json:"customerName"` //客户名称
DividendsOrderAmount float64 `json:"dividendsOrderAmount"` //分红订单金额
DividendsOrderNumber string `json:"dividendsOrderNumber"` //分红订单号
DividendsOriginalOrderNum string `json:"dividendsOriginalOrderNum"` //分红订单原单号
OperatorUid int `json:"operatorUid,string"` //订单操作人id
OrderGoods []DividendsOrderGoods `json:"orderGoods"` //订单产品列表
OrderTime string `json:"orderTime"` //订单日期,13位长度字符串类型时间戳
Remarks string `json:"remarks"` //备注
SalesmanUid string `json:"salesmanUid"` //订单业务员uid
UserId int `json:"userId,string"` //
RegionName string `json:"regionName"` //区域名称
DividendsOrderId int `json:"dividendsOrderId,string"`
CompanyId int `json:"companyId,string"`
CustomerName string `json:"customerName"` //客户名称
DividendsOrderAmount float64 `json:"dividendsOrderAmount"` //分红订单金额
DividendsOrderNumber string `json:"dividendsOrderNumber"` //分红订单号
DividendsOriginalOrderNum string `json:"dividendsOriginalOrderNum"` //分红订单原单号
OperatorUid int `json:"operatorUid,string"` //订单操作人id
OrderGoods []DividendsOrderGoodAdd `json:"orderGoods"` //订单产品列表
OrderTime string `json:"orderTime"` //订单日期,13位长度字符串类型时间戳
Remarks string `json:"remarks"` //备注
SalesmanUid string `json:"salesmanUid"` //订单业务员uid
UserId int `json:"userId,string"` //
RegionName string `json:"regionName"` //区域名称
}
DataDividendsOrderUpdate struct {
... ...