Browse Source

修改回冲文件生成逻辑

pull/233/head
zhangxin 2 years ago
parent
commit
acf02f7b89
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      etl_task/BackFlushShipOrder.go

+ 2
- 2
etl_task/BackFlushShipOrder.go View File

@ -219,11 +219,11 @@ func main() {
} }
artErpQtyMap[article.ArtSpec3] = qty artErpQtyMap[article.ArtSpec3] = qty
} }
if len(shipOrderId) < 5 {
if len(shipOrderId) < 15 {
fmt.Println("发运单号格式错误, 发运单号:" + shipOrderId) fmt.Println("发运单号格式错误, 发运单号:" + shipOrderId)
return return
} }
writeOrderId := shipOrderId[:len(shipOrderId)-4]
writeOrderId := shipOrderId[:15]
for artId, qty := range artErpQtyMap { for artId, qty := range artErpQtyMap {
index1 := artId index1 := artId
index2 := strconv.Itoa(qty) index2 := strconv.Itoa(qty)


Loading…
Cancel
Save