# 新增订单组合商品字段

```
PUT order/_mapping/_doc?include_type_name=true
{
    "properties": {
        "mainOrderId": {
            "type": "long"
        },        
       "orderItems": {
          "type": "nested",
          "properties": {
             "writeOffNum": {
                "type": "integer"
             },      
             "spuMold": {
                "type": "integer"
             },    
             "writeOffMultipleCount": {
                "type": "integer"
             },       
             "writeOffStart": {
                "type": "date"
             },             
             "writeOffEnd": {
                "type": "date"
             }
          }
       }
    }
}
```

# 新增调拨订单ES数据
PUT allot-order
```json
{
  "mappings": {
    "properties": {
      "allotOrderId": {
        "type": "long"
      },
      "outWarehouseId": {
        "type": "long"
      },
      "outStockPointType": {
        "type": "integer"
      },
      "inWarehouseId": {
        "type": "long"
      },
      "inStockPointType": {
        "type": "integer"
      },
      "dvyCompanyId": {
        "type": "long"
      },
      "dvyType": {
        "type": "integer"
      },
      "dvyOrderNumber": {
        "type": "keyword",
        "index": false,
        "doc_values": false
      },
      "status": {
        "type": "integer"
      },
      "totalAllotCount": {
        "type": "integer"
      },
      "remark": {
        "type": "keyword",
        "index": false,
        "doc_values": false
      },
      "shopId": {
        "type": "long"
      },
      "sysType": {
        "type": "integer"
      },
      "createTime": {
        "type": "date" 
      },
      "updateTime": {
        "type": "date" 
      },
      "allotOrderItems": {
        "type": "nested",
        "properties": {
          "allotOrderItemId": {
            "type": "long"
          },
          "spuId": {
            "type": "long"
          },
          "skuId": {
            "type": "long"
          },
          "allotCount": {
            "type": "integer"
          },
          "allotInCount": {
            "type": "integer"
          }
        }
      }
    }
  }
}
```

# 新增商品配送方式字段
PUT product/_mapping/_doc?include_type_name=true
```json
{
  "properties": {
    "deliveryMode": {
      "type": "nested",
      "properties": {
        "hasUserPickUp": {
          "type": "boolean"
        },
        "hasShopDelivery": {
          "type": "boolean"
        },
        "hasCityDelivery": {
          "type": "boolean"
        }
      }
    }
  }
}
```
