Commit 33a4c8da by Joneq

调试海关

parent a4cc479d
Showing with 4 additions and 1 deletions
...@@ -20,7 +20,7 @@ var ( ...@@ -20,7 +20,7 @@ var (
"Ent_profit","Gathering_Account", "Ent_profit","Gathering_Account",
"HK_Customs_Declaration","Payment_Account", "HK_Customs_Declaration","Payment_Account",
"Purchase_Order","Sales_Order", "Purchase_Order","Sales_Order",
"SYS_OPERATE_LOG", //"SYS_OPERATE_LOG",
} }
wg sync.WaitGroup wg sync.WaitGroup
...@@ -86,6 +86,8 @@ func handleCurrentTable(tableName,currentDate string) { ...@@ -86,6 +86,8 @@ func handleCurrentTable(tableName,currentDate string) {
currentString = append(currentString,"") currentString = append(currentString,"")
//sqlkey //sqlkey
res.ForEach(func(key, value gjson.Result) bool { res.ForEach(func(key, value gjson.Result) bool {
if value.String() != "" {
//获取key和val并拼接字符串 //获取key和val并拼接字符串
currentKey += key.String()+"," currentKey += key.String()+","
valueString += "?," valueString += "?,"
...@@ -93,6 +95,7 @@ func handleCurrentTable(tableName,currentDate string) { ...@@ -93,6 +95,7 @@ func handleCurrentTable(tableName,currentDate string) {
if key.String() == "number" && value.String() != "" { if key.String() == "number" && value.String() != "" {
currentNum = value.String() currentNum = value.String()
} }
}
return true return true
}) })
......
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