合并分支 'dev' 到 'test'
fix:订单、退货单导入价格正负校验 查看合并请求 !61
正在显示
2 个修改的文件
包含
19 行增加
和
0 行删除
@@ -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 = ÷ndsOrder | ||
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: ÷ndsReturnedOrder, | ||
563 | + } | ||
564 | + myRow = append(myRow, tmpRow) | ||
565 | + continue | ||
566 | + } | ||
557 | } | 567 | } |
558 | } | 568 | } |
559 | } | 569 | } |
-
请 注册 或 登录 后发表评论