作者 陈志颖

合并分支 'dev' 到 'test'

fix:订单、退货单导入价格正负校验



查看合并请求 !61
@@ -503,6 +503,15 @@ func (dividendsOrderService *DividendsOrderService) ImportDividendsOrder(importD @@ -503,6 +503,15 @@ func (dividendsOrderService *DividendsOrderService) ImportDividendsOrder(importD
503 myRow = append(myRow, tmpRow) 503 myRow = append(myRow, tmpRow)
504 continue 504 continue
505 } 505 }
  506 + // 正负判断
  507 + if univalent < 0 {
  508 + tmpRow := &domain.FailInfo{
  509 + FailReason: "产品价格必须大于0,请重新填写",
  510 + }
  511 + tmpRow.ImportDividendsOrderData = &dividendsOrder
  512 + myRow = append(myRow, tmpRow)
  513 + continue
  514 + }
506 } 515 }
507 case 7: // 费用校验 516 case 7: // 费用校验
508 { 517 {
@@ -554,6 +554,16 @@ func (dividendsReturnedOrderService *DividendsReturnedOrderService) ImportDivide @@ -554,6 +554,16 @@ func (dividendsReturnedOrderService *DividendsReturnedOrderService) ImportDivide
554 myRow = append(myRow, tmpRow) 554 myRow = append(myRow, tmpRow)
555 continue 555 continue
556 } 556 }
  557 +
  558 + // 正负判断
  559 + if univalent < 0 {
  560 + tmpRow := &domain.FailReturnedInfo{
  561 + FailReason: "退货价格必须大于0,请重新填写",
  562 + ImportDividendsReturnedOrderData: &dividendsReturnedOrder,
  563 + }
  564 + myRow = append(myRow, tmpRow)
  565 + continue
  566 + }
557 } 567 }
558 } 568 }
559 } 569 }