Commit 179a382e by 周立明

sql及修改范围

1 parent d1bfb66c
......@@ -2,6 +2,10 @@
### 陈希 -----------------end---------------------
### 立明 -----------------start-------------------
ALTER TABLE `dj_smartcarlife`.`dj_car_life_online_statement_account_trade_detail`
ADD COLUMN `reality_division_yq_merchant_id` int NULL COMMENT '实际分账园区店' AFTER `estimated_arrival_time`,
ADD COLUMN `reality_division_yq_merchant_name` varchar(128) NULL COMMENT '实际分账园区店名称' AFTER `reality_division_yq_merchant_id`;
### 立明 -----------------end---------------------
### 彦峰 -----------------start-------------------
......
......@@ -2,6 +2,24 @@
### 陈希 -----------------end---------------------
### 立明 -----------------start-------------------
update dj_car_life_online_statement_account_trade_detail a,dj_car_life_order_division b,dj_car_life_goods_order c
set a.reality_division_yq_merchant_id=c.seller_merchant_id,a.reality_division_yq_merchant_name=c.seller_merchant_name
where b.division_order_code=a.division_order_code and b.deleted_flag='N' and c.order_code=b.order_code and c.deleted_flag='N'
and a.deleted_flag='N' and division_flag='Y' and c.seller_merchant_id is not null and a.reality_division_yq_merchant_id is null;
update dj_car_life_online_statement_account_trade_detail a
set a.reality_division_yq_merchant_id=a.yq_merchant_id,a.reality_division_yq_merchant_name=a.yq_merchant_name
where a.deleted_flag='N' and division_flag='Y' and a.reality_division_yq_merchant_id is null;
update dj_car_life_online_statement_account_trade_detail set reality_platform_merchant_id=null,reality_platform_merchant_name=null where deleted_flag='N';
-- 排除欢腾收款主体
update dj_car_life_online_statement_account_trade_detail,dj_car_life_pay_order b,dj_platform_payment.dj_payment_trade_order c
set a.deleted_flag='D',a.updated_by='zhoulm_v5.8.2.2',a.updated_date=NOW() WHERE a.deleted_flag='N' and c.payee_usercode='826584355330285' and b.id=a.pay_order_id and b.deleted_flag='N'
and c.out_trade_no=b.out_trade_no and c.deleted_flag='N';
update dj_car_life_online_statement_account_trade_detail a,dj_car_life_online_statement_account_trade_distribution_detail b
set b.deleted_flag='D',b.updated_by='zhoulm_v5.8.2.2',b.updated_date=NOW() where b.deleted_flag='N' and a.deleted_flag='D' AND b.trade_detail_id=a.id;
### 立明 -----------------end---------------------
### 彦峰 -----------------start-------------------
......
......@@ -6,18 +6,18 @@
## 二、涉及应用列表版本应用信息
| SVN/Gitlab地址 | 分支标识(Gitlab必填) | 发版项目名称 | 分支创建人 | 分支合并人 | 代码检查人 | 检查情况 |
|--------------|:--------------:|--------|-------|-------|-------|------|
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| SVN/Gitlab地址 | 分支标识(Gitlab必填) | 发版项目名称 | 分支创建人 | 分支合并人 | 代码检查人 | 检查情况 |
| -------------------------------------------------------- | :--------------------: | ----------------------- | ---------- | ---------- | ---------- | -------- |
| http://192.168.3.233:8090/dj/rop-dj-smartcarlife.git | v5.8.2.2 | rop-dj-smartcarlife | 周立明 | | | |
| http://192.168.3.233:8090/dj/rpc-dj-smartcarlife-job.git | v5.8.2.2 | rpc-dj-smartcarlife-job | 周立明 | | | |
| http://192.168.3.233:8090/dj/rpc-smartcarlife.git | v5.8.2.2 | rpc-dj-smartcarlife | 周立明 | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
## 三、需求变更记录
......@@ -34,8 +34,30 @@
#### 变更内容
- rop-dj-smartcarlife
- dj.api.smartcarlife.onlineStatementAccount.detailpage.export.async 导出银盛线上对账单明细列表(异步)
- dj.api.smartcarlife.onlineStatementAccount.paymentCountTotal 查询银盛线上对账单收款统计信息
- dj.api.smartcarlife.onlineStatementAccount.divisionCountTotal 查询银盛线上对账单分账统计记录
- rpc-dj-smartcarlife-job
- OnlineStatementAccountTradeDetailUpdateJob 银盛对账单交易明细更新任务
- SyncMerchantGoodsToScrmJob 同步上架商品到scrm任务
- SyncProductToScrmJob 同步产品到scrm任务
#### 影响范围
​ D+后台
- 财务管理-银盛线上对账单
- 详情新增汇总-分账列表
- 新增收款和分账数据总计展示
- 导出文件新增总计展示
- 汇总-收款和汇总-分账数据展示修改,由每个业务一行数据改为4个业务一行展示
- 收入所属公司存储逻辑变更
- 定时任务
- 新增产品和上架商品同步任务,用于处理历史未成功同步数据
### 第二轮提测
#### 变更内容2
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!