1
This commit is contained in:
@@ -4,11 +4,12 @@ import (
|
||||
"crypto/md5"
|
||||
"errors"
|
||||
"fmt"
|
||||
"git.rosy.net.cn/baseapi/platformapi/tao_vegetable"
|
||||
"math"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"git.rosy.net.cn/baseapi/platformapi/tao_vegetable"
|
||||
|
||||
"git.rosy.net.cn/jx-callback/business/authz/autils"
|
||||
"git.rosy.net.cn/jx-callback/business/jxutils/excel"
|
||||
"git.rosy.net.cn/jx-callback/business/jxutils/netprinter"
|
||||
@@ -2442,8 +2443,8 @@ func DelOrderSkuInfo(ctx *jxcontext.Context, vendorOrderID string, vendorID, id
|
||||
`
|
||||
sqlParams := []interface{}{vendorOrderID}
|
||||
dao.GetRows(db, &orderSkus, sql, sqlParams)
|
||||
if len(orderSkus) < 5 {
|
||||
return 0, fmt.Errorf("商品数小于5,不允许删除!")
|
||||
if len(orderSkus) < 3 {
|
||||
return 0, fmt.Errorf("商品数小于3,不允许删除!")
|
||||
}
|
||||
if orderSkus[0].ID == int64(id) {
|
||||
//if orderSkus[0].JxSkuID == skuID {
|
||||
|
||||
Reference in New Issue
Block a user