作者 陈志颖

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

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