作者 陈志颖

refactor:优化订单、退货单导入报错文案

... ... @@ -697,7 +697,7 @@ func (dividendsOrderService *DividendsOrderService) ImportDividendsOrder(importD
"order": dividendsOrder,
})
tmpRow := &domain.FailInfo{
FailReason: "同一笔订单的订单时间必须相同",
FailReason: "同一来源单号的订单,订单日期必须相同",
ImportDividendsOrderData: &importDividendsOrderCommand.DividendsOrderData[i],
}
aggregateErrorList = append(aggregateErrorList, tmpRow)
... ...
... ... @@ -690,7 +690,7 @@ func (dividendsReturnedOrderService *DividendsReturnedOrderService) ImportDivide
if strconv.FormatInt(timeValue.Local().UnixNano()/1e6, 10) != dividendsReturnedOrderCommands[hashString].OrderTime {
tmpRow := &domain.FailReturnedInfo{
FailReason: "同一笔退货单的订单时间必须相同",
FailReason: "同一来源单号的退货单,订单日期必须相同",
ImportDividendsReturnedOrderData: &importDividendsReturnedOrderCommand.DividendsReturnedOrderData[i],
}
aggregateErrorList = append(aggregateErrorList, tmpRow)
... ...