Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
杨树贤
/
go_supplier_sever
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
3a8775f1
authored
May 30, 2022
by
mushishixian
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
单纯跑历史统计
parent
6e7a64dd
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
12 deletions
app/service/supplier_sku_statistics.go
cmd/statistics/sku_num.go
app/service/supplier_sku_statistics.go
View file @
3a8775f1
...
@@ -8,10 +8,10 @@ import (
...
@@ -8,10 +8,10 @@ import (
func
StatisticsSupplierSkuStatus
()
(
err
error
)
{
func
StatisticsSupplierSkuStatus
()
(
err
error
)
{
fmt
.
Println
(
"开始统计"
)
fmt
.
Println
(
"开始统计"
)
//先找出所有需要判断的供应商
//先找出所有需要判断的供应商
err
=
dao
.
StatisticsSuppliersSkuNum
()
//
err = dao.StatisticsSuppliersSkuNum()
if
err
!=
nil
{
//
if err != nil {
return
err
//
return err
}
//
}
err
=
dao
.
StatisticsSuppliersHasUploadedSku
()
err
=
dao
.
StatisticsSuppliersHasUploadedSku
()
return
err
return
err
...
...
cmd/statistics/sku_num.go
View file @
3a8775f1
...
@@ -3,8 +3,7 @@ package main
...
@@ -3,8 +3,7 @@ package main
import
(
import
(
"flag"
"flag"
"fmt"
"fmt"
"go_supplier_sever/app/service"
// "go_supplier_sever/app/service"
"go_supplier_sever/boot"
"go_supplier_sever/boot"
)
)
...
@@ -17,11 +16,11 @@ func main() {
...
@@ -17,11 +16,11 @@ func main() {
flag
.
StringVar
(
&
configPath
,
"config"
,
"./config/dev/"
,
"配置文件"
)
flag
.
StringVar
(
&
configPath
,
"config"
,
"./config/dev/"
,
"配置文件"
)
flag
.
StringVar
(
&
logPath
,
"logdir"
,
"./logs/"
,
"日志文件存储目录"
)
flag
.
StringVar
(
&
logPath
,
"logdir"
,
"./logs/"
,
"日志文件存储目录"
)
flag
.
Parse
()
flag
.
Parse
()
fmt
.
Println
(
"测试代码"
)
boot
.
Init
(
configPath
,
logPath
)
boot
.
Init
(
configPath
,
logPath
)
//
//
统计供应商sku相关情况
//统计供应商sku相关情况
//
err := service.StatisticsSupplierSkuStatus()
err
:=
service
.
StatisticsSupplierSkuStatus
()
//
if err != nil {
if
err
!=
nil
{
//
fmt.Println(err)
fmt
.
Println
(
err
)
//
}
}
}
}
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