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
c365e514
authored
May 30, 2022
by
mushishixian
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修改字段
parent
3a8775f1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
2 deletions
app/dao/supplier.go
app/dao/supplier.go
View file @
c365e514
...
...
@@ -59,7 +59,6 @@ func StatisticsSuppliersHasUploadedSku() (err error) {
defer
rows
.
Close
()
var
num
int
for
rows
.
Next
()
{
time
.
Sleep
(
100
*
time
.
Millisecond
)
err
=
rows
.
Scan
(
supplier
)
//设置一个判断是否有上传sku的时间,目前是决定取2021年1月1日0点作为标准,这个时间往后的,有上传sku都是有合作过的
startTime
,
_
:=
time
.
Parse
(
"2006-01-02 15:04:05"
,
"2021-01-01 00:00:00"
)
...
...
@@ -123,7 +122,7 @@ func UpdateSupplierHasUploadedSku(supplierId int, hasUploadedSku int) (err error
}
supplier
.
UploadedSku
=
hasUploadedSku
//还要去写映射表lie_supplier_merger_mapping
_
,
err
=
Dao
.
GetDb
(
"supplier"
)
.
Table
(
"lie_supplier_channel"
)
.
Where
(
"supplier_id = ?"
,
supplierId
)
.
Cols
(
"
sku_num
"
)
.
Update
(
supplier
)
_
,
err
=
Dao
.
GetDb
(
"supplier"
)
.
Table
(
"lie_supplier_channel"
)
.
Where
(
"supplier_id = ?"
,
supplierId
)
.
Cols
(
"
uploaded_sku
"
)
.
Update
(
supplier
)
if
err
!=
nil
{
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