Commit 5ab1e276 by Joneq

去除旧商品

parent d3af865b
Showing with 3 additions and 0 deletions
......@@ -50,6 +50,8 @@ var currentDatetime int64
//同步海关信息至中间库
func main() {
UpdateOldGoodsId()
panic(1)
runtime.GOMAXPROCS(5)
//获取当天时间
......@@ -249,6 +251,7 @@ func UpdateOldGoodsId() {
for _,v:=range numArr{
result,_ := sub.GetCustomsDockingData(`{"tableName":"Purchase_Order2","bizDate":"`+v+`"}`)
fmt.Println("正在修改"+v)
if gjson.Get(result,"0.goods_id").String() != "" {
sqlDb.Exec("update Purchase_Order set goods_id = '"+gjson.Get(result,"0.goods_id").String()+"' where number ='"+v+"'")
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment