Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
杨树贤
/
scm_server
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
171f4b4d
authored
May 06, 2020
by
mushishixian
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
添加异常退出恢复判断
parent
30b2e198
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
4 deletions
cmd/queue/main.go
cmd/queue/sync_goods/main.go
cmd/source/customer/customer.go
cmd/source/goods/goods.go
cmd/source/supplier/supplier.go
cmd/queue/main.go
0 → 100644
View file @
171f4b4d
package
main
cmd/queue/sync_goods/main.go
View file @
171f4b4d
...
@@ -191,5 +191,5 @@ func main() {
...
@@ -191,5 +191,5 @@ func main() {
"store"
,
"store"
,
"direct"
,
"direct"
,
configs
.
RABBITMQDSN
,
configs
.
RABBITMQDSN
,
},
t
,
1
)
},
t
,
3
)
}
}
cmd/source/customer/customer.go
View file @
171f4b4d
...
@@ -24,7 +24,12 @@ func init() {
...
@@ -24,7 +24,12 @@ func init() {
}
}
}
}
func
Import
(
wg
*
sync
.
WaitGroup
)
{
func
Import
(
wg
*
sync
.
WaitGroup
)
{
defer
wg
.
Done
()
defer
func
()
{
if
err
:=
recover
();
err
!=
nil
{
fmt
.
Println
(
err
)
}
wg
.
Done
()
}()
var
(
var
(
excelFileName
string
excelFileName
string
xlFile
*
xlsx
.
File
xlFile
*
xlsx
.
File
...
...
cmd/source/goods/goods.go
View file @
171f4b4d
...
@@ -26,7 +26,12 @@ func init() {
...
@@ -26,7 +26,12 @@ func init() {
//导入委托方的信息(excel导入)
//导入委托方的信息(excel导入)
func
Import
(
wg
*
sync
.
WaitGroup
)
{
func
Import
(
wg
*
sync
.
WaitGroup
)
{
defer
wg
.
Done
()
defer
func
()
{
if
err
:=
recover
();
err
!=
nil
{
fmt
.
Println
(
err
)
}
wg
.
Done
()
}()
var
(
var
(
excelFileName
string
excelFileName
string
xlFile
*
xlsx
.
File
xlFile
*
xlsx
.
File
...
...
cmd/source/supplier/supplier.go
View file @
171f4b4d
...
@@ -26,7 +26,12 @@ func init() {
...
@@ -26,7 +26,12 @@ func init() {
//导入委托方的信息(excel导入)
//导入委托方的信息(excel导入)
func
Import
(
wg
*
sync
.
WaitGroup
)
{
func
Import
(
wg
*
sync
.
WaitGroup
)
{
defer
wg
.
Done
()
defer
func
()
{
if
err
:=
recover
();
err
!=
nil
{
fmt
.
Println
(
err
)
}
wg
.
Done
()
}()
var
(
var
(
excelFileName
string
excelFileName
string
xlFile
*
xlsx
.
File
xlFile
*
xlsx
.
File
...
...
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