@@ -13,40 +13,40 @@ from statistic.models import (ConsumeDistributorSaleStatisticInfo, ConsumeModelS  | 
            ||
| 13 | 13 | 
                 | 
            
| 14 | 14 | 
                 | 
            
| 15 | 15 | 
                 PROVINCE_LIST = {
               | 
            
| 16 | 
                - "110000": "北京",  | 
            |
| 17 | 
                - "120000": "天津",  | 
            |
| 18 | 
                - "130000": "河北",  | 
            |
| 19 | 
                - "140000": "山西",  | 
            |
| 20 | 
                - "150000": "内蒙古",  | 
            |
| 21 | 
                - "210000": "辽宁",  | 
            |
| 22 | 
                - "220000": "吉林",  | 
            |
| 23 | 
                - "230000": "黑龙江",  | 
            |
| 24 | 
                - "310000": "上海",  | 
            |
| 25 | 
                - "320000": "江苏",  | 
            |
| 26 | 
                - "330000": "浙江",  | 
            |
| 27 | 
                - "340000": "安徽",  | 
            |
| 28 | 
                - "350000": "福建",  | 
            |
| 29 | 
                - "360000": "江西",  | 
            |
| 30 | 
                - "370000": "山东",  | 
            |
| 31 | 
                - "410000": "河南",  | 
            |
| 32 | 
                - "420000": "湖北",  | 
            |
| 33 | 
                - "430000": "湖南",  | 
            |
| 34 | 
                - "440000": "广东",  | 
            |
| 35 | 
                - "450000": "广西",  | 
            |
| 36 | 
                - "460000": "海南",  | 
            |
| 37 | 
                - "500000": "重庆",  | 
            |
| 38 | 
                - "510000": "四川",  | 
            |
| 39 | 
                - "520000": "贵州",  | 
            |
| 40 | 
                - "530000": "云南",  | 
            |
| 41 | 
                - "540000": "西藏",  | 
            |
| 42 | 
                - "610000": "陕西",  | 
            |
| 43 | 
                - "620000": "甘肃",  | 
            |
| 44 | 
                - "630000": "青海",  | 
            |
| 45 | 
                - "640000": "宁夏",  | 
            |
| 46 | 
                - "650000": "新疆",  | 
            |
| 47 | 
                - "710000": "台湾",  | 
            |
| 48 | 
                - "810000": "香港",  | 
            |
| 49 | 
                - "820000": "澳门"  | 
            |
| 16 | 
                + "110000": "北京市",  | 
            |
| 17 | 
                + "120000": "天津市",  | 
            |
| 18 | 
                + "130000": "河北省",  | 
            |
| 19 | 
                + "140000": "山西省",  | 
            |
| 20 | 
                + "150000": "内蒙古自治区",  | 
            |
| 21 | 
                + "210000": "辽宁省",  | 
            |
| 22 | 
                + "220000": "吉林省",  | 
            |
| 23 | 
                + "230000": "黑龙江省",  | 
            |
| 24 | 
                + "310000": "上海市",  | 
            |
| 25 | 
                + "320000": "江苏省",  | 
            |
| 26 | 
                + "330000": "浙江省",  | 
            |
| 27 | 
                + "340000": "安徽省",  | 
            |
| 28 | 
                + "350000": "福建省",  | 
            |
| 29 | 
                + "360000": "江西省",  | 
            |
| 30 | 
                + "370000": "山东省",  | 
            |
| 31 | 
                + "410000": "河南省",  | 
            |
| 32 | 
                + "420000": "湖北省",  | 
            |
| 33 | 
                + "430000": "湖南省",  | 
            |
| 34 | 
                + "440000": "广东省",  | 
            |
| 35 | 
                + "450000": "广西壮族自治区",  | 
            |
| 36 | 
                + "460000": "海南省",  | 
            |
| 37 | 
                + "500000": "重庆市",  | 
            |
| 38 | 
                + "510000": "四川省",  | 
            |
| 39 | 
                + "520000": "贵州省",  | 
            |
| 40 | 
                + "530000": "云南省",  | 
            |
| 41 | 
                + "540000": "西藏自治区",  | 
            |
| 42 | 
                + "610000": "陕西省",  | 
            |
| 43 | 
                + "620000": "甘肃省",  | 
            |
| 44 | 
                + "630000": "青海省",  | 
            |
| 45 | 
                + "640000": "宁夏回族自治区",  | 
            |
| 46 | 
                + "650000": "新疆维吾尔自治区",  | 
            |
| 47 | 
                + "710000": "台湾省",  | 
            |
| 48 | 
                + "810000": "香港特别行政区",  | 
            |
| 49 | 
                + "820000": "澳门特别行政区"  | 
            |
| 50 | 50 | 
                }  | 
            
| 51 | 51 | 
                 | 
            
| 52 | 52 | 
                 | 
            
                @@ -111,7 +111,7 @@ class DistributorSaleStatisticInfo(BaseModelMixin):  | 
            ||
| 111 | 111 | 
                class ProvinceSaleStatisticInfo(BaseModelMixin):  | 
            
| 112 | 112 | 
                brand_id = models.CharField(_(u'brand_id'), max_length=32, blank=True, null=True, help_text=u'品牌唯一标识', db_index=True)  | 
            
| 113 | 113 | 
                province_code = models.CharField(_(u'province_code'), max_length=6, help_text=u'省份编码', db_index=True)  | 
            
| 114 | 
                - province_name = models.CharField(_(u'province_name'), max_length=3, blank=True, null=True, help_text=u'省份名称')  | 
            |
| 114 | 
                + province_name = models.CharField(_(u'province_name'), max_length=8, blank=True, null=True, help_text=u'省份名称')  | 
            |
| 115 | 115 | 
                ymd = models.IntegerField(_(u'ymd'), default=0, help_text=u'年月日', db_index=True) # 例:20171208, tc.local_string(format='%Y%m%d'), 0 为全部  | 
            
| 116 | 116 | 
                num = models.IntegerField(_(u'num'), default=0, help_text=u'数量')  | 
            
| 117 | 117 | 
                 | 
            
                @@ -208,7 +208,7 @@ class ConsumeDistributorSaleStatisticInfo(BaseModelMixin):  | 
            ||
| 208 | 208 | 
                class ConsumeProvinceSaleStatisticInfo(BaseModelMixin):  | 
            
| 209 | 209 | 
                brand_id = models.CharField(_(u'brand_id'), max_length=32, blank=True, null=True, help_text=u'品牌唯一标识', db_index=True)  | 
            
| 210 | 210 | 
                province_code = models.CharField(_(u'province_code'), max_length=6, help_text=u'省份编码', db_index=True)  | 
            
| 211 | 
                - province_name = models.CharField(_(u'province_name'), max_length=3, blank=True, null=True, help_text=u'省份名称')  | 
            |
| 211 | 
                + province_name = models.CharField(_(u'province_name'), max_length=8, blank=True, null=True, help_text=u'省份名称')  | 
            |
| 212 | 212 | 
                ymd = models.IntegerField(_(u'ymd'), default=0, help_text=u'年月日', db_index=True) # 例:20171208, tc.local_string(format='%Y%m%d'), 0 为全部  | 
            
| 213 | 213 | 
                num = models.IntegerField(_(u'num'), default=0, help_text=u'数量')  | 
            
| 214 | 214 | 
                 |