Project

General

Profile

Actions

追加功能 #502

closed
XF ZY

追加功能 #499: v4.0: Migration plan (AWS China → AWS Singapore)

v4.0: Migration plan (AWS China → AWS Singapore) - 验证修改

追加功能 #502: v4.0: Migration plan (AWS China → AWS Singapore) - 验证修改

Added by Xihua Fan 2 months ago. Updated about 2 months ago.

Status:
已关闭
Priority:
Assignee:
Target version:
IT: Easytryck (Sweden) - v4.0
Start date:
01/06/2026
Due date:
01/30/2026
% Done:

100%

Estimated time:
100.00 h

Description

Background
  1. 国内的AWS迁移到海外(新加坡),主要分3个Web资源。
    1. OTS3.0
    2. Easydingzhi
    3. Redmine
  2. 国内其他云服务(阿里云: 域名, DNS, SSL等)不在迁移计划内。
Task Details
  • 1. OTS3.0
    • 1.1 数据库数据迁移(主要是订单数据,产品+文件等除外)到OTS4.0( 1/26 凌晨完成
      问题1:OTS3.0老订单数字5位,比如 EASY00001 - EASY99999,OTS4.0新订单数字6位,比如 EASY100001
      问题2:OTS4.0新订单数字6位,既存数据需要保留嘛?如果保留可能需要统一【id + 100000】,否者删除即可。另外UI6位数字是否换行等,需要排查
    • 1.2 SSL域名迁移 ( 1/26 凌晨完成
      OTS3.0 = order3.easydingzhi.com (现域名:order.easydingzhi.com)
      OTS4.0 = order.easydingzhi.com
    • 1.3 OTS3.0备份 所有DB, Uploaded files数据全部迁移( 2月内完成 van可以处理,这里先关闭
      Uploaded files数据半年前的数据备份onedrive。
  • 2. Easydingzhi
    所有DB, 图片,Uploaded files数据全部迁移( 2月内完成 van可以处理,这里先关闭
  • 3. Redmine (IT团队使用)
    所有DB, Uploaded files数据全部迁移( 2月内完成 van+bruce可以处理,这里先关闭
  • 4. 其他:等1-3全部完成,将全部关闭AWS China,并注销【网站备注】。( 2月内完成 van可以处理,这里先关闭
v4 coding standard:
  1. Git提交
    #xxx(redmine number): xxx(redmine title) - xxx(任意:补充内容)
      
  2. 代码规范
    2.1: 结构:Public -> Protected -> Private
    2.2: 其他代码规范同SBX
      
  3. MVCL的v3/v4物理分割
    3.1: v3/v4的代码分为两个文件,比如: order.php, order_v3.php
    3.2: system也分为两个文件,暂时只有一个user_v3
    - Note: front的$this->user在v4中会替换为$this->customer, 即v4中需要清除$this->user
    3.3: 代码中,区分v3/v4的调用,比如:new User_V3
     
  4. 前台代码
    twig, js, css (js, css尽量写在单独的css文件中)
     
  5. 后台代码
    MVCL (L:en,cn)
     
  6. 注释
    1. 类名:
      /**
       * xxx
       *
       * @copyright RedBlue-OTS 2024
       * @version v4
       *
       */
      
    2. 函数名:参数类型 + 返回值类型
          /**
           * xxx
           *
           * @param  xxx $xxx
           * @param  xxx $xxx
           * @return xxx
           */
      
Output
  • Report and Solution

Others

XF Updated by Xihua Fan 2 months ago Actions #1

  • Subject changed from v4.0: Migration plan (AWS China → AWS Singapore) - v4验证修改 to v4.0: Migration plan (AWS China → AWS Singapore) - 验证修改

ZY Updated by Zhongbao Ye about 2 months ago Actions #2

  • Description updated (diff)
  • Status changed from 新建 to 已关闭
  • % Done changed from 0 to 100

ZY Updated by Zhongbao Ye about 2 months ago Actions #3

Output(2026/01/27) 九亭
  1. 迁移数据
    1. 时间范围:2025/11/1 - 2026/1/25
    2. 总计数量:1620 个 orders
    3. 特殊备注一:8个orders没有转换v4新格式
      1. EASY63476
      2. EASY63296
      3. EASY63253
      4. RBSH05865
      5. ABLV06824
      6. ABLV06827
      7. RBSH01294
      8. RBSH01293
    4. 特殊备注二:LAKE的部分订单 [v3: LVOT->v4: RBSH]
      - 影响范围:1128个订单 (hdp:无需修改, v4新LVOT 即可)
  1. 数据校验
    1. 【order id < 70000】:v3老数据
    2. 【70000 <= order id <= 90000】:v3老数据 且 和#2.1 重复order id
    3. 【90000 < order id <= 100000】:v4新数据(1/25迁移前添加)
    4. 【100000 < order id】:v4新数据(1/26迁移后添加:实际RM/RS添加)
  2. 设置排查
    1. {capacity} 和 {dimension} 的所有options是否覆盖检查:Niko已经校验,没有问题
      SELECT DISTINCT po.option_id 
      FROM ots_product p
      LEFT JOIN ots_product_option po ON (po.product_id = p.product_id)
      WHERE p.declaration_base_info LIKE '%{dimension}%'
      
Actions

Also available in: PDF Atom