adjust

FFIB 5 年之前
父节点
当前提交
97be8af611
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      commands/management/commands/sale.py

+ 2 - 0
commands/management/commands/sale.py

@@ -45,10 +45,12 @@ class Command(CompatibilityBaseCommand):
45 45
                     current_month = 0
46 46
                     last_month = 0
47 47
                     for saleclerk in saleclerks:
48
+                        print saleclerk.clerk_id
48 49
                         log = logs.filter(clerk_id=saleclerk.clerk_id)
49 50
                         yesterday_num += logs.filter(ymd=lastday).count()
50 51
                         current_month += logs.filter(ym=month).count()
51 52
                         last_month += logs.filter(ym=lastmonth).count()
53
+
52 54
                     if m.is_important or (yesterday_num or current_month or last_month):
53 55
                         SalesResponsibilityInfoModelsSaleStatisticInfo.objects.create(
54 56
                             brand_id=b.brand_id,