| | |
| | | if(b){//如果计算了里程则将新的数据存储到数据库作为下个起点 |
| | | //先计算里程,在存储最新位置 |
| | | orderPosition.setInsertTime(new Date()); |
| | | //将数据存储到文件中 |
| | | List<OrderPosition> orderPositions = this.queryPosition(orderPosition.getOrderId(), orderPosition.getOrderType()); |
| | | orderPositions.add(orderPosition); |
| | | mongoTemplate.insert(orderPositions, OrderPosition.class); |
| | | mongoTemplate.save(orderPosition); |
| | | } |
| | | |
| | | new Thread(new Runnable() { |
| | |
| | | application: |
| | | name: driver-server |
| | | profiles: |
| | | # active: dev |
| | | # active: dev |
| | | active: prod |
| | | mvc: |
| | | static-path-pattern: /static/** |
| | |
| | | max-request-size: 100MB |
| | | max-file-size: 100MB |
| | | redis: |
| | | host: 172.21.35.151 |
| | | port: 6512 |
| | | password: SC_cache@20#25 |
| | | database: 0 |
| | | timeout: 1000 |
| | | cluster: |
| | | nodes: 172.21.35.151:6512,172.21.35.152:6512,172.21.35.153:6512,172.21.35.151:6513,172.21.35.152:6513,172.21.35.153:6513 |
| | | max-redirects: 3 |
| | | lettuce: |
| | | pool: |
| | | max-idle: 16 |
| | | max-active: 32 |
| | | min-idle: 8 |
| | | |
| | | mybatis-plus: |
| | | typeAliasesPackage: com.stylefeng.guns.modular |