# 发布相关 记录发布流程,执行脚本写完后,需更新到 ## 默认操作 1. 合并代码至uat/master 2. 登录阿里云,在相关数据库中,执行update.sql和index.sql 3. jenkins,发布脚本,执行升级脚本(按需) 4. 重启服务 ##特殊操作 如果没有特殊说明,则在第默认操作的第3步前,执行相关脚本,如果有特殊要求,需特别说明 ### V3.5.xx 2023-12-15 update #### uat ```shell $ cd db_script $ node change_bills uat ``` #### prod ```shell $ cd db_script $ node change_bills default ``` ### V3.5.35 #### uat ```shell $ cd db_script $ node budget_zb uat ``` #### prod ```shell $ cd db_script $ node budget_zb default ``` ### V3.5.35.0945 2023-8-23 ~ 2023-9-22(uat) ~ 2023-9-23(prod) ### V3.5.34.0841 2023-7-28 ~ 2023-8-21(uat) ~ 2023-8-22prod 1. 执行脚本 #### uat ```shell $ cd db_script $ node audit_order uat ``` #### prod ```shell $ cd db_script $ node audit_order default ``` ### V3.5.33.0755 2023-7-21 ~ 2023-7-28(uat/prod) ### V3.5.32.0743 2023-6-8 ~ 2023-7-19(uat) ~ 2023-7-20(prod) ### V3.5.31.0607 2023-4-5 ~ 2023-6-6(uat) ~ 2023-6-7(prod) 1. 执行脚本 #### uat ```bash $ node sub_project uat ``` #### prod ```bash $ node sub_project default ``` 2. 执行sql 见update.sql最后 ### V3.5.30.0423 优化标段列表相关 2023-03-31 ~ 2023-4-5(uat&prod) 3.1 优化: #### uat ```bash $ EGG_SERVER_ENV=uat node db_script/tender_cache uat ``` #### prod ```bash $ npm run test-sim /db_script/tender_cache.js ``` ### V3.5.29.0353+临时更新奉建定制报表 2023-03-29 ~ 2023-03-30(uat&prod) ### V3.5.29.0352 3.5.29.0353 2023-02-12 ~ 2023-03-28(uat) ~ 2023-03-29(prod) ### V3.5.28.0227 2022-10-24 ~ 2023-02-07(uat) ~ 2023-02-12 prod 3.1 pay: - 重算所有合同支付项order #### uat ```bash $ node pay_order uat ``` #### prod ```bash $ node pay_order default ``` ### V3.5.26.1024 2022-10-10 ~ 2022-10-24(uat) ~ 2022-10-24(prod) ### V3.5.25.1010 2022-08-03 ~ 2022-08-04(uat) ~ 2022-10-10(prod) 3.1 change: - 变更令正负变更金额,positive_tp, negative_tp - 期计量,计量单元,正负变更数量,positive_qc_qty, negative_qc_qty - 期计量,清单,正负变更数量、金额,positive_qc_qty, positive_qc_tp, negative_qc_qty, negative_qc_tp - 期计量,截止本期缓存,计量单元,正负变更数量,positive_qc_qty, negative_qc_qty - 期计量,截止本期缓存,清单,正负变更数量、金额,positive_qc_qty, positive_qc_tp, negative_qc_qty, negative_qc_tp - 期计量,本期补差,无旧数据,不需兼容:positive_qc_pc_tp, negative_qc_pc_tp - 期计量,本期正负变更金额,截止本期正负变更金额,positive_qc_tp, negative_qc_tp, pre_positive_qc_tp, pre_negative_pc_tp(补差无旧数据不兼容:positive_qc_pc_tp, negative_qc_pc_tp) #### uat ```bash $ node change uat ``` #### prod ```bash $ node change default ``` ### V3.5.24.0822 2022-05-31 ~ 2022-08-02(uat) ~ 2022-08-04(prod) 3.1. ledger_his_count: 更新ledger_history表中新增的bills_count和pos_count两个字段数据 3.2. minus_no_value: 更新project.fun_rela.minusNoValue=false和tender_info.fun_rela.stage_change.minusNoValue=false #### uat ```bash $ node ledger_his_count uat $ node minus_no_value uat ``` #### prod ```bash $ node ledger_his_count default $ node minus_no_value default ```