Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
孙龙
/
golang_asynctask
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
33a4c8da
authored
May 13, 2021
by
Joneq
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
调试海关
parent
a4cc479d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
cmd/scm/sync_customs/main.go
cmd/scm/sync_customs/main.go
View file @
33a4c8da
...
@@ -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
})
})
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment