Commit 3a8775f1 by mushishixian

单纯跑历史统计

parent 6e7a64dd
......@@ -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
......
......@@ -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)
}
}
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