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
163cee77
authored
May 30, 2022
by
mushishixian
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
单独跑任务
parent
ef80ebc2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
10 deletions
app/dao/supplier.go
app/service/supplier_sku_statistics.go
app/dao/supplier.go
View file @
163cee77
...
...
@@ -2,12 +2,13 @@ package dao
import
(
"fmt"
"github.com/ichunt2019/cfg/lib"
"github.com/imroc/req"
"github.com/tidwall/gjson"
"go_supplier_sever/app/model"
"strconv"
"time"
"github.com/ichunt2019/cfg/lib"
"github.com/imroc/req"
"github.com/tidwall/gjson"
)
func
StatisticsSuppliersSkuNum
()
(
err
error
)
{
...
...
@@ -48,6 +49,7 @@ func StatisticsSuppliersSkuNum() (err error) {
//统计供应商是否上传过sku
func
StatisticsSuppliersHasUploadedSku
()
(
err
error
)
{
fmt
.
Println
(
"开始统计历史上传SKU"
)
supplier
:=
new
(
model
.
Supplier
)
//先去根据供应商内部编码找出对应的supplierId
rows
,
err
:=
Dao
.
GetDb
(
"supplier"
)
.
Table
(
"lie_supplier_channel"
)
.
Where
(
"is_type = ?"
,
0
)
.
OrderBy
(
"supplier_id desc"
)
.
Rows
(
supplier
)
...
...
app/service/supplier_sku_statistics.go
View file @
163cee77
package
service
import
(
"fmt"
//
"fmt"
"go_supplier_sever/app/dao"
)
func
StatisticsSupplierSkuStatus
()
(
err
error
)
{
fmt
.
Println
(
"开始统计"
)
//先找出所有需要判断的供应商
err
=
dao
.
StatisticsSuppliersSkuNum
()
if
err
!=
nil
{
return
err
}
//
fmt.Println("开始统计")
//
//
先找出所有需要判断的供应商
//
err = dao.StatisticsSuppliersSkuNum()
//
if err != nil {
//
return err
//
}
err
=
dao
.
StatisticsSuppliersHasUploadedSku
()
return
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