作者 陈志颖

fix:分红激励规则DTO时间类型修改

... ... @@ -21,7 +21,7 @@ type DividendsIncentivesEstimateDto struct {
// 订单金额
OrderAmount float64 `json:"orderAmount"`
// 订单/退货单日期
OrderDate string `json:"orderDate"`
OrderDate time.Time `json:"orderDate"`
}
func (dto *DividendsIncentivesEstimateDto) LoadDto(orderGood *domain.OrderGood, orderNumber string, originalOrderNum string, customerName string, regionName string, orderDate time.Time) error {
... ... @@ -32,6 +32,6 @@ func (dto *DividendsIncentivesEstimateDto) LoadDto(orderGood *domain.OrderGood,
dto.CustomerName = customerName
dto.RegionName = regionName
dto.OrderAmount = orderGood.OrderGoodAmount
dto.OrderDate = orderDate.String()
dto.OrderDate = orderDate
return nil
}
... ...