<commit_before>{
    "type": "module",
    "app": "dss",
    "name": "productPlan",
    "displayName": "商品计划",
    "models": [
        {
            "name": "ProductPlan",
            "collection": "dss_product_plan",
            "schema": {
                "bandno": {
                    "type": "String",
                    "required": true,
                    "unique": true
                },
                "brand": {
                    "type": "String"
                },
                "year": {
                    "type": "String",
                    "required": true
                },
                "quarter": {
                    "type": "String"
                },
                "topic": {
                    "type": "String"
                },
                "publicDate": {
                    "type": "date",
                    "required": true
                },
                "researchSubmitDate": {
                    "type": "date",
                    "required": true
                },
                "headSubmitDate": {
                    "type": "date"
                },
                "tailSubmitDate": {
                    "type": "date"
                },
                "draftSubmitDate": {
                    "type": "date"
                },
                "patternSubmitDate": {
                    "type": "date"
                },
                "materialSubmitDate": {
                    "type": "date"
                },
                "sampleSubmitDate": {
                    "type": "date"
                },
                "photoSubmitDate": {
                    "type": "date"
                },
                "fileSubmitDate": {
                    "type": "date"
                },
                "styleCategoryPlan": [
                    {
                        "styleCategory": {
                            "type": "String",
                            "required": true,
                            "unique": true
                        },
                        "planCategoryCount": {
                            "type": "Number",
                            "required": true
                        },
                        "planQuantity": {
                            "type": "Number",
                            "required": true
                        },
                        "planUnitPrice": {
                            "type": "Number",
                            "required": true
                        },
//                        "planAmount": {
//                            "type": "Number",
//                            "required": true
//                        },
                        "oldCategoryCount": {
                            "type": "Number"
                        },
                        "oldQuantity": {
                            "type": "Number"
                        },
//                        "newCategoryCount": {
//                            "type": "Number"
//                        },
//                        "newQuantity": {
//                            "type": "Number"
//                        },
                        "newUnitPrice": {
                            "type": "Number"
                        }
//                        "newAmount": {
//                            "type": "String"
//                        }
                    }
                ]
            },
            "action": {
                "statics": [],
                "methods": []
            }
        }
    ],
    "controllers": [
        {
            "name": "ProductPlanController",
            "model": "ProductPlan",
            "type": "ModelController",
            "actions":[]
        },
        {
            "name": "ProductPlanStyleCategroyController",
            "model": "ProductPlan",
            "path": "styleCategoryPlan",
            "type": "ModelSubdocController",
            "actions":[]
        }
    ],
    "routes":{
        "post /product-plans" 	: {
            "permissions": ["dss-product-plan-manage"],
            "action" 	: "ProductPlanController.create"
        },
        "post /product-plans/:id/style-category-plans" 	: {
            "permissions": ["dss-product-plan-manage"],
            "action" 	: "ProductPlanStyleCategroyController.create"
        },
        "get /product-plans" 	: {
            "permissions": ["dss-product-plan-access"],
            "action" 	: "ProductPlanController.getCollection"
        },
        "get /product-plans/:id/style-category-plans" 	: {
            "permissions": ["dss-product-plan-access"],
            "action" 	: "ProductPlanStyleCategroyController.getCollection"
        },
        "put /product/plan/:id" 	: {
            "permissions": ["dss-product-plan-manage"],
            "action" 	: "ProductPlanController.update"
        },
        "put /product-plans/:id/style-category-plans/:subId" 	: {
            "permissions": ["dss-product-plan-manage"],
            "action" 	: "ProductPlanStyleCategroyController.update"
        },
        "delete /product/plan/:id" 	: {
            "permissions": ["dss-product-plan-manage"],
            "action" 	: "ProductPlanController.delete"
        },
        "delete /product-plans/:id/style-category-plans/:subId" 	: {
            "permissions": ["dss-product-plan-manage"],
            "action" 	: "ProductPlanStyleCategroyController.delete"
        },
        "get /product/plan/:id" : {
            "permissions": ["dss-product-plan-access"],
            "action" 	: "ProductPlanController.getItem"
        },
        "get /product-plans/:id/style-category-plans/:subId" 	: {
            "permissions": ["dss-product-plan-access"],
            "action" 	: "ProductPlanStyleCategroyController.create"
        }
    },
    "clientModels": [
        {
            "resourceUri":"/product-plans",
            "itemModel":{
                "name":"ProductPlan",
                "actions":["getSumPlanAmount","getSumPlanQuantity","getSumNewAmount","getSumNewQuantity"]
            },
            "collectionModel":{
                "name":"ProductPlanCollection",
                "actions":[]
            }
        },
        {
            "resourceUri":"/product-plans/:id/style-category-plans",
            "itemModel":{
                "name":"ProductPlanStyleCategory",
                "actions":["getPlanAmount", "getNewAmount", "getNewCategoryCount","getNewQuantity"]
            },
            "collectionModel":{
                "name":"ProductPlanStyleCategoryCollection",
                "actions":[]
            }
        }
    ],
    "views": [
        {
            "name": "productPlanListView",
            "displayName": "Product Plan",
            "description": "商品计划",
            "permission":"dss-product-plan-access"	,
            "type": "gridForm",
            "model": "ProductPlan",<commit_msg>modify planModule.json<commit_after>{
    "type": "module",
    "app": "dss",
    "name": "productPlan",
    "displayName": "商品计划",
    "models": [
        {
            "name": "ProductPlan",
            "collection": "dss_product_plan",
            "schema": {
                "bandno": {
                    "type": "String",
                    "required": true,
                    "unique": true
                },
                "brand": {
                    "type": "String"
                },
                "year": {
                    "type": "String",
                    "required": true
                },
                "quarter": {
                    "type": "String"
                },
                "topic": {
                    "type": "String"
                },
                "publicDate": {
                    "type": "date",
                    "required": true
                },
                "researchSubmitDate": {
                    "type": "date",
                    "required": true
                },
                "headSubmitDate": {
                    "type": "date"
                },
                "tailSubmitDate": {
                    "type": "date"
                },
                "draftSubmitDate": {
                    "type": "date"
                },
                "patternSubmitDate": {
                    "type": "date"
                },
                "materialSubmitDate": {
                    "type": "date"
                },
                "sampleSubmitDate": {
                    "type": "date"
                },
                "photoSubmitDate": {
                    "type": "date"
                },
                "fileSubmitDate": {
                    "type": "date"
                },
                "styleCategoryPlan": [
                    {
                        "styleCategory": {
                            "type": "String",
                            "required": true,
                            "unique": true
                        },
                        "planCategoryCount": {
                            "type": "Number",
                            "required": true
                        },
                        "planQuantity": {
                            "type": "Number",
                            "required": true
                        },
                        "planUnitPrice": {
                            "type": "Number",
                            "required": true
                        },
//                        "planAmount": {
//                            "type": "Number",
//                            "required": true
//                        },
                        "oldCategoryCount": {
                            "type": "Number"
                        },
                        "oldQuantity": {
                            "type": "Number"
                        },
//                        "newCategoryCount": {
//                            "type": "Number"
//                        },
//                        "newQuantity": {
//                            "type": "Number"
//                        },
                        "newUnitPrice": {
                            "type": "Number"
                        }
//                        "newAmount": {
//                            "type": "String"
//                        }
                    }
                ]
            },
            "action": {
                "statics": [],
                "methods": []
            }
        }
    ],
    "controllers": [
        {
            "name": "ProductPlanController",
            "model": "ProductPlan",
            "type": "ModelController",
            "actions":[]
        },
        {
            "name": "ProductPlanStyleCategroyController",
            "model": "ProductPlan",
            "path": "styleCategoryPlan",
            "type": "ModelSubdocController",
            "actions":[]
        }
    ],
    "routes":{
        "post /product-plans" 	: {
            "permissions": ["dss-product-plan-manage"],
            "action" 	: "ProductPlanController.create"
        },
        "post /product-plans/:id/style-category-plans" 	: {
            "permissions": ["dss-product-plan-manage"],
            "action" 	: "ProductPlanStyleCategroyController.create"
        },
        "get /product-plans" 	: {
            "permissions": ["dss-product-plan-access"],
            "action" 	: "ProductPlanController.getCollection"
        },
        "get /product-plans/:id/style-category-plans" 	: {
            "permissions": ["dss-product-plan-access"],
            "action" 	: "ProductPlanStyleCategroyController.getCollection"
        },
        "put /product/plan/:id" 	: {
            "permissions": ["dss-product-plan-manage"],
            "action" 	: "ProductPlanController.update"
        },
        "put /product-plans/:id/style-category-plans/:subId" 	: {
            "permissions": ["dss-product-plan-manage"],
            "action" 	: "ProductPlanStyleCategroyController.update"
        },
        "delete /product/plan/:id" 	: {
            "permissions": ["dss-product-plan-manage"],
            "action" 	: "ProductPlanController.delete"
        },
        "delete /product-plans/:id/style-category-plans/:subId" 	: {
            "permissions": ["dss-product-plan-manage"],
            "action" 	: "ProductPlanStyleCategroyController.delete"
        },
        "get /product/plan/:id" : {
            "permissions": ["dss-product-plan-access"],
            "action" 	: "ProductPlanController.getItem"
        },
        "get /product-plans/:id/style-category-plans/:subId" 	: {
            "permissions": ["dss-product-plan-access"],
            "action" 	: "ProductPlanStyleCategroyController.create"
        }
    },
    "clientModels": [
        {
            "resourceUri":"/product-plans",
            "itemModel":{
                "name":"ProductPlan",
                "actions":["getSumPlanAmount","getSumPlanQuantity","getSumOldAmount","getSumOldQuantity","getSumNewAmount","getSumNewQuantity"]
            },
            "collectionModel":{
                "name":"ProductPlanCollection",
                "actions":[]
            }
        },
        {
            "resourceUri":"/product-plans/:id/style-category-plans",
            "itemModel":{
                "name":"ProductPlanStyleCategory",
                "actions":["getPlanAmount", "getNewAmount", "getNewCategoryCount","getNewQuantity"]
            },
            "collectionModel":{
                "name":"ProductPlanStyleCategoryCollection",
                "actions":[]
            }
        }
    ],
    "views": [
        {
            "name": "productPlanListView",
            "displayName": "Product Plan",
            "description": "商品计划",
            "permission":"dss-product-plan-access"	,
            "type": "gridForm",
            "model": "ProductPlan",
{'fraction_non_alphanumeric': 0.1379385171790235, 'fraction_numerical': 0.0, 'mean_word_length': 0.9619696324677167, 'pattern_counts': {'":': 236, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4406009', 'n_tokens_mistral': 3517, 'n_tokens_neox': 3339, 'n_words': 454}