Commit c365e514 by mushishixian

修改字段

parent 3a8775f1
Showing with 1 additions and 2 deletions
...@@ -59,7 +59,6 @@ func StatisticsSuppliersHasUploadedSku() (err error) { ...@@ -59,7 +59,6 @@ func StatisticsSuppliersHasUploadedSku() (err error) {
defer rows.Close() defer rows.Close()
var num int var num int
for rows.Next() { for rows.Next() {
time.Sleep(100 * time.Millisecond)
err = rows.Scan(supplier) err = rows.Scan(supplier)
//设置一个判断是否有上传sku的时间,目前是决定取2021年1月1日0点作为标准,这个时间往后的,有上传sku都是有合作过的 //设置一个判断是否有上传sku的时间,目前是决定取2021年1月1日0点作为标准,这个时间往后的,有上传sku都是有合作过的
startTime, _ := time.Parse("2006-01-02 15:04:05", "2021-01-01 00:00:00") 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 ...@@ -123,7 +122,7 @@ func UpdateSupplierHasUploadedSku(supplierId int, hasUploadedSku int) (err error
} }
supplier.UploadedSku = hasUploadedSku supplier.UploadedSku = hasUploadedSku
//还要去写映射表lie_supplier_merger_mapping //还要去写映射表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 { if err != nil {
return err return err
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment