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
eff63c65
authored
May 18, 2021
by
Joneq
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
完成开发
parent
9cfeeeac
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
cmd/scm/sync_customs/main.go
cmd/scm/sync_customs/main.go
View file @
eff63c65
...
@@ -139,7 +139,7 @@ func handleCurrentTable(tableName,currentDate string) {
...
@@ -139,7 +139,7 @@ func handleCurrentTable(tableName,currentDate string) {
currentKey
+=
"data_sync_time,"
currentKey
+=
"data_sync_time,"
valueString
+=
"?,"
valueString
+=
"?,"
currentString
=
append
(
currentString
,
time
.
Now
()
.
Format
(
"2006-01-02"
))
currentString
=
append
(
currentString
,
time
.
Now
()
.
Format
(
"2006-01-02
15:04:05
"
))
currentString
[
0
]
=
`INSERT INTO `
+
tableName
+
` (`
+
currentKey
[
:
len
(
currentKey
)
-
1
]
+
`)VALUES (`
+
valueString
[
:
len
(
valueString
)
-
1
]
+
`)`
currentString
[
0
]
=
`INSERT INTO `
+
tableName
+
` (`
+
currentKey
[
:
len
(
currentKey
)
-
1
]
+
`)VALUES (`
+
valueString
[
:
len
(
valueString
)
-
1
]
+
`)`
_
,
err
=
sqlDb
.
Exec
(
currentString
...
)
_
,
err
=
sqlDb
.
Exec
(
currentString
...
)
...
...
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