fix: trimSpace

master
howell 4 years ago
parent 8483aa3d33
commit 7bd5835ef5

@ -2,8 +2,6 @@ package goods
import (
"fmt"
mysql2 "git.oa00.com/go/mysql"
"github.com/360EntSecGroup-Skylar/excelize/v2"
"io"
"os"
"path/filepath"
@ -23,6 +21,9 @@ import (
"strings"
"time"
mysql2 "git.oa00.com/go/mysql"
"github.com/360EntSecGroup-Skylar/excelize/v2"
"github.com/gin-gonic/gin"
"github.com/shopspring/decimal"
)
@ -860,6 +861,9 @@ func ExportPromotionDown(c *gin.Context) {
//08:00 99
var gmp = make(map[string][]uint)
for _, row := range rows[1:] {
if len(row) == 0 || len(strings.TrimSpace(row[0])) == 0 {
continue
}
//第一行时间段 第二行goods_id
num, _ := strconv.Atoi(row[1])
if _, ok := gmp[row[0]]; ok {

Loading…
Cancel
Save