...
|
...
|
@@ -136,9 +136,12 @@ func (dividendsOrderService *DividendsOrderService) CreateDividendsOrder(createD |
|
|
dividendsOrderAmount = dividendsOrderAmount + orderGood.OrderGoodAmount
|
|
|
}
|
|
|
|
|
|
//// 订单时间转换
|
|
|
//orderTimeInt, _ := strconv.ParseInt(createDividendsOrderCommand.OrderTime, 10, 64)
|
|
|
//orderTime := utils.TransformTimestampToTime(orderTimeInt)
|
|
|
// 订单时间转换
|
|
|
orderTimeInt, err := strconv.ParseInt(createDividendsOrderCommand.OrderTime, 10, 64)
|
|
|
if err != nil {
|
|
|
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "订单时间错误")
|
|
|
}
|
|
|
orderTime := utils.TransformTimestampToTime(orderTimeInt)
|
|
|
|
|
|
// 新增分红订单
|
|
|
newDividendsOrder := &domain.DividendsOrder{
|
...
|
...
|
@@ -146,7 +149,7 @@ func (dividendsOrderService *DividendsOrderService) CreateDividendsOrder(createD |
|
|
DividendsOrderNumber: dividendsOrderNumber,
|
|
|
DividendsOriginalOrderNum: createDividendsOrderCommand.DividendsOriginalOrderNum,
|
|
|
DividendsOrderAmount: dividendsOrderAmount,
|
|
|
OrderTime: createDividendsOrderCommand.OrderTime,
|
|
|
OrderTime: orderTime,
|
|
|
DividendTime: time.Time{},
|
|
|
DividendStatus: domain.TO_BE_DIVIDEND,
|
|
|
Region: &domain.RegionInfo{
|
...
|
...
|
|