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
Hide 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 (
func
StatisticsSupplierSkuStatus
()
(
err
error
)
{
fmt
.
Println
(
"开始统计"
)
//先找出所有需要判断的供应商
err
=
dao
.
StatisticsSuppliersSkuNum
()
if
err
!=
nil
{
return
err
}
//
err = dao.StatisticsSuppliersSkuNum()
//
if err != nil {
//
return err
//
}
err
=
dao
.
StatisticsSuppliersHasUploadedSku
()
return
err
...
...
cmd/statistics/sku_num.go
View file @
3a8775f1
...
...
@@ -3,8 +3,7 @@ package main
import
(
"flag"
"fmt"
// "go_supplier_sever/app/service"
"go_supplier_sever/app/service"
"go_supplier_sever/boot"
)
...
...
@@ -17,11 +16,11 @@ func main() {
flag
.
StringVar
(
&
configPath
,
"config"
,
"./config/dev/"
,
"配置文件"
)
flag
.
StringVar
(
&
logPath
,
"logdir"
,
"./logs/"
,
"日志文件存储目录"
)
flag
.
Parse
()
fmt
.
Println
(
"测试代码"
)
boot
.
Init
(
configPath
,
logPath
)
//
//
统计供应商sku相关情况
//
err := service.StatisticsSupplierSkuStatus()
//
if err != nil {
//
fmt.Println(err)
//
}
//统计供应商sku相关情况
err
:=
service
.
StatisticsSupplierSkuStatus
()
if
err
!=
nil
{
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